]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR c++/31952 (parameters may be redeclared in a function try-block)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
ad4db775
TJ
12013-05-15 Teresa Johnson <tejohnson@google.com>
2
3 * loop-unroll.c (report_unroll_peel): Check decision before
4 emitting unroll/peel message.
5
af205f67
TJ
62013-05-15 Teresa Johnson <tejohnson@google.com>
7
8 * function.h (has_bb_partition): New rtl_data flag.
9 (bb_reorder_complete): Ditto.
10 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
11 instead of flag_reorder_blocks_and_partition.
12 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
13 with some enhancements.
14 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
15 * bb-reorder.c (connect_traces): Check for has_bb_partition
16 instead of flag_reorder_blocks_and_partition.
17 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
18 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
19 verify_hot_cold_block_grouping.
20 (partition_hot_cold_basic_blocks): Set has_bb_partition.
21
9adcfa3c
RR
222013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23
24 PR target/19599
25 * config/arm/predicates.md (call_insn_operand): New predicate.
26 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
27 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
28 if insn is not a tail call.
29 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
30 registers.
31 * config/arm/arm.h (enum reg_class): New caller save register class.
32 (REG_CLASS_NAMES): Likewise.
33 (REG_CLASS_CONTENTS): Likewise.
34 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
35 without decls.
36
ccb3ad87
RB
372013-05-15 Richard Biener <rguenther@suse.de>
38
39 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
40 of MSG_OPTIMIZED_LOCATIONS.
41 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
42 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
43 message.
44 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
45 of MSG_OPTIMIZED_LOCATIONS.
46 (execute_vect_slp): Likewise.
47 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
48 (vect_create_cond_for_alias_checks): Likewise.
49 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
50 (vect_recog_widen_mult_pattern): Likewise.
51 (vect_recog_widen_sum_pattern): Likewise.
52 (vect_recog_over_widening_pattern): Likewise.
53 (vect_recog_widen_shift_pattern): Likewise.
54 (vect_recog_vector_vector_shift_pattern): Likewise.
55 (vect_recog_divmod_pattern): Likewise.
56 (vect_recog_mixed_size_cond_pattern): Likewise.
57 (vect_recog_bool_pattern): Likewise.
58 (vect_pattern_recog_1): Likewise.
59
48b1474e
MJ
602013-05-15 Martin Jambor <mjambor@suse.cz>
61
62 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
63 non-functions to builtin_unreachable.
64 * ipa-inline-transform.c (inline_call): Do not assert estimates were
65 correct when new direct edges were discovered.
66
9de04252
MJ
672013-05-15 Martin Jambor <mjambor@suse.cz>
68
69 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
70 header, print symbol order instead of node uid, print more information
71 about indirect edge targets.
72 (ipa_make_edge_direct_to_target): Print symbol order instead of node
73 uids.
74 (ipa_make_edge_direct_to_target): Likewise.
75 (remove_described_reference): Likewise.
76 (propagate_controlled_uses): Likewise.
77 (ipa_print_node_params): Also print symbol order.
78 (ipcp_transform_function): Print symbol order instead of node uids.
79 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
80 (cgraph_get_create_real_symbol_node): Likewise.
81 * ipa-cp.c (print_lattice): Likewise.
82 (print_all_lattices): Likewise.
83 (determine_versionability): Likewise.
84 (initialize_node_lattices): Likewise.
85 (estimate_local_effects): Likewise.
86 (update_profiling_info): Likewise.
87 (create_specialized_node): Likewise.
88 (perhaps_add_new_callers): Likewise.
89 (decide_about_value): Likewise.
90 (decide_whether_version_node): Likewise.
91 (identify_dead_nodes): Likewise.
92 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
93 (dump_inline_summary): Likewise.
94 (estimate_node_size_and_time): Likewise.
95 (inline_analyze_function): Likewise.
96 * ipa-inline.c (report_inline_failed_reason): Likewise.
97 (want_early_inline_function_p): Likewise.
98 (edge_badness): Likewise.
99 (update_edge_key): Likewise.
100 (inline_small_functions): Likewise. Add dumping of order to two other
101 dumps.
102 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
103 instead of node uids.
104 (propagate_pure_const): Likewise.
105 (propagate_pure_const): Likewise.
106 * ipa-utils.c (dump_cgraph_node_set): Likewise.
107 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
108 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
109 of node uids.
110 * tree-pretty-print.c (dump_function_header): Likewise.
111 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
112 Print symbol order instead of node uids.
113
1dd03b91
AK
1142013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
115
116 * config/s390/s390.c (s390_register_move_cost): Don't impose the
117 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
118
fdf6a7b9
RB
1192013-05-15 Richard Biener <rguenther@suse.de>
120
121 PR tree-optimization/57275
122 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
123 return value for fail to do runtime alias checks for gather loads.
124
2d6e4603
JH
1252013-05-15 Jan Hubicka <jh@suse.cz>
126
127 PR lto/57038
128 PR lto/47375
129 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol; weakrefs are
130 not external.
131 (lto_symtab_merge_decls): Fix thinko when dealing with non-lto_symtab decls.
132 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
133 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
134 * varpool.c (dump_varpool_node): Dump more flags.
135
83f44b39
GG
1362013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
137
138 * config/i386/i386.c (processor_alias_table): Add instruction
139 FSGSBASE for AMD bdver3 architecture.
140
2e55d062
JJ
1412013-05-14 Jakub Jelinek <jakub@redhat.com>
142
143 * tree.c (warn_deprecated_use): Print file:line using locus color.
144 * diagnostic.c (diagnostic_report_current_module): Print file:line
145 and file:line:column using locus color.
146
0bfdb81e
MS
1472013-05-14 Mike Stump <mikestump@comcast.net>
148
149 * gdbinit.in: Add __null.
150
a508ef22
MS
1512013-05-14 Mike Stump <mikestump@comcast.net>
152
153 * recog.h: Rename struct recog_data to Recog_data.
154 * recog.c: Likewise.
155 * reload.c (can_reload_into): Likewise.
156 * config/picochip/picochip.c: Likewise.
157
e7180acb
MS
1582013-05-14 Mike Stump <mikestump@comcast.net>
159
160 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
161
61216c26
SB
1622013-05-14 Steven Bosscher <steven@gcc.gnu.org>
163
fd6beed4
SB
164 * resource.h (struct resources): Remove unch_memory member.
165 (CLEAR_RESOURCE): Don't clear unch_memory.
166 * resource.c (mark_referenced_resources): Don't set it.
167 (mark_set_resources): Likewise.
168 (mark_target_live_regs): Don't clear it.
169 (init_resource_info): Likewise.
170 * reorg.c (resource_conflicts_p): Don't compare it.
171 (redundant_insn): Don't set it.
172
61216c26
SB
173 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
174 Remove prototypes.
175 * emit-rtl.c (next_label): Remove unused function.
176 (skip_consecutive_labels, link_cc0_insns): Move to ...
177 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
178 only place where these functions are used, and make them static.
179
418d1b87
MG
1802013-05-14 Marc Glisse <marc.glisse@inria.fr>
181
182 * fold-const.c (fold_negate_expr): Handle vectors.
183 (fold_truth_not_expr): Make it static.
184 (fold_invert_truthvalue): New static function.
185 (invert_truthvalue_loc): Handle vectors. Do not call
186 fold_truth_not_expr directly.
187 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
188 <TRUTH_NOT_EXPR>: Do not cast to boolean.
189 (fold_comparison): Handle vector constants.
190 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
191 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
192 * tree.h (fold_truth_not_expr): Remove declaration.
193
fc21784d
JG
1942013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
195
196 * config/aarch64/aarch64-simd.md
197 (aarch64_vcond_internal<mode>): Rename to...
198 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
199 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
200 float modes. Clarify all iterator modes.
201 (vcond<mode><mode>): Use new name for vcond expanders.
202 (vcond<v_cmp_result><mode>): Likewise.
203 (vcondu<mode><mode>: Likewise.
204 * config/aarch64/iterators.md (VDQF_COND): New.
205
d4c52634
MG
2062013-05-14 Marc Glisse <marc.glisse@inria.fr>
207
208 PR bootstrap/57266
209 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
210 variable for the shift amount. Check that we shift by non-negative
211 amounts.
212
2b261262
CLT
2132013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
214
215 PR target/42017
216 * config/arm/arm.h (EPILOGUE_USES): Only return true
217 for LR_REGNUM after epilogue_completed.
218
6e022d7b
JR
2192013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
220
221 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
222 is error_mark_node.
223
56cf7859
RO
2242013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
225
226 PR target/57261
227 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
228 and Solaris 11+/x86 with gld.
229 * configure: Regenerate.
230
75776c6d
JJ
2312013-05-14 Jakub Jelinek <jakub@redhat.com>
232
233 * expmed.c (expand_shift_1): Canonicalize rotates by
234 constant bitsize / 2 to bitsize - 1.
235 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
236 case ROTATERT>: Likewise.
237
238 Revert:
239 2013-05-10 Jakub Jelinek <jakub@redhat.com>
240
241 * config/i386/i386.md (rotateinv): New code attr.
242 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
243 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
244 roll $31, %eax, etc.
245
df35498a
RB
2462013-05-14 Richard Biener <rguenther@suse.de>
247
248 PR middle-end/57235
249 * tree-eh.c (sink_clobbers): Give up for successors with
250 multiple predecessors and no virtual uses.
251
cc6e7ece
EB
2522013-05-14 Eric Botcazou <ebotcazou@adacore.com>
253
254 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
255 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
256
f778dd4d
JJ
2572013-05-14 Jakub Jelinek <jakub@redhat.com>
258
259 PR middle-end/57251
260 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
261 the case when both op0 and op1 have VOIDmode.
262
bad4df9b
KP
2632013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
264
265 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
266 in multiply-accumulate mode.
267
56f3e9ac
GW
2682013-05-13 Guozhi Wei <carrot@google.com>
269
270 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
271
a3d7ab92
KT
2722013-05-13 Kai Tietz <ktietz@redhat.com>
273
274 PR target/56975
275 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
276 * config/i386/i386.h (TARGET_PECOFF): Define by default
277 as false.
278 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
279 * config/i386/i386.c (ix86_option_override_internal):
280 Likewise.
281 (ix86_expand_prologue): Likewise.
282 (ix86_expand_split_stack_prologue): Likewise.
283 (legitimate_pic_address_disp_p): Likewise.
284 (legitimize_pic_address): Likewise.
285 (legitimize_tls_address): Likewise.
286 (legitimize_pe_coff_symbol): Likewise.
287 (output_pic_addr_const): Likewise.
288 (construct_plt_address): Likewise.
289 (ix86_expand_call): Likewise.
290 (x86_output_mi_thunk): Likewise.
291 (x86_function_profiler): Likewise.
292
c59b7e28
SN
2932013-05-13 Sofiane Naci <sofiane.naci@arm.com>
294
295 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
296 similar switch cases.
297 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
298 (aarch64_simd_mov_to_<mode>low): Delete.
299 (aarch64_simd_mov_to_<mode>high): Delete.
300 (move_lo_quad_<mode>): Add w<-r alternative.
301 (aarch64_simd_move_hi_quad_<mode>): Likewise.
302 (aarch64_simd_mov_from_*): Update type attribute.
303 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
304 statement.
305
5f28524a
JH
3062013-05-13 Jan Hubicka <jh@suse.cz>
307
308 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
309 * config/i386/i386.c (ix86_compute_frame_layout,
310 ix86_expand_epilogue, emit_i387_cw_initialization, ix86_expand_vector_move_misalign,
311 ix86_fp_comparison_strategy, ix86_local_alignment): Fix use of size/speed predicates.
312
ae6fa899
JJ
3132013-05-13 Jakub Jelinek <jakub@redhat.com>
314
315 PR tree-optimization/45216
316 PR tree-optimization/57157
317 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
318 the (-Y) & (B - 1) variant if OP is |.
319 * expmed.c (expand_shift_1): For rotations by const0_rtx just
320 return shifted. Use (-op1) & (prec - 1) as other_amount
321 instead of prec - op1.
322
4502fe8d
MJ
3232013-05-13 Martin Jambor <mjambor@suse.cz>
324
325 PR middle-end/42371
326 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
327 (ipa_constant_data): New type.
328 (ipa_jump_func): Use ipa_constant_data to hold information about
329 constant jump functions.
330 (ipa_get_jf_constant): Adjust to jump function type changes.
331 (ipa_get_jf_constant_rdesc): New function.
332 (ipa_param_descriptor): New field controlled_uses.
333 (ipa_get_controlled_uses): New function.
334 (ipa_set_controlled_uses): Likewise.
335 * ipa-ref.h (ipa_find_reference): Declare.
336 * ipa-prop.c (ipa_cst_ref_desc): New type.
337 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
338 changes.
339 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
340 New parameter cs. Adjust all callers.
341 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
342 (remove_described_reference): New function.
343 (jfunc_rdesc_usable): Likewise.
344 (try_make_edge_direct_simple_call): Decrement controlled use count,
345 attempt to remove reference if it hits zero.
346 (combine_controlled_uses_counters): New function.
347 (propagate_controlled_uses): Likewise.
348 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
349 (ipa_edge_duplication_hook): Duplicate reference descriptions.
350 (ipa_print_node_params): Print described use counter.
351 (ipa_write_jump_function): Adjust to jump function type changes.
352 (ipa_read_jump_function): New parameter CS, pass it to
353 ipa_set_jf_constant. Adjust caller.
354 (ipa_write_node_info): Stream controlled use count
355 (ipa_read_node_info): Likewise.
356 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
357 asserting.
358 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
359 count. Remove cloning-added reference if it reaches zero.
360 * ipa-ref.c (ipa_find_reference): New function.
361
0864bfc2
GG
3622013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
363
364 * config/i386/i386.c (processor_target_table): Modified default
365 alignment values for AMD BD and BT architectures.
366
640bfeb2
MG
3672013-05-13 Marc Glisse <marc.glisse@inria.fr>
368
369 * tree-vect-generic.c (uniform_vector_p): Move ...
370 * tree.c (uniform_vector_p): ... here.
371 * tree.h (uniform_vector_p): Declare it.
372 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
373 into a scalar.
374
3a60f32b
JJ
3752013-05-13 Jakub Jelinek <jakub@redhat.com>
376
198fe1bf
JJ
377 PR tree-optimization/57230
378 * tree-ssa-strlen.c (handle_char_store): Record length for
379 array store from STRING_CST.
380
3a60f32b
JJ
381 PR tree-optimization/57230
382 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
383 check.
384
566be57c
JR
3852013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
386
387 * config/epiphany/epiphany.c (epiphany_init): Check size of
388 NUM_MODES_FOR_MODE_SWITCHING.
389 (epiphany_expand_prologue):
390 Remove CONFIG_REGNUM initial value handling code.
391 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
392 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 393 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
394 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
395 Don't return 1 for FP_MODE_NONE.
396 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
397 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
398 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
399 * config/epiphany/epiphany.md (save_config): New pattern.
400
0f2c2331
UB
4012013-05-12 Uros Bizjak <ubizjak@gmail.com>
402
403 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
404
5b3f93c7
UB
4052013-05-10 Uros Bizjak <ubizjak@gmail.com>
406
407 * config/i386/i386.md (memory): Handle sseishft1.
408 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
409 (*vec_extractv2di_1): Ditto.
410
1f873f0e
VM
4112013-05-10 Vladimir Makarov <vmakarov@redhat.com>
412
413 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
414 saved registers.
415
341427fa 4162013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
417
418 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
419 Add mthumb/march=armv7-a multilib.
420 Add mthumb/march=armv7-r multilib.
421 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
422
9e69bdde
RC
4232013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
424
425 * config/v850/t-rtems: Add more multilibs.
426
9ff09a22
RB
4272013-05-10 Richard Biener <rguenther@suse.de>
428
429 PR tree-optimization/57214
430 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
431 not propagate from SSA names that occur in abnormal PHI nodes.
432
a5e0cd1d
MG
4332013-05-10 Marc Glisse <marc.glisse@inria.fr>
434
435 * stor-layout.c (element_precision): New function.
436 * machmode.h (element_precision): Declare it.
437 * tree.c (build_minus_one_cst): New function.
438 (element_precision): Likewise.
439 * tree.h (build_minus_one_cst): Declare new function.
440 (element_precision): Likewise.
441 * fold-const.c (operand_equal_p): Use element_precision.
442 (fold_binary_loc): Handle vector types.
443 * convert.c (convert_to_integer): Use element_precision.
444 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
445 separately.
446
cb2558bc
RS
4472013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
448
449 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
450 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
451 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
452 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
453 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
454 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
455 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
456 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
457 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
458 (Uuw8): New constraints.
459 (Usb4): Move into alphabetical order.
460 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
461 (sd8_operand, ub8_operand, uw8_operand): New predicates.
462 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
463 previously unnamed patterns.
464 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
465 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
466 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
467 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
468 of set_attr_alternative/if_then_else. Use extended_mips16 instead
469 of specific lengths.
470
cb3b8d33
JJ
4712013-05-10 Jakub Jelinek <jakub@redhat.com>
472
6f93c008
JJ
473 * config/i386/i386.md (rotateinv): New code attr.
474 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
475 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
476 roll $31, %eax, etc.
477
cb3b8d33
JJ
478 PR tree-optimization/45216
479 PR tree-optimization/57157
480 * tree-ssa-forwprop.c (simplify_rotate): New function.
481 (ssa_forward_propagate_and_combine): Call it.
482
afb119be
RB
4832013-05-10 Richard Biener <rguenther@suse.de>
484
485 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
486 disable peeling when we version for aliasing.
487 (vector_alignment_reachable_p): Honor explicit user alignment.
488 (vect_supportable_dr_alignment): Likewise.
489 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
490 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
491 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
492 then peeling to arrange for the cost-model check to come first.
493
01ae4861
AM
4942013-05-10 Alan Modra <amodra@gmail.com>
495
496 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
497 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
498 * configure: Regenerate.
499
ebc9a431
AM
5002013-05-10 Alan Modra <amodra@gmail.com>
501
502 PR target/55033
503 * varasm.c (default_elf_select_section): Move !DECL_P check..
504 (get_named_section): ..to here before calling get_section_name.
505 Adjust assertion.
506 (default_section_type_flags): Add DECL_P check.
507 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
508 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
509
d4bca93c
JR
5102013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
511
512 * config/epiphany/epiphany.c (epiphany_expand_prologue):
513 When using gen_stack_adjust_str with a register offset, add a
514 REG_FRAME_RELATED_EXPR note.
515
60ca9a65
UB
5162013-05-09 Uros Bizjak <ubizjak@gmail.com>
517
518 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
519 (*vec_extractv4si_zext_mem): Ditto.
520 (*vec_extractv2di): Add 0->x and x->x alternatives.
521 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
522 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
523
a3409c02
JM
5242013-05-09 Jason Merrill <jason@redhat.com>
525
0138d6b2
JM
526 N3639 C++1y VLA support
527 * gimplify.c (gimplify_vla_decl): Don't touch an existing
528 DECL_VALUE_EXPR.
529
a3409c02
JM
530 * tree.c (build_constructor_va): New.
531 * tree.h: Declare it.
532
66e6b990
MJ
5332013-05-09 Martin Jambor <mjambor@suse.cz>
534
535 PR lto/57084
536 * gimple-fold.c (canonicalize_constructor_val): Call
537 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
538
64cfa6c0
JH
5392013-05-09 Jan Hubicka <jh@suse.cz>
540 Richard Biener <rguenther@suse.de>
541
542 PR lto/54095
543 * symtab.c (symtab_make_decl_local): Do not add private names.
544
c3167b00
JH
5452013-05-09 Jan Hubicka <jh@suse.cz>
546
547 PR lto/54095
548 * symtab.c (insert_to_assembler_name_hash): Handle clones.
549 (unlink_from_assembler_name_hash): Likewise.
550 (symtab_prevail_in_asm_name_hash, symtab_register_node,
551 symtab_unregister_node, symtab_initialize_asm_name_hash,
552 change_decl_assembler_name): Update.
553
12dc6974
SN
5542013-05-09 Sofiane Naci <sofiane.naci@arm.com>
555
556 * config/aarch64/aarch64.md: New movtf split.
557 (*movtf_aarch64): Update.
558 (aarch64_movdi_tilow): Handle TF modes and rename to
559 aarch64_movdi_<mode>low.
560 (aarch64_movdi_tihigh): Handle TF modes and rename to
561 aarch64_movdi_<mode>high
562 (aarch64_movtihigh_di): Handle TF modes and rename to
563 aarch64_mov<mode>high_di
564 (aarch64_movtilow_di): Handle TF modes and rename to
565 aarch64_mov<mode>low_di
566 (aarch64_movtilow_tilow): Remove spurious whitespace.
567 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
568 splits.
569 (aarch64_print_operand): Update.
570
227eb343
AM
5712013-05-09 Alan Modra <amodra@gmail.com>
572
573 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
574 powerpc64le.
575 * configure: Regenerate.
576
0b013847
UB
5772013-05-08 Uros Bizjak <ubizjak@gmail.com>
578
579 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
580 splitter preparation statements.
581 * config/i386/sse.md (*vec_extract* splitters): Ditto.
582 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
583 adjust_address_nv.
584
1dc3d6e9
BS
5852013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
586
587 * gimple-ssa-strength-reduction.c (count_candidates): Change
588 return value to int.
589 (analyze_candidates_and_replace): Change type of length to int.
590
e61e7d28
UB
5912013-05-08 Uros Bizjak <ubizjak@gmail.com>
592
593 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
594 (*vec_extract<mode>): Use VI12_128 mode iterator.
595 (*vec_extract<mode>_mem): Ditto.
596 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
597 attribute.
598
4fbfcf44
DN
5992013-05-08 Diego Novillo <dnovillo@google.com>
600
601 PR bootstrap/54659
602
603 Revert:
4fbfcf44
DN
604 2012-08-17 Diego Novillo <dnovillo@google.com>
605
e61e7d28
UB
606 PR bootstrap/54281
607 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
608 * config.in: Regenerate.
609 * configure: Regenerate.
610 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 611
702d8703
JH
6122013-05-08 Jan Hubicka <jh@suse.cz>
613
614 PR lto/54095
615 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
616 * cgraph.h (symtab_node_base): Add unique_name.
617 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
618 input_overwrite_node, input_varpool_node): Stream unique_name.
619 * cgraphclones.c (cgraph_create_virtual_clone,
620 cgraph_function_versioning): Set unique_name.
621 * ipa.c (function_and_variable_visibility): Set unique_name.
622
8b28cf47
BS
6232013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
624
625 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
626 (alloc_cand_and_find_basis): Restrict conditional candidate
627 processing to CAND_MULTs.
628
e86074fd
JH
6292013-05-08 Jan Hubicka <jh@suse.cz>
630
631 PR lto/54095
632 lto-symtab.c (lto_symtab_symbol_p): New function.
633 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
634 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
635 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
636 Skip static symbols.
637
44398cbe
PC
6382013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
639
640 PR tree-optimization/57200
641 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
642 Only call inform if the preceding warning_at returns true.
643
f6bc1c4a
HS
6442013-05-07 Han Shen <shenhan@google.com>
645
646 * cfgexpand.c (record_or_union_type_has_array_p): New function.
647 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
648 * common.opt (fstack-protector-strong): New option.
649 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
650 * doc/invoke.texi (Optimization Options): Document
651 "-fstack-protector-strong".
652 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
653
4ffecb1f
SB
6542013-05-06 Steven Bosscher <steven@gcc.gnu.org>
655
656 * config/mips/mips.c (mips_machine_reorg2): Return 0.
657
5a107a0f
VM
6582013-05-07 Vladimir Makarov <vmakarov@redhat.com>
659
660 * ira.c (update_equiv_regs): Add insn having equiv memory even if
661 it is not lhs of the insn.
662 (setup_reg_equiv): Remove insn having equiv memory which it is not
663 lhs of the insn.
664 * lra-constraints.c (process_address): Try to improve generation
665 code for address base + disp.
666 (lra_constraints): Make correct the code for checking insn setting
667 up backward equivalence. Remove insn only if it is in the init
668 insn list.
669 * lra-eliminations.c (update_reg_eliminate): Change return value.
670 (lra_eliminate): Use the result.
671
3f5783ea
UB
6722013-05-07 Uros Bizjak <ubizjak@gmail.com>
673
674 * config/i386/sse.md (ssescalarnummask): New mode attribute.
675 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
676 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
677 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
678 register target operands.
679 (*vec_extractv8hi_sse2): New pattern.
680 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
681 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
682 (*vec_extract<mode>_mem): New insn and split pattern.
683
8a5800b8
CL
6842013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
685
686 * config/arm/arm.c (arm_asan_shadow_offset): New function.
687 (TARGET_ASAN_SHADOW_OFFSET): Define.
688 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
689 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
690
7bf55a70
BS
6912013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
692
693 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
694 (incr_vec_index): Return -1 if increment not found.
695 (create_add_on_incoming_edge): Assert if increment not found.
696 (record_increment): Limit number of increments recorded.
697 (all_phi_incrs_profitable): Return false if an increment not found.
698 (replace_profitable_candidates): Don't process increments that were
699 not recorded.
700 (analyze_candidates_and_replace): Limit size of incr_vec.
701
3f8825c0
RB
7022013-05-07 Richard Biener <rguenther@suse.de>
703
704 * calls.c (special_function_p): setjmp-like functions are leaf.
705 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
706 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
707
fd4842cd
SN
7082013-05-07 Sofiane Naci <sofiane.naci@arm.com>
709
710 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
711 (aarch64_simd_mov<mode>): New expander.
712 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
713 (aarch64_simd_mov_to_<mode>high): Likewise.
714 (aarch64_simd_mov_from_<mode>low): Likewise.
715 (aarch64_simd_mov_from_<mode>high): Likewise.
716 (aarch64_dup_lane<mode>): Update.
717 (aarch64_dup_lanedi): New instruction pattern.
718 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
719 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
720
a7a7d10e
BS
7212013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
722
723 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
724 (replace_mult_candidate): Remove unnecessary argument; remove
725 unnecessary parameter from call to introduce_cast_before_cand.
726 (replace_unconditional_candidate): Remove unnecessary parameter
727 from call to replace_mult_candidate.
728 (replace_conditional_candidate): Likewise.
729 (insert_initializers): Use make_temp_ssa_name.
730 (introduce_cast_before_cand): Remove unnecessary argument; use
731 make_temp_ssa_name.
732 (replace_one_candidate): Remove unnecessary argument; remove
733 unnecessary parameter from calls to introduce_cast_before_cand.
734 (replace_profitable_candidates): Remove unnecessary parameters
735 from calls to replace_one_candidate.
736
29105868
BS
7372013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
738
739 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
740 phi def as possibly hiding a basis for a CAND_ADD whose operands
741 have been commuted in the analysis.
742 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
743
4095f9fa
N
7442013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
745
746 * config/aarch64/aarch64.md
747 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
748 shift value between 0-4.
749
39e843e8
RB
7502013-05-07 Richard Biener <rguenther@suse.de>
751
752 * double-int.h (rshift): New overload.
753 * double-int.c (rshift): New function.
754 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
755 (create_reference_ops_from_ref): Remove.
756 (vn_reference_insert): Use shared ops for constructing the
757 reference and copy it.
758
0a1a83cb
RB
7592013-05-07 Richard Biener <rguenther@suse.de>
760
761 PR middle-end/57190
762 * tree-eh.c (sink_clobbers): Properly propagate
763 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
764
43303d6f
JJ
7652013-05-07 Jakub Jelinek <jakub@redhat.com>
766
ba7e83f8
JJ
767 PR tree-optimization/57149
768 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
769 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
770 collect_phi_def_edges, execute_late_warn_uninitialized): Use
771 uninit_undefined_value_p instead of ssa_undefined_value_p.
772
43303d6f
JJ
773 PR debug/57184
774 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
775 for modifier == EXPAND_INITIALIZER.
776
14523c25
AB
7772013-05-07 Anton Blanchard <anton@samba.org>
778
779 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
780 for powerpc64 little endian.
781 * configure: Regenerate.
782
cb7c8be9
GS
7832013-05-06 Graham Stott <grahams@btinternet.com>
784
785 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
786 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
787 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
788 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
789
7902013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
791
792 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
793 codes which allow non-lvalues.
794
9a0ee7b0
MG
7952013-05-06 Marc Glisse <marc.glisse@inria.fr>
796
797 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
798 components are all 1s.
799 (integer_minus_onep): New function.
800 * tree.h (integer_minus_onep): Declare it.
801 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
802 integer_minus_onep instead of integer_all_onesp.
803
f2c17ea9
OE
8042013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
805
806 PR target/52933
807 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
808 variations of these patterns.
809
f75e6a51
UB
8102013-05-06 Uros Bizjak <ubizjak@gmail.com>
811
812 * config/i386/i386.md (isa): Add x64_sse4 member.
813 (enabled): Handle x64_sse4.
814 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
815 instruction for 64bit SSE4_1 targets. Update insn attributes.
816 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
817 instruction for SSE4_1 targets. Update insn attributes.
818 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
819 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
820 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
821 const_1 selector.
822 (*vec_extractv4si): Rename from *sse4_1_pextrd.
823 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
824 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
825
a986d468
OE
8262013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
827
828 PR target/57108
829 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
830
382522cb
MK
8312013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
832
833 * final.c (do_assembler_dialects): Don't handle curly braces and
834 vertical bar escaped by % as dialect delimiters.
835 (output_asm_insn): Print curly braces and vertical bar if escaped
836 by % and ASSEMBLER_DIALECT defined.
837 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
838 * doc/tm.texi: Regenerated.
839
fb0d5c60
SB
8402013-05-06 Steven Bosscher <steven@gcc.gnu.org>
841
fb0d5c60
SB
842 * config/mips/mips.c: Include tree-pass.h.
843 (mips_reorg): Split in pre- and post-dbr_schedule parts.
844 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
845 (pass_mips_machine_reorg2): New machine specific pass.
846 (insert_pass_mips_machine_reorg2): New pass plugin definition.
847 (mips_option_override): Register the new pass.
848 * rtl.h (cleanup_barriers): Remove prototype.
849 (dbr_schedule): Likewise.
850 * jump.c (cleanup_barriers): Make static.
851 * reorg.c (dbr_schedule): Likewise.
852
aa06a978
RB
8532013-05-06 Richard Biener <rguenther@suse.de>
854
855 PR tree-optimization/57185
856 * tree-parloops.c (add_field_for_reduction): Handle anonymous
857 SSA names properly.
858
0b953bec
UB
8592013-05-06 Uros Bizjak <ubizjak@gmail.com>
860
861 PR target/57106
862 * config/i386/i386.c (add_parameter_dependencies): Add dependence
863 between "first_arg" and "insn", not "last" and "insn".
864
28708525
WS
8652013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
866
867 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
868 (find_candidates_in_block): Re-enable slsr_process_phi.
869 (create_phi_basis): Fix double counting of candidate adjustment.
870
0107dca2
RB
8712013-05-06 Richard Biener <rguenther@suse.de>
872
873 PR middle-end/57147
874 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
875 the edge is also fallthru, preserve it and just clear the
876 abnormal flag.
877 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
878 also complex, preserve that and just clear the fallthru flag.
879 * tree-inline.c (update_ssa_across_abnormal_edges): Also
880 update virtual operands.
881
470d4d13
AM
8822013-05-06 Alan Modra <amodra@gmail.com>
883
884 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
885 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
886 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
887 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
888 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
889 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
890
8f1dbf8d
AM
8912013-05-06 Alan Modra <amodra@gmail.com>
892
893 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
894 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
895 (DEFAULT_ASM_ENDIAN): Define.
896 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
897 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
898 Update -K PIC clause from sysv4.h.
899 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
900 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
901
54890767
AM
9022013-05-06 Alan Modra <amodra@gmail.com>
903
904 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
905 twice for little-endian.
906 (ashrdi3_no_power, ashrdi3): Support little-endian.
907
2353515d
OE
9082013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
909
910 PR target/55303
911 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
912 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
913 related expanders.
914 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
915 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
916 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
917 New predicates.
918
33e67557
SB
9192013-05-05 Steven Bosscher <steven@gcc.gnu.org>
920 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
921
922 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
923 * config/pa/pa.opt: Make mbig-switch a no-op.
924 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
925 (CASE_VECTOR_MODE): Always return SImode.
926 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
927 for the !TARGET_BIG_SWITCH case.
928 * config/pa/pa-linux.h: Likewise.
929 * config/pa/pa-openbsd.h: Likewise.
930 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
931 * config/pa/pa.md (short_jump): Remove define_insn.
932 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
933 (casesi0): Remove define_insn.
934 (type): Remove btable_branch.
935 (pa_combine_type): Likewise.
936 (in_nullified_branch_delay): Likewise.
937 (in_call_delay): Likewise.
938 (define_delay): Likewise.
939 (define_insn_reservation "Z3"): Likewise.
940 (define_insn_reservation "Z4"): Likewise.
941 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
942 (pa_adjust_insn_length): Remove adjustment for btable branches.
943 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
944 and mno-big-switch
945
3095685e
UB
9462013-05-05 Uros Bizjak <ubizjak@gmail.com>
947
948 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
949 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
950 Add m->r,x alternatives.
951 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
952 splitters using SWI48x mode iterator.
953 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
954 TARGET_64BIT. Add m->x alternative.
955 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
956 Add o->x alternative. Enable for TARGET_SSE.
957 (sse_storeq): Remove expander.
958 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
959 with memory input operand.
960 (*vec_extractv2di_1 splitter): New.
961 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
962 * config/i386/i386.md (ssevecmodelower): New mode attribute.
963
4b36ae28
SB
9642013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
965
966 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
967 (INT_LOWPART): Delete.
968 (extract_MB): Adjust.
969 (extract_ME): Adjust.
970 (print_operand): Adjust.
971
da226db2
SB
9722013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
973
974 * config/rs6000/predicates.md (reg_or_add_cint_operand,
975 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
976 (reg_or_logical_cint_operand, easy_fp_constant,
977 logical_const_operand): Delete "CONST_DOUBLE" case.
978 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
979 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 980 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
981 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
982 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
983 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
984 test.
985 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
986 CONST_DOUBLE DImode/VOIDmode case.
987 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
988 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
989 CONST_DOUBLE VOIDmode case.
990 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
991 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
992 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
993 Delete CONST_DOUBLE case.
994 (splitters for mov FMOVE64 const_double): Delete
995 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
996 "HOST_BITS_PER_WIDE_INT >= 64" test.
997 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
998 case.
999 (mov DI const_double): Delete.
1000
40de22d6
JJ
10012013-05-04 Jakub Jelinek <jakub@redhat.com>
1002
1003 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1004 on op shows all bits zero in mode of a lowpart subreg, return zero.
1005
5ec6aff2
MM
10062013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1007
1008 PR target/57150
1009 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1010 to save TFmode registers and DImode to save TImode registers for
1011 caller save operations.
1012 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1013 mark being partially clobbered since they only use the first
1014 double word.
1015
1016 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1017 and TDmode only use the upper 64-bits of each VSX register.
1018
2cefad90
BS
10192013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1020
1021 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1022 (find_candidates_in_block): Disable slsr_process_phi.
1023
d6d7eee1
GW
10242013-05-03 Guozhi Wei <carrot@google.com>
1025
1026 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
1027 constructor to ...
1028 (build_init_ctor): ... here.
d6d7eee1 1029
9b92d12b
BS
10302013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1031
1032 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1033 (slsr_cand_d): Redefine def_phi.
1034 (stride_status, phi_adjust_status, count_phis_status): New enums.
1035 (find_phi_def): New.
1036 (find_basis_for_base_expr): New.
1037 (find_basis_for_candidate): Handle hidden bases.
1038 (alloc_cand_and_find_basis): Handle phi candidates.
1039 (slsr_process_phi): New.
1040 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1041 (create_mul_imm_cand): Likewise.
1042 (create_add_ssa_cand): Exclude phi base candidates.
1043 (create_add_imm_cand): Likewise.
1044 (slsr_process_cast): Likewise.
1045 (slsr_process_copy): Likewise.
1046 (find_candidates_in_block): Handle phi candidates.
1047 (dump_candidate): Likewise.
1048 (unconditional_cands): Delete.
1049 (unconditional_cands_with_known_stride_p): Delete.
1050 (phi_dependent_cand_p): New.
1051 (cand_increment): Handle phi-dependent candidates.
1052 (replace_dependent): Delete.
1053 (replace_mult_candidate): New.
1054 (replace_unconditional_candidate): New.
1055 (incr_vec_index): Move to avoid forward reference.
1056 (create_add_on_incoming_edge): New.
1057 (create_phi_basis): New.
1058 (replace_dependents): Delete.
1059 (replace_conditional_candidate): New.
1060 (phi_add_costs): New.
1061 (replace_uncond_cands_and_profitable_phis): New.
1062 (record_increment): Handle phi adjustments.
1063 (record_phi_increments): New.
1064 (record_increments): Handle phi adjustments.
1065 (phi_incr_cost): New.
1066 (lowest_cost_path): Handle phis.
1067 (total_savings): Likewise.
1068 (analyze_increments): Likewise.
1069 (ncd_with_phi): New.
1070 (ncd_of_cand_and_phis): New.
1071 (nearest_common_dominator_for_cands): Handle phi increments.
1072 (all_phi_incrs_profitable): New.
1073 (replace_profitable_candidates): Handle phi-dependent candidates.
1074 (analyze_candidates_and_replace): Likewise.
1075
68f073d4
TJ
10762013-05-03 Teresa Johnson <tejohnson@google.com>
1077
1078 PR bootstrap/57154
1079 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1080 do not exceed REG_BR_PROB_BASE.
1081
a4ee7cb9
JL
10822013-05-03 Jeff Law <law@redhat.com>
1083
ade67f70 1084 PR tree-optimization/57144
a4ee7cb9
JL
1085 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1086 operand of the condition will bit into the new type when eliminating
1087 a cast feeding a condition.
1088
47954c4e
JJ
10892013-05-03 Jakub Jelinek <jakub@redhat.com>
1090
1091 PR rtl-optimization/57130
3095685e
UB
1092 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1093 of COMPARE as in_code to the recursive call if needed.
47954c4e 1094
3c21604f
UB
10952013-05-03 Uros Bizjak <ubizjak@gmail.com>
1096
1097 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1098 (enabled): Handle new members.
1099 * config/i386/sse.md (*vec_concatv2si): Merge from
1100 *vec_concatv2si_sse2 and vec_concatv2si_sse.
1101 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1102
95c03b36
JR
11032013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
1104
1105 PR tree-optimization/57027
1106 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1107 for fnms opportunity, check we got the prerequisite kind
1108 of tree / gimple before using accessor functions.
1109
07bfc9ec
RB
11102013-05-03 Richard Biener <rguenther@suse.de>
1111
1112 * double-int.h (lshift): New overload without precision
1113 and arith argument.
1114 (operator *=, operator +=, operator -=): Move ...
1115 * double-int.c (operator *=, operator +=, operator -=): ... here
1116 and implement more efficiently.
1117 (mul_double_with_sign): Remove.
1118 (lshift_double): Adjust to take unsinged shift argument, push
1119 dispatching code to callers.
1120 (mul_double_wide_with_sign): Add early out for callers that
1121 are not interested in high parts or overflow.
1122 (lshift): New function.
1123 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
1124 dispatch code here.
1125 (lrotate, rrotate): Use logical shifts.
1126 * expr.c (get_inner_reference): Use lshift.
1127 * fixed-value.c (do_fixed_divide): Likewise.
1128 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1129 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1130 (indirect_refs_may_alias_p): Likewise.
1131 (stmt_kills_ref_p_1): Likewise.
1132
7769bb64
VP
11332013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1134
1135 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
1136
1d0c8e5c
VP
11372013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1138
1139 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
1140 scalar form of FABD instruction.
1141
f15feaf9
VM
11422013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1143
1144 * lra-constraints.c (process_alt_operands): Add checking alt
1145 number to choose the best alternative.
1146
d90e76d4
RB
11472013-05-02 Richard Biener <rguenther@suse.de>
1148
1149 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
1150 bitmap and its handling.
1151 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
1152
9f8e7a96
RB
11532013-05-02 Richard Biener <rguenther@suse.de>
1154
1155 PR middle-end/57140
1156 * tree-inline.c (copy_loops): Properly handle removed loops.
1157 (copy_cfg_body): Mark destination loops for fixup if source
1158 loops needed fixup.
1159
f3a81b39
GY
11602013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
1161
1162 PR target/56732
1163 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1164 generating simple_return for naked functions.
1165
7b920a9a
MJ
11662013-05-02 Martin Jambor <mjambor@suse.cz>
1167
1168 PR middle-end/56988
1169 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1170 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
1171 flags match.
1172 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
1173 ipa_agg_replacement_value structures.
1174 (known_aggs_to_agg_replacement_list): Likewise.
1175 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1176 (read_agg_replacement_chain): Likewise.
1177 (ipcp_transform_function): Also check that by_ref flags match.
1178
2c41c19d
RB
11792013-05-02 Richard Biener <rguenther@suse.de>
1180
1181 * graphds.h (struct graph): Add obstack member.
1182 * graphds.c (new_graph): Initialize obstack and allocate
1183 vertices from it.
1184 (add_edge): Allocate edge from the obstack.
3c21604f 1185 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 1186
8b47039c
TJ
11872013-05-02 Teresa Johnson <tejohnson@google.com>
1188
1189 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
1190 divides.
1191 * cfg.c (update_bb_profile_for_threading): Ditto.
1192 * tree-inline.c (copy_bb): Ditto.
1193 (copy_edges_for_bb): Ditto.
1194 (initialize_cfun): Ditto.
1195 (copy_cfg_body): Ditto.
1196 (expand_call_inline): Ditto.
1197 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
1198 (estimate_node_size_and_time): Ditto.
1199 (inline_merge_summary): Ditto.
1200 * cgraphclones.c (cgraph_clone_edge): Ditto.
1201 (cgraph_clone_node): Ditto.
1202 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1203 (compute_trg_info): Ditto.
1204
da65928c
IB
12052013-05-02 Ian Bolton <ian.bolton@arm.com>
1206
1207 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
1208 S reg when fp attribute set.
1209 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
1210
add3c965
IB
12112013-05-02 Ian Bolton <ian.bolton@arm.com>
1212
1213 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
1214 New pattern.
1215 (*and_one_cmplsi3_compare0_uxtw): Likewise.
1216 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
1217 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
1218
fdd43ac4
RB
12192013-05-02 Richard Biener <rguenther@suse.de>
1220
1221 * tree-scalar-evolution.c (scev_info_hasher): Remove.
1222 (struct instantiate_cache_entry): New type.
1223 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
1224 (struct instantiate_cache_type): New type.
1225 (set_instantiated_value, get_instantiated_value): Remove.
1226 (get_instantiated_value_entry): New function.
1227 (instantiate_scev_name): Use the new cache and adjust.
1228 (instantiate_scev_poly): Adjust.
1229 (instantiate_scev_binary): Likewise.
1230 (instantiate_array_ref): Likewise.
1231 (instantiate_scev_convert): Likewise.
1232 (instantiate_scev_not): Likewise.
1233 (instantiate_scev_3): Likewise.
1234 (instantiate_scev_2): Likewise.
1235 (instantiate_scev_r): Likewise.
1236 (instantiate_scev): Likewise.
1237 (resolve_mixers): Likewise.
1238
36ff9dfb
VM
12392013-05-01 Vladimir Makarov <vmakarov@redhat.com>
1240
1241 PR target/57091
1242 * lra-constraints.c (best_small_class_operands_num): Remove.
1243 (process_alt_operands): Remove small_class_operands_num. Take
1244 small classes operands into losers and only if the operand is not
1245 matched. Modify debugging output.
1246 (curr_insn_transform): Remove best_small_class_operands_num.
1247 Print insn name.
1248
36054fab
JG
12492013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1250
1251 * config/aarch64/aarch64-builtins.c
1252 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
1253 * config/aarch64/aarch64-simd-builtins.def
1254 (reduc_splus_): Add new modes.
1255 (reduc_uplus_): New.
1256 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
1257 (reduc_uplus_v4sf): Likewise.
1258 (reduc_splus_v4sf): Likewise.
1259 (aarch64_addv<mode>): Likewise.
1260 (reduc_uplus_<mode>): Likewise.
1261 (reduc_splus_<mode>): Likewise.
1262 (aarch64_addvv2di): Likewise.
1263 (reduc_uplus_v2di): Likewise.
1264 (reduc_splus_v2di): Likewise.
1265 (aarch64_addvv2si): Likewise.
1266 (reduc_uplus_v2si): Likewise.
1267 (reduc_splus_v2si): Likewise.
1268 (reduc_<sur>plus_<mode>): New.
1269 (reduc_<sur>plus_v2di): Likewise.
1270 (reduc_<sur>plus_v2si): Likewise.
1271 (reduc_<sur>plus_v4sf): Likewise.
1272 (aarch64_addpv4sf): Likewise.
1273 * config/aarch64/arm_neon.h
1274 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
1275 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
1276 add UNSPEC_SADDV, UNSPEC_UADDV.
1277 (SUADDV): New.
1278 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
1279
6dce23a8
JG
12802013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1281
1282 * config/aarch64/arm_neon.h
1283 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
1284
1598945b
JG
12852013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1286
1287 * config/aarch64/aarch64-builtins
1288 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
1289
998eaf97
JG
12902013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1291
1292 * config/aarch64/aarch64-simd-builtins.def
1293 (reduc_smax_): New.
1294 (reduc_smin_): Likewise.
1295 (reduc_umax_): Likewise.
1296 (reduc_umin_): Likewise.
1297 (reduc_smax_nan_): Likewise.
1298 (reduc_smin_nan_): Likewise.
1299 (fmax): Remove.
1300 (fmin): Likewise.
1301 (smax): Update for V2SF, V4SF and V2DF modes.
1302 (smin): Likewise.
1303 (smax_nan): New.
1304 (smin_nan): Likewise.
1305 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
1306 (<su><maxmin><mode>3): ...This, refactor.
1307 (s<maxmin><mode>3): New.
1308 (<maxmin_uns><mode>3): Likewise.
1309 (reduc_<maxmin_uns>_<mode>): Refactor.
1310 (reduc_<maxmin_uns>_v4sf): Likewise.
1311 (reduc_<maxmin_uns>_v2si): Likewise.
1312 (aarch64_<fmaxmin><mode>: Remove.
1313 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
1314 new builtin names.
1315 (vmin<q>_f<32,64>): Likewise.
1316 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1317 (FMAXMIN): New.
1318 (su): Add mappings for smax, smin, umax, umin.
1319 (maxmin): New.
1320 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1321 (FMAXMIN): Rename as...
1322 (FMAXMIN_UNS): ...This.
1323 (maxminv): Remove.
1324 (fmaxminv): Likewise.
1325 (fmaxmin): Likewise.
1326 (maxmin_uns): New.
1327 (maxmin_uns_op): Likewise.
1328
bd11644e
JG
13292013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1330
1331 * config/aarch64/arm_neon.h
1332 (vac<ge, gt><sd>_f<32, 64>): Rename to...
1333 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
1334 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
1335
75dd5ace
JG
13362013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1337
1338 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
1339 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
1340
7c19979f
JG
13412013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1342
1343 * config/aarch64/aarch64-simd.md
1344 (vcond<mode>_internal): Handle special cases for constant masks.
1345 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
1346 (vcondu<mode><mode>): Likewise.
1347 (vcond<v_cmp_result><mode>): New.
1348
bb60efd9
JG
13492013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1350
1351 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
1352 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
1353 * config/aarch64/aarch64-simd-builtins.def
1354 (cmeq): Update to BUILTIN_VALLDI.
1355 (cmgt): Likewise.
1356 (cmge): Likewise.
1357 (cmle): Likewise.
1358 (cmlt): Likewise.
1359 * config/aarch64/arm_neon.h
1360 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
1361 to builtins or C as appropriate.
1362
889b9412
JG
13632013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1364
1365 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
1366 (cmgeu): ...This.
1367 (cmhi): Rename to...
1368 (cmgtu): ...This.
1369 * config/aarch64/aarch64-simd.md
1370 (simd_mode): Add SF.
1371 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
1372 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
1373 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
1374 (cstore<mode>_neg): ...This.
1375 * config/aarch64/iterators.md
1376 (VALLF): new.
1377 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
1378 (COMPARISONS): New.
1379 (UCOMPARISONS): Likewise.
1380 (optab): Add missing comparisons.
1381 (n_optab): New.
1382 (cmp_1): Likewise.
1383 (cmp_2): Likewise.
1384 (CMP): Likewise.
1385 (cmp): Remove.
1386 (VCMP_S): Likewise.
1387 (VCMP_U): Likewise.
1388 (V_cmp_result): Add DF, SF modes.
1389 (v_cmp_result): Likewise.
1390 (v): Likewise.
1391 (vmtype): Likewise.
1392 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
1393
0a7dbb76
GY
13942013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
1395
1396 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
1397 define_insn to define_insn_and_split.
1398 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
1399 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
1400 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
1401 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
1402 (thumb2_negscc): Likewise.
1403
fb614ca6
GY
14042013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1405
1406 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
1407
9e64a0bf
GY
14082013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1409
1410 * config/arm/thumb2.md: Remove trailing whitespaces.
1411
d6b28156
RS
14122013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1413
1414 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1415 Use gen_int_mode rather than GEN_INT.
1416
f91674c3
L
14172013-04-30 H.J. Lu <hongjiu.lu@intel.com>
1418
b0dec607 1419 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
1420 debug_gimple_stmt.
1421
3551257c
RB
14222013-04-30 Richard Biener <rguenther@suse.de>
1423
1424 PR middle-end/57122
3c21604f 1425 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 1426
4c1aff1c
RB
14272013-04-30 Richard Biener <rguenther@suse.de>
1428
1429 PR middle-end/57107
1430 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
1431
54b8379a
AB
14322013-04-30 Andrey Belevantsev <abel@ispras.ru>
1433
1434 PR rtl-optimization/56957
1435 PR rtl-optimization/57105
54b8379a
AB
1436 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
1437 variable. Use just INSN_UID for determining whether an insn
1438 should be only disconnected from the insn stream.
1439 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
1440
abc27962
JJ
14412013-04-30 Jakub Jelinek <jakub@redhat.com>
1442
1443 PR tree-optimization/57104
1444 * tsan.c (instrument_expr): Don't instrument accesses to
1445 DECL_HARD_REGISTER VAR_DECLs.
1446
0fc822d0
RB
14472013-04-30 Richard Biener <rguenther@suse.de>
1448
1449 * function.h (loops_for_fn): New inline function.
1450 (set_loops_for_fn): Likewise.
1451 * cfgloop.h (place_new_loop): Add struct function parameter.
1452 (get_loop): Likewise.
1453 (get_loops): Likewise.
1454 (number_of_loops): Likewise.
1455 (fel_next): Adjust.
1456 (fel_init): Likewise.
1457 * cfg.c (get_loop_copy): Adjust.
1458 * cfgloop.c (flow_loops_dump): Likewise.
1459 (record_loop_exits): Likewise.
1460 (verify_loop_structure): Likewise.
1461 * cfgloopanal.c (mark_irreducible_loops): Likewise.
1462 (estimate_reg_pressure_cost): Likewise.
1463 (mark_loop_exit_edges): Likewise.
1464 * cfgloopmanip.c (place_new_loop): Likewise.
1465 (add_loop): Likewise.
1466 (duplicate_loop): Likewise.
1467 * graph.c (draw_cfg_nodes): Likewise.
1468 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
1469 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
1470 (extract_affine_chrec): Likewise.
1471 (build_scop_iteration_domain): Likewise.
1472 * graphite.c (graphite_initialize): Likewise.
1473 * ira-build.c (create_loop_tree_nodes): Likewise.
1474 (more_one_region_p): Likewise.
1475 (rebuild_regno_allocno_maps): Likewise.
1476 (mark_loops_for_removal): Likewise.
1477 (mark_all_loops_for_removal): Likewise.
1478 (remove_unnecessary_regions): Likewise.
1479 (ira_build): Likewise.
1480 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1481 * loop-init.c (fix_loop_structure): Likewise.
1482 (gate_rtl_move_loop_invariants): Likewise.
1483 (gate_rtl_unswitch): Likewise.
1484 (gate_rtl_unroll_and_peel_loops): Likewise.
1485 (rtl_doloop): Likewise.
1486 * lto-streamer-in.c (input_cfg): Likewise.
1487 * lto-streamer-out.c (output_cfg): Likewise.
1488 * modulo-sched.c (sms_schedule): Likewise.
1489 * predict.c (tree_estimate_probability): Likewise.
1490 (tree_estimate_probability_driver): Likewise.
1491 (estimate_loops): Likewise.
1492 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
1493 (move_sese_region_to_fn): Likewise.
1494 (debug_loop_num): Likewise.
1495 * tree-chrec.c (chrec_evaluate): Likewise.
1496 (hide_evolution_in_other_loops_than_loop): Likewise.
1497 (chrec_component_in_loop_num): Likewise.
1498 (reset_evolution_in_loop): Likewise.
1499 (evolution_function_is_invariant_rec_p): Likewise.
1500 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1501 * tree-inline.c (copy_loops): Likewise.
1502 (copy_cfg_body): Likewise.
1503 (tree_function_versioning): Likewise.
1504 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
1505 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1506 Likewise.
1507 (add_to_evolution_1): Likewise.
1508 (scev_const_prop): Likewise.
1509 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1510 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1511 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1512 (tree_ssa_lim_initialize): Likewise.
1513 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
1514 (verify_loop_closed_ssa): Likewise.
1515 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
1516 (tree_ssa_loop_im): Likewise.
1517 (tree_ssa_loop_unswitch): Likewise.
1518 (tree_vectorize): Likewise.
1519 (check_data_deps): Likewise.
1520 (tree_ssa_loop_ivcanon): Likewise.
1521 (tree_ssa_loop_bounds): Likewise.
1522 (tree_complete_unroll): Likewise.
1523 (tree_complete_unroll_inner): Likewise.
1524 (tree_parallelize_loops): Likewise.
1525 (tree_ssa_loop_prefetch): Likewise.
1526 (tree_ssa_loop_ivopts): Likewise.
1527 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
1528 * tree-vectorizer.c (vectorize_loops): Likewise.
1529
37953bd3
MF
15302013-04-29 Mike Frysinger <vapier@gentoo.org>
1531
1532 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
1533 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
1534 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
1535 with EABI_LINK_SPEC.
1536
f9ed28db
UB
15372013-04-29 Uros Bizjak <ubizjak@gmail.com>
1538
1539 PR target/44578
1540 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
1541 alternative.
1542
deca73f5
VM
15432013-04-29 Vladimir Makarov <vmakarov@redhat.com>
1544
1545 PR target/57097
37953bd3 1546 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
1547 using memory for pseudos. Print cost dump for alternatives.
1548 Modify cost values for conflicts with early clobbers.
1549 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1550
fdca7d03
UB
15512013-04-29 Uros Bizjak <ubizjak@gmail.com>
1552
1553 PR target/57098
1554 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1555
0b064172
IB
15562013-04-29 Ian Bolton <ian.bolton@arm.com>
1557
1558 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
1559 from/to S register.
1560 (movdi_aarch64): Support LDR/STR from/to D register.
1561
473cec55
IB
15622013-04-29 Ian Bolton <ian.bolton@arm.com>
1563
1564 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
1565 or higher by default.
1566
a6f30e66
RB
15672013-04-29 Richard Biener <rguenther@suse.de>
1568
1569 PR middle-end/57075
1570 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
1571 even if not adding abnormal edges for calls that can make
1572 abnormal gotos.
1573
0c2b2040
RB
15742013-04-29 Richard Biener <rguenther@suse.de>
1575
1576 PR middle-end/57103
1577 * tree-cfg.c (move_stmt_op): Fix condition under which to update
1578 TREE_BLOCK.
1579 (move_stmt_r): Remove redundant checking.
1580
f41f80f9
TJ
15812013-04-29 Teresa Johnson <tejohnson@google.com>
1582
1583 PR bootstrap/57077
1584 * basic-block.h (apply_scale): New function.
1585 (apply_probability): Use apply_scale.
1586 * gimple-streamer-in.c (input_bb): Ditto.
1587 * lto-streamer-in.c (input_cfg): Ditto.
1588 * lto-cgraph.c (merge_profile_summaries): Ditto.
1589 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 1590 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
1591 (copy_edges_for_bb): Ditto.
1592 (copy_cfg_body): Ditto.
1593
315bbd2e
TV
15942013-04-29 Tom de Vries <tom@codesourcery.com>
1595
1596 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
1597 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
1598 (tail_merge_optimize): Handle current_loops == NULL.
1599
ebbd90d8
JL
16002013-04-26 Jeff Law <law@redhat.com>
1601
1602 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
1603 (simplify_cond_using_ranges): Generalize code to simplify
1604 COND_EXPRs where one argument is a constant and the other
1605 is an SSA_NAME created by an integral type conversion.
1606
8b9b57eb
KT
16072013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1608
1609 * config/arm/arm.md (store_minmaxsi): Use only when
1610 optimize_insn_for_size_p.
1611
9498e5dc
CB
16122013-04-29 Christian Bruel <christian.bruel@st.com>
1613
1614 PR target/57108
1615 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
1616
6093bc06
RB
16172013-04-29 Richard Biener <rguenther@suse.de>
1618
1619 PR middle-end/57089
fdca7d03
UB
1620 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
1621 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
1622 (expand_omp_for_generic): Properly add loops.
1623 (expand_omp_for_static_nochunk): Likewise.
1624 (expand_omp_for_static_chunk): Likewise.
1625 (expand_omp_for): For the degenerate case fixup loops.
1626 (expand_omp_sections): Fix default bb placement in loops.
1627 (expand_omp_atomic_pipeline): Properly add loops.
1628
84aacbfd
KT
16292013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1630
1631 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
1632
8dee4479
TV
16332013-04-29 Tom de Vries <tom@codesourcery.com>
1634
1635 * tree-ssa-tail-merge.c: Update header comment.
1636
47934dc4
JG
16372013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1638
1639 * config/aarch64/arm_neon.h
1640 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
1641 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
1642 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
1643 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
1644 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
1645 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
1646 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
1647 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
1648
384be29f
JG
16492013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1650
1651 * config/aarch64/aarch64-simd.md
1652 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
1653 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
1654 fix_trunc, fixuns_trunc.
1655 (ftrunc<VDQF:mode>2): New.
1656 * config/aarch64/iterators.md (optab): Add fix, fixuns.
1657 (fix_trunc_optab): New.
1658
0386b123
JG
16592013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1660
1661 * config/aarch64/aarch64-builtins.c
1662 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
1663 iceilf, lround, iroundf.
1664
00fcb892
UB
16652013-04-29 Uros Bizjak <ubizjak@gmail.com>
1666
1667 PR target/54349
1668 * config/i386/i386.h (enum ix86_tune_indices)
1669 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
1670 New, split from X86_TUNE_INTER_UNIT_MOVES.
1671 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
1672 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
1673 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
1674 (TARGET_INTER_UNIT_MOVES): Remove.
1675 * config/i386/i386.c (initial_ix86_tune_features): Update.
1676 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
1677 (ix86_expand_convert_uns_didf_sse): Use
1678 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1679 (ix86_expand_vector_init_one_nonzero): Ditto.
1680 (ix86_expand_vector_init_interleave): Ditto.
1681 (inline_secondary_memory_needed): Return true for moves from SSE class
1682 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
1683 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1684 * config/i386/constraints.md (Yi, Ym): Depend on
1685 TARGET_INTER_UNIT_MOVES_TO_VEC.
1686 (Yj, Yn): New constraints.
1687 * config/i386/i386.md (*movdi_internal): Change constraints of
1688 operand 1 from Yi to Yj and from Ym to Yn.
1689 (*movsi_internal): Ditto.
1690 (*movdf_internal): Ditto.
1691 (*movsf_internal): Ditto.
1692 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
1693 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1694 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
1695 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
1696 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
1697 * config/i386/sse.md (movdi_to_sse): Ditto.
1698 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
1699 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
1700 TARGET_INTER_UNIT_MOVES.
1701 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
1702 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
1703 instead of TARGET_INTER_UNIT_MOVES.
1704 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
1705 operand 1 from Yi to Yj and from Ym to Yn.
1706
4c871069
JG
17072013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1708
1709 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
1710 (float_truncate_hi_): Likewise.
1711 (float_extend_lo_): Likewise.
1712 (float_truncate_lo_): Likewise.
1713 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
1714 (aarch64_float_extend_lo_v2df): Likewise.
1715 (vec_unpacks_hi_v4sf): Likewise.
1716 (aarch64_float_truncate_lo_v2sf): Likewise.
1717 (aarch64_float_truncate_hi_v4sf): Likewise.
1718 (vec_pack_trunc_v2df): Likewise.
1719 (vec_pack_trunc_df): Likewise.
1720
1709ff9b
JG
17212013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1722
1723 * config/aarch64/aarch64-builtins.c
1724 (aarch64_fold_builtin): Fold float conversions.
1725 * config/aarch64/aarch64-simd-builtins.def
1726 (floatv2si, floatv4si, floatv2di): New.
1727 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
1728 * config/aarch64/aarch64-simd.md
1729 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
1730 * config/aarch64/iterators.md (FLOATUORS): New.
1731 (optab): Add float, floatuns.
1732 (su_optab): Likewise.
1733
ce966824
JG
17342013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1735
1736 * config/aarch64/aarch64-builtins.c
1737 (aarch64_builtin_vectorized_function): Use new names for
1738 fcvt builtins.
1739 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
1740 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
1741 (fcvtzu): Split as...
1742 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
1743 (fcvtas): Split as...
1744 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
1745 (fcvtau): Split as...
1746 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
1747 (fcvtps): Split as...
1748 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
1749 (fcvtpu): Split as...
1750 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
1751 (fcvtms): Split as...
1752 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
1753 (fcvtmu): Split as...
1754 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
1755 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
1756 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
1757 (lfrintnusf, lfrintnudf): Likewise.
1758 * config/aarch64/aarch64-simd.md
1759 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
1760 define_insn.
1761 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
1762 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
1763 (fcvt_pattern): Likewise.
1764
b9de24fe
JG
17652013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1766
1767 * config/aarch64/aarch64-simd.md
1768 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
1769 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
1770
77a205be
JG
17712013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1772
1773 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
1774 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
1775 (vrnd<a,m,n,p>_f32): Implement using builtins.
1776 (vrnd<i,x><q>_f<32, 64>): New.
1777
0659ce6f
JG
17782013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1779
1780 * config/aarch64/aarch64-builtins.c
1781 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
1782 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
1783 (frintz): Rename to...
1784 (btrunc): ...this.
1785 (frintp): Rename to...
1786 (ceil): ...this.
1787 (frintm): Rename to...
1788 (floor): ...this.
1789 (frinti): Rename to...
1790 (nearbyint): ...this.
1791 (frintx): Rename to...
1792 (rint): ...this.
1793 (frinta): Rename to...
1794 (round): ...this.
1795 * config/aarch64/aarch64-simd.md
1796 (aarch64_frint<frint_suffix><mode>): Delete.
1797 (<frint_pattern><mode>2): Convert to insn.
1798 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
1799 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
1800 (frint_pattern): Likewise.
1801 (frint_suffix): Likewise.
1802
ea78906a
RB
18032013-04-29 Richard Biener <rguenther@suse.de>
1804
1805 PR tree-optimization/57081
1806 * loop-init.c: Include tree-flow.h.
1807 (loop_optimizer_finalize): Free number of iteration estimates.
1808 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
1809
baee1763
JJ
18102013-04-29 Jakub Jelinek <jakub@redhat.com>
1811
94dc5332
JJ
1812 PR tree-optimization/57083
1813 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1814 non-singleton shift count range, zero extend low_bound for uns case.
1815
baee1763
JJ
1816 * config/i386/predicates.md (general_vector_operand): New predicate.
1817 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
1818 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
1819 if they aren't nonimmediate operands. If their original values
1820 satisfy const_vector_equal_evenodd_p, don't shift them.
1821 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
1822 predicates. For the SSE4.1 case force operands[{1,2}] into registers
1823 if not nonimmediate_operand.
1824 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
1825 instead of register_operand.
1826 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
1827
a9073727 18282013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
1829
1830 * stor-layout.c (finalize_size_functions): Allocate a structure and
1831 reset cfun before dumping the functions.
1832
ba8011e6
JJ
18332013-04-27 Jakub Jelinek <jakub@redhat.com>
1834
d6fde69e
JJ
1835 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
1836
ba8011e6
JJ
1837 PR target/56866
1838 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1839 use xop_pmacsdqh if uns_p.
1840 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1841 the immediate rotate count.
1842
2c62cbaa
VM
18432013-04-26 Vladimir Makarov <vmakarov@redhat.com>
1844
1845 * rtl.h (struct rtx_def): Add comment for field jump.
1846 (LRA_SUBREG_P): New macro.
1847 * recog.c (register_operand): Check LRA_SUBREG_P.
1848 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1849 stack frame.
1850 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1851 (lra_final_code_change): Skip subreg change for operators.
1852 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1853 if there are no operand changes.
1854 * lra-constraints.c (curr_insn_set): New.
1855 (match_reload): Set LRA_SUBREG_P.
1856 (emit_spill_move): Ditto.
1857 (check_and_process_move): Use curr_insn_set. Process only single
1858 set insns. Don't initialize sec_mem_p and change_p.
1859 (simplify_operand_subreg): Use LRA_SUBREG_P.
1860 (reg_in_class_p): New function.
1861 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1862 of #ifdef. Add code to remove cycling.
1863 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1864 non-null disp. Reload inner instead of disp when base and index
1865 are null. Try to put lo_sum into register.
1866 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1867 (check_and_process_move): Move code for move cost check to
1868 simple_move_p. Remove equiv_substitution.
1869 (simple_move_p): New function.
1870 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1871 curr_insn_set. Call check_and_process_move only for single set
1872 insns. Use the new function. Move call of check_and_process_move
1873 after operand equiv substitution and address process.
1874
e7d764f3
JJ
18752013-04-26 Jakub Jelinek <jakub@redhat.com>
1876
1877 PR go/57045
1878 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
1879 with nonlocal goto receivers or returns twice calls, ignore
1880 unininitialized values from abnormal edges to nl goto receiver
1881 or returns twice call.
1882
41e10689
JJ
18832013-04-26 Jakub Jelinek <jakub@redhat.com>
1884
1885 PR tree-optimization/57051
1886 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1887 and VEC_RSHIFT_EXPR if shift count is a multiple of element
1888 bitsize.
1889
d7ed20db
RB
18902013-04-26 Richard Biener <rguenther@suse.de>
1891
1892 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1893 (expand_omp_taskreg): Likewise. Mark loops for fixup.
1894 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1895 (fixup_loop_arrays_after_move): New function.
1896 (move_sese_region_to_fn): Properly outline the loop tree parts
1897 of the SESE region.
1898
df93505e
UB
18992013-04-26 Uros Bizjak <ubizjak@gmail.com>
1900
1901 * config/i386/i386.md (type, unit): Fix long lines.
1902
dd366ec3
RB
19032013-04-26 Richard Biener <rguenther@suse.de>
1904
1905 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1906 (lto-streamer-out.o): Likewise.
1907 * cfgloop.c (init_loops_structure): Export, add struct function
1908 argument and adjust.
1909 (flow_loops_find): Adjust.
1910 * cfgloop.h (enum loop_estimation): Add EST_LAST.
1911 (init_loops_structure): Declare.
1912 * lto-streamer-in.c: Include cfgloop.h.
1913 (input_cfg): Input the loop tree.
1914 * lto-streamer-out.c: Include cfgloop.h.
1915 (output_cfg): Output the loop tree.
1916 (output_struct_function_base): Do not drop PROP_loops.
1917
a9e0d843
RB
19182013-03-26 Richard Biener <rguenther@suse.de>
1919
1920 * tree-cfg.c (execute_build_cfg): Build the loop tree.
1921 (pass_build_cfg): Provide PROP_loops.
1922 (move_sese_region_to_fn): Remove loops that are outlined into fn
1923 for now.
1924 * tree-inline.c: Include cfgloop.h.
1925 (initialize_cfun): Do not drop PROP_loops.
1926 (copy_loops): New function.
1927 (copy_cfg_body): Copy loop structure.
1928 (tree_function_versioning): Initialize destination loop tree.
1929 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1930 (pass_parallelize_loops): Do IL verification.
1931 * loop-init.c (loop_optimizer_init): Fixup loops if required.
1932 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1933 the CFG make sure we fixup loops as well.
1934 * tree-ssa-tail-merge.c: Include cfgloop.h.
1935 (replace_block_by): When merging loop latches mark loops for fixup.
1936 * lto-streamer-out.c (output_struct_function_base): Drop
1937 PROP_loops for now.
1938 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
1939 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
1940 * ipa-split.c: Include cfgloop.h.
1941 (split_function): Add the new return block to the loop tree root.
1942 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
1943 whether we have removed the forwarder block.
1944 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
1945 * cfgloop.h (place_new_loop): Declare.
1946 * cfgloopmanip.c (place_new_loop): Export.
1947 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
1948 (tree-switch-conversion.o): Likewise.
1949 (tree-complex.o): Likewise.
1950 (tree-inline.o): Likewise.
1951 (tree-ssa-tailmerge.o): Likewise.
1952 (ipa-split.o): Likewise.
1953 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
1954 (tree-ssa-copy.o): Likewise.
1955 * tree-switch-conversion.c: Include cfgloop.h
1956 (process_switch): If we emit a bit-test cascade, schedule loops
1957 for fixup.
1958 * tree-complex.c: Include cfgloop.h.
1959 (expand_complex_div_wide): Properly add new basic-blocks to loops.
1960 * asan.c: Include cfgloop.h.
1961 (create_cond_insert_point): Properly add new basic-blocks to
1962 loops, schedule loop fixup.
1963 * cfgloop.c (verify_loop_structure): Check that looks are not
1964 marked for fixup.
1965 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
1966 to loops.
1967 (expand_omp_for_generic): Likewise.
1968 (expand_omp_sections): Likewise.
1969 (expand_omp_atomic_pipeline): Schedule loops for fixup.
1970 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
1971 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
1972 is initialized, not when loops are present.
1973 * tree-parloops.c (parallelize_loops): Remove checking here.
1974 * passes.c (init_optimization_passes): Schedule a copy-propagation
1975 pass before complete unrolling of inner loops.
1976
e78e8a0b
JJ
19772013-04-26 Jakub Jelinek <jakub@redhat.com>
1978
a2e836b2
JJ
1979 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
1980 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
1981 (colorize_init): Add argument to _WIN32 version.
1982 * toplev.c: Include diagnostic-color.h.
1983 (process_options): Default to -fdiagnostics-color=auto if
1984 GCC_COLORS env var is in the environment.
1985 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
1986 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
1987 env var is in the environment, the default is auto rather than never.
a2e836b2 1988
e78e8a0b
JJ
1989 * diagnostic.h (file_name_as_prefix): Add context argument.
1990 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
1991 the string as locus.
1992 * langhooks.c (lhd_print_error_function): Adjust caller.
1993
013e5ef9
LC
19942013-04-25 Lawrence Crowl <crowl@google.com>
1995
1996 * var-tracking.c (shared_hash_def::htab):
1997 Change type to hash_table. Update dependent calls and types.
1998
4a8fb1a1
LC
19992013-04-25 Lawrence Crowl <crowl@google.com>
2000
2001 * Makefile.in: Update as needed below.
2002
2003 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2004 Move declaration to after the type's method definitons.
2005
2006 * attribs.c (htab_t scoped_attributes::attribute_hash):
2007 Change type to hash_table. Update dependent calls and types.
2008
2009 * bitmap.c (htab_t bitmap_desc_hash):
2010 Change type to hash_table. Update dependent calls and types.
2011
2012 * cselib.c (htab_t cselib_hash_table):
2013 Change type to hash_table. Update dependent calls and types.
2014
2015 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2016 (hash_string_slot_node): Move implementation into lto-streamer.h
2017 struct string_slot_hasher.
2018 (eq_string_slot_node): Likewise.
2019
2020 * data-streamer-out.c: Update output_block::string_hash_table
2021 dependent calls and types.
2022
2023 * dwarf2cfi.c (htab_t trace_index):
2024 Change type to hash_table. Update dependent calls and types.
2025
2026 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2027 Change type to hash_table. Update dependent calls and types.
2028 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2029 (htab_t optimize_external_refs::map): Likewise.
2030 (htab_t output_comp_unit::extern_map): Likewise.
2031 (htab_t output_comdat_type_unit::extern_map): Likewise.
2032 (htab_t output_macinfo::macinfo_htab): Likewise.
2033 (htab_t optimize_location_lists::htab): Likewise.
2034 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2035
2036 * except.c (htab_t ehspec_hash_type):
2037 Change type to hash_table. Update dependent calls and types.
2038 (assign_filter_values::ttypes): Likewise.
2039 (assign_filter_values::ehspec): Likewise.
2040 (sjlj_assign_call_site_values::ar_hash): Likewise.
2041 (convert_to_eh_region_ranges::ar_hash): Likewise.
2042
2043 * gcse.c (htab_t pre_ldst_table):
2044 Change type to hash_table. Update dependent calls and types.
2045
2046 * ggc-common.c (htab_t saving_htab):
2047 Change type to hash_table. Update dependent calls and types.
2048 (htab_t loc_hash): Likewise.
2049 (htab_t ptr_hash): Likewise.
2050 (call_count): Rename ggc_call_count.
2051 (call_alloc): Rename ggc_call_alloc.
2052 (loc_descriptor): Rename make_loc_descriptor.
2053 (add_statistics): Rename ggc_add_statistics.
2054
2055 * ggc-common.c (saving_htab):
2056 Change type to hash_table. Update dependent calls and types.
2057
2058 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2059 (push_gimplify_context): Likewise.
2060 (pop_gimplify_context): Likewise.
2061 (struct gimple_temp_hash_elt): Added.
2062 (struct gimplify_hasher): Likewise.
2063 (struct gimplify_ctx.temp_htab):
2064 Change type to hash_table. Update dependent calls and types.
2065
2066 * gimple-fold.c: Include gimplify-ctx.h.
2067
2068 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2069 Change type to hash_table. Update dependent calls and types.
2070 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2071 avoid potential global name collision.
2072
2073 * gimplify.c: Include gimplify-ctx.h.
2074 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2075 (htab_t gimplify_ctx::temp_htab):
2076 Update dependent calls and types for new type hash_table.
2077 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2078 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2079
2080 * gimplify-ctx.h: New.
2081 (struct gimple_temp_hash_elt): Move from gimplify.c.
2082 (class gimplify_hasher): New.
2083 (struct gimplify_ctx): Move from gimple.h.
2084 (htab_t gimplify_ctx::temp_htab):
2085 Change type to hash_table. Update dependent calls and types.
2086
2087 * graphite-clast-to-gimple.c: Include graphite-htab.h.
2088 (htab_t ivs_params::newivs_index):
2089 Change type to hash_table. Update dependent calls and types.
2090 (htab_t ivs_params::params_index): Likewise.
2091 (htab_t print_generated_program::params_index): Likewise.
2092 (htab_t gloog::newivs_index): Likewise.
2093 (htab_t gloog::params_index): Likewise.
2094
2095 * graphite.c: Include graphite-htab.h.
2096 4htab_t graphite_transform_loops::bb_pbb_mapping):
2097 Change type to hash_table. Update dependent calls and types.
2098
2099 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2100 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2101 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2102
2103 * graphite-dependences.c: Include graphite-htab.h.
2104 (loop_is_parallel_p): Change hash table type of parameter.
2105
2106 * graphite-htab.h: New.
2107 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2108 (extern find_pbb_via_hash): Move from graphite-poly.h.
2109 (extern loop_is_parallel_p): Move from graphite-poly.h.
2110 (extern get_loop_body_pbbs): Move from graphite-poly.h.
2111
2112 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2113 (extern loop_is_parallel_p): Move to graphite-htab.h.
2114 (extern get_loop_body_pbbs): Move to graphite-htab.h.
2115
2116 * haifa-sched.c (htab_t delay_htab):
2117 Change type to hash_table. Update dependent calls and types.
2118 (htab_t delay_htab_i2): Likewise.
2119
2120 * ira-color.c (htab_t allocno_hard_regs_htab):
2121 Change type to hash_table. Update dependent calls and types.
2122
2123 * ira-costs.c (htab_t cost_classes_htab):
2124 Change type to hash_table. Update dependent calls and types.
2125
2126 * loop-invariant.c (htab_t merge_identical_invariants::eq):
2127 Change type to hash_table. Update dependent calls and types.
2128
2129 * loop-iv.c (htab_t bivs):
2130 Change type to hash_table. Update dependent calls and types.
2131
2132 * loop-unroll.c (htab_t opt_info::insns_to_split):
2133 Change type to hash_table. Update dependent calls and types.
2134 (htab_t opt_info::insns_with_var_to_expand): Likewise.
2135
2136 * lto-streamer.h (struct string_slot): Move from data-streamer.h
2137 (struct string_slot_hasher): New.
2138 (htab_t output_block::string_hash_table):
2139 Change type to hash_table. Update dependent calls and types.
2140
2141 * lto-streamer-in.c (freeing_string_slot_hasher): New.
2142 (htab_t file_name_hash_table):
2143 Change type to hash_table. Update dependent calls and types.
2144
2145 * lto-streamer-out.c: Update output_block::string_hash_table dependent
2146 calls and types.
2147
2148 * lto-streamer.c (htab_t tree_htab):
2149 Change type to hash_table. Update dependent calls and types.
2150
2151 * omp-low.c: Include gimplify-ctx.h.
2152
2153 * passes.c (htab_t name_to_pass_map):
2154 Change type to hash_table. Update dependent calls and types.
2155 (pass_traverse): Rename to passes_pass_traverse.
2156
2157 * plugin.c (htab_t event_tab):
2158 Change type to hash_table. Update dependent calls and types.
2159
2160 * postreload-gcse.c (htab_t expr_table):
2161 Change type to hash_table. Update dependent calls and types.
2162 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
2163
2164 * sese.c (debug_rename_map_1): Make extern.
2165 (htab_t copy_bb_and_scalar_dependences::rename_map):
2166 Change type to hash_table. Update dependent calls and types.
2167
2168 * sese.h (extern debug_rename_map): Move to .c file.
2169
2170 * store-motion.c (htab_t store_motion_mems_table):
2171 Change type to hash_table. Update dependent calls and types.
2172
2173 * trans-mem.c (htab_t tm_new_mem_hash):
2174 Change type to hash_table. Update dependent calls and types.
2175
2176 * tree-browser.c (htab_t TB_up_ht):
2177 Change type to hash_table. Update dependent calls and types.
2178
2179 * tree-cfg.c (htab_t discriminator_per_locus):
2180 Change type to hash_table. Update dependent calls and types.
2181
2182 * tree-complex.c: Include tree-hasher.h
2183 (htab_t complex_variable_components):
2184 Change type to hash_table. Update dependent calls and types.
2185
2186 * tree-eh.c (htab_t finally_tree):
2187 Change type to hash_table. Update dependent calls and types.
2188
2189 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
2190 struct int_tree_hasher.
2191 (extern int_tree_map_eq): Likewise.
2192 (uid_decl_map_hash): Removed.
2193 (extern decl_tree_map_eq): Likewise.
2194
2195 * tree-hasher.h: New.
2196 (struct int_tree_hasher): New.
2197 (typedef int_tree_htab_type): New.
2198
2199 * tree-inline.c: Include gimplify-ctx.h.
2200
2201 * tree-mudflap.c: Include gimplify-ctx.h.
2202
2203 * tree-parloops.c: Include tree-hasher.h.
2204 (htab_t eliminate_local_variables_stmt::decl_address):
2205 Change type to hash_table. Update dependent calls and types.
2206 (htab_t separate_decls_in_region::decl_copies): Likewise.
2207
2208 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
2209 Change type to hash_table. Update dependent calls and types.
2210
2211 * tree-sra.c (candidates):
2212 Change type to hash_table. Update dependent calls and types.
2213
2214 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
2215 in tree-flow.h.
2216 (int_tree_map_hash): Likewise.
2217
2218 * tree-ssa-dom.c (htab_t avail_exprs):
2219 Change type to hash_table. Update dependent calls and types.
2220
2221 * tree-ssa-live.c (var_map_base_init::tree_to_index):
2222 Change type to hash_table. Update dependent calls and types.
2223
2224 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
2225 Change type to hash_table. Update dependent calls and types.
2226
2227 * tree-ssa-phiopt.c (seen_ssa_names):
2228 Change type to hash_table. Update dependent calls and types.
2229
2230 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
2231 Change type to hash_table. Update dependent calls and types.
2232
2233 * tree-ssa-uncprop.c (equiv):
2234 Change type to hash_table. Update dependent calls and types.
2235
c5a44004
JJ
22362013-04-25 Jakub Jelinek <jakub@redhat.com>
2237
2238 PR rtl-optimization/57003
2239 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2240 call note_stores with kill_clobbered_value callback again after
2241 killing regs_invalidated_by_call.
2242
09962a4a
JG
22432013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2244
2245 * config/aarch64/aarch64-simd.md
2246 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
2247 (aarch64_simd_bsl<mode>): Likewise.
2248 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
2249
ea28bb0b
MP
22502013-04-25 Marek Polacek <polacek@redhat.com>
2251
2252 PR tree-optimization/57066
3c21604f 2253 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 2254
96659611
JG
22552013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
2256
2257 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
2258
9697e620
JG
22592013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2260
2261 * config/aarch64/aarch64-builtins.c
2262 (aarch64_fold_builtin): New.
2263 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
2264 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
2265 * config/aarch64/aarch64-simd-builtins.def (abs): New.
2266 * config/aarch64/arm_neon.h
2267 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
2268
0ac198d3
JG
22692013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2270 Tejas Belagod <tejas.belagod@arm.com>
2271
2272 * config/aarch64/aarch64-builtins.c
2273 (aarch64_gimple_fold_builtin): New.
2274 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
2275 * config/aarch64/aarch64-simd-builtins.def (addv): New.
2276 * config/aarch64/aarch64-simd.md (addpv4sf): New.
2277 (addvv4sf): Update.
2278 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
2279
58cff58c
N
22802013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2281
df93505e 2282 * config/aarch64/aarch64.md
58cff58c
N
2283 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
2284
7e0228bf
N
22852013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2286
2287 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
2288 (*ngcsi_uxtw): New pattern.
2289
5819f96f 22902013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 2291 Julian Brown <julian@codesourcery.com>
5819f96f
KT
2292
2293 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
2294 (TB_DREG): Add T_V4HF.
2295 (v4hf_UP): New macro.
2296 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 2297 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
2298 Handle initialisation of V4HF. Adjust initialisation of reinterpret
2299 built-ins.
df93505e 2300 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
2301 (arm_vector_mode_supported_p): Handle V4HF.
2302 (arm_mangle_map): Handle V4HFmode.
2303 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
2304 * config/arm/arm_neon_builtins.def: Add entries for
2305 vcvtv4hfv4sf, vcvtv4sfv4hf.
2306 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
2307 (neon_vcvtv4hfv4sf): Likewise.
2308 * config/arm/neon-gen.ml: Handle half-precision floating point
2309 features.
2310 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
2311 * config/arm/arm_neon.h: Regenerate.
2312 * config/arm/neon.ml (type elts): Add F16.
2313 (type vectype): Add T_float16x4, T_floatHF.
2314 (type vecmode): Add V4HF.
2315 (type features): Add Requires_FP_bit feature.
2316 (elt_width): Handle F16.
2317 (elt_class): Likewise.
2318 (elt_of_class_width): Likewise.
2319 (mode_of_elt): Refactor.
2320 (type_for_elt): Handle F16, fix error messages.
2321 (vectype_size): Handle T_float16x4.
2322 (vcvt_sh): New function.
2323 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
2324 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
2325 (string_of_mode): Handle V4HF.
2326 * doc/arm-neon-intrinsics.texi: Regenerate.
2327
1ef395e4
JG
23282013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2329
2330 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2331 format specifier in 'X' case.
2332
41c34e94
AM
23332013-04-25 Alan Modra <amodra@gmail.com>
2334
2335 PR target/57052
2336 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
2337 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
2338 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
2339 Repeat for many other rotate/shift and mask patterns using subregs.
2340 Name lshiftrt insns.
2341 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
2342 on WORDS_BIG_ENDIAN.
2343
b9a7eb5d
AM
23442013-04-25 Alan Modra <amodra@gmail.com>
2345
2346 * config.gcc: Support little-endian powerpc-linux targets.
2347 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2348 (LINK_OS_LINUX_SPEC): Define.
2349 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2350 Preserve MASK_LITTLE_ENDIAN.
2351 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2352 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2353 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2354 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2355 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2356 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2357 Correct fp word order for little-endian. Don't shift toc entries
2358 smaller than a word for little-endian.
2359 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2360 (bswapdi2 splits): Correct low-part subreg for little-endian.
2361 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
2362 low/high where such is correct only for be.
2363 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
2364 little-endian for -mcall-aixdesc.
2365
87f73374
AM
23662013-04-25 Alan Modra <amodra@gmail.com>
2367
2368 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
2369 replace_equiv_address_nv.
2370
cabf91cd
AM
23712013-04-25 Alan Modra <amodra@gmail.com>
2372
2373 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
2374
0ae24cc8
VM
23752013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2376
2377 Revert:
2378 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2379 * rtl.h (struct rtx_def): ...
cabf91cd 2380
77bce07c
VM
23812013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2382
2383 PR rtl-optimizations/57046
2384 * lra-constraints (split_reg): Set up lra_risky_transformations_p
2385 for multi-reg splits.
2386
0db63e7f
L
23872013-04-24 H.J. Lu <hongjiu.lu@intel.com>
2388
2389 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
2390
3362b6b6
SA
23912013-04-24 Sterling Augustine <saugustine@google.com>
2392
2393 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
2394 (comp_dir_string, debug_str_dwo_section): New.
2395 (DEBUG_STR_DWO_SECTION): Rename to ...
2396 (DEBUG_DWO_STR_SECTION): ... this.
2397 (DEBUG_NORM_STR_SECTION): Delete.
2398 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
2399 (DEBUG_STR_DWO_SECTION_FLAGS): New.
2400 (find_AT_string): Move most logic to ...
2401 (find_AT_string_in_table): ... here. New.
2402 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
2403 add_skeleton_AT_string. Delete logic.
2404 (output_skeleton_debug_sections): Remove call to
2405 add_top_level_skeleton_die_attrs.
2406 (add_comp_dir_attribute): Move logic to comp_dir_string.
2407 (dwarf2out_init): Initialize debug_str_dwo_section.
2408 (output_indirect_string): Call find_string_form.
2409 (output_indirect_strings): Rewrite.
2410 (prune_unused_types): Empty skeleton_debug_str_hash.
2411 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
2412 (dwarf2out_finish): Call output_indirect_strings.
2413
e93e18e9
PC
24142013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2415
2416 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
2417
f6ce35ac
VM
24182013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2419
cabf91cd 2420 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
2421 (LRA_SUBREG_P): New macro.
2422 * recog.c (register_operand): Check LRA_SUBREG_P.
2423 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2424 stack frame.
2425 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2426 (lra_final_code_change): Skip subreg change for operators.
2427 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2428 if there are no operand changes.
2429 * lra-constraints.c (curr_insn_set): New.
2430 (match_reload): Set LRA_SUBREG_P.
2431 (emit_spill_move): Ditto.
2432 (check_and_process_move): Use curr_insn_set. Process only single
2433 set insns. Don't initialize sec_mem_p and change_p.
2434 (simplify_operand_subreg): Use LRA_SUBREG_P.
2435 (reg_in_class_p): New function.
2436 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2437 of #ifdef. Add code to remove cycling.
2438 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2439 non-null disp. Reload inner instead of disp when base and index
2440 are null. Try to put lo_sum into register.
2441 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 2442 (check_and_process_move): Move code for move cost check to
f6ce35ac 2443 simple_move_p. Remove equiv_substitution.
cabf91cd 2444 (simple_move_p): New function.
f6ce35ac
VM
2445 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2446 curr_insn_set. Call check_and_process_move only for single set
2447 insns. Use the new function. Move call of check_and_process_move
2448 after operand equiv substitution and address process.
2449
38047d90
JG
24502013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2451
2452 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2453 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2454 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2455
13f39b2e
PC
24562013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2457
2458 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
2459
97c116dc
MP
24602013-04-24 Marek Polacek <polacek@redhat.com>
2461
2462 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
2463 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
2464 (select_loops_exit_conditions): Likewise.
2465 (number_of_iterations_for_all_loops): Likewise.
2466 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
2467 (scev_analysis): Likewise.
2468
83082391
CM
24692013-04-02 Catherine Moore <clm@codesourcery.com>
2470 Chao-ying Fu <fu@mips.com>
2471
cabf91cd
AM
2472 * config/mips/micromips.md (jraddiusp): New pattern.
2473 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
2474 instruction if possible.
83082391 2475
19e34aa2
AM
24762013-04-24 Alan Modra <amodra@gmail.com>
2477
2478 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
2479
fdb6603c
JB
24802013-04-24 Julian Brown <julian@codesourcery.com>
2481 Chung-Lin Tang <cltang@codesourcery.com>
2482
2483 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
2484 dependency behavior in enumeration type DIE generation. Add TODO note
2485 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 2486
bf190e8d
LC
24872013-04-23 Lawrence Crowl <crowl@google.com>
2488
2489 * Makefile.in: Update as needed below.
2490
2491 * hash-table.h (class hash_table):
2492 Correct many methods with parameter types compare_type to the correct
2493 value_type. (Correct code was unlikely to notice the change.)
2494 (hash_table::elements_with_deleted) New.
2495 (class hashtable::iterator): New.
2496 (hashtable::begin()): New.
2497 (hashtable::end()): New.
2498 (FOR_EACH_HASH_TABLE_ELEMENT): New.
2499
2500 * statistics.c (statistics_hashes):
2501 Change type to hash_table. Update dependent calls and types.
2502
2503 * tree-into-ssa.c (var_infos):
2504 Change type to hash_table. Update dependent calls and types.
2505
2506 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
2507 Change type to hash_table. Update dependent calls and types.
2508
2509 * tree-ssa-loop-im.c (struct mem_ref.refs):
2510 Change type to hash_table. Update dependent calls and types.
2511
2512 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
2513 Change type to hash_table. Update dependent calls and types.
2514
2515 * tree-ssa-sccvn.c (vn_tables_s::nary):
2516 Change type to hash_table. Update dependent calls and types.
2517 (vn_tables_s::phis): Likewise.
2518 (vn_tables_s::references): Likewise.
2519
2520 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
2521 (vn_reference_eq): Update parameter and return types.
2522
2523 * tree-ssa-structalias.c (pointer_equiv_class_table):
2524 Change type to hash_table. Update dependent calls and types.
2525 (location_equiv_class_table): Likewise.
2526
2527 * tree-vect-data-refs.c: Consequential changes for making
2528 peeling a hash_table.
2529
2530 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
2531 (destroy_loop_vec_info): Dependent hash_table update.
2532
2533 * tree-vectorizer.h (peeling_htab):
2534 Change type to hash_table. Update dependent calls and types.
2535
d70a81dd
SC
25362013-04-23 Shiva Chen <shiva0217@gmail.com>
2537
cabf91cd
AM
2538 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
2539 to check the register content is equal or not.
2540 * lra-constraints.c (match_reload): Use lra_assign_reg_val
2541 to assign register content record.
2542 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 2543 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
2544 * lra-int.h (struct lra_reg): Add offset member.
2545 (lra_reg_val_equal_p): New static inline function.
2546 (lra_update_reg_val_offset): New static inline function.
2547 (lra_assign_reg_val): New static inline function.
2548 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
2549 to assign register content record.
2550 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 2551
b894a1f3
CM
25522013-04-23 Catherine Moore <clm@codesourcery.com>
2553
2554 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
2555 operands. Record compression.
2556
ecd14de9
XDL
25572013-04-23 Xinliang David Li <davidxl@google.com>
2558
2559 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
2560
92e776e9
RB
25612013-04-23 Richard Biener <rguenther@suse.de>
2562
2563 PR middle-end/57036
2564 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
2565 parameter, only add abnormal goto edges from the copied body
2566 if the call could perform abnormal gotos.
2567 (copy_cfg_body): Adjust.
2568
a15ee567
SN
25692013-04-23 Sofiane Naci <sofiane.naci@arm.com>
2570
2571 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
2572
08c52234
AS
25732013-04-23 Andreas Schwab <schwab@linux-m68k.org>
2574
2575 * coretypes.h (gimple_stmt_iterator): Add struct to make
2576 compatible with C.
2577
999c1171
RB
25782013-04-23 Richard Biener <rguenther@suse.de>
2579
2580 PR tree-optimization/57026
2581 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
2582 from SSA names occuring in abnormal PHI nodes.
2583
53669259
AK
25842013-04-22 Andi Kleen <ak@linux.intel.com>
2585
2586 * lto/lto.c (print_lto_report_1): Fix LTO report names.
2587
1a0ad150
AK
25882013-04-22 Andi Kleen <ak@linux.intel.com>
2589
2590 * lto/lto.c (print_lto_report_1): Declare early.
2591 (read_cgraph_and_symbols): Call print_lto_report_1 early.
2592
057f8f20
AK
25932013-04-22 Andi Kleen <ak@linux.intel.com>
2594
2595 * common.opt (-flto-report-wpa): Add.
2596 * doc/invoke.texi (-flto-report-wpa): Add.
2597 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
2598 (lto_main): dito.
2599
473b1e05
XDL
26002013-04-22 Xinliang David Li <davidxl@google.com>
2601
2602 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
2603 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
2604 * Makefile.in: New dependency
2605
cabf91cd 2606 David Daney <ddaney.cavm@gmail.com>
b1485a33 2607
cabf91cd
AM
2608 * configure.ac (gcc_cv_as_micromips_support): Use the
2609 --fatal-warnings option.
2610 * configure: Regenerate.
b1485a33 2611
829d0168
MP
26122013-04-22 Marek Polacek <polacek@redhat.com>
2613
2614 PR sanitizer/56990
2615 * tsan.c (instrument_expr): Don't instrument expression
2616 in case its size is zero.
2617
6d9b7208
UB
26182013-04-22 Uros Bizjak <ubizjak@gmail.com>
2619
2620 PR target/57032
2621 Revert:
2622 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
2623
2624 * config/alpha/alpha.c (TARGET_LRA_P): New define.
2625
ea679d55
JG
26262013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2627
2628 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
2629 (gimple_stmt_iterator): New typedef.
2630 * gimple.h (gimple_stmt_iterator): Rename to...
2631 (gimple_stmt_iterator_d): ... This.
2632 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
2633 trees be valid for GIMPLE and GENERIC.
2634 (TARGET_GIMPLE_FOLD_BUILTIN): New.
2635 * gimple-fold.c (gimple_fold_call): Call target hook
2636 gimple_fold_builtin.
2637 * hooks.c (hook_bool_gsiptr_false): New.
2638 * hooks.h (hook_bool_gsiptr_false): New.
2639 * target.def (fold_stmt): New.
2640 * doc/tm.texi: Regenerate.
2641
88a581da
VM
26422013-04-22 Vladimir Makarov <vmakarov@redhat.com>
2643
2644 PR target/57018
2645 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
2646 a set sp if no stack realignment.
2647
92be22dc
NC
26482013-04-22 Nick Clifton <nickc@redhat.com>
2649
2650 * config.gcc (tilegx-linux): Extend extra_objs rather than
2651 overwriting it.
2652 (tilepro-linux): Likewise.
2653
0ddec79f
JG
26542013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2655
2656 * config/aarch64/aarch64-builtins.c
2657 (CF): Remove.
2658 (CF0, CF1, CF2, CF3, CF4, CF10): New.
2659 (VAR<1-12>): Add MAP parameter.
2660 (BUILTIN_*): Likewise.
2661 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
2662 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
2663 (aarch64_ushl_n<mode>): Likewise.
2664 (aarch64_sshr_n<mode>): Likewise.
2665 (aarch64_ushr_n<mode>): Likewise.
2666 (aarch64_<maxmin><mode>): Likewise.
2667 (aarch64_sqrt<mode>): Likewise.
2668 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
2669 (vshr<q>_n_*): Likewise.
2670
0050faf8
JG
26712013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2672
2673 * config/aarch64/aarch64-builtins.c
2674 (aarch64_simd_builtin_type_mode): Handle SF types.
2675 (sf_UP): Define.
2676 (BUILTIN_GPF): Define.
2677 (aarch64_init_simd_builtins): Handle SF types.
2678 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
2679 (frecps): Likewise.
2680 (frecpx): Likewise.
2681 * config/aarch64/aarch64-simd.md
2682 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
2683 (aarch64_frecpe<mode>): New.
2684 (aarch64_frecps<mode>): Likewise.
2685 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
2686 (v8type): Add frecp<esx>.
2687 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
2688 (aarch64_frecps<mode>): Likewise.
2689 * config/aarch64/iterators.md (FRECP): New.
2690 (frecp_suffix): Likewise.
2691 * config/aarch64/arm_neon.h
2692 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
2693
0fad3dbc 26942013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
2695
2696 PR target/56995
2697 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
2698 (REG_CLASS_NAMES): Idem.
2699 (REG_CLASS_CONTENTS): Idem.
2700 (REGCLASS_HAS_FP_REG): Idem.
2701 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
2702 (sh_conditional_register_usage): Idem.
2703
3e8a33f9
JL
27042013-04-21 Jeff Law <law@redhat.com>
2705
2706 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
2707 (ssa_forward_propagate_and_combine): Use it.
2708
f38e1b0a
VM
27092013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2710
2711 * lra.c: Update the flow chart diagram.
2712
682303da
VM
27132013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2714
2715 PR rtl-optimization/56847
2716 * lra-constraints.c (process_alt_operands): Discourage alternative
2717 with non-matche doffsettable memory constraint fro memory with
2718 known offset.
2719
f6b64c35
RB
27202013-04-19 Richard Biener <rguenther@suse.de>
2721
2722 PR tree-optimization/56982
2723 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
2724 function.
2725 * gimplify.c (gimplify_call_expr): Notice special calls.
2726 (gimplify_modify_expr): Likewise.
2727 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
2728 abnormal control flow receivers.
2729 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
2730 in the same way as cfun->has_nonlocal_labels.
2731 (gimple_purge_dead_abnormal_call_edges): Likewise.
2732 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
2733 receivers start a basic-block.
2734
01d8bf07
RB
27352013-04-19 Richard Biener <rguenther@suse.de>
2736
2737 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
2738 member ...
2739 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
2740 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
2741 (SLP_TREE_LOAD_PERMUTATION): Add.
2742 (vect_transform_slp_perm_load): Adjust prototype.
2743 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
2744 (vect_free_slp_instance): Likewise.
2745 (vect_create_new_slp_node): Likewise.
2746 (vect_supported_slp_permutation_p): Remove.
2747 (vect_slp_rearrange_stmts): Adjust.
2748 (vect_supported_load_permutation_p): Likewise. Inline
2749 vect_supported_slp_permutation_p here.
2750 (vect_analyze_slp_instance): Compute load permutations per
2751 slp node instead of per instance.
2752 (vect_get_slp_defs): Adjust.
2753 (vect_transform_slp_perm_load): Likewise.
2754 (vect_schedule_slp_instance): Remove redundant code.
2755 (vect_schedule_slp): Remove hack for PR56270, add it ...
2756 * tree-vect-stmts.c (vectorizable_load): ... here, do not
2757 CSE loads for SLP. Adjust.
2758
ede22fc3
GY
27592013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2760
2761 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
2762 spelling in two comments.
2763
67bc84fb
GY
27642013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2765
2766 PR target/56797
2767 * config/arm/arm.c (load_multiple_sequence): Require SP
2768 as base register for loads if SP is in the register list.
2769
e248d83f
MJ
27702013-04-19 Martin Jambor <mjambor@suse.cz>
2771
2772 PR tree-optimization/56718
2773 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
2774 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
2775 and made public. Adjusted all callers.
2776 (ipa_intraprocedural_devirtualization): New function.
2777 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
2778 (ipa_intraprocedural_devirtualization): Likewise.
2779 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
2780
4891e8f8
RB
27812013-04-19 Richard Biener <rguenther@suse.de>
2782
2783 PR tree-optimization/57000
2784 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2785
dad89f7c
TG
27862013-04-19 Terry Guo <terry.guo@arm.com>
2787
2788 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
2789 Replace with ...
2790 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
2791 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
2792 (cortex_m4_fmacs): Use new reservations.
2793 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
2794
72ea0d47
VM
27952013-04-18 Vladimir Makarov <vmakarov@redhat.com>
2796
f1e6512c 2797 PR rtl-optimization/56999
72ea0d47
VM
2798 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2799 related code.
2800 (lra_coalesce): Remove split_origin_bitmap and related code.
2801 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
2802 ranges if necessary.
2803
780a5b71
UB
28042013-04-18 Uros Bizjak <ubizjak@gmail.com>
2805
2806 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
2807 New array.
2808 (ix86_expand_call): Remove clobbered_registers array and use
2809 x86_64_ms_sysv_extra_clobbered_registers instead.
2810 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
2811 Declare here.
2812 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
2813 predicate.
2814 * config/i386/i386.md (*call_rex64_ms_sysv): Use
2815 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
2816 (*call_value_rex64_ms_sysv): Ditto.
2817
6f5a366a
CC
28182013-04-18 Cary Coutant <ccoutant@google.com>
2819
2820 * dwarf2out.c (output_pubnames): Check die_perennial_p of
2821 parent instead of die_mark.
2822
475b8f37
DN
28232013-04-18 Diego Novillo <dnovillo@google.com>
2824
2825 * gimple.c (create_gimple_tmp): New.
2826 (get_expr_type): New.
2827 (build_assign): New.
2828 (build_type_cast): New.
2829 * gimple.h (enum ssa_mode): Define.
2830 (gimple_seq_set_location): New.
2831 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 2832 to use build_assign and build_type_cast.
475b8f37 2833
08940f33
RB
28342013-04-18 Richard Biener <rguenther@suse.de>
2835
2836 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2837 handle negative step. Remove redundant checks.
2838 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
2839 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
2840 for negative step and grouped loads fail to vectorize.
2841
0e0f87d4
SB
28422013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2843
2844 * emit-rtl.c (reset_insn_used_flags): New function.
2845 (reset_all_used_flags): Use it.
2846 (verify_insn_sharing): New function.
2847 (verify_rtl_sharing): Fix verification for SEQUENCEs.
2848
4c445590
JJ
28492013-04-18 Jakub Jelinek <jakub@redhat.com>
2850
2851 PR tree-optimization/56984
2852 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2853 and (x >> M) >= N don't register any assertion if N << M is the
2854 minimum value.
2855
6873ecab
SB
28562013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2857
2858 * lower-subreg.c (resolve_simple_move): If called self-recursive,
2859 do not delete_insn insns that have not yet been emitted, only
2860 unlink them with remove_insn.
2861 * df-scan.c (df_insn_delete): Revert r197492.
2862
3ccb989e
SB
28632013-04-17 Steven Bosscher <steven@gcc.gnu.org>
2864
2865 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
2866 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
2867
28682013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
2869
2870 * config/arm/arm.md (movsicc_insn): Convert define_insn into
2871 define_insn_and_split.
2872 (and_scc,ior_scc,negscc): Likewise.
2873 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
2874
3ccb989e 28752013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
2876
2877 * config/arm/arm.c (use_return_insn): Return 0 for targets that
2878 can benefit from using a sequence of LDRD instructions in epilogue
2879 instead of a single LDM instruction.
2880
6d10a203
MLI
28812013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2882
2883 PR 45688
2884 * doc/extend.texi: Fix typo.
2885
6983e6b5
RB
28862013-04-17 Richard Biener <rguenther@suse.de>
2887
2888 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2889 (vect_build_slp_tree): ... here.
2890 (vect_build_slp_tree_1): Compute which stmts of the SLP group
2891 match. Remove special-casing of mismatched complex loads.
2892 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2893 re-try the match with swapped commutative operands.
2894 (vect_supported_load_permutation_p): Remove special-casing of
2895 mismatched complex loads.
2896 (vect_analyze_slp_instance): Adjust.
2897
ef23e6a2
RB
28982013-04-17 Richard Biener <rguenther@suse.de>
2899
2900 PR rtl-optimization/56921
2901 * cfgloop.h (struct loop): Add simple_loop_desc member.
2902 (struct niter_desc): Mark with GTY(()).
2903 (simple_loop_desc): Do not use aux field but simple_loop_desc.
2904 * loop-iv.c (get_simple_loop_desc): Likewise.
2905 (free_simple_loop_desc): Likewise.
2906
2907 Revert
2908 2013-04-16 Richard Biener <rguenther@suse.de>
2909
2910 PR rtl-optimization/56921
2911 * loop-init.c (pass_rtl_move_loop_invariants): Add
2912 TODO_do_not_ggc_collect to todo_flags_finish.
2913 (pass_rtl_unswitch): Same.
2914 (pass_rtl_unroll_and_peel_loops): Same.
2915 (pass_rtl_doloop): Same.
2916
fc6f94f5
EB
29172013-04-17 Eric Botcazou <ebotcazou@adacore.com>
2918
2919 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2920 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2921 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2922 references.
2923 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2924 * tree-streamer.c (record_common_node): Adjust reference in comment.
2925
10a88311
TG
29262013-04-17 Terry Guo <terry.guo@arm.com>
2927
2928 * config/arm/cortex-m4.md: Add a new bypass.
2929
6d9b7208 29302013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
2931
2932 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2933 New pattern.
2934 (*subs_<optab><mode>_multp2): New pattern.
2935 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2936 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2937
6d9b7208 29382013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
2939
2940 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
2941 (*subs_mul_imm_<mode>): New pattern.
2942
18a6701e
DE
29432013-04-16 David Edelsohn <dje.gcc@gmail.com>
2944
2945 PR target/56948
2946 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2947 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
2948 (vsx_movti_32bit): Change j->wa to O->wa.
2949
07c37b2f
RB
29502013-04-16 Richard Biener <rguenther@suse.de>
2951
2952 PR rtl-optimization/56921
2953 * loop-init.c (pass_rtl_move_loop_invariants): Add
2954 TODO_do_not_ggc_collect to todo_flags_finish.
2955 (pass_rtl_unswitch): Same.
2956 (pass_rtl_unroll_and_peel_loops): Same.
2957 (pass_rtl_doloop): Same.
2958
0e0f87d4 29592013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
2960
2961 * config/arm/arm.c (emit_multi_reg_push): New declaration
2962 for an existing function.
2963 (arm_emit_strd_push): New function.
2964 (arm_expand_prologue): Used here.
2965 (arm_emit_ldrd_pop): New function.
2966 (arm_expand_epilogue): Used here.
2967 (arm_get_frame_offsets): Update condition.
2968 (arm_emit_multi_reg_pop): Add a special case for load of a single
2969 register with writeback.
2970
5e8e2af4
UB
29712013-04-16 Uros Bizjak <ubizjak@gmail.com>
2972
2973 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
2974 description.
2975
9fd9ccf7
RB
29762013-04-16 Richard Biener <rguenther@suse.de>
2977
2978 PR tree-optimization/56756
2979 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
2980 (first_mem_ref_loc): New.
2981 (execute_sm): Place the load temporarily before a previous
2982 access instead of in the latch edge to ensure its SSA dependencies
2983 are defined at points dominating the load.
2984
96fba521
SB
29852013-04-16 Steven Bosscher <steven@gcc.gnu.org>
2986
4c8af858
SB
2987 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
2988 correct fix by moving header and footer insn to the footer of
2989 the merged basic block. Clear BB_END of the merged-away block.
2990
96fba521
SB
2991 PR middle-end/43631
2992 * emit-rtl.c (make_note_raw): New function.
2993 (link_insn_into_chain): New static inline function.
2994 (add_insn): Use it.
2995 (add_insn_before, add_insn_after): Factor insn chain linking code...
2996 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
2997 using link_insn_into_chain.
2998 (note_outside_basic_block_p): New helper function for emit_note_after
2999 and emit_note_before.
3000 (emit_note_after): Use nobb variant of add_insn_after if the note
3001 should not be contained in a basic block.
3002 (emit_note_before): Use nobb variant of add_insn_before if the note
3003 should not be contained in a basic block.
3004 (emit_note_copy): Use make_note_raw.
3005 (emit_note): Likewise.
3006 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3007 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3008 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3009 the moved barrier the tail of the basic block it follows.
3010 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3011
7b8265ba
JJ
30122013-04-15 Jakub Jelinek <jakub@redhat.com>
3013
3014 PR tree-optimization/56962
3015 * gimple-ssa-strength-reduction.c (record_increment): Only set
3016 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3017 either rhs1 or rhs2 is equal to c->base_expr.
3018
5185d248
RB
30192013-04-15 Richard Biener <rguenther@suse.de>
3020
3021 PR tree-optimization/56933
3022 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3023 member.
3024 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3025 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3026 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3027 dependence check ...
3028 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3029 ... here.
3030 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3031 GROUP_READ_WRITE_DEPENDENCE.
3032
a24243a0
AK
30332013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3034
3035 * emit-rtl.c (reset_all_used_flags): New function.
3036 (verify_rtl_sharing): Call reset_all_used_flags before and after
3037 performing the checks.
3038
1c50eada
KT
30392013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3040
3041 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3042 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3043 * config/arm/constraints.md (De): New constraint.
3044 * config/arm/neon.md (anddi3_neon): Delete.
3045 (neon_vand<mode>): Expand to standard anddi3 pattern.
3046 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3047 Move earlier in the file.
3048 (neon_inv_logic_op2): Likewise.
3049 (arm_anddi_operand_neon): New predicate.
3050
e927b6ad
RO
30512013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3052
3053 * configure.ac (gcc_cv_ld_as_needed): Set
3054 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3055 Use -z ignore, -z record on *-*-solaris2*.
3056 (HAVE_LD_AS_NEEDED): Update comment.
3057 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3058 * configure: Regenerate.
3059 * config.in: Regenerate.
3060 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3061 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3062 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3063 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3064 equivalents. Fix markup.
3065 * doc/tm.texi: Regenerate.
3066
e0ea8797
AH
30672013-04-15 Andrew Hsieh <andrewhsieh.google.com>
3068
3069 * config/i386/i386.opt: New option mstack-protector-guard=.
3070 * config/i386/i386-opts.h: Add enum stack_protector_guard.
3071 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3072 TARGET_SSP_TLS_GUARD.
3073 * config/i386/i386.c (ix86_option_override_internal): Set
3074 ix86_stack_protector_guard.
3075 * config/i386/i386.md (stack_protect_set): Enable for
3076 TARGET_SSP_TLS_GUARD only.
3077 (stack_protect_set_<mode>): Ditto.
3078 (stack_protect_test): Ditto.
3079 (stack_protect_test_<mode>): Ditto.
3080 * doc/invoke.texi (i386 Option): Document.
3081
811b72f9
EB
30822013-04-15 Eric Botcazou <ebotcazou@adacore.com>
3083
3084 PR target/56890
3085 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3086 (S_MODES): Set H_MODE bit.
3087 (SF_MODES): Set only S_MODE and SF_MODE bits.
3088 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3089 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3090 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3091 <MODE_FLOAT>: Likewise.
3092
5529fdd6
JY
30932013-04-15 Joey Ye <joey.ye@arm.com>
3094
3095 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3096
517b1da2
JY
30972013-04-15 Joey Ye <joey.ye@arm.com>
3098
3099 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3100 for real far jump.
3101 (thumb_far_jump_used_p): Count instruction size and set
3102 far_jump_used.
3103
01007ae0
EB
31042013-04-14 Eric Botcazou <ebotcazou@adacore.com>
3105
3106 * reorg.c (fill_simple_delay_slots): Reindent block of code.
3107 * resource.c (mark_target_live_regs): Reformat conditional block.
3108
c46f6580
SB
31092013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3110
3111 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3112 notes, they are emitted only just before final.
3113 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3114
1f397f45
SB
31152013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3116
3117 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
3118 * cfgrtl.c (delete_insn): Call it here instead.
3119 * lra-spills.c (lra_final_code_change): Use delete_insn.
3120 * haifa-sched.c (sched_remove_insn): Likewise.
3121 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
3122 returning to the nop pool.
3123 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
3124 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
3125
58a51369
SB
31262013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3127
3128 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
3129 * doc/tm.texi: Regenerated.
3130
33159866
UB
31312013-04-12 Uros Bizjak <ubizjak@gmail.com>
3132
3133 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
3134 QImode checks.
3135
226e378f
SB
31362013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3137
3138 * df-core.c (df_find_def): Compare register numbers.
3139 (df_find_use): Likewise.
3140
fafb9b18
VM
31412013-04-12 Vladimir Makarov <vmakarov@redhat.com>
3142
3143 PR target/56903
3144 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3145 lra_in_progress for return.
3146
9a946fd6
GY
31472013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3148
3149 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
3150 define_insn into define_insn_and_split and emit movsicc patterns.
3151
41b83758
GY
31522013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3153
3154 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
3155
d3afd9aa
RB
31562013-04-12 Richard Biener <rguenther@suse.de>
3157
3158 * tree-pass.h (TODO_do_not_ggc_collect): New.
3159 * passes.c (execute_one_ipa_transform_pass): Honor
3160 TODO_do_not_ggc_collect.
3161 (execute_one_pass): Likewise.
3162
3163 Revert
3164 2013-04-10 Richard Biener <rguenther@suse.de>
3165
3166 * passes.c (init_optimization_passes): Remove reload pass.
3167 * ira.c (do_reload): Merge into ...
3168 (ira): ... this.
3169 (rest_of_handle_reload): Remove.
3170 (pass_reload): Likewise.
3171 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3172 of reload for vzeroupper pass placement.
3173
06f9b387
JJ
31742013-04-12 Jakub Jelinek <jakub@redhat.com>
3175
3176 PR tree-optimization/56918
3177 PR tree-optimization/56920
3178 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3179 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
3180 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
3181 use wide_mul_with_sign method.
3182
953094d2
RB
31832013-04-12 Richard Biener <rguenther@suse.de>
3184
3185 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
3186 not be considered a gimple constant.
3187
bb506982
MG
31882013-04-12 Marc Glisse <marc.glisse@inria.fr>
3189
3190 * fold-const.c (const_binop): Handle vector shifts by a scalar.
3191 (fold_binary_loc): Call const_binop also for mixed vector-scalar
3192 operations.
3193
4b84d650
JJ
31942013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
3195 Jakub Jelinek <jakub@redhat.com>
3196
3197 * opts.c: Include diagnostic-color.h.
3198 (common_handle_option): Handle OPT_fdiagnostics_color_.
3199 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
3200 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
3201 (diagnostic-color.o): New.
3202 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
3203 (diagnostic_color_rule): New enum.
3204 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
3205 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
3206 the location string.
3207 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
3208 either NULL, or color kind.
3209 * diagnostic-color.c: New file.
3210 * diagnostic-color.h: New file.
3211 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
3212 arguments.
3213 * doc/invoke.texi (-fdiagnostics-color): Document.
3214 * pretty-print.h (pp_show_color): Define.
3215 (struct pretty_print_info): Add show_color field.
3216 * diagnostic.c: Include diagnostic-color.h.
3217 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
3218 macros. Colorize error:, warning: etc. strings and also the location
3219 string.
3220 (diagnostic_show_locus): Colorize the caret line.
3221 * pretty-print.c: Include diagnostic-color.h.
3222 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
3223 inside of %< %> quotes or quoted through q format modifier.
3224
067a1e71
AK
32252013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3226
33159866 3227 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 3228
33159866 32292013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
3230
3231 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
3232 code in CC_NZ mode.
3233 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
3234 pattern.
3235
7b55f98f
MP
32362013-04-11 Marek Polacek <polacek@redhat.com>
3237
3238 PR tree-optimization/48184
33159866 3239 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 3240
966b587e
EB
32412013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3242
3243 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
3244 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
3245 (skip_simple_arithmetic): Tidy up.
3246 * tree.h (skip_simple_constant_arithmetic): Declare.
3247
33159866 32482013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
3249
3250 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
3251
1d42c1ec
RB
32522013-04-11 Richard Biener <rguenther@suse.de>
3253
3254 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3255 generate vector constants.
3256
4ba5ea11
RB
32572013-04-11 Richard Biener <rguenther@suse.de>
3258
3259 PR tree-optimization/56878
3260 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
3261 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
3262 New function.
3263 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3264 Prefer to align the DR with the most invariant base address.
3265
f0defe58
SKS
32662013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3267
3268 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
3269 comment.
3270
d07458be
JG
32712013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
3272
3273 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
3274 floating-point vector comparisons against 0.
3275
146b8692
JJ
32762013-04-11 Jakub Jelinek <jakub@redhat.com>
3277
3278 PR tree-optimization/56899
3279 * fold-const.c (extract_muldiv_1): Apply distributive law
3280 only if TYPE_OVERFLOW_WRAPS (ctype).
3281
b8578ff7
BC
32822013-04-11 Bin Cheng <bin.cheng@arm.com>
3283
3284 PR target/56124
3285 * ira-costs.c (scan_one_insn): Check whether the source rtx of
3286 loading has side effect.
3287
0ea8a6f9
SB
32882013-04-10 Steven Bosscher <steven@gcc.gnu.org>
3289
3290 * config/sparc/sparc.c: Include tree-pass.h.
3291 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
3292 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
3293 head of file. Change return type. Split off gate function.
3294 (sparc_gate_work_around_errata): New function.
3295 (pass_work_around_errata): New pass definition.
3296 (insert_pass_work_around_errata) New pass insert definition to
3297 insert pass_work_around_errata just after delayed-branch scheduling.
3298 (sparc_option_override): Insert the pass.
3299 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
3300
42e37616
DM
33012013-04-10 David S. Miller <davem@davemloft.net>
3302
89deeb3b
DM
3303 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
3304 or -mcpu=hypersparc.
3305
42e37616
DM
3306 * target.def (cstore_mode): New hook.
3307 * target.h: Include insn-codes.h
3308 * targhooks.c: Likewise.
3309 (default_cstore_mode): New function.
3310 * targhooks.h: Declare it.
3311 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
3312 * doc/tm.texi: Rebuild.
3313 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
3314 target hook, rather than inspecting the insn_data.
3315 * config/sparc/sparc.c (sparc_cstore_mode): New function.
3316 (TARGET_CSTORE_MODE): Redefine.
3317 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
3318 result patterns.
3319 * config/sparc/predicates.md (cstore_result_operand): New special
3320 predicate.
3321 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
3322 Use it for operand 0.
3323 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
3324 (*snesi_special): Likewise.
3325 (*snesi_zero): Likewise.
3326 (*seqsi_zero): Likewise.
3327 (*sltu_insn): Likewise.
3328 (*sgeu_insn): Likewise.
3329 (*seqdi_special): Make operand 0 and comparison operation be of
3330 DImode.
3331 (*snedi_special): Likewise.
3332 (*snedi_special_vis3): Likewise.
3333 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
3334 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
3335 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
3336 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
3337 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
3338 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
3339 (*sltu_extend_sp64): Likewise.
3340 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
3341 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
3342 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
3343 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
3344 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
3345
95ca411e
YZ
33462013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
3347
3348 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3349 (aarch64_start_file): Use the new function.
3350
6782438d 33512013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 3352 Jason Merrill <jason@redhat.com>
6782438d
SKS
3353
3354 * common.opt: Add -gdwarf.
3355 * opts.c (common_handle_option): Handle it.
3356 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
3357
bb313b93
RB
33582013-04-10 Richard Biener <rguenther@suse.de>
3359
3360 * passes.c (execute_todo): Do not call ggc_collect conditional here.
3361 (execute_one_ipa_transform_pass): But unconditionally here.
3362 (execute_one_pass): And here.
3363 (init_optimization_passes): Remove reload pass.
3364 * tree-pass.h (TODO_ggc_collect): Remove.
3365 (pass_reload): Likewise.
3366 * ira.c (do_reload): Merge into ...
3367 (ira): ... this.
3368 (rest_of_handle_reload): Remove.
3369 (pass_reload): Likewise.
3370 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3371 of reload for vzeroupper pass placement.
3372 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
3373 and todo_flags_finish of all passes.
3374
793d9a16
RB
33752013-04-10 Richard Biener <rguenther@suse.de>
3376
3377 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
3378 first_const_oprnd field, rename first_def_type to first_op_type.
3379 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
3380 (vect_get_and_check_slp_defs): Always use the type of the
3381 operand. Allow mixed vect_external_def, vect_constant_def types.
3382 (vect_get_constant_vectors): Handle mixed vect_external_def,
3383 vect_constant_def types.
3384
ee8a9b7b
JR
33852013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
3386
3387 PR tree-optimization/55524
3388 * tree-ssa-math-opts.c
3389 (convert_mult_to_fma): Don't use an fms construct
3390 when we don't have an fms operation, but fnma, and it looks
3391 likely that we'll be able to use the latter.
3392
6957a6f6
ZZ
33932013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3394
3395 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
3396 function.
3397 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
3398 inline fail caused by overwritable functions.
3399
34ab4a5b
CJW
34002013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
3401
3402 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
3403 unnecessary bits in the constant power of two case.
3404
abf9bfbc
RB
34052013-04-10 Richard Biener <rguenther@suse.de>
3406
3407 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
3408 broken code swapping operands.
3409 (vect_build_slp_tree): Do not compute load permutations here.
3410 (vect_analyze_slp_instance): Compute load permutations here,
3411 after building the SLP tree.
3412
f408477e
CB
34132013-04-09 Christian Bruel <christian.bruel@st.com>
3414
3415 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
3416 of next/prev_real_insn.
3417
5ac42672
JH
34182013-04-09 Jan Hubicka <jh@suse.cz>
3419
abf9bfbc
RB
3420 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3421 Drop aliased parameter.
5ac42672
JH
3422 (function_and_variable_visibility): Do not handle alias pairs.
3423 * cgraph.c (varpool_externally_visible_p): Update prototype.
3424 * varpool.c (varpool_add_new_variable): Update.
3425
5017f1d2
KT
34262013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3427
3428 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
3429
48eecbee
SB
34302013-04-09 Steven Bosscher <steven@gcc.gnu.org>
3431
a949cf1c
SB
3432 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
3433
48eecbee
SB
3434 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
3435
75ef8e3d
MP
34362013-04-09 Marek Polacek <polacek@redhat.com>
3437
3438 PR tree-optimization/48762
33159866 3439 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 3440
23847df4
RB
34412013-04-09 Richard Biener <rguenther@suse.de>
3442
3443 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
3444 dealing with cost.
3445 (vect_build_slp_tree): Likewise.
3446 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
3447 calculating the cost of a SLP instance.
3448 (vect_analyze_slp_instance): Use it from here, after building
3449 the SLP tree.
3450
ea3a0fde
JJ
34512013-04-09 Jakub Jelinek <jakub@redhat.com>
3452
3453 PR middle-end/56883
3454 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3455 expand_omp_for_static_chunk): Use simple_p = true in
3456 force_gimple_operand_gsi calls when assigning to addressable decls.
3457
a32dfe9d
JL
34582013-04-09 Jeff Law <law@redhat.com>
3459
3460 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
3461 when the boolean was created by converting a wider object which
3462 had a boolean range.
3463
d755c7ef
RB
34642013-04-09 Richard Biener <rguenther@suse.de>
3465
3466 * tree-vectorizer.h (slp_void_p): Remove.
3467 (slp_tree): Typedef before _slp_tree declaration.
3468 (struct _slp_tree): Use a vector of slp_tree as children.
3469 (vect_get_place_in_interleaving_chain): Remove.
3470 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
3471 Move ...
3472 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
3473 and make static.
3474 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
3475 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
3476 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
3477 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
3478 Use slp_node instead of slp_void_p and adjust.
3479
3d741091
RB
34802013-04-09 Richard Biener <rguenther@suse.de>
3481
3482 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
3483 work that is not necessary.
3484
39307ba7
JJ
34852013-04-09 Jakub Jelinek <jakub@redhat.com>
3486
3487 PR tree-optimization/56854
3488 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
3489 forward into clobber stmts if it would change MEM_REF lhs into
3490 non-MEM_REF.
3491
343881fd
MK
34922013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
3493
3494 * tree.c (type_hash_lookup, type_hash_add): Make static.
3495 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
3496
3922658a
RB
34972013-04-09 Richard Biener <rguenther@suse.de>
3498
3499 * tree.h (unsave_expr_now): Remove.
3500 * tree-inline.c (mark_local_for_remap_r): Remove.
3501 (unsave_expr_1): Likewise.
3502 (unsave_r): Likewise.
3503 (unsave_expr_now): Likewise.
3504 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
3505 (propagate_tree_value): Likewise.
3506
9fb6b620
SB
35072013-04-08 Steven Bosscher <steven@gcc.gnu.org>
3508
3509 * doc/rtl.texi (sequence): Rewrite documentation to match the
3510 current use of SEQUENCE rtl objects.
3511 * rtl.def (SEQUENCE): Likewise.
3512
3513 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
3514 Update documentation.
3515 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
3516 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
3517
3518 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
3519
8ddb5a29
TJ
35202013-04-08 Teresa Johnson <tejohnson@google.com>
3521
3522 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
3523 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 3524 methods.
8ddb5a29
TJ
3525 (estimate_edge_size_and_time): Add comment to suggest using rounding
3526 methods.
3527 (estimate_node_size_and_time): Ditto.
3528 (remap_edge_change_prob): Use helper rounding divide methods.
3529 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
3530 (gimple_mod_pow2_value_transform): Ditto.
3531 (gimple_mod_subtract_transform): Ditto.
3532 (gimple_ic_transform): Ditto.
3533 (gimple_stringops_transform): Ditto.
3534 * stmt.c (conditional_probability): Ditto.
3535 (emit_case_dispatch_table): Ditto.
3536 * lto-cgraph.c (merge_profile_summaries): Ditto.
3537 * tree-optimize.c (execute_fixup_cfg): Ditto.
3538 * cfgcleanup.c (try_forward_edges): Ditto.
3539 * cfgloopmanip.c (scale_loop_profile): Ditto.
3540 (loopify): Ditto.
3541 (duplicate_loop_to_header_edge): Ditto.
3542 (lv_adjust_loop_entry_edge): Ditto.
3543 * tree-vect-loop.c (vect_transform_loop): Ditto.
3544 * profile.c (compute_branch_probabilities): Ditto.
3545 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
3546 * lto-streamer-in.c (input_cfg): Ditto.
3547 * gimple-streamer-in.c (input_bb): Ditto.
3548 * ipa-cp.c (update_profiling_info): Ditto.
3549 (update_specialized_profile): Ditto.
3550 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
3551 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 3552 rounding methods.
8ddb5a29
TJ
3553 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3554 (compute_trg_info): Ditto.
3555 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
3556 (purge_dead_edges): Ditto.
3557 * loop-unswitch.c (unswitch_loop): Ditto.
3558 * cgraphclones.c (cgraph_clone_edge): Ditto.
3559 (cgraph_clone_node): Ditto.
3560 * tree-inline.c (copy_bb): Ditto.
3561 (copy_edges_for_bb): Ditto.
3562 (initialize_cfun): Ditto.
3563 (copy_cfg_body): Ditto.
3564 (expand_call_inline): Ditto.
3565
661e6bd7
KT
35662013-04-08 Kai Tietz <ktietz@redhat.com>
3567
3568 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
3569 TARGET_CYGWIN64 by TARGET_64BIT.
3570
105766f3
JR
35712013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3572
3573 * config/epiphany/epiphany.md (GPR_1): New constant.
3574 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
3575 * config/epiphany/epiphany.c (gen_compare_reg):
3576 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
3577 is already in place.
3578 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
3579 Don't require being called during rtl expansion; If y operlaps r0,
3580 return 0.
3581 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
3582 (epiphany_expand_epilogue): Likewise.
3583
8afab237
JR
3584 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
3585 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 3586 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 3587
fa7707d6
JR
3588 * config/epiphany/constraints.md (CnL): New constraint.
3589 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
3590 * config/epiphany/predicates.md (add_operand): Allow 1024.
3591
5138e18d
JR
3592 * config/epiphany/epiphany.md (logical_op): New code iterator.
3593 (op_mnc): New code attribute.
3594 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
3595 (mov_f+1, mov_f+2): New peephole2 patterns.
3596
2ccc703d
JR
3597 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
3598 (cstoresi4): Also allow re-use of zero result when doing a NE
3599 comparison to a non-zero operand.
aefb0819 3600 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 3601
093ac0a5
JR
3602 * config/epiphany/epiphany.md (<insn_opname>v2si3):
3603 Use gen_addsi3_i / gen_subsi3_i.
3604
f223bb13
JJ
36052013-04-08 Jakub Jelinek <jakub@redhat.com>
3606
3607 PR c++/34949
3608 PR c++/50243
3609 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
3610 contain anything but clobbers, at most one __builtin_stack_restore,
3611 optionally debug stmts and final resx, and if it has at least one
3612 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
3613 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
3614 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
3615 which isn't defaut definition, remove them.
3616 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
3617 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
3618 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
3619 with MEM_REF LHS with SSA_NAME address.
3620
4481581f
JL
36212013-04-08 Jeff Law <law@redhat.com>
3622
3623 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 3624
451dabda
RB
36252013-04-08 Richard Biener <rguenther@suse.de>
3626
3627 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
3628 extra newline.
3629 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
3630 determined vector type.
3631 (vect_analyze_data_refs): Likewise.
3632 (vect_get_new_vect_var): Adjust.
3633 (vect_create_destination_var): Preserve SSA name versions.
3634 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
3635 not dump anything here.
3636
3b088b47
JR
36372013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3638
3639 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
3640 Add member lr_slot_known.
3641 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
3642 if necessary.
3643 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
3644 Remove code that sets lr_slot_offset according to what a previous
3645 version of epiphany_emit_save_restore used to do.
3646 (epiphany_emit_save_restore): When doing an lr save or restore,
3647 set/verify lr_slot_known and lr_slot_offset.
3648
d8484d41
XQ
36492013-04-08 Xinyu Qi <xyqi@marvell.com>
3650
33159866
UB
3651 PR target/54338
3652 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
3653 in ALL_REGS.
3654
481be1c4
RB
36552013-04-08 Richard Biener <rguenther@suse.de>
3656
3657 * alias.c (find_base_term): Fix thinko in previous change.
3658
401f3a81
JJ
36592013-04-08 Jakub Jelinek <jakub@redhat.com>
3660
3661 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
3662 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
3663 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
3664 if possible to compute val.
3665 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
3666 For QImode integers don't require anything about precision. Use
3667 const_with_all_bytes_same to find out if the constant doesn't have
3668 repeated bytes in it.
3669
03ed99a8
AK
36702013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3671
3672 * config/s390/s390.c (s390_expand_insv): Only accept insertions
3673 within mode size.
3674
781b2e62
MP
36752013-04-08 Marek Polacek <polacek@redhat.com>
3676
3677 PR rtl-optimization/48182
3678 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
3679 value to 1.
3680
27e430a2
JDA
36812013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3682
3683 PR target/55487
3684 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3685 nuses, make sure we have a label.
3686
4902aa64
BS
36872013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3688
3689 PR target/56843
3690 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
3691 (rs6000_emit_swdiv_low_precision): Remove.
3692 (rs6000_emit_swdiv): Rewrite to handle between one and four
3693 iterations of Newton-Raphson generally; modify required number of
3694 iterations for some cases.
3695 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
3696
7bca81dc
SB
36972013-04-05 Steven Bosscher <steven@gcc.gnu.org>
3698
3699 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
3700 set-but-unused variable.
3701
3702 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
3703 basic blocks of released function bodies garbage-collectable.
3704
3705 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
3706 (struct rtl_opt_pass): Add TODO_df_finish.
3707
3708 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
3709
4542a38a
GY
37102013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3711
3712 * config/arm/constraints.md (q): New constraint.
3713 * config/arm/ldrdstrd.md: New file.
3714 * config/arm/arm.md (ldrdstrd.md) New include.
3715 (arm_movdi): Use "q" instead of "r" constraint
3716 for double-word memory access.
3717 (movdf_soft_insn): Likewise.
3718 * config/arm/vfp.md (movdi_vfp): Likewise.
3719 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 3720 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
3721 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
3722 (mem_ok_for_ldrd_strd): Likewise.
3723 (output_move_double): Update assertion.
3724
2385b218
GY
37252013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3726
3727 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
3728
75fe1cb5
GY
37292013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3730
3731 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
3732 define_insn_and_split.
3733 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
3734
dd660e8e
GY
37352013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3736
3737 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
3738 define_insn_and_split.
33159866 3739 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
3740 (shiftsi3_compare): New pattern.
3741 (rrx): New pattern.
3742 * config/arm/unspecs.md (UNSPEC_RRX): New.
3743
045e472c
GY
37442013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3745
3746 * config/arm/arm.md (negdi_extendsidi): New pattern.
3747 (negdi_zero_extendsidi): Likewise.
3748
3f3bf1a8
GY
37492013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3750
3751 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
3752 define_insn_and_split.
3753 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
3754 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
3755
b0b49556
GY
37562013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3757
3758 * config/arm/arm.md (arm_subdi3): Convert define_insn into
3759 define_insn_and_split.
3760 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
3761 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
3762
d633dd84
GY
37632013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3764
3765 * config/arm/arm.md (subsi3_carryin): New pattern.
3766 (subsi3_carryin_const): Likewise.
3767 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
3768 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
3769
f4499066
GY
37702013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3771
3772 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
3773
ceef6fd9
GY
37742013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3775
3776 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 3777 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 3778
ddbdd8a7
KT
37792013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3780
3781 * config/arm/arm.c (arm_expand_builtin): Change fcode
3782 type to unsigned int.
3783
8456d78a
RR
37842013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3785
3786 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
3787
526c230f
ILT
37882013-04-04 Ian Lance Taylor <iant@google.com>
3789
33159866
UB
3790 * doc/standards.texi (Standards): The Go frontend supports the Go 1
3791 language standard.
526c230f 3792
3cfbe04d
SB
37932013-04-04 Steven Bosscher <steven@gcc.gnu.org>
3794
3795 PR middle-end/56729
3796 * df-scan.c (df_insn_delete): Disable failing assert.
3797
dfa3f8d0
KT
37982013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3799
3800 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
3801 New function prototype.
3802 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
3803 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
3804 (arm_builtin_vectorized_function): New function.
3805
f7837758
KT
38062013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3807
3808 * config/arm/arm_neon_builtins.def: New file.
3809 * config/arm/arm.c (neon_builtin_data): Move contents to
3810 arm_neon_builtins.def.
3811 (enum arm_builtins): Include neon builtin definitions.
3812 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 3813 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 3814
39c1b6db
MP
38152013-04-04 Marek Polacek <polacek@redhat.com>
3816
3817 PR tree-optimization/48186
3818 * predict.c (maybe_hot_frequency_p): Return false if
3819 HOT_BB_FREQUENCY_FRACTION is 0.
3820 (cgraph_maybe_hot_edge_p): Likewise.
3821
314f64eb
RB
38222013-04-04 Richard Biener <rguenther@suse.de>
3823
3824 PR tree-optimization/56826
3825 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
3826 more accurately.
3827
51a905b2
RB
38282013-04-04 Richard Biener <rguenther@suse.de>
3829
3830 PR tree-optimization/56213
3831 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 3832 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 3833
f1bf4f3a
RB
38342013-04-04 Richard Biener <rguenther@suse.de>
3835
3836 PR tree-optimization/56837
3837 * tree-loop-distribution.c (classify_partition): For non-zero
3838 values require that the value has the same precision as its
3839 mode to be useful as memset value.
3840
0bca7ded
NC
38412013-04-03 Nick Clifton <nickc@redhat.com>
3842
33159866 3843 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
3844 (fmssf4): Use fmsf.s on E3V5 architectures.
3845 (fnmasf4): Use fnmaf.s on E3V5 architectures.
3846 (fnmssf4): Use fnmsf.s on E3V5 architectures.
3847
b4019227
JL
38482013-04-03 Jeff Law <law@redhat.com>
3849
3850 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
3851 (lra-eliminations.o): Likewise.
3852
f57ddb5b
TJ
38532013-04-03 Teresa Johnson <tejohnson@google.com>
3854
3855 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 3856 compute_working_sets here from profile.c.
f57ddb5b 3857 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
3858 (gcov_working_set_t): Moved typedef here from basic-block.h
3859 (compute_working_set): Declare.
f57ddb5b
TJ
3860 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
3861 (get_working_sets): Renamed from compute_working_set,
33159866 3862 replace most of body with call to new compute_working_sets.
f57ddb5b 3863 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
3864 to get_working_sets.
3865 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 3866 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 3867 to get_working_sets.
f57ddb5b
TJ
3868 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
3869 * gcov-dump.c (dump_working_sets): New function.
3870
5e0919f1
KZ
38712013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
3872
3873 * hwint.c (sext_hwi, zext_hwi): New functions.
3874 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
3875 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
3876 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
3877 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
3878 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
3879 (sext_hwi, zext_hwi): New functions.
0bca7ded 3880
be672e08
JL
38812013-04-03 Jeff Law <law@redhat.com>
3882
3883 PR tree-optimization/56799
33159866
UB
3884 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3885 back test for widening conversion erroneously dropped in prior change.
be672e08 3886
9d821fa5
KT
38872013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3888
3889 PR target/56809
3890 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3891 instead of next_real_insn.
3892
71c581e7
MP
38932013-04-03 Marek Polacek <polacek@redhat.com>
3894
3895 PR sanitizer/55702
33159866 3896 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 3897
4a32ef80
KT
38982013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3899
3900 PR target/56809
3901 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3902 next_real_insn.
3903 (thumb1_output_casesi): Likewise.
3904 (thumb2_output_casesi): Likewise.
3905
1b2253d4
RB
39062013-04-03 Richard Biener <rguenther@suse.de>
3907
3908 PR tree-optimization/56817
3909 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3910 Split out ...
3911 (tree_unroll_loops_completely_1): ... new function to manually
3912 walk the loop tree, properly defering outer loops of unrolled
3913 loops to later iterations.
3914
38000232
MG
39152013-04-03 Marc Glisse <marc.glisse@inria.fr>
3916
3917 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3918 (vectorizable_load): Likewise.
3919 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3920 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3921
3fa35298
MG
39222013-04-03 Marc Glisse <marc.glisse@inria.fr>
3923
3924 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3925 BIT_FIELD_REF.
3926
b3d45ff0
UW
39272013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3928
3929 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3930
ec9202a8
BC
39312013-04-03 Bin Cheng <bin.cheng@arm.com>
3932
3933 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
3934
6805bd36
MG
39352013-04-03 Marc Glisse <marc.glisse@inria.fr>
3936
3937 PR tree-optimization/56790
33159866
UB
3938 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
3939 folding.
6805bd36 3940
da694a77
MG
39412013-04-03 Marc Glisse <marc.glisse@inria.fr>
3942
3943 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3944 Handle VEC_MERGE.
3945 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
3946 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
3947 equal arguments.
3948
4e7d7b3d
JJ
39492013-04-03 Jakub Jelinek <jakub@redhat.com>
3950
3951 PR c/19449
3952 * tree.h (force_folding_builtin_constant_p): New decl.
3953 * builtins.c (force_folding_builtin_constant_p): New variable.
3954 (fold_builtin_constant_p): Fold immediately also if
3955 force_folding_builtin_constant_p.
3956
e6c9d234
RB
39572013-04-03 Richard Biener <rguenther@suse.de>
3958
3959 PR tree-optimization/56812
3960 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3961 DRs of the same interleaving chain are independent.
3962
984d07dd
JM
39632013-04-02 Jason Merrill <jason@redhat.com>
3964
3965 * gdbinit.in (pbb): Use debug fn.
3966
622849c9
LC
39672013-04-02 Lawrence Crowl <crowl@google.com>
3968
3969 * sese.h (struct ivtype_map_elt_s): Remove unused.
3970 (extern debug_ivtype_map): Remove unused.
3971 (extern eq_ivtype_map_elts): Remove unused.
3972 * sese.c (debug_ivtype_map): Removed unused.
3973 (debug_ivtype_map_1): Removed unused.
3974 (debug_ivtype_elt): Remove unused.
3975 (eq_ivtype_map_elts): Remove unused.
3976
3977
82c0e1a0
KT
39782013-04-02 Kai Tietz <ktietz@redhat.com>
3979
3980 PR target/52790
3981 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
3982 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
3983 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
3984 function.
82c0e1a0
KT
3985 (legitimize_pe_coff_symbol): Likewise.
3986 (is_imported_p): New helper-function.
3987 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
3988 for Windows x64 targets.
3989 (ix86_expand_prologue): Optimize for pe-coff targets.
3990 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
3991 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
3992 medium/large code-model.
3993 (legitimize_pic_address): Likewise.
3994 (legitimize_tls_address): Likewise.
3995 (ix86_expand_call): Likewise.
3996 (x86_output_mi_thunk): Likewise.
3997 (get_dllimport_decl): Add new beimport argument.
3998 (construct_plt_address): Don't assert for x64 pe-coff targets.
3999 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4000 targets.
4001 (SYMBOL_FLAG_STUBVAR): New macro.
4002 (SYMBOL_REF_STUBVAR_P): Likewise.
4003 * config/i386/winnt.c (stub_list): New structure.
4004 (stub_head): New local variable.
4005 (i386_pe_record_stub): New function.
4006 (i386_pe_file_end): Emit refptr-stubs.
4007
5d751b0c
JJ
40082013-04-02 Jakub Jelinek <jakub@redhat.com>
4009
09bb4c99
JJ
4010 PR rtl-optimization/56745
4011 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4012 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4013
a1d8947a
JJ
4014 PR c++/34949
4015 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4016 and both of them are MEM_REFs, just compare first argument for
4017 equality and attempt to deal even with differing offsets.
4018
5d751b0c
JJ
4019 PR c++/34949
4020 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4021 of gimple_clobber_p to be MEM_REF.
4022 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4023 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4024 after gimplification.
4025 * asan.c (get_mem_ref_of_assignment): Don't instrument
4026 gimple_clobber_p stmts.
4027 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4028 gimple_clobber_p stmt if they have MEM_REF lhs and
4029 are dead because of another gimple_clobber_p stmt.
4030 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4031 gimple_clobber_p stmts like debug stmts.
4032 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4033 that refer to unused VAR_DECLs or uninitialized values.
4034 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4035 gimple_clobber_p stmts if they refer to removed parameters.
4036 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4037 formatting.
4038
e594716a
UB
40392013-04-02 Uros Bizjak <ubizjak@gmail.com>
4040
4041 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4042 using SWI48 mode attribute.
4043
7a80735b
WM
40442013-04-02 Wei Mi <wmi@google.com>
4045
4046 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4047 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4048 *<rotate_insn><mode>3_mask in i386.md.
4049
f423a9e4
AI
40502013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4051
4052 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4053
90eb75f2
RB
40542013-04-02 Richard Biener <rguenther@suse.de>
4055
4056 PR tree-optimization/56778
4057 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4058 Runtime alias tests are not supported for gather loads.
4059 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4060 stmts referenced from SSA operands before updating SSA form.
4061
d8c69a92
IC
40622013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4063 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4064
4065 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
4066 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4067 * config/arm/cortex-a53.md: New file.
4068 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4069 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4070 * config/arm/arm.c (arm_issue_rate): Likewise.
4071 * config/arm/arm-tune.md: Regenerate
4072 * config/arm/arm-tables.opt: Regenerate.
4073 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 4074
239eb04c
ZC
40752013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
4076
4077 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4078 non-static link.
4079
c902d3c8
SN
40802013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4081
d8c69a92
IC
4082 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4083 scalar load/store operations using B/H registers.
c902d3c8
SN
4084 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4085
051d0e2f
SN
40862013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4087
4088 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4089 scalar move.
4090 * config/aarch64/aarch64.c
4091 (aarch64_simd_scalar_immediate_valid_for_move): New.
4092 * config/aarch64/aarch64-protos.h
4093 (aarch64_simd_scalar_immediate_valid_for_move): New.
4094 * config/aarch64/constraints.md (Dh, Dq): New.
4095 * config/aarch64/iterators.md (hq): New.
4096
0ee1e3d9
EB
40972013-04-02 Eric Botcazou <ebotcazou@adacore.com>
4098
4099 * reorg.c (get_branch_condition): Deal with conditional returns.
4100 (fill_simple_delay_slots): Remove dead code dealing with jumps.
4101
136fb3f7
WM
41022013-04-01 Wei Mi <wmi@google.com>
4103
4104 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4105 Truncate operand 2 using %b asm operand modifier.
4106 (*<shift_insn><mode>3_mask): Ditto.
4107 (*<rotate_insn><mode>3_mask): Ditto.
4108
6388c738
SB
41092013-04-01 Steven Bosscher <steven@gcc.gnu.org>
4110
4111 PR middle-end/56798
4112 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4113
f7a4d826
KK
41142013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
4115
4116 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
4117 of next_real_insn.
4118 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
4119
4b943a49
LC
41202013-03-30 Lawrence Crowl <crowl@google.com>
4121
4122 * dse.c (clear_alias_sets): Remove never set.
4123 (disqualified_clear_alias_sets): Remove never set.
4124 (clear_alias_mode_pool): Remove never set.
4125 (dse_step0): Remove condition that is never true.
4126 (canon_address): Remove condition that is never true.
4127 (dse_step7): Remove condition that is never true.
4128 (rest_of_handle_dse): Remove condition that is never true.
4129 (rest_of_handle_dse::did_global): Remove never read from above.
4130 (dse_step2_spill): Remove never called from above.
4131 (dse_step5_spill): Remove never called from above.
4132
39718607
SB
41332013-03-30 Steven Bosscher <steven@gcc.gnu.org>
4134
da5c6bde
SB
4135 * doc/md.texi (Standard Names) <casesi>: Update documentation for
4136 JUMP_TABLE_DATA changes.
4137 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
4138 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
4139 (Insns) <jump_table_data>: New entry.
4140 * doc/tm.texi: Regenerate.
4141
39718607
SB
4142 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
4143
4144 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
4145 for table jump at the end of a basic block using tablejump_p.
4146 * targhooks.c (default_invalid_within_doloop): Likewise.
4147 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
4148 target hook implementation that is identical to the default hook.
4149 (rs6000_invalid_within_doloop): Remove.
4150
4151 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
4152 unused variable from tablejump_p call.
4153
4154 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
4155 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
4156 (INSN_DELETED_P): Likewise.
4157 (emit_jump_table_data): New prototype.
4158 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
4159 after 4th as unused.
4160 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
4161 * sched-vis.c (print_insn): Likewise.
4162 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
4163 insn for compatibility with back ends that use next_active_insn to
4164 identify jump table data.
4165 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
4166 (remove_insn): Likewise.
4167 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
4168 to be emitted.
4169 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
4170 (emit_jump_table_data): New function.
4171
4172 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
4173 basic block, a JUMP_TABLE_DATA never is.
4174 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
4175 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
4176 off from code handling real insns.
4177 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
4178 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
4179 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
4180 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
4181 is not a NONDEBUG_INSN_P.
4182 * ira-costs.c (scan_one_insn): Likewise.
4183 * jump.c (mark_all_labels): Likewise.
4184 (mark_jump_label_1): Likewise.
4185 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4186 * lra.c (get_insn_freq): Expect all insns reaching here to be in
4187 a basic block.
4188 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
4189 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
4190 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
4191 JUMP_TABLE_DATA_P insns.
4192 (calculate_elim_costs_all_insns): Likewise.
4193 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
4194 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
4195 (delete_output_reload): Code style fixups.
4196 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
4197 insn flags on this non-insn.
4198 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
4199 as scheduling barriers, for pre-change compatibility.
4200 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
4201 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
4202
4203 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
4204 redundant JUMP_TABLE_DATA_P test.
4205 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
4206 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4207 (frv_for_each_packet): Likewise.
4208 * config/i386/i386.c (min_insn_size): Likewise.
4209 (ix86_avoid_jump_mispredicts): Likewise.
4210 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4211 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
4212 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4213 (mips16_insn_length): Robustify.
4214 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
4215 (mips16_split_long_branches): Likewise.
4216 * config/pa/pa.c (pa_combine_instructions): Likewise.
4217 * config/rs6000/rs6000.c (get_next_active_insn): Treat
4218 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
4219 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
4220 as contributing to pool range lengths.
4221 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
4222 Remove redundant JUMP_TABLE_DATA_P test.
4223 (sh_loop_align): Likewise.
4224 (split_branches): Likewise.
4225 (sh_insn_length_adjustment): Likewise.
4226 * config/spu/spu.c (get_branch_target): Likewise.
4227
0208f7da
JH
42282013-03-29 Jan Hubicka <jh@suse.cz>
4229
4230 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4231 gcov streaming; stream hot bb threshold to ltrans.
4232 * predict.c (get_hot_bb_threshold): Break out from ....
4233 (maybe_hot_count_p): ... here.
4234 (set_hot_bb_threshold): New function.
4235 * lto-section-in.c (lto_section_name): Add profile.
4236 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
4237 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
4238 and data-streamer.h
4239 (histogram_entry): New structure.
4240 (histogram, histogram_pool): New global vars.
4241 (histogram_hash): New structure.
4242 (histogram_hash::hash): New method.
4243 (histogram_hash::equal): Likewise.
4244 (account_time_size): New function.
4245 (cmp_counts): New function.
4246 (dump_histogram): New function.
4247 (ipa_profile_generate_summary): New function.
4248 (ipa_profile_write_summary): New function.
4249 (ipa_profile_read_summary): New function.
4250 (ipa_profile): Decide on threshold.
e594716a
UB
4251 (pass_ipa_profile): Add ipa_profile_write_summary and
4252 ipa_profile_read_summary.
0208f7da
JH
4253 * Makefile.in (ipa.o): Update dependencies.
4254 * lto-streamer.h (LTO_section_ipa_profile): New section.
4255
5a6ccc94
GDR
42562013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4257
4258 * tree.h (VAR_P): New.
4259
39385fa6
PC
42602013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
4261
4262 PR lto/56777
4263 * doc/invoke.texi ([-fwhole-program]): Fix typo.
4264
34f0d87a
SB
42652013-03-29 Steven Bosscher <steven@gcc.gnu.org>
4266
4267 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
4268 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4269 (control_flow_insn_p): Likewise.
4270 * cfgrtl.c (duplicate_insn_chain): Likewise.
4271 * final.c (get_attr_length_1): Likewise.
4272 (shorten_branches): Likewise.
4273 (final_scan_insn): Likewise.
4274 * function.c (instantiate_virtual_regs): Likewise.
4275 * gcse.c (insert_insn_end_basic_block): Likewise.
4276 * ira-costs.c (scan_one_insn): Likewise.
4277 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4278 * lra.c (check_rtl): Likewise.
4279 * reload1.c (elimination_costs_in_insn): Likewise.
4280 * reorg.c (follow_jumps): Likewise.
4281
4282 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
4283 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4284 (thumb_far_jump_used_p): Likewise.
4285 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
4286 (workaround_speculation): Likewise.
4287 (add_sched_insns_for_speculation): Likewise.
4288 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
4289 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4290 (frv_for_each_packet): Likewise.
4291 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
4292 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
4293 (final_emit_insn_group_barriers): Likewise.
4294 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4295 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4296 (mips16_insn_length): Likewise.
4297 * config/pa/pa.c (pa_reorg): Likewise.
4298 (pa_combine_instructions): Likewise.
4299 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
4300 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
4301 (sh_reorg): Likewise.
4302 (split_branches): Likewise.
4303 * config/spu/spu.c (get_branch_target): Likewise.
4304
4305 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
4306 JUMP_TABLE_DATA_P.
4307
4ac761b0
KY
43082013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
4309
39385fa6 4310 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
4311 Fix declaration name.
4312
58a49189
LC
43132013-03-28 Lawrence Crowl <crowl@google.com>
4314
4315 * graphds.h (struct graph.indicies): Remove unused.
4316 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
4317 (SCOP_ORIGINAL_PDDRS): Remove unused.
4318 * sese.h (extern insert_loop_close_phis): Removed unused.
4319 (extern insert_guard_phis): Removed unused.
4320 (extern ivtype_map_elt_info): Removed unused.
4321 (new_ivtype_map_elt): Removed unused.
4322 * sese.c (ivtype_map_elt_info): Removed unused.
4323
7b3b6ae4
LC
43242013-03-28 Lawrence Crowl <crowl@google.com>
4325
4326 * Makefile.in: Add several missing include dependences.
4327 (DUMPFILE_H): New.
4328 (test-dump.o): New. This object is not added to any executable,
4329 but is present for ad-hoc testing.
4330 * bitmap.c
4331 (debug (const bitmap_head_def &)): New.
4332 (debug (const bitmap_head_def *)): New.
4333 * bitmap.h
4334 (extern debug (const bitmap_head_def &)): New.
4335 (extern debug (const bitmap_head_def *)): New.
4336 * cfg.c
4337 (debug (edge_def &)): New.
4338 (debug (edge_def *)): New.
4339 * cfghooks.c
4340 (debug (basic_block_def &)): New.
4341 (debug (basic_block_def *)): New.
4342 * dumpfile.h
4343 (dump_node (const_tree, int, FILE *)): Correct source file.
4344 * dwarf2out.c
4345 (debug (die_struct &)): New.
4346 (debug (die_struct *)): New.
4347 * dwarf2out.h
4348 (extern debug (die_struct &)): New.
4349 (extern debug (die_struct *)): New.
4350 * gimple-pretty-print.c
4351 (debug (gimple_statement_d &)): New.
4352 (debug (gimple_statement_d *)): New.
4353 * gimple-pretty-print.h
4354 (extern debug (gimple_statement_d &)): New.
4355 (extern debug (gimple_statement_d *)): New.
4356 * ira-build.c
4357 (debug (ira_allocno_copy &)): New.
4358 (debug (ira_allocno_copy *)): New.
4359 (debug (ira_allocno &)): New.
4360 (debug (ira_allocno *)): New.
4361 * ira-int.h
4362 (extern debug (ira_allocno_copy &)): New.
4363 (extern debug (ira_allocno_copy *)): New.
4364 (extern debug (ira_allocno &)): New.
4365 (extern debug (ira_allocno *)): New.
4366 * ira-lives.c
4367 (debug (live_range &)): New.
4368 (debug (live_range *)): New.
4369 * lra-int.h
4370 (debug (lra_live_range &)): New.
4371 (debug (lra_live_range *)): New.
4372 * lra-lives.c
4373 (debug (lra_live_range &)): New.
4374 (debug (lra_live_range *)): New.
4375 * omega.c
4376 (debug (omega_pb_d &)): New.
4377 (debug (omega_pb_d *)): New.
4378 * omega.h
4379 (extern debug (omega_pb_d &)): New.
4380 (extern debug (omega_pb_d *)): New.
4381 * print-rtl.c
4382 (debug (const rtx_def &)): New.
4383 (debug (const rtx_def *)): New.
4384 * print-tree.c
4385 (debug_tree (tree): Move within file.
4386 (debug_raw (const tree_node &)): New.
4387 (debug_raw (const tree_node *)): New.
4388 (dump_tree_via_hooks (const tree_node *, int)): New.
4389 (debug (const tree_node &)): New.
4390 (debug (const tree_node *)): New.
4391 (debug_verbose (const tree_node &)): New.
4392 (debug_verbose (const tree_node *)): New.
4393 (debug_head (const tree_node &)): New.
4394 (debug_head (const tree_node *)): New.
4395 (debug_body (const tree_node &)): New.
4396 (debug_body (const tree_node *)): New.
4397 (debug_vec_tree (tree): Move and reimplement in terms of dump.
4398 (debug (vec<tree, va_gc> &)): New.
4399 (debug (vec<tree, va_gc> *)): New.
4400 * rtl.h
4401 (extern debug (const rtx_def &)): New.
4402 (extern debug (const rtx_def *)): New.
4403 * sbitmap.c
4404 (debug_raw (simple_bitmap_def &)): New.
4405 (debug_raw (simple_bitmap_def *)): New.
4406 (debug (simple_bitmap_def &)): New.
4407 (debug (simple_bitmap_def *)): New.
4408 * sbitmap.h
4409 (extern debug (simple_bitmap_def &)): New.
4410 (extern debug (simple_bitmap_def *)): New.
4411 (extern debug_raw (simple_bitmap_def &)): New.
4412 (extern debug_raw (simple_bitmap_def *)): New.
4413 * sel-sched-dump.c
4414 (debug (vinsn_def &)): New.
4415 (debug (vinsn_def *)): New.
4416 (debug_verbose (vinsn_def &)): New.
4417 (debug_verbose (vinsn_def *)): New.
4418 (debug (expr_def &)): New.
4419 (debug (expr_def *)): New.
4420 (debug_verbose (expr_def &)): New.
4421 (debug_verbose (expr_def *)): New.
4422 (debug (vec<rtx> &)): New.
4423 (debug (vec<rtx> *)): New.
4424 * sel-sched-dump.h
4425 (extern debug (vinsn_def &)): New.
4426 (extern debug (vinsn_def *)): New.
4427 (extern debug_verbose (vinsn_def &)): New.
4428 (extern debug_verbose (vinsn_def *)): New.
4429 (extern debug (expr_def &)): New.
4430 (extern debug (expr_def *)): New.
4431 (extern debug_verbose (expr_def &)): New.
4432 (extern debug_verbose (expr_def *)): New.
4433 (extern debug (vec<rtx> &)): New.
4434 (extern debug (vec<rtx> *)): New.
4435 * sel-sched-ir.h
4436 (_list_iter_cond_expr): Make inline instead of static.
4437 * sreal.c
4438 (debug (sreal &)): New.
4439 (debug (sreal *)): New.
4440 * sreal.h
4441 (extern debug (sreal &)): New.
4442 (extern debug (sreal *)): New.
4443 * tree.h
4444 (extern debug_raw (const tree_node &)): New.
4445 (extern debug_raw (const tree_node *)): New.
4446 (extern debug (const tree_node &)): New.
4447 (extern debug (const tree_node *)): New.
4448 (extern debug_verbose (const tree_node &)): New.
4449 (extern debug_verbose (const tree_node *)): New.
4450 (extern debug_head (const tree_node &)): New.
4451 (extern debug_head (const tree_node *)): New.
4452 (extern debug_body (const tree_node &)): New.
4453 (extern debug_body (const tree_node *)): New.
4454 (extern debug (vec<tree, va_gc> &)): New.
4455 (extern debug (vec<tree, va_gc> *)): New.
4456 * tree-cfg.c
4457 (debug (struct loop &)): New.
4458 (debug (struct loop *)): New.
4459 (debug_verbose (struct loop &)): New.
4460 (debug_verbose (struct loop *)): New.
4461 * tree-dump.c: Add header dependence.
4462 * tree-flow.h
4463 (extern debug (struct loop &)): New.
4464 (extern debug (struct loop *)): New.
4465 (extern debug_verbose (struct loop &)): New.
4466 (extern debug_verbose (struct loop *)): New.
4467 * tree-data-ref.c
4468 (debug (data_reference &)): New.
4469 (debug (data_reference *)): New.
4470 (debug (vec<data_reference_p> &)): New.
4471 (debug (vec<data_reference_p> *)): New.
4472 (debug (vec<ddr_p> &)): New.
4473 (debug (vec<ddr_p> *)): New.
4474 * tree-data-ref.h
4475 (extern debug (data_reference &)): New.
4476 (extern debug (data_reference *)): New.
4477 (extern debug (vec<data_reference_p> &)): New.
4478 (extern debug (vec<data_reference_p> *)): New.
4479 (extern debug (vec<ddr_p> &)): New.
4480 (extern debug (vec<ddr_p> *)): New.
4481 * tree-ssa-alias.c
4482 (debug (pt_solution &)): New.
4483 (debug (pt_solution *)): New.
4484 * tree-ssa-alias.h
4485 (extern debug (pt_solution &)): New.
4486 (extern debug (pt_solution *)): New.
4487 * tree-ssa-alias.c
4488 (debug (_var_map &)): New.
4489 (debug (_var_map *)): New.
4490 (debug (tree_live_info_d &)): New.
4491 (debug (tree_live_info_d *)): New.
4492 * tree-ssa-alias.h
4493 (extern debug (_var_map &)): New.
4494 (extern debug (_var_map *)): New.
4495 (extern debug (tree_live_info_d &)): New.
4496 (extern debug (tree_live_info_d *)): New.
4497
be77e1e5
JH
44982013-03-28 Jan Hubicka <jh@suse.cz>
4499
4500 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
4501
777e6976
IB
45022013-03-28 Ian Bolton <ian.bolton@arm.com>
4503
4504 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
4505 record only when desired or required.
4506
9cd347ae
UB
45072013-03-28 Uros Bizjak <ubizjak@gmail.com>
4508
4509 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
4510 *vec_extractv2di_1_rex64. Use x64 isa attribute.
4511
33159866 45122013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
4513
4514 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
4515 (*andsi3_compare0_uxtw): New pattern.
4516 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
4517 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
4518
89ab31c1
JH
45192013-03-28 Jan Hubicka <jh@suse.cz>
4520
4521 * data-streamer-in.c (streamer_read_gcov_count): New function.
4522 * gimple-streamer-out.c: Include value-prof.h.
4523 (output_gimple_stmt): Output histogram.
4524 (output_bb): Use streamer_write_gcov_count.
4525 * value-prof.c: Include data-streamer.h
4526 (dump_histogram_value): Add HIST_TYPE_MAX.
4527 (stream_out_histogram_value): New function.
4528 (stream_in_histogram_value): New function.
4529 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
4530 (stream_out_histogram_value, stream_in_histogram_value): Declare.
4531 * data-streamer-out.c (streamer_write_gcov_count): New function.
4532 (streamer_write_gcov_count_stream): New function.
4533 * lto-cgraph.c (lto_output_edge): Update counter streaming.
4534 (lto_output_node): Likewise.
4535 (input_node, input_edge): Likewise.
4536 * lto-streamer-out.c (output_cfg): Update streaming.
4537 * lto-streamer-in.c (input_cfg): Likewise.
4538 * data-streamer.h (streamer_write_gcov_count,
4539 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
4540 * gimple-streamer-in.c: Include value-prof.h
4541 (input_gimple_stmt): Input histograms.
4542 (input_bb): Update profile streaming.
4543
e594716a 45442013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 4545
33159866 4546 * genmodes.c (emit_max_int): New function.
8697be17 4547 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
4548 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
4549 Added doc.
8697be17 4550 * machmode.def: Fixed comment.
89ab31c1 4551
e594716a 45522013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
4553
4554 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
4555 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
4556
74946978
MP
45572013-03-28 Marek Polacek <polacek@redhat.com>
4558 Richard Biener <rguenther@suse.de>
4559
4560 PR tree-optimization/56695
4561 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
4562 build signed result of a vector comparison.
4563 * tree-cfg.c (verify_gimple_comparison): Check that a result
4564 of a vector comparison has signed type.
4565
a64b9c26
RB
45662013-03-28 Richard Biener <rguenther@suse.de>
4567
4568 PR tree-optimization/37021
4569 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
4570 do not restrict gaps between groups.
4571 * tree-vect-stmts.c (vectorizable_load): Properly account for
4572 a gap between groups.
4573
a9dc2a2f
EB
45742013-03-28 Eric Botcazou <ebotcazou@adacore.com>
4575
4576 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
4577 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
4578 is not enabled.
4579
53cb97f9
GP
45802013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
4581
4582 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
4583 * doc/extend.texi (Named Address Spaces): Ditto.
4584 (Variable Attributes): Ditto.
4585
b802ae5c
KT
45862013-03-27 Kai Tietz <ktietz@redhat.com>
4587
eddae10a
KT
4588 * config.build: Add support for cygwin x64 target.
4589 * config.gcc: Likewise.
4590 * config.host: Likewise.
4591 * configure.ac: Likewise
4592 * configure: Regenerated.
b802ae5c 4593
8269de54
KT
45942013-03-27 Kai Tietz <ktietz@redhat.com>
4595
4596 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
4597 * config/i386/t-cygwin-w64: New file.
4598 * config/i386/cygwin-w64.h: New file.
4599 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
4600 and add support for x64-cygwin target.
4601 (CPP_SPEC): Likewise.
4602 (CXX_WRAP_SPEC_LIST): Undefine before define.
4603 (LIBGCJ_SONAME): Use 15 as version.
4604
f49b33cb
RB
46052013-03-27 Richard Biener <rguenther@suse.de>
4606
4607 PR tree-optimization/56716
4608 * tree-ssa-structalias.c (perform_var_substitution): Adjust
4609 dumping for ref nodes.
4610
b37a6ce5
MJ
46112013-03-27 Martin Jambor <mjambor@suse.cz>
4612
4613 PR tree-optimization/55334
4614 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
4615 restricted pointers to arrays.
4616
9469b9b2
GDR
46172013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4618
4619 * Makefile.in (.SUFFIXES): Add .cc.
4620 (.c.o): Apply same recipe for implicit rule .cc.o.
4621
7d24f650
RB
46222013-03-27 Richard Biener <rguenther@suse.de>
4623
4624 PR tree-optimization/37021
4625 * tree-vect-data-refs.c (vect_check_strided_load): Allow
4626 REALPART/IMAGPART_EXPRs around the supported refs.
4627 * tree-ssa-structalias.c (find_func_aliases): Assume that
4628 floating-point values are not used to transfer pointers.
4629
2f251a05
AI
46302013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4631
39385fa6
PC
4632 * target.def (TARGET_HAS_IFUNC_P): New target hook.
4633 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
4634 * doc/tm.texi: Regenerate.
4635 * targhooks.h (default_has_ifunc_p): New.
4636 * targhooks.c (default_has_ifunc_p): Ditto.
4637 * config/linux-protos.h: New file.
4638 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
4639 this hook for linux which disables support of indirect functions in
4640 android.
39385fa6
PC
4641 * config/linux-android.c: New file.
4642 * config/t-linux-android.c: Ditto.
4643 * config.gcc: Added new object file linux-android.o.
4644 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 4645 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 4646 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
4647 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
4648 doesn't support indirect functions.
4649 * configure: Regenerate.
4650
78b4e425
BC
46512013-03-27 Bin Cheng <bin.cheng@arm.com>
4652
4653 PR target/56102
4654 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
4655 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
4656 mult-word mode.
4657
a5ba7b92
AK
46582013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4659
4660 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
4661
be624986
TG
46622013-03-27 Terry Guo <terry.guo@arm.com>
4663
4664 * config/arm/arm-cores.def: Added core cortex-r7.
4665 * config/arm/arm-tune.md: Regenerated.
4666 * config/arm/arm-tables.opt: Regenerated.
4667 * doc/invoke.texi: Added entry for core cortex-r7.
4668
0a514f47
WL
46692013-03-27 Walter Lee <walt@tilera.com>
4670
4671 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
4672 double-decrement of next_scratch_regno.
4673
9332b0d2
WL
46742013-03-27 Walter Lee <walt@tilera.com>
4675
801d9b2a 4676 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
4677 input operands.
4678 (insn_v1mulus): Ditto.
4679 (insn_v2muls): Ditto.
4680
f54ea5dd
WL
46812013-03-27 Walter Lee <walt@tilera.com>
4682
e594716a 4683 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
4684 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
4685
bf60f4ca
WL
46862013-03-27 Walter Lee <walt@tilera.com>
4687
e594716a 4688 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
4689 (*sibcall_value): Ditto.
4690
e3b51eeb
WL
46912013-03-27 Walter Lee <walt@tilera.com>
4692
4693 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
4694 (insn_mnz_v8qi): ... this ...
4695 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
4696 vector equivalent.
4697 (insn_v<n>mnz): Replaced by ...
4698 (insn_v1mnz): ... this ...
4699 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
4700 equivalent.
4701 (insn_mz_<mode>): Replaced by ...
4702 (insn_mz_v8qi): ... this ...
4703 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
4704 vector equivalent.
4705 (insn_v<n>mz): Replaced by ...
4706 (insn_v1mz): ... this ...
4707 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
4708 equivalent.
4709
4fc7b145
EB
47102013-03-26 Eric Botcazou <ebotcazou@adacore.com>
4711
4712 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
4713
6f33817e
RM
47142013-03-26 Roland McGrath <mcgrathr@google.com>
4715
4716 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
4717 than fprintf with a non-constant, non-format string.
4718
93a4145b
UB
47192013-03-26 Uros Bizjak <ubizjak@gmail.com>
4720
4721 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
4722 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
4723 operand 0 predicate.
4724 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
4725 attribute. Use general_x64nomem_operand as operand 1 predicate.
4726 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
4727 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4728 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
4729 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4730 (mov<mode>_insv_1): Remove expander. Merge insn with
4731 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
4732 Use general_x64nomem_operand as operand 1 predicate.
4733 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
4734 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
4735 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4736 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
4737 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
4738 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
4739 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4740 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
4741 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
4742 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
4743 (general_x64nomem_operand): Ditto.
4744
c6a9ed5a 47452013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
4746
4747 * config/rtems.opt: Add -pthread option.
4748
31b0a960
RB
47492013-03-26 Richard Biener <rguenther@suse.de>
4750
93a4145b
UB
4751 * alias.c (find_base_term): Avoid redundant and not used recursion.
4752 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
4753 (true_dependence_1): Compute and pass base terms to base_alias_check.
4754 (write_dependence_p): Likewise.
4755 (may_alias_p): Likewise.
4756
79517551
SN
47572013-03-26 Sofiane Naci <sofiane.naci@arm.com>
4758
4759 * config/aarch64/aarch64.c (aarch64_classify_address): Support
4760 PC-relative load in SI modes and above only.
4761
a76213b9
XQ
47622013-03-26 Xinyu Qi <xyqi@marvell.com>
4763
4764 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
4765 * config/arm/iwmmxt.md (WCGR0): Update.
4766 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 4767
37ff9355
UB
47682013-03-26 Uros Bizjak <ubizjak@gmail.com>
4769
4770 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
4771 Use x64 and nox64 isa attributes.
4772
30b0317c
RB
47732013-03-26 Richard Biener <rguenther@suse.de>
4774
4775 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4776 alignment computations and rely on get_object_alignment_1
4777 for the !TYPE_P case.
4778 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
4779
cbcdb140
WL
47802013-03-26 Walter Lee <walt@tilera.com>
4781
4782 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
4783 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
4784
dd884525 47852013-03-25 Jeff Law <law@redhat.com>
be672e08 4786
33159866
UB
4787 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
4788 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
4789 wrong version of prior patch.
4790
0051d3ec
WL
47912013-03-25 Walter Lee <walt@tilera.com>
4792
4793 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
4794 TILEGX_INSN_SHUFFLEBYTES1.
4795 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
4796 shufflebytes1.
4797 (tilegx_builtins): Ditto.
4798 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
4799
065a3605
WL
48002013-03-25 Walter Lee <walt@tilera.com>
4801
4802 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
4803 (floatunssisf2): New pattern.
4804 (floatsidf2): New pattern.
4805 (floatunssidf2): New pattern.
065a3605 4806
5b2a3c82
WL
48072013-03-25 Walter Lee <walt@tilera.com>
4808
4809 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
4810 tests for constraint J, K, N, P.
4811
192ea533
WL
48122013-03-25 Walter Lee <walt@tilera.com>
4813
4814 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
4815 Use indirect/pcrel encoding.
4816 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
4817 Ditto.
4818
855e0d0b
SE
48192013-03-25 Steve Ellcey <sellcey@mips.com>
4820
4821 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
4822 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
4823 * config/mips/mips.c (mips_option_override): Set IMADD default.
4824 * config/mips/mips.h (PTF_AVOID_IMADD): New.
4825 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
4826 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
4827 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
4828 * doc/invoke.texi (-mimadd/-mno-imadd): New.
4829
39e45653
JL
48302013-03-25 Jeff Law <law@redhat.com>
4831
4832 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
4833 slightly to avoid creating and folding useless trees. Simplify
4834 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
4835
7482c470
UB
48362013-03-25 Uros Bizjak <ubizjak@gmail.com>
4837
4838 * config/i386/i386.md (*zero_extendsidi2): Merge with
4839 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
4840 * config/i386/predicates.md (x86_64_zext_operand): Rename from
4841 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
4842 targets. Clarify comment.
4843
4a53743e
MJ
48442013-03-25 Martin Jambor <mjambor@suse.cz>
4845
4846 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
4847 pass-through jump functions differently.
4848 (ipa_read_jump_function): Likewise. Also use setter functions to set
4849 up jump functions.
4850
162712de
MJ
48512013-03-25 Martin Jambor <mjambor@suse.cz>
4852
4853 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
4854 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
4855 process it.
4856 (ipa_get_indirect_edge_target): New function.
4857 (devirtualization_time_bonus): New parameter known_aggs, pass it to
4858 ipa_get_indirect_edge_target. Update all callers.
4859 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
4860 ipa_get_indirect_edge_target_1 instead of calling
4861 ipa_get_indirect_edge_target.
4862 (create_specialized_node): Pass aggvlas to
4863 ipcp_discover_new_direct_edges.
4864
a5a4c20a
KT
48652013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4866
4867 * config/arm/arm.md (f_sels, f_seld): New types.
4868 (*cmov<mode>): New pattern.
4869 * config/arm/predicates.md (arm_vsel_comparison_operator): New
4870 predicate.
4871
f992b9fc
KT
48722013-03-25 Kai Tietz <ktietz@redhat.com>
4873
4874 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
4875 POSIX-printf for mingw-hosted builds.
4876
c16fd676
RB
48772013-03-25 Richard Biener <rguenther@suse.de>
4878
4879 PR middle-end/56694
4880 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4881 must-not-throw stmt location.
4882
5ad29f12
KT
48832013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4884
4885 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4886 Emit load-acquire versions when acq is true.
4887 (arm_emit_store_exclusive): Add rel parameter.
4888 Emit store-release versions when rel is true.
4889 (arm_split_compare_and_swap): Use acquire-release instructions
4890 instead.
4891 of barriers when appropriate.
4892 (arm_split_atomic_op): Likewise.
4893 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4894 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4895 (VUNSPEC_SLX): Likewise.
4896 (VUNSPEC_LDA): Likewise.
4897 (VUNSPEC_STL): Likewise.
4898 * config/arm/sync.md (atomic_load<mode>): New pattern.
4899 (atomic_store<mode>): Likewise.
4900 (arm_load_acquire_exclusive<mode>): Likewise.
4901 (arm_load_acquire_exclusivesi): Likewise.
4902 (arm_load_acquire_exclusivedi): Likewise.
4903 (arm_store_release_exclusive<mode>): Likewise.
4904
03a7dddb
CM
49052013-03-25 Catherine Moore <clm@codesourcery.com>
4906
4907 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4908 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4909 * config/mip/predicates.md (lwsp_swsp_operand,
4910 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4911 sb16_operand, db4_operand, db7_operand, ib3_operand,
4912 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4913 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4914 andi16_operand): New predicates.
4915 * config/mips/mips.md (compression): New attribute.
4916 (enabled): New attribute.
4917 (length): Consider compression in computing length.
4918 (shift_compression): New code attribute.
4919 (*add<mode>3): New operands. Record compression.
4920 (sub<mode>3): Likewise.
4921 (one_cmpl<mode>2): Likewise.
4922 (*and<mode>3): Likewise.
4923 (*ior<mode>3): Likewise.
4924 (unnamed pattern for xor): Likewise.
4925 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4926 (*<optab><mode>3): Likewise.
4927 (*mov<mode>_internal: Likewise.
4928 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4929 (mips_unsigned_immediate_p): New.
4930 (umips_lwsp_swsp_address_p): New.
4931 (m16_based_address_p): New.
4932 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4933 (mips_unsigned_immediate_p): New prototype.
4934 (lwsp_swsp_address_p): New prototype.
4935 (m16_based_address_p): New prototype.
4936 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
4937 (mips_signed_immediate_p): New function.
4938 (m16_based_address_p): New function.
4939 (lwsp_swsp_address_p): New function.
4940 (mips_print_operand_punctuation): Recognize short delay slot insns
4941 for microMIPS.add<mode>3"
4942
f35c297f 49432013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 4944
f35c297f
KT
4945 PR target/56720
4946 * config/arm/iterators.md (v_cmp_result): New mode attribute.
4947 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
4948
051b9446
RB
49492013-03-25 Richard Biener <rguenther@suse.de>
4950
4951 PR tree-optimization/56689
4952 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
4953 any edge.
4954
374001cb
RB
49552013-03-25 Richard Biener <rguenther@suse.de>
4956
4957 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
4958 of bitmap.
4959 (memory_references): Likewise.
4960 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
4961 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
4962 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
4963 (gather_mem_refs_in_loops): Fold into ...
4964 (analyze_memory_references): ... this. Move initialization
4965 to tree_ssa_lim_initialize.
4966 (fill_always_executed_in): Rename to ...
4967 (fill_always_executed_in_1): ... this.
4968 (fill_always_executed_in): Move contains_call computation to
4969 this new function from ...
4970 (tree_ssa_lim_initialize): ... here.
4971 (tree_ssa_lim): Call fill_always_executed_in.
4972
57895947
EB
49732013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4974
4975 * postreload.c (reload_combine): Fix code detecting returns.
4976
1e1b18c1
EB
49772013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4978
4979 * function.c (emit_use_return_register_into_block): On cc0 targets,
4980 do not emit the sequence between cc0 setter and user.
4981
9216baf1
KT
49822013-03-25 Kai Tietz <ktietz@redhat.com>
4983
1e1b18c1
EB
4984 * config/i386/predicates.md (local_symbolic_operand): Interpret
4985 dll-imported symbols as none-local.
9216baf1 4986
76421b44
RB
49872013-03-25 Richard Biener <rguenther@suse.de>
4988
4989 * tree-ssa-loop-im.c (struct depend): Remove.
4990 (struct lim_aux_data): Make depends a vec of gimples.
4991 (free_lim_aux_data): Adjust.
4992 (add_dependency): Likewise.
4993 (set_level): Likewise.
4994
d154bfa2
RB
49952013-03-25 Richard Biener <rguenther@suse.de>
4996
4997 PR middle-end/56434
4998 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
4999 the pointer returned by calls with ECF_MALLOC set.
5000
2cd9804e
UB
50012013-03-24 Uros Bizjak <ubizjak@gmail.com>
5002
acef5fe0
UB
5003 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5004
50052013-03-24 Uros Bizjak <ubizjak@gmail.com>
5006
5007 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
5008 using MMXMODE mode iterator.
5009 (*move<mode>_internal): Merge with *movv2sf_internal and
5010 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5011
225ccc68
SB
50122013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5013
85c0f02d
SB
5014 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5015 (record_last_mem_set_info): Likewise.
5016
225ccc68
SB
5017 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5018 of XNEWVEC followed by memset.
5019 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5020
b64925dc
SB
50212013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5022
5023 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5024 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5025 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5026 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5027 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5028 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5029 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5030 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5031 BARRIER_P instead of GET_CODE.
5032
b9aaf52e
EB
50332013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5034
5035 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5036 inaccuracy in the probing code.
5037
5038 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5039 (ctrapdi4): Likewise.
5040
66de4d7c
EB
50412013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5042
5043 * calls.c (expand_call): Add missing guard to code handling return
5044 of non-BLKmode structures in MSB.
5045 * function.c (expand_function_end): Likewise.
5046
4f25c8fb
EB
50472013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5048
5049 * combine.c (try_combine): Adjust comment. Do not add the set of
5050 insn #0 if the destination indirectly is set or dies in insn #2.
5051 Tidy up code to distribute a new note.
5052
23b7850d
UB
50532013-03-22 Uros Bizjak <ubizjak@gmail.com>
5054
5055 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5056 also for alternatives 16 and 17.
5057
bed852cf
UB
50582013-03-22 Uros Bizjak <ubizjak@gmail.com>
5059
5060 * config/i386/sse.md (*mov<mode>_internal): Merge with
5061 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5062 Emit insn template depending on type attribute. Use
5063 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5064 movd instead of movq mnemonic for interunit moves. Rewrite mode
5065 attribute calculation. Remove unit attribute calculation.
5066 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5067 Set prefix_data16 attribute for DImode ssemov types.
5068 Use Ym instead of y for SSE-MMX conversion alternatives.
5069 Reorder operand constraints.
5070
1e8a7937
SB
50712013-03-22 Steven Bosscher <steven@gcc.gnu.org>
5072
5073 * df.h (df_insn_delete): Adjust prototype.
5074 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5075 and let it decide whether mark the basic block dirty.
5076 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5077 * df-scan.c (df_insn_info_delete): New helper function, split
5078 off from df_insn_delete.
5079 (df_scan_free_bb_info): Use it.
5080 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5081 Likewise.
5082 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
5083 that the insn is actually an insn and it has a non-NULL basic block.
5084 Do not mark basic block dirty if only deleting a DEBUG_INSN.
5085
e14d094c
RB
50862013-03-22 Richard Biener <rguenther@suse.de>
5087
5088 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5089 dep_ref members.
5090 (mem_ref_alloc): Do not allocate them.
5091 (refs_independent_p): Do not query or maintain a cache.
5092
e9cf7316
RB
50932013-03-22 Richard Biener <rguenther@suse.de>
5094
5095 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5096 (gather_mem_refs_in_loops): Do not compute it.
5097 (analyze_memory_references): Do not allocate it.
5098 (tree_ssa_lim_finalize): Do not free it.
5099 (for_all_locs_in_loop): Do not query all_refs_in_loop.
5100
f046e81b
RB
51012013-03-22 Richard Biener <rguenther@suse.de>
5102
5103 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 5104
a05c0ddf
IB
51052013-03-22 Ian Bolton <ian.bolton@arm.com>
5106
5107 * config/aarch64/aarch64.c (aarch64_print_operand): New
5108 format specifier for printing a constant in hex.
5109 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5110 format specifier for printing second operand.
5111
c00217fc
RB
51122013-03-22 Richard Biener <rguenther@suse.de>
5113
5114 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5115 bitmaps.
5116 (gather_mem_refs_in_loops): Perform store accumulation here.
5117 (create_vop_ref_mapping_loop): Remove.
5118 (create_vop_ref_mapping): Likewise.
5119 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 5120 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
5121 (record_indep_loop): Remove.
5122 (record_dep_loop): New function.
5123 (ref_indep_loop_p_1): Adjust to only walk over references
5124 in the loop, not its subloops.
5125 (ref_indep_loop_p): Rename to ...
5126 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
5127 maintaining a more fine-grained cache.
5128 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
5129 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
5130
15d19bf8
RB
51312013-03-22 Richard Biener <rguenther@suse.de>
5132
5133 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
5134 (struct mem_ref): Make accesses_in_loop a vec of a vec of
5135 aggregate mem_ref_loc.
5136 (free_mem_ref_locs): Inline into ...
5137 (memref_free): ... this and adjust.
5138 (mem_ref_alloc): Adjust.
5139 (mem_ref_locs_alloc): Remove.
5140 (record_mem_ref_loc): Adjust.
5141 (get_all_locs_in_loop): Rewrite into ...
5142 (for_all_locs_in_loop): ... this iterator.
5143 (rewrite_mem_ref_loc): New functor.
5144 (rewrite_mem_refs): Use for_all_locs_in_loop.
5145 (sm_set_flag_if_changed): New functor.
5146 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
5147 (ref_always_accessed): New functor.
5148 (ref_always_accessed_p): Use for_all_locs_in_loop.
5149
6f37411d
MG
51502013-03-21 Marc Glisse <marc.glisse@inria.fr>
5151
5152 * tree-pass.h (PROP_gimple_lvec): New.
5153 * passes.c (dump_properties): Handle PROP_gimple_lvec.
5154 (init_optimization_passes): Move pass_lower_vector.
5155 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
5156 PROP_gimple_lvec.
5157 (pass_lower_vector): Provide PROP_gimple_lvec.
5158 (pass_lower_vector_ssa): Likewise.
5159 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
5160
511ef689
MW
51612013-03-21 Mark Wielaard <mjw@redhat.com>
5162
5163 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
5164
cc1df30b
UB
51652013-03-21 Uros Bizjak <ubizjak@gmail.com>
5166
5167 * config/i386/i386.md (*movdi_internal): Disparage slightly
5168 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
5169 conversion alternatives.
5170
c845cfe1
JJ
51712013-03-21 Jakub Jelinek <jakub@redhat.com>
5172
37e99116
JJ
5173 PR middle-end/48087
5174 * diagnostic.def (DK_WERROR): New kind.
5175 * diagnostic.h (werrorcount): Define.
5176 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
5177 promoted to DK_ERROR, increment DK_WERROR counter instead of
5178 DK_ERROR counter.
5179 * toplev.c (toplev_main): Call print_ignored_options even if
5180 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
5181 even if just werrorcount is non-zero.
5182
c845cfe1
JJ
5183 PR debug/55608
5184 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
5185 on failure.
5186 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
5187 (string_cst_pool_decl): New function.
5188 (optimize_one_addr_into_implicit_ptr): New function.
5189 (resolve_addr_in_expr): Optimize DWARF location expression
5190 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
5191 which doesn't live in memory, but has DW_AT_location or
5192 DW_AT_const_value, or refers to a string literal, into
5193 DW_OP_GNU_implicit_pointer.
5194 (optimize_location_into_implicit_ptr): New function.
5195 (resolve_addr): If removing DW_AT_location of a variable because
5196 it was DW_OP_addr of address of the variable, but the variable doesn't
5197 live in memory, try to emit const value attribute for the initializer.
5198
08e0cda6
MG
51992013-03-21 Marc Glisse <marc.glisse@inria.fr>
5200
5201 * tree.h (VECTOR_TYPE_P): New macro.
5202 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
5203 TYPE_MODE): Use it.
5204 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
5205 VEC_COND_EXPR cannot be lvalues.
5206 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
5207
d08633b4
MG
52082013-03-21 Marc Glisse <marc.glisse@inria.fr>
5209
5210 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
5211 Restrict the transformation to equal modes.
5212
e6647190
RB
52132013-03-21 Richard Biener <rguenther@suse.de>
5214
5215 PR tree-optimization/39326
5216 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
5217 (MEM_ANALYZABLE): Adjust.
5218 (record_mem_ref_loc): Move bitmap ops ...
5219 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
5220 unanalyzable refs, do not record locations for it.
5221 (analyze_memory_references): Allocate ref zero as shared
5222 unanalyzable ref.
5223 (refs_independent_p): Do not test for unanalyzed mems here.
5224 (ref_indep_loop_p_1): Special-case disambiguation against
5225 the unanalyzed ref.
cc1df30b 5226 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 5227
65074f54
CL
52282013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
5229
5230 * config/arm/arm-protos.h (tune_params): Add
5231 prefer_neon_for_64bits field.
5232 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
5233 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
5234 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5235 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5236 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
5237 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5238 (arm_option_override): Handle -mneon-for-64bits new option.
5239 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
5240 (prefer_neon_for_64bits): Declare new variable.
5241 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 5242 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
5243 (arch_enabled): Handle new arch types. Remove support for onlya8
5244 and nota8.
5245 (one_cmpldi2): Use new arch names.
bc5faa5b 5246 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
5247 * config/arm/arm.opt (mneon-for-64bits): Add option.
5248 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
5249 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
5250 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
5251 of onlya8.
5252 * doc/invoke.texi (-mneon-for-64bits): Document.
5253
5a2d2a79
RB
52542013-03-21 Richard Biener <rguenther@suse.de>
5255
5256 PR tree-optimization/39326
5257 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
5258 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 5259 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 5260
5abe1e05
RB
52612013-03-21 Richard Biener <rguenther@suse.de>
5262
5263 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
5264 (vect_insert_into_interleaving_chain): Likewise.
5265 (vect_drs_dependent_in_basic_block): Inline ...
5266 (vect_slp_analyze_data_ref_dependence): ... here. New function,
5267 split out from ...
5268 (vect_analyze_data_ref_dependence): ... here. Simplify.
5269 (vect_check_interleaving): Simplify.
5270 (vect_analyze_data_ref_dependences): Likewise. Split out ...
5271 (vect_slp_analyze_data_ref_dependences): ... this new function.
5272 (dr_group_sort_cmp): New function.
5273 (vect_analyze_data_ref_accesses): Compute data-reference groups
5274 here instead of in vect_analyze_data_ref_dependence. Use
5275 a more efficient algorithm.
5276 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
5277 vect_slp_analyze_data_ref_dependences. Call
5278 vect_analyze_data_ref_accesses earlier.
5279 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5280 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
5281 (vect_slp_analyze_data_ref_dependences): New prototype.
5282
cad1735b
RB
52832013-03-21 Richard Biener <rguenther@suse.de>
5284
5285 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
5286 ref is stored in the loop.
5287 (find_refs_for_sm): Walk only over all stores.
5288 (store_motion_loop): Allocate from lim_bitmap_obstack.
5289 (store_motion): Likewise.
5290
141310ef
RB
52912013-03-21 Richard Biener <rguenther@suse.de>
5292
5293 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
5294 Update virtual SSA form.
5295
5022315a
RO
52962013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5297
5298 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
5299 * configure: Regenerate.
5300 * config.in: Regenerate.
5301 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
5302 if !HAVE_LD_EH_FRAME_CIEV3.
5303
50d4421c
RB
53042013-03-21 Richard Biener <rguenther@suse.de>
5305
5306 * tree-cfg.c (verify_expr_no_block): New function.
5307 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
5308 nor DECL_VALUE_EXPR have locations with associated blocks.
5309 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
5310 (clear_unused_block_pointer): Remove code dealing with
5311 blocks in DECL_DEBUG_EXPR locations.
5312
839b422f
RB
53132013-03-21 Richard Biener <rguenther@suse.de>
5314
5315 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
5316 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
5317 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
5318 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
5319 instead of DECL_DEBUG_EXPR_IS_FROM.
5320 * gimplify.c (gimplify_modify_expr): Likewise.
5321 * tree-cfg.c (verify_expr_location_1): Likewise.
5322 * tree-complex.c (create_one_component_var): Likewise.
5323 * tree-sra.c (create_access_replacement): Likewise.
5324 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
5325 (clear_unused_block_pointer): Likewise.
5326 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5327 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5328 * var-tracking.c (var_debug_decl): Likewise.
5329 (track_expr_p): Likewise.
5330 * tree-inline.c (add_local_variables): Likewise. Set
5331 DECL_HAS_DEBUG_EXPR_P after copying it.
5332 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5333 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
5334
fe04878d
UB
53352013-03-21 Uros Bizjak <ubizjak@gmail.com>
5336
5337 PR bootstrap/56656
5338 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
5339 * configure: Regenerate.
5340 * config.in: Regenerate.
5341 * config/i386/i386.md (*movdf_internal): Use
5342 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5343 movd instead of movq mnemonic for interunit moves.
5344 (*movdi_internal): Ditto.
5345
bd059b26 53462013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
5347
5348 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
5349 (abd<mode>_3): New pattern.
5350 (aba<mode>_3): New pattern.
5351 (fabd<mode>_3): New pattern.
5352
bd059b26 53532013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
5354
5355 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
5356 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
5357 occurrence of REGISTER_PREFIX as its empty string.
5358
4f1f78b9
JL
53592013-03-20 Jeff Law <law@redhat.com>
5360
5361 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
5362 addititional equivalences for equality comparisons between an SSA_NAME
5363 and a constant where the SSA_NAME was set from a widening conversion.
5364
327a1118
WL
53652013-03-20 Walter Lee <walt@tilera.com>
5366
5367 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
5368
813e0036
UB
53692013-03-20 Uros Bizjak <ubizjak@gmail.com>
5370
5371 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
5372 depending on type attribute.
5373 (*movti_internal): Ditto.
5374 (*movtf_internal): Ditto.
5375 (*movxf_internal): Ditto.
5376 (*movdf_internal): Ditto.
5377 (*movsf_internal): Ditto.
5378
7cf34aae
UB
53792013-03-20 Uros Bizjak <ubizjak@gmail.com>
5380
5381 * config/i386/i386.md (*movti_internal): Set prefix attribute to
5382 maybe_vex for sselog1 and ssemov types.
5383 (*movdi_internal): Reorder operand constraints.
5384 (*movsi_internal): Ditto. Set prefix attribute to
5385 maybe_vex for sselog1 and ssemov types.
5386 (*movtf_internal): Set prefix attribute to maybe_vex
5387 for sselog1 and ssemov types.
5388 (*movdf_internal): Ditto. Set prefix_data16 attribute for
5389 DImode ssemov types. Reorder operand constraints.
5390 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
5391 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
5392 attribute for SImode ssemov types. Reorder operand constraints.
5393
19321415
MJ
53942013-03-20 Martin Jambor <mjambor@suse.cz>
5395
5396 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
5397 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
5398
c6d5ff83
MM
53992013-03-20 Pat Haugen <pthaugen@us.ibm.com>
5400
5401 * config/rs6000/predicates.md (indexed_address, update_address_mem
5402 update_indexed_address_mem): New predicates.
5403 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
5404 attribute for load/store instructions.
5405 * config/rs6000/dfp.md (movsd_store): Likewise.
5406 (movsd_load): Likewise.
5407 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
5408 (unnamed HI->DI extend define_insn): Likewise.
5409 (unnamed SI->DI extend define_insn): Likewise.
5410 (unnamed QI->SI extend define_insn): Likewise.
5411 (unnamed QI->HI extend define_insn): Likewise.
5412 (unnamed HI->SI extend define_insn): Likewise.
5413 (unnamed HI->SI extend define_insn): Likewise.
5414 (extendsfdf2_fpr): Likewise.
5415 (movsi_internal1): Likewise.
5416 (movsi_internal1_single): Likewise.
5417 (movhi_internal): Likewise.
5418 (movqi_internal): Likewise.
5419 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
5420 attribute for load/store instructions.
5421 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
5422 instructions.
5423 (mov<mode>_softfloat): Likewise.
5424 (mov<mode>_hardfloat32): Likewise.
5425 (mov<mode>_hardfloat64): Likewise.
5426 (mov<mode>_softfloat64): Likewise.
5427 (movdi_internal32): Likewise.
5428 (movdi_internal64): Likewise.
5429 (probe_stack_<mode>): Likewise.
5430
54312013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
5432
5433 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
5434 floating point, and decimal floating point to reload iterator.
5435
5436 * config/rs6000/constraints.md (wl constraint): New constraints to
5437 return FLOAT_REGS if certain options are used to reduce the number
5438 of separate patterns that exist in the file.
5439 (wx constraint): Likewise.
5440 (wz constraint): Likewise.
5441
5442 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5443 -mdebug=reg, print wg, wl, wx, and wz constraints.
5444 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5445 Initialize the reload functions for 64-bit binary/decimal floating
5446 point types.
5447 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5448 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5449 create the buffer on the stack to overcome not having a 32-bit
5450 load and store.
5451 (rs6000_emit_move): Likewise.
5452 (rs6000_secondary_memory_needed_rtx): Likewise.
5453 (rs6000_alloc_sdmode_stack_slot): Likewise.
5454 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5455 via xxlxor, just like DFmode 0.0.
5456
5457 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
5458 define as 1 if we are running on a power7 or newer.
5459 (enum r6000_reg_class_enum): Add new constraints.
5460
5461 * config/rs6000/dfp.md (movsd): Delete, combine with binary
5462 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5463 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 5464 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
5465 (movsd splitter): Likewise.
5466 (movsd_hardfloat): Likewise.
5467 (movsd_softfloat): Likewise.
5468
5469 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
5470 binary and decimal floating point moves.
5471 (fmove_ok): New attributes to combine binary and decimal floating
5472 point moves, and to combine power6x (mfpgpr) moves along normal
5473 floating moves.
5474 (real_value_to_target): Likewise.
5475 (f32_lr): Likewise.
5476 (f32_lm): Likewise.
5477 (f32_li): Likewise.
5478 (f32_sr): Likewise.
5479 (f32_sm): Likewise.
5480 (f32_si): Likewise.
5481 (movsf): Combine binary and decimal floating point moves. Combine
5482 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 5483 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
5484 (mov<mode> for SFmode/SDmode); Likewise.
5485 (SFmode/SDmode splitters): Likewise.
5486 (movsf_hardfloat): Likewise.
5487 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
5488 (movsf_softfloat): Likewise.
5489 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
5490
5491 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
5492 wx and wz constraints.
5493
5494 * config/rs6000/constraints.md (wg constraint): New constraint to
5495 return FLOAT_REGS if -mmfpgpr (power6x) was used.
5496
5497 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
5498 constraint.
5499
5500 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5501 -mdebug=reg, print wg, wl, wx, and wz constraints.
5502 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5503 Initialize the reload functions for 64-bit binary/decimal floating
5504 point types.
5505 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5506 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5507 create the buffer on the stack to overcome not having a 32-bit
5508 load and store.
5509 (rs6000_emit_move): Likewise.
5510 (rs6000_secondary_memory_needed_rtx): Likewise.
5511 (rs6000_alloc_sdmode_stack_slot): Likewise.
5512 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5513 via xxlxor, just like DFmode 0.0.
5514
c6d5ff83
MM
5515 * config/rs6000/dfp.md (movdd): Delete, combine with binary
5516 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5517 with other moves by using conditional constraits (wg). Use LFIWZX
5518 and STFIWX for loading SDmode on power7.
5519 (movdd splitters): Likewise.
5520 (movdd_hardfloat32): Likewise.
5521 (movdd_softfloat32): Likewise.
5522 (movdd_hardfloat64_mfpgpr): Likewise.
5523 (movdd_hardfloat64): Likewise.
5524 (movdd_softfloat64): Likewise.
5525
5526 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
5527 64-bit binary and decimal floating point moves.
5528 (FMOVE64X): Likewise.
5529 (movdf): Combine 64-bit binary and decimal floating point moves.
5530 Combine power6x (mfpgpr) moves with other moves by using
5531 conditional constraits (wg).
5532 (mov<mode> for DFmode/DDmode): Likewise.
5533 (DFmode/DDmode splitters): Likewise.
5534 (movdf_hardfloat32): Likewise.
5535 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
5536 (movdf_softfloat32): Likewise.
5537 (movdf_hardfloat64_mfpgpr): Likewise.
5538 (movdf_hardfloat64): Likewise.
5539 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
5540 (movdf_softfloat64): Likewise.
5541 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
5542 (reload_<mode>_load): Move to later in the file so they aren't in
5543 the middle of the floating point move insns.
5544 (reload_<mode>_store): Likewise.
5545
5546 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
5547 constraint.
5548
5549 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
5550 constraint if -mdebug=reg.
bd059b26
UB
5551 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
5552 Enable using dd reload support if needed.
c6d5ff83
MM
5553
5554 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
5555 binary and decimal floating point moves in rs6000.md.
5556 (movtd_internal): Likewise.
5557
5558 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
5559 decimal floating point moves.
5560 (movtf): Likewise.
5561 (movtf_internal): Likewise.
5562 (mov<mode>_internal, TDmode/TFmode): Likewise.
5563 (movtf_softfloat): Likewise.
5564 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
5565
5566 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
5567 movdi_internal64, using wg constraint for move direct operations.
5568 (movdi_internal64): Likewise.
5569
5570 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
5571 MODES_TIEABLE_P for selected modes. Print the numerical value of
5572 the various virtual registers. Use GPR/FPR first/last values,
5573 instead of hard coding the register numbers. Print which modes
5574 have reload functions registered.
bd059b26
UB
5575 (rs6000_option_override_internal): If -mdebug=reg, trace the options
5576 settings before/after setting cpu, target and subtarget settings.
5577 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
5578 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
5579 (rs6000_secondary_reload_fail): Likewise.
5580 (rs6000_secondary_reload_inner): Likewise.
5581
5582 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
5583 macros for first/last GPR and FPR registers.
5584 (LAST_GPR_REGNO): Likewise.
5585 (FIRST_FPR_REGNO): Likewise.
5586 (LAST_FPR_REGNO): Likewise.
5587
5588 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
5589 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
5590 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
5591 (vcond<mode><mode>): Likewise.
5592 (vcondu<mode><mode>): Likewise.
5593 (vector_gtu<mode>): Likewise.
5594 (vector_gte<mode>): Likewise.
5595 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 5596 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
5597 (ior<mode>3): Likewise.
5598 (and<mode>3): Likewise.
5599 (one_cmpl<mode>2): Likewise.
5600 (nor<mode>3): Likewise.
5601 (andc<mode>3): Likewise.
5602
5603 * config/rs6000/constraints.md (wt constraint): New constraint
5604 that returns VSX_REGS if TImode is allowed in VSX registers.
5605
5606 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
5607 constant under VSX.
5608
5609 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
5610 similar to TImode, but it is restricted to being in the GPRs.
5611
5612 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
5613 TImode to occupy a single VSX register.
5614
5615 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
5616 -mvsx-timode for power7/power8.
5617 (power7 cpu): Likewise.
5618 (power8 cpu): Likewise.
5619
5620 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
5621 sure that TFmode/TDmode take up two registers if they are ever
5622 allowed in the upper VSX registers.
5623 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
5624 registers.
5625 (rs6000_init_hard_regno_mode_ok): Likewise.
5626 (rs6000_debug_reg_global): Add debugging for PTImode and wt
5627 constraint. Print if LRA is turned on.
5628 (rs6000_option_override_internal): Give an error if -mvsx-timode
5629 and VSX is not enabled.
5630 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
5631 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
5632 to reg+offset addressing. Use PTImode when checking offset
5633 addresses for validity.
5634 (reg_offset_addressing_ok_p): Likewise.
5635 (rs6000_legitimate_offset_address_p): Likewise.
5636 (rs6000_legitimize_address): Likewise.
5637 (rs6000_legitimize_reload_address): Likewise.
5638 (rs6000_legitimate_address_p): Likewise.
5639 (rs6000_eliminate_indexed_memrefs): Likewise.
5640 (rs6000_emit_move): Likewise.
5641 (rs6000_secondary_reload): Likewise.
5642 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
5643 reloads to fpr registers to continue to use reg+offset addressing,
5644 but 64-bit reloads to altivec registers need reg+reg addressing.
5645 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
5646 it. Treat LO_SUM like a PLUS operation.
5647 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 5648 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
5649 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
5650 registers to share a register with a smaller sized type, since VSX
5651 puts scalars in the upper 64-bits.
5652 (print_operand): Add support for PTImode.
5653 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
5654 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
5655 registers, but don't have arithmetic support.
5656 (rs6000_memory_move_cost): Add test for VSX.
5657 (rs6000_opt_masks): Add -mvsx-timode.
5658
5659 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
5660 for TImode.
5661 (VSs): Likewise.
5662 (VSr): Use wt constraint for TImode.
5663 (VSv): Drop TImode support.
5664 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
5665 (vsx_movti_64bit): Likewise.
5666 (vsx_movti_32bit): Likewise.
5667 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
5668 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
5669 one '?' on the appropriate output constraint. Do not allow TImode
5670 logical operations on 32-bit systems.
5671 (vsx_ior<mode>3): Likewise.
5672 (vsx_xor<mode>3): Likewise.
5673 (vsx_one_cmpl<mode>2): Likewise.
5674 (vsx_nor<mode>3): Likewise.
5675 (vsx_andc<mode>3): Likewise.
5676 (vsx_concat_<mode>): Likewise.
5677 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
5678
5679 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
5680 OPTION_MASK_VSX_TIMODE.
5681 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
5682 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
5683
5684 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
5685 (TI2 iterator): New iterator for TImode, PTImode.
5686 (wd mode attribute): Add values for vector types.
bd059b26
UB
5687 (movti_string): Replace TI move operations with operations for TImode
5688 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
5689 (mov<mode>_string, TImode/PTImode): Likewise.
5690 (movti_ppc64): Likewise.
5691 (mov<mode>_ppc64, TImode/PTImode): Likewise.
5692 (TI mode splitters): Likewise.
5693
5694 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
5695 constraint.
5696
1fc5eced
MG
56972013-03-20 Marc Glisse <marc.glisse@inria.fr>
5698
5699 PR tree-optimization/56355
5700 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
5701 Also handle integers with undefined overflow.
5702
22c4c869
CM
57032013-03-20 Catherine Moore <clm@codesourcery.com>
5704 Maciej W. Rozycki <macro@codesourcery.com>
5705 Tom de Vries <tom@codesourcery.com>
5706 Nathan Sidwell <nathan@codesourcery.com>
5707 Iain Sandoe <iain@codesourcery.com>
5708 Nathan Froyd <froydnj@codesourcery.com>
5709 Chao-ying Fu <fu@mips.com>
5710
5711 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 5712 Document new function attributes.
22c4c869
CM
5713 * doc/invoke.texi (minterlink-compressed, mmicromips,
5714 m14k, m14ke, m14kec): Document new options.
5715 (minterlink-mips16): Update documentation.
5716 * doc/md.texi (ZC, ZD): Document new constraints.
5717 * configure.ac (gcc_cv_as_micromips): Check if linker
5718 supports the .set micromips directive.
5719 * configure: Regenerate.
5720 * config.in: Regenerate.
5721 * config/mips/mips-tables.opt: Regenerate.
5722 * config/mips/micromips.md: New file.
5723 * constraints.md (ZC, ZD): New constraints.
5724 * config/mips/predicates.md (movep_src_register): New predicate.
5725 (movep_src_operand): New predicate.
5726 (non_volatile_mem_operand): New predicate.
5727 * config/mips/mips.md (multimem): New type.
5728 (length): Differentiate between 17-bit and 18-bit branch offsets.
5729 (MOVEP1, MOVEP2): New mode iterator.
33159866 5730 (mov_<load>l): Use ZC constraint.
22c4c869
CM
5731 (mov_<load>r): Likewise.
5732 (mov_<store>l): Likewise.
5733 (mov_<store>r): Likewise.
5734 (*branch_equality<mode>_inverted): Add microMIPS support.
5735 (*branch_equality<mode>): Likewise.
5736 (*jump_absolute): Likewise.
5737 (indirect_jump_<mode>): Likewise.
5738 (tablejump_<mode>): Likewise.
5739 (<optab>_internal): Likewise.
5740 (sibcall_internal): Likewise.
5741 (sibcall_value_internal): Likewise.
5742 (prefetch): Use constraint ZD.
5743 * config/mips/mips.opt (minterlink-compressed): New option.
5744 (minterlink-mips16): Now an alias for minterlink-compressed.
5745 (mmicromips): New option.
5746 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5747 (compare_and_swap_12): Likewise.
5748 (sync_add<mode>): Likewise.
5749 (sync_<optab>_12): Likewise.
5750 (sync_old_<optab>_12): Likewise.
5751 (sync_new_<optab>_12): Likewise.
5752 (sync_nand_12): Likewise.
5753 (sync_old_nand_12): Likewise.
5754 (sync_new_nand_12): Likewise.
5755 (sync_sub<mode>): Likewise.
5756 (sync_old_add<mode>): Likewise.
5757 (sync_old_sub<mode>): Likewise.
5758 (sync_new_add<mode>): Likewise.
5759 (sync_new_sub<mode>): Likewise.
5760 (sync_<optab><mode>): Likewise.
5761 (sync_old_<optab><mode>): Likewise.
5762 (sync_new_<optab><mode>): Likewise.
5763 (sync_nand<mode>): Likewise.
5764 (sync_old_nand<mode>): Likewise.
5765 (sync_new_nand<mode>): Likewise.
5766 (sync_lock_test_and_set<mode>): Likewise.
5767 (test_and_set_12): Likewise.
5768 (atomic_compare_and_swap<mode>): Likewise.
5769 (atomic_exchange<mode>_llsc): Likewise.
5770 (atomic_fetch_add<mode>_llsc): Likewise.
5771 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5772 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5773 (umips_save_restore_pattern_p): Likewise.
5774 (umips_load_store_pair_p): Likewise.
5775 (umips_output_load_store_pair): Likewise.
5776 (umips_movep_target_p): Likewise.
5777 (umips_12bit_offset_address_p): Likewise.
5778 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5779 (mips_base_mips16): Rename this...
5780 (mips_base_compression_flags): ...to this. Update all uses.
5781 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5782 (mips_mips16_decl_p): Delete.
5783 (mips_nomips16_decl_p): Delete.
33159866 5784 (mips_get_compress_on_flags): New function.
22c4c869
CM
5785 (mips_get_compress_off_flags): New function.
5786 (mips_get_compress_mode): New function.
5787 (mips_get_compress_on_name): New function.
5788 (mips_get_compress_off_name): New function.
5789 (mips_insert_attributes): Support multiple compression types.
5790 (mips_merge_decl_attributes): Likewise.
5791 (umips_12bit_offset_address_p): New function.
5792 (mips_start_function_definition): Emit .set micromips directive.
5793 (mips_call_may_need_jalx_p): New function.
5794 (mips_function_ok_for_sibcall): Add microMIPS support.
5795 (mips_print_operand_punctuation): Support short delay slots and
5796 compact jumps.
5797 (umips_swm_mask, umips_swm_encoding): New.
5798 (umips_build_save_restore): New function.
5799 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5800 (was_mips16_p): Remove.
5801 (old_compression_mode): New.
5802 (mips_set_compression_mode): New function.
5803 (mips_set_current_function): Add microMIPS support.
5804 (mips_option_override): Likewise.
5805 (umips_save_restore_pattern_p): New function.
5806 (umips_output_save_restore): New function.
5807 (umips_load_store_pair_p_1): New function.
5808 (umips_load_store_pair_p): New function.
5809 (umips_output_load_store_pair_1): New function.
5810 (umips_output_load_store_pair): New function.
5811 (umips_movep_target_p) New function.
5812 (mips_prepare_pch_save): Add microMIPS support.
5813 * config/mips/mips.h (TARGET_COMPRESSION): New.
5814 (TARGET_CPU_CPP_BUILTINS): Update macro
5815 to use new compression flags and to support microMIPS.
5816 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5817 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5818 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5819 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5820 (ASM_SPEC): Support mmicromips and mno-micromips.
5821 (M16STORE_REG_P): New macro.
5822 (MIPS_CALL): Support TARGET_MICROMIPS.
5823 (MICROMIPS_J): New macro.
5824 (mips_base_mips16): Rename this...
5825 (mips_base_compression_flags): ...to this.
5826 (UMIPS_12BIT_OFFSET_P): New macro.
5827 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5828 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
58292013-03-20 Richard Biener <rguenther@suse.de>
5830
5831 PR tree-optimization/56661
5832 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
5833 the result does not have to be distinct.
5834
54714c68
RB
58352013-03-20 Richard Biener <rguenther@suse.de>
5836
5837 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
5838 remap_gimple_op_r.
5839
cca1130d
BS
58402013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5841 Steven Bosscher <steven@gcc.gnu.org>
5842
5843 PR rtl-optimization/56605
5844 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
5845
2a930377
UB
58462013-03-20 Uros Bizjak <ubizjak@gmail.com>
5847
5848 PR bootstrap/56656
5849 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
5850 that require movd instead of movq.
5851
d6d305fe
RB
58522013-03-20 Richard Biener <rguenther@suse.de>
5853
5854 * tree-ssa-structalias.c (struct variable_info): Add pointer
5855 to the first field of an aggregate with sub-vars. Make
5856 this and the pointer to the next subfield its ID.
5857 (vi_next): New function.
5858 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
5859 storedanything_id, integer_id): Increment by one.
5860 (new_var_info, get_call_vi, lookup_call_clobber_vi,
5861 get_call_clobber_vi): Adjust.
5862 (solution_set_expand): Simplify and speedup.
5863 (solution_set_add): Inline into ...
5864 (set_union_with_increment): ... this. Adjust accordingly.
5865 (do_sd_constraint): Likewise.
5866 (do_ds_constraint): Likewise.
5867 (do_complex_constraint): Simplify.
5868 (build_pred_graph): Adjust.
5869 (solve_graph): Likewise. Simplify and speedup.
5870 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
5871 get_constraint_for_component_ref, get_constraint_for_1,
5872 first_vi_for_offset, first_or_preceding_vi_for_offset,
5873 create_function_info_for, create_variable_info_for_1,
5874 create_variable_info_for, intra_create_variable_infos): Adjust.
5875 (init_base_vars): Push NULL for ID zero.
5876 (compute_points_to_sets): Adjust.
5877
a271b42d
RB
58782013-03-20 Richard Biener <rguenther@suse.de>
5879
5880 * cfgloop.c (verify_loop_structure): Streamline and avoid
5881 ICEing on corrupt loop tree.
5882 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5883 loop tree.
5884
ebd65954
RB
58852013-03-20 Richard Biener <rguenther@suse.de>
5886
5887 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5888 check whether an SSA update is needed.
5889
4547b7ee
RS
58902013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
5891
5892 * config/mips/constraints.md (T): Rename to...
5893 (Yf): ...this.
5894 (U): Rename to...
5895 (Yd): ...this.
5896 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5897 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5898
0b8cdc58
IB
58992013-03-19 Ian Bolton <ian.bolton@arm.com>
5900
5901 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5902 (*subsi3_carryin_uxtw): Likewise.
5903
5977a10d
IB
59042013-03-19 Ian Bolton <ian.bolton@arm.com>
5905
5906 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5907 (*rorsi3_insn_uxtw): Likewise.
5908
bd83ff2c
IB
59092013-03-19 Ian Bolton <ian.bolton@arm.com>
5910
5911 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5912 (*extrsi5_insn_uxtw): Likewise.
5913
ba65123c
RB
59142013-03-19 Richard Biener <rguenther@suse.de>
5915
5916 PR tree-optimization/56273
5917 * passes.c (init_optimization_passes): Move second VRP after DOM.
5918
2eac0476
UB
59192013-03-19 Uros Bizjak <ubizjak@gmail.com>
5920
5921 * config/i386/i386.md (*movti_internal): Merge from
5922 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
5923 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
5924 nox64 isa attributes.
5925
6e55eda7
RB
59262013-03-18 Richard Biener <rguenther@suse.de>
5927
5928 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5929 (unite): Likewise.
5930 (merge_node_constraints): Likewise.
5931 (build_succ_graph): Likewise.
5932 (valid_graph_edge): Inline into single caller.
5933 (unify_nodes): Likewise. Use bitmap_set_bit return value
5934 and cache varinfo.
5935 (scc_visit): Fix formatting and variable use.
5936 (do_sd_constraint): Use gcc_checking_assert.
5937 (do_ds_constraint): Likewise.
5938 (do_complex_constraint): Likewise.
5939 (condense_visit): Likewise. Cleanup.
5940 (dump_pred_graph): New function.
5941 (perform_var_substitution): Dump the pred-graph before
5942 variable substitution.
5943 (find_equivalent_node): Use gcc_checking_assert.
5944 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
5945
4bdd44c4
RB
59462013-03-18 Richard Biener <rguenther@suse.de>
5947
5948 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5949 Remove cond_expr_stmt_list argument and do not gimplify the
5950 built expression.
5951 (vect_loop_versioning): Adjust.
5952 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5953 Cleanup to use less temporaries.
5954 (vect_create_data_ref_ptr): Cleanup.
5955
38c56a5b
JJ
59562013-03-18 Jakub Jelinek <jakub@redhat.com>
5957
5958 PR tree-optimization/56635
5959 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
5960 require types_compatible_p types.
5961
20b2e6a0
NC
59622013-03-18 Nick Clifton <nickc@redhat.com>
5963
a6178a25
NC
5964 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
5965 spurious backslash.
5966
20b2e6a0
NC
5967 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
5968 Add missing line to comment describing function.
5969
92608d0e
RB
59702013-03-18 Richard Biener <rguenther@suse.de>
5971
5972 PR tree-optimization/56210
5973 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5974 Handle string / character search functions.
5975 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5976
31348d52
RB
59772013-03-18 Richard Biener <rguenther@suse.de>
5978
5979 PR middle-end/56483
5980 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
5981 and implement properly.
5982 * gimple.h (gimple_cond_single_var_p): Remove.
5983
fcac74a1
RB
59842013-03-18 Richard Biener <rguenther@suse.de>
5985
5986 * tree-data-ref.h (find_data_references_in_loop): Declare.
5987 * tree-data-ref.c (get_references_in_stmt): Use a stack
5988 vector pre-allocated in the callers.
5989 (find_data_references_in_stmt): Adjust.
5990 (graphite_find_data_references_in_stmt): Likewise.
5991 (create_rdg_vertices): Likewise.
5992 (find_data_references_in_loop): Export.
5993 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5994 Compute dependences here...
5995 (vect_analyze_data_refs): ...not here. When we encounter
5996 a non-vectorizable data reference in basic-block vectorization
5997 truncate the data reference vector. Do not bother to
5998 fixup data-dependence information for gather loads.
5999 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6000 of data references, as reported.
6001
0d5a1b56
RB
60022013-03-18 Richard Biener <rguenther@suse.de>
6003
6004 PR tree-optimization/3713
6005 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6006 has_constants and expr.
6007 (stmt_has_constants): Properly valueize SSA names when deciding
6008 whether the stmt has constants.
6009
789c34e3
RB
60102013-03-18 Richard Biener <rguenther@suse.de>
6011
6012 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6013 whole function when there is nothing to do.
6014 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6015 * tree-vectorizer.c (vectorize_loops): Update virtual and
6016 loop-closed SSA once.
6017 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6018
076b4605
RB
60192013-03-18 Richard Biener <rguenther@suse.de>
6020
6021 PR middle-end/56113
6022 * domwalk.c (bb_postorder): New global static.
6023 (cmp_bb_postorder): New function.
6024 (walk_dominator_tree): Replace scheme imposing an order for
6025 visiting dominator sons by one sorting them at the time they
6026 are pushed on the stack.
6027
bdb01696
RB
60282013-03-18 Richard Biener <rguenther@suse.de>
6029
6030 PR tree-optimization/39326
6031 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6032 (struct mem_ref): Replace mem member with ao_ref typed member.
6033 (MEM_ANALYZABLE): Adjust.
6034 (memref_eq): Likewise.
6035 (mem_ref_alloc): Likewise.
6036 (gather_mem_refs_stmt): Likewise.
6037 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6038 (execute_sm_if_changed_flag_set): Adjust.
6039 (execute_sm): Likewise.
6040 (ref_always_accessed_p): Likewise.
6041 (refs_independent_p): Likewise.
6042 (can_sm_ref_p): Likewise.
6043
12d2dc5e
JJ
60442013-03-18 Jakub Jelinek <jakub@redhat.com>
6045
6046 PR c/56566
6047 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6048 return 1 even for !unsignedp.
6049
286fb677
UB
60502013-03-17 Uros Bizjak <ubizjak@gmail.com>
6051
6052 * config/i386/i386.md (isa): Add x64 and nox64.
6053 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6054 (*pushtf): Enable *roF alternative for x64 isa only.
6055 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6056 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6057 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6058 (*movtf_internal): Merge from *movtf_internal_rex64 and
6059 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6060 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6061 nox64 isa attributes.
6062 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6063 nox64 isa attributes.
6064 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6065
88b97037
UB
60662013-03-17 Uros Bizjak <ubizjak@gmail.com>
6067
6068 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6069
9f4f1735
JJ
60702013-03-17 Jakub Jelinek <jakub@redhat.com>
6071
6072 PR target/56640
6073 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6074 class names. Remove trailing comma after "ALL_REGS".
6075
48f4a6fa
JH
60762013-03-16 Jan Hubicka <jh@suse.cz>
6077
6078 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6079 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6080 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6081 of cgraph_get_create_node.
6082 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6083
98e81123
JM
60842013-03-16 Jason Merrill <jason@redhat.com>
6085
6086 PR debug/49090
6087 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6088 with DW_AT_default_value.
6089
8a298c04
JJ
60902013-03-16 Jakub Jelinek <jakub@redhat.com>
6091
6092 * BASE-VER: Set to 4.9.0.
6093
4323afa0
AK
60942013-03-14 Andi Kleen <ak@linux.intel.com>
6095
6096 PR target/56619
6097 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6098 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6099 Document _x* TSX intrinsics.
6100
b3c0d469
JJ
61012013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6102 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
6103
6104 * configure.ac: Add MicroBlaze TLS support detection.
6105 * configure: Regenerate.
88b97037
UB
6106 * config/microblaze/microblaze-protos.h
6107 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6108 symbol_mentioned_p, label_mentioned_p): Add prototypes.
6109 * config/microblaze/microblaze.c (microblaze_address_type): Add
6110 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
6111 (microblaze_address_info): Add tls_reloc.
6112 (TARGET_HAVE_TLS): Define.
6113 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6114 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
6115 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6116 load_tls_operand, microblaze_call_tls_get_addr,
6117 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
6118 (microblaze_classify_unspec): Handle UNSPEC_TLS.
6119 (get_base_reg): Use microblaze_tls_symbol_p.
6120 (microblaze_classify_address): Handle TLS.
88b97037
UB
6121 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
6122 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
6123 (microblaze_legitimize_address): Handle TLS.
6124 (microblaze_address_insns): Handle ADDRESS_TLS.
6125 (pic_address_needs_scratch): Handle TLS.
6126 (print_operand_address): Handle TLS.
6127 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
6128 (microblaze_expand_move): Handle TLS.
88b97037
UB
6129 (microblaze_legitimate_constant_p): Check
6130 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
6131 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6132 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
6133 (PIC_OFFSET_TABLE_REGNUM): Set.
6134 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
6135 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
6136 (addsi3, movsi_internal2, movdf_internal): Update constraints
6137 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
6138 (move_operand): Redefine as move_src_operand,
6139 check microblaze_tls_referenced_p.
8cc9a5a5 6140
d803a491
IB
61412013-03-14 Ian Bolton <ian.bolton@arm.com>
6142
6143 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
6144 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
6145
a8504f22
IB
61462013-03-14 Ian Bolton <ian.bolton@arm.com>
6147
6148 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
6149 CC mode for AND.
6150
df2dfaea
JJ
61512013-03-14 Jakub Jelinek <jakub@redhat.com>
6152
fbd28bc3
JJ
6153 PR tree-optimization/53265
6154 * common.opt (Waggressive-loop-optimizations): New option.
6155 * tree-ssa-loop-niter.c: Include tree-pass.h.
6156 (do_warn_aggressive_loop_optimizations): New function.
6157 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
6158 if number_of_latch_executions returned constant.
6159 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
6160 early. If number_of_latch_executions returned constant, set
6161 nb_iterations_upper_bound back to it.
6162 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
6163 field.
6164 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
6165 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
6166
df2dfaea
JJ
6167 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
6168 (MULTILIB_OSDIRNAMES): Set.
6169 * genmultilib: If defaultosdirname doesn't start with :: , set
6170 defaultosdirname2 instead, clear it and emit two . multilib_raw
6171 entries instead of just one.
6172
ee0d2b68
KK
61732013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
6174
6175 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6176 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
6177 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6178 (SUBTARGET_OVERRIDE_OPTIONS): New.
6179
decc676e
OE
61802013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
6181
6182 PR target/49880
6183 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
6184 (musermode): Convert to Var(TARGET_USERMODE).
6185 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
6186 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
6187 * config/sh/sh.c (sh_option_override): Use
6188 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
6189 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
6190 condition.
6191 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
6192 TARGET_SH4.
6193 (udivsi3_i4_single, divsi3_i4_single): Use
6194 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
6195
f4b719c7
DK
61962013-03-13 Dave Korn <dave.korn.cygwin@....>
6197
6198 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
6199 default setting.
6200
c40eced0
RB
62012013-03-13 Richard Biener <rguenther@suse.de>
6202
6203 PR tree-optimization/56608
6204 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
6205 calls when vectorizing basic-blocks.
6206
1bfa5973
JJ
62072013-03-13 Jakub Jelinek <jakub@redhat.com>
6208
6209 PR plugins/45078
6210 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
6211 tm_file.
6212
6fcf5434
JJ
62132013-03-12 Jakub Jelinek <jakub@redhat.com>
6214
6215 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
6216
4f38fa8c
JH
62172013-03-11 Jan Hubicka <jh@suse.cz>
6218
6219 PR lto/56557
6220 * lto-streamer-out.c (output_symbol_p): Skip references from
6221 constructors of external variables.
6222
c5c5ba89
JH
62232013-03-11 Jan Hubicka <jh@suse.cz>
6224
6225 PR middle-end/56571
6226 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
6227 from pseudos.
6228 * emit-rtl.c (verify_rtx_sharing): Likewise.
6229 (copy_insn_1): Likewise.
6230 * rtl.c (copy_rtx): Likewise.
6231
c2a939b1
GJL
62322013-03-11 Georg-Johann Lay <avr@gjlay.de>
6233
6234 PR target/56591
6235 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
6236 output_operand_lossage message.
88b97037 6237
3c3279fb
RE
62382013-03-11 Richard Earnshaw <rearnsha@arm.com>
6239
6240 PR target/56470
6241 * arm.c (shift_op): Validate RTL pattern on the fly.
6242 (arm_print_operand, case 'S'): Don't use shift_operator to validate
6243 the RTL.
6244
aef5ef9d
JDA
62452013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6246
6247 PR target/56347
6248 * config/pa/pa.md (call_value): Check for calls to powf and direct to
6249 new call patterns that clobber %fr12.
6250 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
6251 split and postreload patterns.
6252 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
6253 registers %fr12 and %fr12R as call used.
6254
456610d3
SB
62552013-03-09 Steven Bosscher <steven@gcc.gnu.org>
6256
6257 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
6258 (canon_address, record_store, replace_read, check_mem_read_rtx,
6259 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
6260 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
6261 rest_of_handle_dse): Likewise.
6262
4b1baac8
RS
62632013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6264
6265 PR middle-end/56524
6266 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
6267 Add base_optabs.
6268 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
6269 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
6270 (save_optabs_if_changed): Replace with...
6271 (init_tree_optimization_optabs): ...this.
6272 * optabs.c (save_optabs_if_changed): Rename to...
6273 (init_tree_optimization_optabs): ...this. Take the optimization node
6274 as argument. Do nothing if the base optabs are already correct.
6275 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
6276 to recompute optabs.
6277 * function.h (function): Remove optabs field.
6278 * function.c (invoke_set_current_function_hook): Call
6279 init_tree_optimization_optabs. Use the result to initialize
6280 this_fn_optabs.
6281
b7a78683
AH
62822013-02-27 Aldy Hernandez <aldyh@redhat.com>
6283
6284 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
6285 if GTMA_HAS_NO_INSTRUMENTATION.
6286 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
6287 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
6288 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
6289 * gimple-pretty-print.c (dump_gimple_transaction): Handle
6290 GTMA_HAS_NO_INSTRUMENTATION.
6291
6384c29b
JJ
62922013-03-08 Jakub Jelinek <jakub@redhat.com>
6293
6294 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
6295 libasan_preinit.o.
6296
ecd4f20a
MP
62972013-03-08 Marek Polacek <polacek@redhat.com>
6298 Jakub Jelinek <jakub@redhat.com>
6299
6300 PR tree-optimization/56478
6301 * predict.c (is_comparison_with_loop_invariant_p): Change the
6302 type of loop_step to tree.
6303 (predict_loops): Adjust.
6304 (predict_iv_comparison): Perform the computations on double_ints.
6305
64366d35
RB
63062013-03-08 Richard Biener <rguenther@suse.de>
6307
6308 PR tree-optimization/56570
6309 * tree-cfg.c (verify_expr_location_1): Verify locations for
6310 DECL_DEBUG_EXPR.
6311 * tree-sra.c (create_access_replacement): Strip locations
6312 from DECL_DEBUG_EXPRs.
6313
a9d5a059
RB
63142013-03-08 Richard Biener <rguenther@suse.de>
6315
6316 * tree-inline.c (expand_call_inline): Do not associate
6317 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
6318 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
6319
b7aa4e9a
RB
63202013-03-08 Richard Biener <rguenther@suse.de>
6321
6322 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
6323 or block changes with -Og. Fix for location / block encoding
6324 changes and PHI arguments with locations.
6325
c4c2f9fa
SB
63262013-03-07 Steven Bosscher <steven@gcc.gnu.org>
6327
6328 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
6329 for all counters.
6330 (struct output_info): Likewise.
6331 (register_overhead): Remove bad gcc_assert.
6332 (bitmap_find_bit): If there is only a single bitmap element, do not
6333 count a miss as a search.
6334 (print_statistics): Update for counter type changes.
6335 (dump_bitmap_statistics): Likewise. Print headers such that they
6336 are properly lined up with the printed counters.
6337
5bf6606a
JJ
63382013-03-07 Jakub Jelinek <jakub@redhat.com>
6339
6340 PR tree-optimization/56559
6341 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
6342 check that it has only a single use.
6343
2c653d46
RB
63442013-03-07 Richard Biener <rguenther@suse.de>
6345
6346 * doc/invoke.texi (fwhole-program): Discourage use in combination
6347 with -flto.
6348
a72d8780
JJ
63492013-03-06 Jakub Jelinek <jakub@redhat.com>
6350
01a454df
JJ
6351 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
6352
c1781047
JJ
6353 PR tree-optimization/56539
6354 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
6355 instead of GSI_CONTINUE_LINKING as last argument to
6356 force_gimple_operand_gsi. Adjust function comment.
6357
9772c47a
JJ
6358 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
6359 aarch64-cores.def.
6360
a72d8780
JJ
6361 PR middle-end/56548
6362 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
6363 promoted mode, convert the result back to the original mode.
6364
fa5556de
RB
63652013-03-06 Richard Biener <rguenther@suse.de>
6366
6367 PR middle-end/56294
6368 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
6369 (insert_updated_phi_nodes_compare_uids): New function.
6370 (update_ssa): Sort symbols_to_rename after UID before
6371 traversing it to insert PHI nodes.
6372
010403d1
RB
63732013-03-06 Richard Biener <rguenther@suse.de>
6374
6375 PR middle-end/50494
6376 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
6377 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
6378
6379 Revert
6380 2013-02-13 Richard Biener <rguenther@suse.de>
6381
6382 PR lto/50494
6383 * varasm.c (output_constant_def_1): Get the decl representing
6384 the constant as argument.
6385 (output_constant_def): Wrap output_constant_def_1.
6386 (make_decl_rtl): Use output_constant_def_1 with the decl
6387 representing the constant.
6388 (build_constant_desc): Optionally re-use a decl already
6389 representing the constant.
6390 (tree_output_constant_def): Adjust.
6391
3c27ce4c
JY
63922013-03-06 Joey Ye <joey.ye@arm.com>
6393
6394 PR lto/50293
6395 * gcc.c (convert_white_space): New function.
6396 (main): Handles white space in function name.
6397
8f6d1c86
OE
63982013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
6399
6400 PR target/56529
6401 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
6402 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
6403 to SH_DIV_CALL_TABLE for TARGET_SH2.
6404 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
6405 list.
6406 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
6407 call-table options.
6408
798a209f
SA
64092013-03-05 Sterling Augustine <saugustine@google.com>
6410 Cary Coutant <ccoutant@google.com>
6411
6412 PR debug/55364
6413 * dwarf2out.c (resolve_addr): Don't call
6414 remove_loc_list_addr_table_entries a second time for the same
6415 expression.
6416
6cfa417f 64172013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 6418
6cfa417f
JJ
6419 PR debug/56510
6420 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
6421 (avoid_complex_debug_insns): New function.
6422 (expand_debug_locations): Call it.
6423
6424 PR rtl-optimization/56484
6425 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
6426 lifetimes of hard registers on small register class machines.
6427
64282013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
6429
6430 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 6431 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 6432 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
6433 fast_interrupt.
6434 (microblaze_fast_interrupt_function_p): New function.
6435 (microblaze_is_interrupt_handler): Rename to
6436 microblaze_is_interrupt_variant and add fast_interrupt check.
6437 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
6438 (save_restore_insns): Likewise.
6439 (compute_frame_size): Likewise.
6440 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
6441 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
6442 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
6443 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
6444 microblaze_is_interrupt_variant.
6445
731aefac
KT
64462013-03-05 Kai Tietz <ktietz@redhat.com>
6447
6448 * sdbout.c (sdbout_one_type): Switch to current function's section
6449 supporting cold/hot.
6450
a72d8780 64512013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
6452
6453 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
6454 -mxl-reorder.
6455
334e71e8
JJ
64562013-03-05 Jakub Jelinek <jakub@redhat.com>
6457
0b50e654
JJ
6458 PR middle-end/56461
6459 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
6460 if VALGRIND_GET_VBITS is defined, temporarily make object
6461 memory all defined, and restore previous valgrind addressability
6462 and definability afterwards. Free this_object at the end.
6463
4ccf8f43
JJ
6464 PR middle-end/56461
6465 * lra.c (lra): Call lra_clear_live_ranges if live_p,
6466 right before calling lra_create_live_ranges, also call it
6467 when clearing live_p. Only call lra_clear_live_ranges
6468 at the end if live_p.
6469
334e71e8
JJ
6470 PR middle-end/56461
6471 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
6472
9ca966ca
RB
64732013-03-05 Richard Biener <rguenther@suse.de>
6474
6475 PR tree-optimization/56521
6476 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
6477 value-id.
6478
d273b176
SB
64792013-03-05 Steven Bosscher <steven@gcc.gnu.org>
6480
6481 PR c++/55135
6482 * except.h (remove_unreachable_eh_regions): New prototype.
6483 * except.c (remove_eh_handler_splicer): New function, split out
6484 of remove_eh_handler.
6485 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
6486 warning about running it on many EH regions one at a time.
6487 (remove_unreachable_eh_regions_worker): New function, walk the
6488 EH tree in depth-first order and remove non-marked regions.
6489 (remove_unreachable_eh_regions): New function.
6490 * tree-eh.c (mark_reachable_handlers): New function, split out
6491 from remove_unreachable_handlers.
6492 (remove_unreachable_handlers): Use mark_reachable_handlers and
6493 remove_unreachable_eh_regions.
6494 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
6495 and remove_unreachable_eh_regions.
6496
5e7f1aef
RB
64972013-03-05 Richard Biener <rguenther@suse.de>
6498
6499 PR middle-end/56525
6500 * loop-init.c (fix_loop_structure): Remove loops in two stages,
6501 not freeing them until the end.
6502
f276b762
AK
65032013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6504
6505 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
6506
12a43ab8
RB
65072013-03-05 Richard Biener <rguenther@suse.de>
6508
6509 PR tree-optimization/56270
6510 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
6511 of loads after scheduling an SLP instance.
6512
93675444
JJ
65132013-03-05 Jakub Jelinek <jakub@redhat.com>
6514
db4138e3
JJ
6515 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
6516 tic6x.exp.
6517 (check_gcc_parallelize): Run guality.exp as a separate job from
6518 vect.exp with unsorted.exp and $(dg_target_exps) separately from
6519 struct-layout-1.exp with stackalign.exp.
6520
dd3d1ec0
JJ
6521 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
6522
b8d381a3
JJ
6523 PR middle-end/56461
6524 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
6525 load_index sbitmap even if some bit in it isn't set.
6526
b4f9786b
JJ
6527 PR middle-end/56461
6528 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
6529 (discover_iteration_bound_by_body_walk): Change queues to
6530 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
6531 spelling in comment. Call safe_push on queues[bound_index] directly.
6532 Release queues[queue_index] in every iteration unconditionally.
6533 Release bounds vector.
6534
93675444
JJ
6535 PR middle-end/56461
6536 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
6537 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
6538 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
6539 inner_phis vector.
6540
3e492e9c
RB
65412013-03-05 Richard Biener <rguenther@suse.de>
6542
6543 PR lto/56515
6544 * tree-inline.c (remap_blocks_to_null): New function.
6545 (expand_call_inline): When expanding a call stmt without
6546 an associated block inline remap all callee blocks to NULL.
6547
a5d1569a
JJ
65482013-03-05 Jakub Jelinek <jakub@redhat.com>
6549
86efb5cd
JJ
6550 PR rtl-optimization/56494
6551 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
6552 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
6553 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
6554
85f5dbea
JJ
6555 PR middle-end/56461
6556 * sel-sched-ir.c (free_sched_pools): Release
6557 succs_info_pool.stack[succs_info_pool.max_top] vectors too
6558 if succs_info_pool.max_top isn't -1.
6559
a5d1569a
JJ
6560 PR bootstrap/56509
6561 * opts.c (opts_obstack, opts_concat): Moved to...
6562 * opts-common.c (opts_obstack, opts_concat): ... here.
6563
4432aa6c
JJ
65642013-03-04 Jakub Jelinek <jakub@redhat.com>
6565
6566 PR middle-end/56461
6567 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
6568
f3a1fb91
MJ
65692013-03-04 Martin Jambor <mjambor@suse.cz>
6570
6571 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
6572 all appropriate places.
6573
22110e6c
EB
65742013-01-04 Eric Botcazou <ebotcazou@adacore.com>
6575
6576 PR tree-optimization/56424
6577 * ipa-split.c (split_function): Do not set the RSO flag if result is
6578 not by reference and its type is a register type.
6579
a72d8780 65802013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 6581
88b97037 6582 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 6583 (microblaze_legitimate_pic_operand): Likewise
88b97037 6584 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
6585 new function microblaze_legitimate_pic_operand
6586 * config/microblaze/microblaze-protos.h
6587 (microblaze_legitimate_pic_operand): Declare.
6588
a72d8780 65892013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 6590
a72d8780 6591 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 6592 New predicate for supported rtx code types.
a72d8780 6593 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
6594 call_insn_simple_operand predicate.
6595
541d9ac8
JJ
65962013-03-04 Jakub Jelinek <jakub@redhat.com>
6597
5eb010bc
JJ
6598 PR middle-end/56461
6599 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
6600 partitions.ordered_remove.
6601
30862efc
JJ
6602 PR middle-end/56461
6603 * tree-vect-stmts.c (vectorizable_conversion): Don't call
6604 vec_oprnds0.create (1) for modifier == NONE.
6605
8930f723
JJ
6606 PR middle-end/56461
6607 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
6608 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
6609 vec_oprnds1 right before pushing anything to it for
6610 scalar_shift_arg.
6611
541d9ac8
JJ
6612 PR middle-end/56461
6613 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
6614 set nbbs to 0 instead of having separate code path.
6615 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
6616 instead of false as last argument if returning NULL.
6617
7aa7f2e3
SL
66182013-03-03 Sandra Loosemore <sandra@codesourcery.com>
6619
6620 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
6621 the attribute is now called "target" instead of "option".
6622 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
6623 * doc/tm.texi.in (Target Attributes): Likewise document the correct
6624 attribute/pragma name for TARGET_OPTION_VALID_P and
6625 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
6626 * doc/tm.texi: Regenerated.
6627
8930f723 66282013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 6629
8930f723 6630 * config/microblaze/microblaze.c:
cb8a1637 6631 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
6632 * config/microblaze/microblaze.h: Add -mxl-reorder to
6633 DRIVER_SELF_SPECS.
6634 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
6635 instructions emitted if TARGET_REORDER.
88b97037
UB
6636 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
6637 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 6638 separately.
cb8a1637 6639
4dc1d68c
XDL
66402013-03-01 Xinliang David Li <davidxl@google.com>
6641
6642 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
6643 walk length.
6644
689eaba3
JJ
66452013-03-01 Jakub Jelinek <jakub@redhat.com>
6646
9d676bf6
JJ
6647 PR middle-end/56461
6648 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
6649 vector even when returning true. Fix up function comment formatting.
6650
caff7edf
JJ
6651 PR middle-end/56461
6652 * ira-build.c (ira_loop_nodes_count): New variable.
6653 (create_loop_tree_nodes): Initialize it.
6654 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
6655
b6b9227d
JJ
6656 PR middle-end/56461
6657 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
6658 method on dr_chain and result_chain.
6659 * tree-vect-stmts.c (vectorizable_store): Only call
6660 result_chain.create if j == 0.
6661
689eaba3
JJ
6662 PR middle-end/56461
6663 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
6664 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
6665 before overwriting it.
6666
40bf31ed
TB
66672013-03-01 Tobias Burnus <burnus@net-b.de>
6668
6669 * doc/extended.texi (C Extensions): Change order in @menu
6670 to match @node.
6671 (Other MIPS Built-in Functions): Move last MIPS entry before
6672 "picoChip Built-in Functions".
6673 (SH Built-in Functions): Move after RX Built-in Functions.
6674 * doc/gcc.texi (Introduction): Change order in @menu
6675 to match @node.
6676 * doc/md.texi (Constraints): Ditto.
6677 * gty.texi (Type Information): Ditto.
6678 (User-provided marking routines for template types): Make
6679 subsection.
6680 * doc/invoke.texi (AArch64 Options): Move before
6681 "Adapteva Epiphany Options".
6682
e664c61c
KS
66832013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6684 Jakub Jelinek <jakub@redhat.com>
6685
6686 PR sanitizer/56454
6687 * asan.c (gate_asan): Lookup no_sanitize_address instead of
6688 no_address_safety_analysis attribute.
6689 * doc/extend.texi (no_address_safety_attribute): Rename to
6690 no_sanitize_address attribute, mention no_address_safety_analysis
6691 attribute as deprecated alias.
6692
37b5ec8f
JJ
66932013-02-28 Jakub Jelinek <jakub@redhat.com>
6694
6695 PR middle-end/56461
6696 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
6697 type to vec<vec<tree> > *.
6698 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
6699 to be vec<tree> instead of vec<tree> *, set vec_defs
6700 to vNULL and call vec_defs.create (number_of_vects), adjust other
6701 uses of vec_defs.
6702 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
6703 vectorizable_condition): Adjust vect_get_slp_defs callers.
6704
ba96cdfb
JG
67052013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6706
6707 * config/aarch64/aarch64.c
6708 (aarch64_float_const_representable): Remove unused variable.
6709
6f549691
JG
67102013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6711
6712 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
6713
af55e82d
JG
67142013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6715
6716 * config/aarch64/aarch64-builtins.c
6717 (aarch64_init_simd_builtins): Make static.
6718
1df3f464
JG
67192013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6720
6721 * config/aarch64/aarch64.c
6722 (aarch64_simd_make_constant): Make static.
6723
f8f42513
MJ
67242013-02-28 Martin Jambor <mjambor@suse.cz>
6725
6726 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
6727 with no initialization to the RHS of debug statements.
6728
b48b3fc4
MJ
67292013-02-28 Martin Jambor <mjambor@suse.cz>
6730
6731 PR tree-optimization/56294
6732 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
6733 Adjust dumping.
6734 (get_access_replacement): Do not call create_access_replacement.
6735 Assert a replacement exists.
6736 (get_repl_default_def_ssa_name): Create the replacement declaration
6737 itself.
6738
c3ae224c
RR
67392013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6740
6741 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
6742 final_end_function.
6743
45fa0eef
MP
67442013-02-28 Marek Polacek <polacek@redhat.com>
6745
6746 PR rtl-optimization/56466
6747 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
6748 if we're changing a loop.
6749 (peel_loops_completely): Likewise.
6750
502c067d
PC
67512013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
6752
6753 PR c++/55813
6754 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
6755
ff24afc8
GJL
67562013-02-28 Georg-Johann Lay <avr@gjlay.de>
6757
6758 PR target/56445
6759 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
6760 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
6761 INTX_FTYPE_FX, FX_FTYPE_INTX.
6762 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
6763
c7b1fc1b
GJL
67642013-02-28 Georg-Johann Lay <avr@gjlay.de>
6765
6766 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
6767 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
6768 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
6769 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
6770 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
6771 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
6772 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
6773 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
6774 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
6775 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
6776 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
6777 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
6778 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
6779 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
6780 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
6781 (avrxmega6): Increase max flash segments from 5 to 6.
6782 * config/avr/t-multilib: Regenerate.
6783 * config/avr/avr-tables.opt: Regenerate.
6784 * doc/avr-mmcu.texi: Regenerate.
6785
4a0e3cfe
GJL
67862013-02-28 Georg-Johann Lay <avr@gjlay.de>
6787
6788 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
6789 (avr_device_to_arch): Rename to avr_device_to_ld.
6790 (avr_device_to_as): New prototype.
6791 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
6792 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
6793 * config/avr/driver-avr.c (avr_device_to_as): New.
6794 (avr_device_to_arch): Rename to avr_device_to_ld.
6795
97785e52
JJ
67962013-02-27 Jakub Jelinek <jakub@redhat.com>
6797
3f292312
JJ
6798 PR middle-end/56461
6799 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
6800 method on dr_chain and result_chain.
6801
a344216b
JJ
6802 PR middle-end/56461
6803 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
6804 pointer_set_destroy on not_executed_last_iteration.
6805
f121ad02 6806 PR middle-end/56461
88b97037 6807 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 6808
307f83a3
JJ
6809 PR middle-end/56461
6810 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
6811 FOR_EACH_DEFINED_FUNCTION when freeing state.
6812
e19624ee
JJ
6813 PR middle-end/56461
6814 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
6815 pool_free.
6816 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
6817 overwriting it.
6818
90e709fd
JJ
6819 PR middle-end/56461
6820 * ipa-cp.c (decide_whether_version_node): Call vec_free on
6821 known_aggs[i].items and release known_aggs vector.
6822
97785e52
JJ
6823 PR middle-end/56461
6824 * ipa-reference.c (propagate): Free node_info even for alias nodes.
6825
68262013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 6827
97785e52
JJ
6828 * config/microblaze/microblaze.c (microblaze_emit_compare):
6829 Use xor for EQ/NE comparisions.
6830 * config/microblaze/microblaze.md (cstoresf4): Add constraints
6831 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 6832
6fa5e0ed
JJ
68332013-02-27 Jakub Jelinek <jakub@redhat.com>
6834
6835 PR middle-end/56461
6836 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
6837 vector.
6838 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
6839 vec_safe_push, always update *slot.
6840 (redirect_edge_var_map_clear): Use vec_free.
6841 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
6842 (free_var_map_entry): Use vec_free.
6843 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
6844 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
6845
436a956a
AB
68462013-02-27 Andrey Belevantsev <abel@ispras.ru>
6847
6848 PR middle-end/45472
436a956a
AB
6849 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
6850 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
6851 Reorder tests for speculativeness in the logical and operator.
6852
f5c2caca
JJ
68532013-02-27 Jakub Jelinek <jakub@redhat.com>
6854
0fcb564b
JJ
6855 * incpath.c (add_standard_paths): Use reconcat instead of concat
6856 where appropriate and avoid leaking memory.
6857
dc357798
JJ
6858 * opts.h: Include obstack.h.
6859 (opts_concat): New prototype.
6860 (opts_obstack): New declaration.
6861 * opts.c (opts_concat): New function.
6862 (opts_obstack): New variable.
6863 (init_options_struct): Call gcc_init_obstack on opts_obstack.
6864 (finish_options): Use opts_concat instead of concat
6865 and XOBNEWVEC instead of XNEWVEC.
6866 * opts-common.c (generate_canonical_option, decode_cmdline_option,
6867 generate_option): Likewise.
6868 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
6869 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
6870
f5c2caca
JJ
6871 PR target/56455
6872 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
6873 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
6874
d0163673
JJ
68752013-02-26 Jakub Jelinek <jakub@redhat.com>
6876
6877 PR middle-end/56461
6878 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
6879
b5ad2b8e
JR
68802013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6881
6882 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6883 (arm_block_move_unaligned_straight): Likewise.
6884 (arm_adjust_block_mem): Likewise.
6885
9b639e2c
JR
68862013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6887
6888 PR target/48901
6889 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6890 temp, cond and label.
6891 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6892
e13a0ccb
JR
6893 PR target/52500
6894 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6895 * config/c6x/c6x.h (dbx_register_map): Update declaration.
6896
fbe4f171
JR
6897 PR target/52501
6898 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6899 of prologue/epilogue functions.
6900
ae006543
JR
6901 PR target/52550
6902 * config/tilegx/tilegx.c (tilegx_expand_prologue):
6903 Remove unused variable cfa_offset.
6904 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6905
c81369fa
JR
6906 PR target/54639
6907 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6908 type promotion to unsigned.
6909
f8a8fea7
JR
6910 PR target/54640
6911 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6912 for HOST_WIDE_INT of 32 bit / same size as int.
6913 (arm_block_move_unaligned_straight): Likewise.
6914 (arm_adjust_block_mem): Likewise.
6915
f8be5169
JR
6916 PR target/54662
6917 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6918 ALL_CFLAGS.
6919
f1ad3354
MP
69202013-02-26 Marek Polacek <polacek@redhat.com>
6921
6922 PR tree-optimization/56426
88b97037 6923 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 6924
a6af0f42
RB
69252013-02-26 Richard Biener <rguenther@suse.de>
6926
6927 PR target/56444
6928 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6929 unused variable loops.
6930
aca43c6c
JJ
69312013-02-26 Jakub Jelinek <jakub@redhat.com>
6932
cecbe5d9
JJ
6933 PR tree-optimization/56448
6934 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
6935 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
6936 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
6937 later operands of the references, or even first operand for
6938 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
6939
aca43c6c
JJ
6940 PR tree-optimization/56443
6941 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
6942 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
6943 to type_for_mode langhook.
6944
53e2e141
MT
69452013-02-25 Matt Turner <mattst88@gmail.com>
6946
6947 * doc/invoke.texi: Document r4700.
6948
259ee451
RB
69492013-02-25 Richard Biener <rguenther@suse.de>
6950
6951 PR tree-optimization/56175
6952 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
6953 split out from ...
6954 (simplify_bitwise_binary): ... here. Also guard the conversion
6955 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
6956
6d65e8f1
CM
69572013-02-25 Catherine Moore <clm@codesourcery.com>
6958
6959 Revert:
6960 2013-02-24 Catherine Moore <clm@codesourcery.com>
6961 Maciej W. Rozycki <macro@codesourcery.com>
6962 Tom de Vries <tom@codesourcery.com>
a72d8780 6963 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
6964 Iain Sandoe <iain@codesourcery.com>
6965 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 6966 Chao-ying Fu <fu@mips.com>
88b97037 6967
6d65e8f1 6968 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 6969 Document new function attributes.
6d65e8f1
CM
6970 * doc/invoke.texi (minterlink-compressed, mmicromips,
6971 m14k, m14ke, m14kec): Document new options.
6972 (minterlink-mips16): Update documentation.
6973 * doc/md.texi (ZC, ZD): Document new constraints.
6974 * configure.ac (gcc_cv_as_micromips): Check if linker
6975 supports the .set micromips directive.
6976 * configure: Regenerate.
6977 * config.in: Regenerate.
6978 * config/mips/mips-tables.opt: Regenerate.
6979 * config/mips/micromips.md: New file.
6980 * constraints.md (ZC, AD): New constraints.
6981 * config/mips/predicates.md (movep_src_register): New predicate.
6982 (movep_src_operand): New predicate.
6983 (non_volatile_mem_operand): New predicate.
6984 * config/mips/mips.md (multimem): New type.
6985 (length): Differentiate between 17-bit and 18-bit branch offsets.
6986 (MOVEP1, MOVEP2): New mode iterator.
6987 (mov_<load>l): Use ZC constraint.
6988 (mov_<load>r): Likewise.
6989 (mov_<store>l): Likewise.
6990 (mov_<store>r): Likewise.
6991 (*branch_equality<mode>_inverted): Add microMIPS support.
6992 (*branch_equality<mode>): Likewise.
6993 (*jump_absolute): Likewise.
6994 (indirect_jump_<mode>): Likewise.
6995 (tablejump_<mode>): Likewise.
6996 (<optab>_internal): Likewise.
6997 (sibcall_internal): Likewise.
6998 (sibcall_value_internal): Likewise.
6999 (prefetch): Use constraint ZD.
7000 * config/mips/mips.opt (minterlink-compressed): New option.
7001 (minterlink-mips16): Now an alias for minterlink-compressed.
7002 (mmicromips): New option.
7003 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7004 (compare_and_swap_12): Likewise.
7005 (sync_add<mode>): Likewise.
7006 (sync_<optab>_12): Likewise.
7007 (sync_old_<optab>_12): Likewise.
7008 (sync_new_<optab>_12): Likewise.
7009 (sync_nand_12): Likewise.
7010 (sync_old_nand_12): Likewise.
7011 (sync_new_nand_12): Likewise.
7012 (sync_sub<mode>): Likewise.
7013 (sync_old_add<mode>): Likewise.
7014 (sync_old_sub<mode>): Likewise.
7015 (sync_new_add<mode>): Likewise.
7016 (sync_new_sub<mode>): Likewise.
7017 (sync_<optab><mode>): Likewise.
7018 (sync_old_<optab><mode>): Likewise.
7019 (sync_new_<optab><mode>): Likewise.
7020 (sync_nand<mode>): Likewise.
7021 (sync_old_nand<mode>): Likewise.
7022 (sync_new_nand<mode>): Likewise.
7023 (sync_lock_test_and_set<mode>): Likewise.
7024 (test_and_set_12): Likewise.
7025 (atomic_compare_and_swap<mode>): Likewise.
7026 (atomic_exchange<mode>_llsc): Likewise.
7027 (atomic_fetch_add<mode>_llsc): Likewise.
7028 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7029 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7030 (umips_save_restore_pattern_p): Likewise.
7031 (umips_load_store_pair_p): Likewise.
7032 (umips_output_load_store_pair): Likewise.
7033 (umips_movep_target_p): Likewise.
7034 (umips_12bit_offset_address_p): Likewise.
7035 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7036 (mips_base_mips16): Rename this...
7037 (mips_base_compression_flags): ...to this. Update all uses.
7038 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7039 (mips_mips16_decl_p): Delete.
7040 (mips_nomips16_decl_p): Delete.
7041 (mips_get_compress_on_flags): New function.
7042 (mips_get_compress_off_flags): New function.
7043 (mips_get_compress_mode): New function.
7044 (mips_get_compress_on_name): New function.
7045 (mips_get_compress_off_name): New function.
7046 (mips_insert_attributes): Support multiple compression types.
7047 (mips_merge_decl_attributes): Likewise.
7048 (umips_12bit_offset_address_p): New function.
7049 (mips_start_function_definition): Emit .set micromips directive.
7050 (mips_call_may_need_jalx_p): New function.
7051 (mips_function_ok_for_sibcall): Add microMIPS support.
7052 (mips_print_operand_punctuation): Support short delay slots and
7053 compact jumps.
7054 (umips_swm_mask, umips_swm_encoding): New.
7055 (umips_build_save_restore): New function.
7056 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7057 (was_mips16_p): Remove.
7058 (old_compression_mode): New.
7059 (mips_set_compression_mode): New function.
7060 (mips_set_current_function): Add microMIPS support.
7061 (mips_option_override): Likewise.
7062 (umips_save_restore_pattern_p): New function.
7063 (umips_output_save_restore): New function.
7064 (umips_load_store_pair_p_1): New function.
7065 (umips_load_store_pair_p): New function.
7066 (umips_output_load_store_pair_1): New function.
7067 (umips_output_load_store_pair): New function.
7068 (umips_movep_target_p) New function.
7069 (mips_prepare_pch_save): Add microMIPS support.
7070 * config/mips/mips.h (TARGET_COMPRESSION): New.
7071 (TARGET_CPU_CPP_BUILTINS): Update macro
7072 to use new compression flags and to support microMIPS.
7073 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7074 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7075 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7076 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7077 (ASM_SPEC): Support mmicromips and mno-micromips.
7078 (M16STORE_REG_P): New macro.
7079 (MIPS_CALL): Support TARGET_MICROMIPS.
7080 (MICROMIPS_J): New macro.
7081 (mips_base_mips16): Rename this...
7082 (mips_base_compression_flags): ...to this.
7083 (UMIPS_12BIT_OFFSET_P): New macro.
7084 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7085 (MULTILIB_DIRNAMES): Likewise.
7086
5e5df392
TV
70872013-02-25 Tom de Vries <tom@codesourcery.com>
7088
7089 PR rtl-optimization/56131
7090 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7091 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7092 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7093
3fdb53c1
TB
70942013-02-25 Tobias Burnus <burnus@net-b.de>
7095
7096 * doc/invoke.texi (-fsanitize=): Move from optimization
7097 to debugging options.
7098
ed358aea
AB
70992013-02-25 Andrey Belevantsev <abel@ispras.ru>
7100
7101 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7102
f45e9053
AB
71032013-02-25 Andrey Belevantsev <abel@ispras.ru>
7104 Alexander Monakov <amonakov@ispras.ru>
7105
7106 PR middle-end/56077
7107 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7108 flush pending lists also on non-jumps. Adjust comment.
7109
6941b508
CM
71102013-02-24 Catherine Moore <clm@codesourcery.com>
7111 Maciej W. Rozycki <macro@codesourcery.com>
7112 Tom de Vries <tom@codesourcery.com>
a72d8780 7113 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
7114 Iain Sandoe <iain@codesourcery.com>
7115 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7116 Chao-ying Fu <fu@mips.com>
6941b508
CM
7117
7118 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 7119 Document new function attributes.
6941b508
CM
7120 * doc/invoke.texi (minterlink-compressed, mmicromips,
7121 m14k, m14ke, m14kec): Document new options.
7122 (minterlink-mips16): Update documentation.
7123 * doc/md.texi (ZC, ZD): Document new constraints.
7124 * configure.ac (gcc_cv_as_micromips): Check if linker
7125 supports the .set micromips directive.
7126 * configure: Regenerate.
7127 * config.in: Regenerate.
7128 * config/mips/mips-tables.opt: Regenerate.
7129 * config/mips/micromips.md: New file.
7130 * constraints.md (ZC, AD): New constraints.
7131 * config/mips/predicates.md (movep_src_register): New predicate.
7132 (movep_src_operand): New predicate.
7133 (non_volatile_mem_operand): New predicate.
7134 * config/mips/mips.md (multimem): New type.
7135 (length): Differentiate between 17-bit and 18-bit branch offsets.
7136 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 7137 (mov_<load>l): Use ZC constraint.
6941b508
CM
7138 (mov_<load>r): Likewise.
7139 (mov_<store>l): Likewise.
7140 (mov_<store>r): Likewise.
7141 (*branch_equality<mode>_inverted): Add microMIPS support.
7142 (*branch_equality<mode>): Likewise.
7143 (*jump_absolute): Likewise.
7144 (indirect_jump_<mode>): Likewise.
7145 (tablejump_<mode>): Likewise.
7146 (<optab>_internal): Likewise.
7147 (sibcall_internal): Likewise.
7148 (sibcall_value_internal): Likewise.
7149 (prefetch): Use constraint ZD.
7150 * config/mips/mips.opt (minterlink-compressed): New option.
7151 (minterlink-mips16): Now an alias for minterlink-compressed.
7152 (mmicromips): New option.
7153 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7154 (compare_and_swap_12): Likewise.
7155 (sync_add<mode>): Likewise.
7156 (sync_<optab>_12): Likewise.
7157 (sync_old_<optab>_12): Likewise.
7158 (sync_new_<optab>_12): Likewise.
7159 (sync_nand_12): Likewise.
7160 (sync_old_nand_12): Likewise.
7161 (sync_new_nand_12): Likewise.
7162 (sync_sub<mode>): Likewise.
7163 (sync_old_add<mode>): Likewise.
7164 (sync_old_sub<mode>): Likewise.
7165 (sync_new_add<mode>): Likewise.
7166 (sync_new_sub<mode>): Likewise.
7167 (sync_<optab><mode>): Likewise.
7168 (sync_old_<optab><mode>): Likewise.
7169 (sync_new_<optab><mode>): Likewise.
7170 (sync_nand<mode>): Likewise.
7171 (sync_old_nand<mode>): Likewise.
7172 (sync_new_nand<mode>): Likewise.
7173 (sync_lock_test_and_set<mode>): Likewise.
7174 (test_and_set_12): Likewise.
7175 (atomic_compare_and_swap<mode>): Likewise.
7176 (atomic_exchange<mode>_llsc): Likewise.
7177 (atomic_fetch_add<mode>_llsc): Likewise.
7178 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7179 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7180 (umips_save_restore_pattern_p): Likewise.
7181 (umips_load_store_pair_p): Likewise.
7182 (umips_output_load_store_pair): Likewise.
7183 (umips_movep_target_p): Likewise.
7184 (umips_12bit_offset_address_p): Likewise.
7185 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7186 (mips_base_mips16): Rename this...
7187 (mips_base_compression_flags): ...to this. Update all uses.
7188 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7189 (mips_mips16_decl_p): Delete.
7190 (mips_nomips16_decl_p): Delete.
3fdb53c1 7191 (mips_get_compress_on_flags): New function.
6941b508
CM
7192 (mips_get_compress_off_flags): New function.
7193 (mips_get_compress_mode): New function.
7194 (mips_get_compress_on_name): New function.
7195 (mips_get_compress_off_name): New function.
7196 (mips_insert_attributes): Support multiple compression types.
7197 (mips_merge_decl_attributes): Likewise.
7198 (umips_12bit_offset_address_p): New function.
7199 (mips_start_function_definition): Emit .set micromips directive.
7200 (mips_call_may_need_jalx_p): New function.
7201 (mips_function_ok_for_sibcall): Add microMIPS support.
7202 (mips_print_operand_punctuation): Support short delay slots and
7203 compact jumps.
7204 (umips_swm_mask, umips_swm_encoding): New.
7205 (umips_build_save_restore): New function.
7206 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7207 (was_mips16_p): Remove.
7208 (old_compression_mode): New.
7209 (mips_set_compression_mode): New function.
7210 (mips_set_current_function): Add microMIPS support.
7211 (mips_option_override): Likewise.
7212 (umips_save_restore_pattern_p): New function.
7213 (umips_output_save_restore): New function.
7214 (umips_load_store_pair_p_1): New function.
7215 (umips_load_store_pair_p): New function.
7216 (umips_output_load_store_pair_1): New function.
7217 (umips_output_load_store_pair): New function.
7218 (umips_movep_target_p) New function.
7219 (mips_prepare_pch_save): Add microMIPS support.
7220 * config/mips/mips.h (TARGET_COMPRESSION): New.
7221 (TARGET_CPU_CPP_BUILTINS): Update macro
7222 to use new compression flags and to support microMIPS.
7223 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7224 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7225 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7226 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7227 (ASM_SPEC): Support mmicromips and mno-micromips.
7228 (M16STORE_REG_P): New macro.
7229 (MIPS_CALL): Support TARGET_MICROMIPS.
7230 (MICROMIPS_J): New macro.
7231 (mips_base_mips16): Rename this...
7232 (mips_base_compression_flags): ...to this.
7233 (UMIPS_12BIT_OFFSET_P): New macro.
7234 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7235 (MULTILIB_DIRNAMES): Likewise.
7236
cdebbc6d
JJ
72372013-02-24 Jakub Jelinek <jakub@redhat.com>
7238
7239 PR target/52555
7240 * target-globals.c (save_target_globals): For init_reg_sets and
7241 target_reinit remporarily set this_fn_optabs to this_target_optabs.
7242
18c63565
JG
72432013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
7244
7245 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
7246 * config/aarch64/t-aarch64
7247 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
7248
2194f7a2
VM
72492013-02-22 Vladimir Makarov <vmakarov@redhat.com>
7250
7251 PR inline-asm/56148
7252 * lra-constraints.c (process_alt_operands): Reload operand
7253 conflicting with earlier clobber only if no more other conflicting
7254 operands.
7255
7d613735
JJ
72562013-02-22 Jakub Jelinek <jakub@redhat.com>
7257
7258 PR sanitizer/56393
7259 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
7260 if not linking a shared library.
7261
ac8d93a7
SL
72622013-02-22 Seth LaForge <sethml@google.com>
7263
7264 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
7265
e0237780
GY
72662013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
7267
3fdb53c1
TB
7268 * config/arm/arm.md (split for extendsidi): Update condition.
7269 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
7270 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
7271 (qhs_zextenddi_cstr): Likewise.
e0237780 7272
d7fde18c
JJ
72732013-02-21 Jakub Jelinek <jakub@redhat.com>
7274
be63b77d
JJ
7275 PR middle-end/56420
7276 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
7277 avoid signed wrapping.
7278 (expand_mult): Handle properly multiplication by
7279 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
7280 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
7281 in the compiler if coeff is HOST_WIDE_INT_MIN.
7282 (expand_divmod): Don't make ext_op1 static, change it's type to
7283 uhwi. Avoid undefined behavior in -INTVAL (op1).
7284
d7fde18c
JJ
7285 PR rtl-optimization/50339
7286 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
7287 field.
7288 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
7289 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
7290 into splitting_ashiftrt field.
7291 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
7292 ASHIFTRT.
7293 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
7294 choices.
7295
6aad4455
AH
72962013-02-20 Aldy Hernandez <aldyh@redhat.com>
7297
7298 PR middle-end/56108
7299 * trans-mem.c (execute_tm_mark): Do not expand transactions that
7300 are sure to go irrevocable.
7301
38fe784d
HPN
73022013-02-21 Hans-Peter Nilsson <hp@axis.com>
7303
7304 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
7305 scalars are valid operands.
7306
0fd44da3
MJ
73072013-02-21 Martin Jambor <mjambor@suse.cz>
7308
7309 PR tree-optimization/56310
7310 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
7311 only matching indices and non-negative final offsets.
7312 (intersect_aggregates_with_edge): Pass src_idx to
7313 agg_replacements_to_vector. Pass src_idx insstead of index to
7314 intersect_with_agg_replacements.
7315
7a92038b
MJ
73162013-02-21 Martin Jambor <mjambor@suse.cz>
7317
7318 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
7319 instead of hard-wired defaults.
7320
c0da9c37
MR
73212013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
7322
7323 * doc/invoke.texi (MIPS Options): Update documentation of the
7324 floating-point multiply-accumulate instruction restrictions.
7325
d247ea0c 73262013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
7327
7328 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
7329 asan_shadow_offset on x86_64 linux.
7330
22deefcb
RB
73312013-02-21 Richard Biener <rguenther@suse.de>
7332
7333 PR tree-optimization/56415
7334 Revert
7335 2013-02-11 Richard Biener <rguenther@suse.de>
7336
7337 PR tree-optimization/56273
7338 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7339 first VRP run.
7340
7bcc6e75
JJ
73412013-02-21 Jakub Jelinek <jakub@redhat.com>
7342
a0ad148f
JJ
7343 PR bootstrap/56258
7344 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
7345 instead of @itemx.
7346
7bcc6e75
JJ
7347 PR inline-asm/56405
7348 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
7349 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
7350
a0a7b611
JH
73512013-02-20 Jan Hubicka <jh@suse.cz>
7352
7353 PR tree-optimization/56265
88b97037
UB
7354 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
7355 when target is referenced for first time.
a0a7b611 7356
c0e50f72
RB
73572013-02-20 Richard Biener <rguenther@suse.de>
7358
7359 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
7360 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
7361 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7362 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
7363 not return anything.
7364 (rename_ssa_copies): Do not remove unused locals.
7365 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 7366 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
7367 * passes.c (execute_function_todo): Do not schedule unused locals
7368 removal if cleanup_tree_cfg did something.
7369 * tree-ssa-live.c (remove_unused_locals): Dump statistics
7370 about the number of removed locals.
7371
a52ca739
RB
73722013-02-20 Richard Biener <rguenther@suse.de>
7373
7374 PR tree-optimization/56398
88b97037 7375 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 7376
ec9c9d1b
MJ
73772013-02-20 Martin Jambor <mjambor@suse.cz>
7378
7379 PR tree-optimization/55334
7380 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
7381 restricted pointers to arrays.
7382
e91c8ed6 73832013-02-20 Richard Biener <rguenther@suse.de>
88b97037 7384 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
7385
7386 PR tree-optimization/56396
7387 * tree-ssa-ccp.c (n_const_val): New static variable.
7388 (get_value): Return NULL for SSA names we don't have a lattice
7389 entry for.
7390 (ccp_initialize): Initialize n_const_val.
7391 * tree-ssa-copy.c (n_copy_of): New static variable.
7392 (init_copy_prop): Initialize n_copy_of.
7393 (get_value): Return NULL_TREE for SSA names we don't have a
7394 lattice entry for.
7395
3d916479
MJ
73962013-02-20 Martin Jambor <mjambor@suse.cz>
7397
7398 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
7399
71a86758
RB
74002013-02-20 Richard Biener <rguenther@suse.de>
7401
7402 * genpreds.c (write_lookup_constraint): Do not compare first
7403 letter of the constraint again.
7404
79836a12
RB
74052013-02-20 Richard Biener <rguenther@suse.de>
7406
7407 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
7408 and ceil_log2.
7409 (get_use_iv_cost): Terminate hashtable walk when coming across
7410 an empty entry.
7411
bbe4fb2c
IZ
74122013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
7413
7414 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
7415 reassociation for avx2 targets.
7416
a72d8780 74172012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 7418
c77f83d5
EI
7419 * config/microblaze/microblaze.c: microblaze_has_clz = 0
7420 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 7421 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
7422 version and TARGET_PATTERN_COMPARE check
7423 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 7424
a72d8780 74252012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 7426
a72d8780 7427 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
7428 function before branching.
7429
242387fa
AB
74302012-02-19 Andrey Belevantsev <abel@ispras.ru>
7431
7432 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
7433 DUMP_INSN_RTX_UID.
7434 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
7435
b4979ab9
AB
74362012-02-19 Andrey Belevantsev <abel@ispras.ru>
7437
7438 PR middle-end/55889
b4979ab9
AB
7439 * sel-sched.c: Include ira.h.
7440 (implicit_clobber_conflict_p): New function.
7441 (moveup_expr): Use it.
88b97037 7442 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 7443
24d63016
RB
74442013-02-19 Richard Biener <rguenther@suse.de>
7445
7446 PR tree-optimization/56384
7447 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
7448 (vn_hash_type): Split out from ...
7449 (vn_hash_constant_with_type): ... here.
7450 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
7451 (vn_phi_eq): Compare types from vn_phi_s structure.
7452 (vn_phi_lookup): Populate vn_phi_s type.
7453 (vn_phi_insert): Likewise.
7454
a475fd3d
JJ
74552013-02-19 Jakub Jelinek <jakub@redhat.com>
7456
47cc28f5
JJ
7457 PR tree-optimization/56350
7458 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
7459 if haven't found reduction or nested cycle operand, rather than
7460 asserting we must find it.
7461
a475fd3d
JJ
7462 PR tree-optimization/56381
7463 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
7464 to fold_build3.
7465
74662013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
7467 Jakub Jelinek <jakub@redhat.com>
7468
7469 PR target/52555
7470 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
7471 (swap_optab_enable): Same.
7472 (init_all_optabs): Use argument instead of global.
88b97037 7473 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
7474 * expr.h (init_all_optabs): Add argument to prototype.
7475 (TREE_OPTIMIZATION_OPTABS): New.
7476 (save_optabs_if_changed): Protoize.
7477 * optabs.h: Declare this_fn_optabs.
7478 * optabs.c (save_optabs_if_changed): New.
7479 Declare this_fn_optabs.
7480 (init_optabs): Add argument to init_all_optabs() call.
7481 * function.c (invoke_set_current_function_hook): Handle per
7482 function optabs.
7483 * function.h (struct function): New field optabs.
7484 * config/mips/mips.c (mips_set_mips16_mode): Handle when
7485 optimization_current_node has changed.
7486 * target-globals.h (save_target_globals_default_opts): Protoize.
7487 * target-globals.c (save_target_globals_default_opts): New.
7488
3f587ca3
JDA
74892013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7490
7491 PR target/56347
7492 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
7493 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
7494
7495 PR target/56214
7496 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
7497 and HImode, require all displacements to be an integer multiple of
7498 their mode size.
ceaca33e
JDA
7499 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
7500 only allow QImode and HImode when reload is in progress and strict is
7501 true. Likewise for symbolic addresses. Use base14_operand to check
7502 displacements in REG+BASE addresses.
7503
fe0b4796
RB
75042013-02-18 Richard Biener <rguenther@suse.de>
7505
7506 PR tree-optimization/56366
7507 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7508 handle sign-conversion of outer-loop initial induction value.
7509
6aaf596b
RB
75102013-02-18 Richard Biener <rguenther@suse.de>
7511
73db8ff1 7512 PR middle-end/56349
6aaf596b
RB
7513 * cfghooks.c (merge_blocks): If we merge a latch into another
7514 block adjust references to it.
7515 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
7516 (verify_loop_structure): Verify that a recorded latch is in fact
7517 a latch.
7518
5e97dfb6
RB
75192013-02-18 Richard Biener <rguenther@suse.de>
7520
7521 PR tree-optimization/56321
7522 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
7523 order SSA name release and virtual operand unlinking.
7524
825527e8
EI
75252013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7526
7527 * config/microblaze/microblaze.md (save_stack_block): Define.
7528 (restore_stack_block): Likewise.
7529
debd11d9
EI
75302013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7531
7532 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
7533 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
7534 * config/microblaze/microblaze.c (microblaze_option_override):
7535 Bail out early for PIC modes when target does not support PIC.
7536
8ec77be0
EI
75372013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7538
88b97037 7539 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
7540 Replace with a microblaze version.
7541 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 7542 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
7543 microblaze.
7544
b41288b3
JJ
75452013-02-16 Jakub Jelinek <jakub@redhat.com>
7546 Dodji Seketeli <dodji@redhat.com>
7547
7548 PR asan/56330
88b97037 7549 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
7550 (instrument_mem_region_access): Do not forget to always put
7551 instrumentation of the of 'base' and 'base + len' in a "if (len !=
7552 0) statement, even for cases where either 'base' or 'base + len'
7553 are not instrumented -- because they have been previously
7554 instrumented. Simplify the logic by putting all the statements
7555 instrument 'base + len' inside a sequence, and then insert that
7556 sequence right before the current insertion point. Then, to
7557 instrument 'base + len', just get an iterator on that statement.
7558 And do not forget to update the pointer to iterator the function
7559 received as argument.
7560
47918951
VM
75612013-02-15 Vladimir Makarov <vmakarov@redhat.com>
7562
7563 PR rtl-optimization/56348
7564 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
7565
3fb7c699
SB
75662013-02-15 Steven Bosscher <steven@gcc.gnu.org>
7567
7568 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
7569 (clean_graph_dump_file): Pass base to start_graph_dump.
7570
576fe41a
RH
75712013-02-14 Richard Henderson <rth@redhat.com>
7572
7573 PR target/55941
7574 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
7575
bb3accfa
SB
75762013-02-14 Steven Bosscher <steven@gcc.gnu.org>
7577
7578 * collect2-aix.h: Define F_LOADONLY.
7579
03143140
RB
75802013-02-14 Richard Biener <rguenther@suse.de>
7581
7582 PR lto/50494
7583 * varasm.c (output_constant_def_1): Get the decl representing
7584 the constant as argument.
7585 (output_constant_def): Wrap output_constant_def_1.
7586 (make_decl_rtl): Use output_constant_def_1 with the decl
7587 representing the constant.
7588 (build_constant_desc): Optionally re-use a decl already
7589 representing the constant.
7590 (tree_output_constant_def): Adjust.
7591
8fb06726
DS
75922013-02-14 Dodji Seketeli <dodji@redhat.com>
7593
7594 Fix an asan crash
7595 * asan.c (instrument_builtin_call): Really put the length of the
7596 second source argument into src1_len.
7597
c4bfe8bf
JJ
75982013-02-13 Jakub Jelinek <jakub@redhat.com>
7599
7600 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
7601 argument. If it is false, don't create edge from then_bb to
7602 fallthru_bb.
7603 (insert_if_then_before_iter): Pass true to it.
7604 (build_check_stmt): Pass false to it.
7605 (transform_statements): Flush hash table only on extended basic
7606 block boundaries, rather than at the beginning of every bb.
7607 Don't flush hash table on nonfreeing_call_p calls.
7608 * tree-flow.h (nonfreeing_call_p): New prototype.
7609 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
7610
7afe2801
DM
76112013-02-13 David S. Miller <davem@davemloft.net>
7612
7613 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
7614
70cc3288
VM
76152013-02-13 Vladimir Makarov <vmakarov@redhat.com>
7616
7617 PR target/56184
7618 * ira.c (max_regno_before_ira): Move from ...
7619 (ira): ... here.
7620 (fix_reg_equiv_init): Use max_regno_before_ira instead of
7621 vec_safe_length.
7622
6422242b
JJ
76232013-02-13 Jakub Jelinek <jakub@redhat.com>
7624
7625 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
7626
976a81ee
RB
76272013-02-13 Richard Biener <rguenther@suse.de>
7628
7629 PR lto/56295
7630 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
7631 globals in MEM_REFs.
7632
c1874a87
RB
76332013-02-13 Richard Biener <rguenther@suse.de>
7634
7635 * loop-init.c (loop_optimizer_init): Clear loop state when
7636 re-initializing preserved loops.
7637 * loop-unswitch.c (unswitch_single_loop): Return whether
7638 we unswitched the loop. Do not verify loop state here.
88b97037 7639 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 7640
b4ab7d34
KS
76412013-02-13 Kostya Serebryany <kcc@google.com>
7642
88b97037
UB
7643 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
7644 on x86_64 linux.
b4ab7d34
KS
7645 * sanitizer.def: Rename __asan_init to __asan_init_v1.
7646
bdcbe80c
DS
76472013-02-12 Dodji Seketeli <dodji@redhat.com>
7648
7649 Avoid instrumenting duplicated memory access in the same basic block
7650 * Makefile.in (asan.o): Add new dependency on hash-table.h
7651 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
7652 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
7653 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
7654 (free_mem_ref_resources, has_mem_ref_been_instrumented)
7655 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
7656 (get_mem_ref_of_assignment): New functions.
7657 (get_mem_refs_of_builtin_call): Extract from
7658 instrument_builtin_call and tweak a little bit to make it fit with
7659 the new signature.
7660 (instrument_builtin_call): Use the new
7661 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
7662 of is_gimple_builtin_call.
7663 (instrument_derefs, instrument_mem_region_access): Insert the
7664 instrumented memory reference into the hash table.
7665 (maybe_instrument_assignment): Renamed instrument_assignment into
7666 this, and change it to advance the iterator when instrumentation
7667 actually happened and return true in that case. This makes it
7668 homogeneous with maybe_instrument_assignment, and thus give a
7669 chance to callers to be more 'regular'.
7670 (transform_statements): Clear the memory reference hash table
7671 whenever we enter a new BB, when we cross a function call, or when
7672 we are done transforming statements. Use
7673 maybe_instrument_assignment instead of instrumentation. No more
7674 need to special case maybe_instrument_assignment and advance the
7675 iterator after calling it; it's now handled just like
7676 maybe_instrument_call. Update comment.
7677
4861a1f7
RB
76782013-02-13 Richard Biener <rguenther@suse.de>
7679
7680 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7681 Fix loop discovery code.
7682
1c86bd80
VM
76832013-02-12 Vladimir Makarov <vmakarov@redhat.com>
7684
7685 PR inline-asm/56148
7686 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 7687 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
7688 the operand is not reloaded. Prefer to reload conflicting operand
7689 if earlyclobber and matching operands are the same.
7690
7cbda518
RB
76912013-02-12 Richard Biener <rguenther@suse.de>
7692
7693 PR lto/56297
7694 * lto-streamer-out.c (write_symbol): Do not output symbols
7695 for hard register variables.
7696
e68a4ef6
GJL
76972013-02-12 Georg-Johann Lay <avr@gjlay.de>
7698
7699 PR target/54222
7700 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
7701 (umulsidi3_insn, mulsidi3_insn): New insns.
7702
a72d8780 77032013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
7704
7705 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
7706 (struct tune_params): Add vec_costs field.
7707 * config/arm/arm.c (arm_builtin_vectorization_cost)
7708 (arm_add_stmt_cost): New functions.
7709 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
7710 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
7711 (arm_default_vec_cost): New struct of type cpu_vec_costs.
7712 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7713 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
7714 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
7715 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
7716
43320568
RB
77172013-02-12 Richard Biener <rguenther@suse.de>
7718
7719 PR lto/56295
7720 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
7721 decls again if possible.
7722
a011aa39
RB
77232013-02-12 Richard Biener <rguenther@suse.de>
7724
7725 PR middle-end/56288
7726 * tree-ssa.c (verify_ssa_name): Fix check, move
7727 SSA_NAME_IN_FREE_LIST check up.
7728
6da26889
JJ
77292013-02-12 Jakub Jelinek <jakub@redhat.com>
7730 Steven Bosscher <steven@gcc.gnu.org>
7731
7732 PR rtl-optimization/56151
7733 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
7734 equal to op0 or op1, and last_insn pattern is CODE operation
7735 with MEM dest and one of the operands matches that MEM.
7736
f80e0faf
ST
77372013-02-11 Sriraman Tallam <tmsriramgoogle.com>
7738
7739 * doc/extend.texi: Document Function Multiversioning and "default"
7740 parameter string to target attribute.
7741 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
7742 target attribute parameter is "default".
7743 (ix86_compare_version_priority): Remove checks for target attribute.
7744 (ix86_mangle_function_version_assembler_name): Change error to sorry.
7745 Remove check for target attribute equal to NULL. Add assert.
7746 (ix86_generate_version_dispatcher_body): Change error to sorry.
7747
6c59ffd1
IS
77482013-02-11 Iain Sandoe <iain@codesourcery.com>
7749 Jack Howarth <howarth@bromo.med.uc.edu>
7750 Patrick Marlier <patrick.marlier@gmail.com>
7751
7752 PR libitm/55693
7753 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
7754 define ENDFILE_SPEC as TM_DESTRUCTOR.
7755 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
7756
a72d8780 77572013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
7758 Jack Howarth <howarth@bromo.med.uc.edu>
7759 Jakub Jelinek <jakub@redhat.com>
7760
7761 PR sanitizer/55617
7762 * config/darwin.c (cdtor_record): Rename ctor_record.
7763 (sort_cdtor_records): Rename sort_ctor_records.
7764 (finalize_dtors): New routine to sort destructors by
7765 priority before use in assemble_integer.
7766 (machopic_asm_out_destructor): Use finalize_dtors if needed.
7767
b63fe007
UB
77682013-02-11 Uros Bizjak <ubizjak@gmail.com>
7769
7770 PR rtl-optimization/56275
7771 * simplify-rtx.c (avoid_constant_pool_reference): Check that
7772 offset is non-negative and less than cmode size before
7773 calling simplify_subreg.
7774
8e89b5b5
RB
77752013-02-11 Richard Biener <rguenther@suse.de>
7776
7777 PR tree-optimization/56264
7778 * cfgloop.h (fix_loop_structure): Adjust prototype.
7779 * loop-init.c (fix_loop_structure): Return the number of
7780 newly discovered loops.
7781 * tree-cfgcleanup.c (repair_loop_structures): When new loops
7782 are discovered, do a full loop-closed SSA rewrite.
7783
b4a4b56d
RB
77842013-02-11 Richard Biener <rguenther@suse.de>
7785
7786 PR tree-optimization/56273
7787 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7788 first VRP run.
7789 (check_array_ref): Fix missing newline in dumps.
7790 (search_for_addr_array): Likewise.
7791
0c885229
DE
77922013-02-09 David Edelsohn <dje.gcc@gmail.com>
7793
7794 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
7795
59ac9a55
JJ
77962013-02-09 Jakub Jelinek <jakub@redhat.com>
7797
7798 PR target/56256
7799 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
7800
25bb0bb5
VM
78012013-02-08 Vladimir Makarov <vmakarov@redhat.com>
7802
7803 PR rtl-optimization/56246
0c885229 7804 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
7805 reload pseudo.
7806 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
7807 constraints are satisfied.
7808
a698cc03
JL
78092013-02-08 Jeff Law <law@redhat.com>
7810
7811 PR debug/53948
7812 * emit-rtl.c (reg_is_parm_p): New function.
7813 * regs.h (reg_is_parm_p): New prototype.
7814 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
7815 callee-clobbered registers.
7816
e1122ddd
MM
78172013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7818
7819 PR target/56043
7820 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
7821 If there is no implicit builtin declaration, just return NULL.
7822
19c5f6e6
UB
78232013-02-08 Uros Bizjak <ubizjak@gmail.com>
7824
7825 * config/i386/sse.md (FMAMODEM): New mode iterator.
7826 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
7827 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
7828
2480f2ca 78292013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 7830
2480f2ca
UB
7831 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
7832 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
7833 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
7834
78352013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7836
7837 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
7838 (microblaze*-*-elf): Likewise.
7839 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
7840 LINK_SPEC.
7841 * config/microblaze/microblaze-c.c: Add builtin defines for
7842 _LITTLE_ENDIAN and _BIG_ENDIAN.
7843 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
7844 add to TARGET_DEFAULT flags.
76ef61fb 7845 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
7846 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7847 * config/microblaze/microblaze.md: Update extendsidi2 and
7848 movdi_internal instructions to use low-order / high-order reg
7849 print_operands.
7850 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
7851 options and inversemask / mask of LITTLE_ENDIAN.
7852 * config/microblaze/t-microblaze: Expand multilib options to
7853 include mlittle-endian (le) and update exceptions patterns.
7854
600a5961
JJ
78552013-02-08 Jakub Jelinek <jakub@redhat.com>
7856
5df81313
JJ
7857 PR rtl-optimization/56195
7858 * lra-constraints.c (get_reload_reg): Don't reuse regs
7859 if they have smaller mode than requested, if they have
7860 wider mode than requested, try to return a SUBREG.
7861
600a5961
JJ
7862 PR tree-optimization/56250
7863 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
7864 if type is unsigned and code isn't MULT_EXPR.
7865
ff544649
GJL
78662013-02-08 Georg-Johann Lay <avr@gjlay.de>
7867
7868 PR tree-optimization/56064
7869 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
7870 bits according to mode.
7871 * fixed-value.h (fixed_from_double_int)
7872 (const_fixed_from_double_int): Adjust comments.
7873
e45cde98
RB
78742013-02-08 Richard Biener <rguenther@suse.de>
7875
7876 PR lto/56231
7877 * lto-streamer.h (struct data_in): Remove current_file, current_line
7878 and current_col members.
7879 * lto-streamer-out.c (lto_output_location): Stream changed bits
7880 en-block for efficiency.
7881 * lto-streamer-in.c (clear_line_info): Remove.
7882 (lto_input_location): Cache current file, line and column
7883 globally via local statics. Read changed bits en-block.
7884 (input_function): Do not call clear_line_info.
7885 (lto_read_body): Likewise.
7886 (lto_input_toplevel_asms): Likewise.
7887
c1ca73d8
MM
78882013-02-08 Michael Matz <matz@suse.de>
7889
7890 PR tree-optimization/52448
7891 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7892 (nt_call_phase): New static.
7893 (add_or_mark_expr): Only mark accesses with newer phase than any
7894 call seen.
7895 (nonfreeing_call_p): New.
7896 (nt_init_block): Update nt_call_phase, mark blocks as visited.
7897 (nt_fini_block): Keep blocks marked as visited.
7898 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7899
57548aa2
RB
79002013-02-08 Richard Biener <rguenther@suse.de>
7901
7902 * ira.c (ira): Free broken dominator information.
7903
8e10366f
UB
79042013-02-08 Uros Bizjak <ubizjak@gmail.com>
7905
7906 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7907
f64fb0fa
MP
79082013-02-08 Marek Polacek <polacek@redhat.com>
7909
8e10366f 7910 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 7911
0375167b
RB
79122013-02-08 Richard Biener <rguenther@suse.de>
7913
7914 PR middle-end/56181
7915 * cfgloop.h (flow_loops_find): Adjust.
7916 (bb_loop_header_p): Declare.
7917 * cfgloop.c (bb_loop_header_p): New function split out from ...
7918 (flow_loops_find): ... here. Adjust function signature,
7919 support incremental loop structure update.
7920 (verify_loop_structure): Cleanup. Verify a loop is a loop.
7921 * cfgloopmanip.c (fix_loop_structure): Move ...
7922 * loop-init.c (fix_loop_structure): ... here.
7923 (apply_loop_flags): Split out from ...
7924 (loop_optimizer_init): ... here.
7925 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
7926 in incremental mode, only remove dead loops here.
7927
85d768f3
GJL
79282013-02-08 Georg-Johann Lay <avr@gjlay.de>
7929
7930 PR target/54222
7931 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7932 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7933 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7934 (*round<mode>3.libgcc): New insns for fixed-modes.
7935 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
7936 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
7937 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
7938 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
7939 implementations. Define to __builtin_avr_absFX,
7940 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
7941 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
7942 __builtin_avr_countlsFX, respectively.
7943 * config/avr/avr-c.c (target.h): Include it.
7944 (enum avr_builtin_id): New enum.
7945 (avr_resolve_overloaded_builtin): New static function.
7946 (avr_register_target_pragmas): Use it to set
7947 targetm.resolve_overloaded_builtin.
7948 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
7949 tree nodes used by DEF_BUILTIN.
7950 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
7951 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
7952 <AVR_BUILTIN_xxBITS>: Same.
7953
661bc682
RB
79542013-02-08 Richard Biener <rguenther@suse.de>
7955
7956 * cfgloop.c (verify_loop_structure): Properly handle
7957 a loop exiting to another loop header.
7958 * ira-int.h (ira_loops): Remove.
7959 * ira.c (ira_loops): Remove.
7960 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
7961 (do_reload): Use loop_optimizer_finalize.
7962 * ira-build.c (create_loop_tree_nodes): Use get_loops and
7963 number_of_loops to access the loop tree.
7964 (more_one_region_p): Likewise.
7965 (finish_loop_tree_nodes): Likewise.
7966 (rebuild_regno_allocno_maps): Likewise.
7967 (mark_loops_for_removal): Likewise.
7968 (mark_all_loops_for_removal): Likewise.
7969 (remove_unnecessary_regions): Likewise.
7970 (ira_build): Likewise.
7971 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7972
0d5049b2
RB
79732013-02-08 Richard Biener <rguenther@suse.de>
7974
7975 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
7976 * ipa-pure-const.c (analyze_function): Avoid calling
7977 mark_irreducible_loops twice.
8e10366f 7978 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 7979
499f32e8
DM
79802013-02-07 David S. Miller <davem@davemloft.net>
7981
7982 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
7983 on 'reg'.
7984 * var-tracking.c (vt_add_function_parameter): Test the presence of
7985 HAVE_window_save properly and do not remap argument registers when
7986 we have a leaf function.
7987
6edc3e32
UB
79882013-02-07 Uros Bizjak <ubizjak@gmail.com>
7989
7990 PR bootstrap/56227
7991 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
7992 instead of "ll".
7993 * config/i386/i386.c (ix86_print_operand): Ditto.
7994
5306401f
VM
79952013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7996
6edc3e32 7997 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 7998
027ece11
VM
79992013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8000
8001 PR rtl-optimization/56225
8002 * lra-constraints.c (process_alt_operands): Check that reload hard
8003 reg can hold value for strict_low_part.
8004
f980dfdb
JJ
80052013-02-07 Jakub Jelinek <jakub@redhat.com>
8006
8007 PR debug/56154
8008 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8009 dwarf2out_end_function.
8010 (in_first_function_p, maybe_at_text_label_p,
8011 first_loclabel_num_not_at_text_label): New variables.
8012 (dwarf2out_var_location): In the first function find out
6edc3e32 8013 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
8014 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8015 functions.
8016
73dd3123
EB
80172013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8018
8019 PR rtl-optimization/56178
8020 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8021 SUBREG of a register. Tidy up related block of code.
8022 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8023 note if the source is a register or a SUBREG of a register.
8024
e3936f47
JJ
80252013-02-07 Jakub Jelinek <jakub@redhat.com>
8026
8027 PR target/56228
8028 * config/rs6000/rs6000.md (ptrm): New mode attr.
8029 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8030 call_value_indirect_aix<pttrsize>,
8031 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8032 m in constraints.
8033
d96d674b
MH
80342013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8035
8036 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8037 if -bnortl. Convert to strcmp and strncmp.
8038
921f2dee
AM
80392013-02-07 Alan Modra <amodra@gmail.com>
8040
8041 PR target/54009
8042 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8043 addresses won't wrap when offsetting.
8044 (rs6000_secondary_reload): Provide secondary reloads needed for
8045 wrapping LO_SUM addresses.
8046
d09c7dba
TS
80472013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8048
8049 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8050 MACH, just __MACH__.
8051
a44bbd48
RB
80522013-02-06 Richard Biener <rguenther@suse.de>
8053
8054 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8055 instead of calling fix_loop_structure.
8056
6d840d99
JJ
80572013-02-06 Jakub Jelinek <jakub@redhat.com>
8058
8059 PR middle-end/56217
8060 * omp-low.c (use_pointer_for_field): Return false if
8061 lower_send_shared_vars doesn't generate any copy-out code.
8062
0f33baa9
TV
80632013-02-06 Tom de Vries <tom@codesourcery.com>
8064
8065 PR rtl-optimization/56131
8066 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8067 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
8068 of the label is NULL. Add comment.
8069
11f1e3ab
JJ
80702013-02-05 Jakub Jelinek <jakub@redhat.com>
8071
31502f9f
JJ
8072 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8073
a74db9bd
JJ
8074 PR sanitizer/55374
8075 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8076 (STATIC_LIBTSAN_LIBS): Likewise.
8077 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8078 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8079 is defined, don't add anything else beyond that.
8080 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8081 (LINK_COMMAND_SPEC): Use them.
8082
11f1e3ab
JJ
8083 PR tree-optimization/56205
8084 * tree-stdarg.c (check_all_va_list_escapes): Return true if
8085 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8086 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8087
14ac6aa2
RB
80882013-02-05 Richard Biener <rguenther@suse.de>
8089
8090 PR tree-optimization/53342
8091 PR tree-optimization/53185
8092 * tree-vectorizer.h (vect_check_strided_load): Remove.
8093 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8094 not disallow peeling for vectorized strided loads.
8095 (vect_check_strided_load): Make static and simplify.
8096 (vect_analyze_data_refs): Adjust.
8097 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8098 correctly when vectorizing strided loads.
8099
6f22445a
RB
81002013-02-05 Richard Biener <rguenther@suse.de>
8101
8102 * doc/install.texi: Refer to ISL, not PPL.
8103
39f9719e
JH
81042013-02-05 Jan Hubicka <jh@suse.cz>
8105
ec4224ac
JH
8106 PR tree-optimization/55789
8107 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8108
81092013-02-05 Jan Hubicka <jh@suse.cz>
8110
8111 PR tree-optimization/55789
39f9719e
JH
8112 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8113 the dead call anyway.
8114
956d3b33
EB
81152013-02-05 Eric Botcazou <ebotcazou@adacore.com>
8116
8117 PR sanitizer/55374
8118 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
8119
81202013-02-04 Alexander Potapenko <glider@google.com>
8121 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
8122 Jakub Jelinek <jakub@redhat.com>
8123
8124 PR sanitizer/55617
8125 * config/darwin.c (sort_ctor_records): Stabilized qsort
8126 on constructor priority by using original position.
8127 (finalize_ctors): New routine to sort constructors by
8128 priority before use in assemble_integer.
8129 (machopic_asm_out_constructor): Use finalize_ctors if needed.
8130
7ac3af38
JJ
81312013-02-04 Jakub Jelinek <jakub@redhat.com>
8132
8133 PR libstdc++/54314
8134 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
8135 about visibility on artificial decls.
8136 * config/sol2.c (solaris_assemble_visibility): Likewise.
8137
152689dc
KT
81382013-02-04 Kai Tietz <ktietz@redhat.com>
8139
8140 PR target/56186
8141 * config/i386/i386.c (function_value_ms_64): Add additional valtype
8142 argument and improve checking of return-argument types for 16-byte
8143 modes.
8144 (ix86_function_value_1): Add additional valtype argument on call
8145 of function_value_64.
8146 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
8147 handling infunction_value_64 function.
8148
2b5987b5
MGD
81492013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8150
7ac3af38 8151 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 8152
14597080
RB
81532013-02-04 Richard Biener <rguenther@suse.de>
8154
8155 PR tree-optimization/56188
8156 * tree-ssa-structalias.c (label_visit): Consider case with
8157 initially non-empty points-to set.
8158 (perform_var_substitution): Dump node mapping and clean up.
8159
ed73881e
RG
81602013-02-04 Richard Guenther <rguenther@suse.de>
8161
8162 PR lto/56168
8163 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
8164 node prevail as last resort.
8165 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 8166 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 8167
139a0707
RB
81682013-02-04 Richard Biener <rguenther@suse.de>
8169
8170 PR tree-optimization/56113
8171 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
8172 Merge into ...
8173 (equiv_class_lookup_or_add): ... this.
8174 (label_visit): Adjust and fix error in previous patch.
8175 (perform_var_substitution): Adjust.
8176
50fe8924
OE
81772013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
8178
8179 * config/sh/divtab.c: Fix formatting and comments throughout the file.
8180 * config/sh/sh4-300.md: Likewise.
8181 * config/sh/sh4a.md: Likewise.
8182 * config/sh/constraints.md: Likewise.
8183 * config/sh/sh.md: Likewise.
8184 * config/sh/netbsd-elf.h: Likewise.
8185 * config/sh/predicates.md: Likewise.
8186 * config/sh/sh-protos.h: Likewise.
8187 * config/sh/ushmedia.h: Likewise.
8188 * config/sh/linux.h: Likewise.
8189 * config/sh/sh.c: Likewise.
8190 * config/sh/superh.h: Likewise.
8191 * config/sh/elf.h: Likewise.
8192 * config/sh/sh4.md: Likewise.
8193 * config/sh/sh.h: Likewise.
8194
1a04ac2b
JDA
81952013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8196
8197 * config/pa/constraints.md: Adjust unused letters. Change "T"
8198 constraint to match_test floating_point_store_memory_operand().
8199 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
8200 (base14_operand): New.
8201 (floating_point_store_memory_operand): New.
8202 (integer_store_memory_operand): Revise to use base14_operand and
8203 reg_plus_base_memory_operand.
8204 (move_dest_operand): Allow symbolic_memory_operands.
8205 (symbolic_memory_operand): Check for LO_SOM.
8206 (symbolic_operand): Change default case to break.
8207 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
8208 CONST_DOUBLE values to be reloaded by putting them into memory when
8209 the destination is a floating point register.
8210 (movdf): Remove code to handle CONST_DOUBLE.
8211 (movsf): Likewise.
8212 (reload_indf_r1): New.
8213 (reload_insf_r1): New.
8214 Consistently use "Q" and "T" constraints with integer and floating
8215 point move instructions, respectively.
8216 (movdi): Remove FAIL.
8217 Change predicate for source operand unamed DImode move from
8218 general_operand to move_src_operand.
8219 (umulsidi3): Change predicate for destination operand to
8220 register_operand.
8221 Likewise for similar unamed patterns.
8222 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
8223 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
8224 (hppa_legitimize_address): Simplify mask calculation.
8225 (pa_emit_move_sequence): Revised handling of secondary reloads from
8226 REG+D addresses for floating point loads and stores. Directly handle
8227 loading CONST0_RTX (mode) to a floating point register.
8228 (pa_secondary_reload): Handle reloading DF and SFmode constant values
8229 to floating point registers. Don't restrict secondary reloads to
8230 floating point registers to integer modes. Revise some comments and
8231 cleanup some code.
8232 (TARGET_LEGITIMATE_ADDRESS_P): Define.
8233 (pa_legitimate_address_p): New.
8234 (pa_legitimize_reload_address): New.
8235 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
8236 (STRICT_REG_OK_FOR_BASE_P): New.
8237 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
8238 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
8239
3bf65591
DE
82402013-02-03 David Edelsohn <dje.gcc@gmail.com>
8241 Andrew Dixie <andrewd@gentrack.com>
8242
8243 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
8244 flag set.
8245
c0a8a3e6
RS
82462013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
8247
8248 * expmed.c (extract_bit_field_1): Pass the full width of the
8249 structure to get_best_reg_extraction_insn.
8250
99113dff
DE
82512013-02-01 David Edelsohn <dje.gcc@gmail.com>
8252
8253 PR target/54601
8254 * configure.ac (use_cxa_atexit): Add AIX.
8255 * configure: Regenerate.
8256
8257 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
8258
ddd84654
JJ
82592013-02-01 Jakub Jelinek <jakub@redhat.com>
8260
8261 PR debug/54793
8262 * final.c (need_profile_function): New variable.
8263 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
8264 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
8265 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
8266 notes, targetm.asm_out.function_prologue doesn't emit anything,
8267 HAVE_prologue and profiler should be emitted before prologue,
8268 set need_profile_function instead of emitting it.
8269 (final_scan_insn): If need_profile_function, emit
8270 profile_function on the first NOTE_INSN_BASIC_BLOCK or
8271 NOTE_INSN_FUNCTION_BEG note.
8272
82732013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
8274
8275 * config/rs6000/rs6000.md (smulditi3): New.
8276 (umulditi3): New.
8277
ff2a9d88
RH
8278 * config/alpha/alpha.md (umulditi3): New.
8279
14d52b90
DE
82802013-02-01 David Edelsohn <dje.gcc@gmail.com>
8281
8282 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
8283 (ASM_OUTPUT_ALIGNED_LOCAL): New.
8284
8c7ca45c
RB
82852013-02-01 Richard Biener <rguenther@suse.de>
8286
8287 PR tree-optimization/56113
8288 * tree-ssa-structalias.c (label_visit): Reduce work for
8289 single-predecessor nodes.
8290
9f419393
EB
82912013-02-01 Eric Botcazou <ebotcazou@adacore.com>
8292
8293 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
8294 range isn't testing for zero.
8295
c5f4be84
SB
82962013-01-31 Steven Bosscher <steven@gcc.gnu.org>
8297
8298 PR middle-end/56113
8299 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
8300
dbdbd982
NC
83012013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
8302 Nick Clifton <nickc@redhat.com>
8303
8304 * config/v850/constraints.md (Q): Define as a memory constraint.
8305 * config/v850/predicates.md (label_ref_operand): New predicate.
8306 (e3v5_shift_operand): New predicate.
8307 (ior_operator): New predicate.
8308 * config/v850/t-v850: Add e3v5 multilib.
8309 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
8310 (v850_gen_movdi): Prototype.
8311 * config/v850/v850.c: Add support for e3v5 architecture.
8312 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
8313 TARGET_V850E_UP.
8314 (construct_save_jarl): Add e3v5 long JARL support.
8315 (v850_adjust_insn_length): New function. Adjust length of call
8316 insns when using e3v5 instructions.
8317 (v850_gen_movdi): New function: Generate instructions to move a
8318 DImode value.
8319 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
8320 (CPP_SPEC): Define __v850e3v5__ as appropriate.
8321 (TARGET_USE_FPU): Enable for e3v5.
8322 (CONST_OK_FOR_W): New macro.
8323 (ADJUST_INSN_LENGTH): Define.
8324 * config/v850/v850.md (UNSPEC_LOOP): Define.
8325 (attr cpu): Add v850e3v5.
8326 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
8327 (movdi): New pattern.
8328 (movdi_internal): New pattern.
8329 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
8330 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
8331 (cstoresf4): Likewise.
8332 (cstoredf4): Likewise.
8333 (insv): New pattern.
8334 (rotlso3_a): New pattern.
8335 (rotlsi3_b): New pattern
8336 (rotlsi3_v850e3v5): New pattern.
8337 (doloop_begin): New pattern.
8338 (fix_loop_counter): New pattern.
8339 (doloop_end): New pattern.
8340 (branch_normal): Add e3v5 long branch support.
8341 (branch_invert): Likewise.
8342 (branch_z_normal): Likewise.
8343 (branch_z_invert): Likewise.
8344 (branch_nz_normal): Likewise.
8345 (branch_nz_invert): Likewise.
8346 (call_internal_short): Add e3v5 register-indirect JARL support.
8347 (call_internal_long): Likewise.
8348 (call_value_internal_short): Likewise.
8349 (call_value_internal_long): Likewise.
8350 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
8351 (mloop): New option.
8352 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 8353 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 8354
73861a41
PK
83552013-01-31 Paul Koning <ni1d@arrl.net>
8356
8357 PR debug/55059
8358 PR debug/54508
8359 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
8360 children if parent is a class.
8361 (prune_unused_types_prune): Don't add DW_AT_declaration.
8362
e44978dc
RB
83632013-01-31 Richard Biener <rguenther@suse.de>
8364
8365 PR tree-optimization/56157
8366 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
8367 match up operand with SLP child.
8368
90b10dec
JM
83692013-01-31 Jason Merrill <jason@redhat.com>
8370
04d2dadd 8371 PR debug/54410
90b10dec
JM
8372 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
8373 parameters the first time.
8374 (gen_scheduled_generic_parms_dies): Check completeness here.
8375
6e616110
RB
83762013-01-31 Richard Biener <rguenther@suse.de>
8377
8378 PR middle-end/53073
8379 * common.opt (faggressive-loop-optimizations): New flag,
8380 enabled by default.
8381 * doc/invoke.texi (faggressive-loop-optimizations): Document.
8382 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
8383 infer_loop_bounds_from_undefined by it.
8384
636f59cf
RB
83852013-01-31 Richard Biener <rguenther@suse.de>
8386
8387 PR tree-optimization/56150
8388 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
8389 visit virtual operands.
8390 (find_uses_to_rename_bb): Likewise.
8391
83922013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
8393
8394 PR tree-optimization/56150
8395 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
8396 mixed store non-store stmts.
8397
32887460
JJ
83982013-01-30 Jakub Jelinek <jakub@redhat.com>
8399
e60e09a0
JJ
8400 PR sanitizer/55374
8401 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
8402 LIBASAN_EARLY_SPEC is defined.
8403 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
8404 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
8405 before %o.
8406 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
8407
32887460
JJ
8408 PR c++/55742
8409 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
8410 invalid args instead of ICEing on it.
8411 (ix86_valid_target_attribute_tree): Return error_mark_node if
8412 ix86_valid_target_attribute_inner_p failed.
8413 (ix86_valid_target_attribute_p): Return false only if
8414 ix86_valid_target_attribute_tree returned error_mark_node. Allow
8415 target("default") attribute.
8416 (sorted_attr_string): Change argument from const char * to tree,
8417 merge in all target attribute arguments rather than just one.
8418 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
8419 instead of free. Avoid using strcat.
8420 (ix86_mangle_function_version_assembler_name): Mangle
8421 target("default") as if no target attribute is present. Adjust
8422 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
8423 instead of xmalloc and XDELETEVEC instead of free.
8424 (ix86_function_versions): Don't return true if one of the decls
8425 doesn't have target attribute. If they don't and one of the decls
8426 is DECL_FUNCTION_VERSIONED, report an error. Adjust
8427 sorted_attr_string caller. Use XDELETEVEC instead of free.
8428 (ix86_supports_function_versions): Remove.
8429 (make_name): Fix up formatting.
8430 (make_dispatcher_decl): Remove resolver_name and its initialization.
8431 Avoid leaking memory.
8432 (is_function_default_version): Return true if there is
8433 target("default") attribute rather than no target attribute at all.
8434 (make_resolver_func): Avoid leaking memory.
8435 (ix86_generate_version_dispatcher_body): Likewise.
8436 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
8437 * target.def (supports_function_versions): Remove.
8438 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
8439 * doc/tm.texi: Regenerated.
8440
73cca0cc
VM
84412013-01-30 Vladimir Makarov <vmakarov@redhat.com>
8442
8443 PR rtl-optimization/56144
8444 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
8445 for values with side effects.
8446
11452e7b
RB
84472013-01-30 Richard Biener <rguenther@suse.de>
8448
8449 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
8450 (sparseset_pop): Likewise.
8451 * cfganal.c (compute_idf): Likewise. Increase work-stack size
8452 to be able to use quick_push in the worker loop.
8453
01cb1ef5
MP
84542013-01-30 Marek Polacek <polacek@redhat.com>
8455
8456 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
8457
e892936e
RB
84582013-01-30 Richard Biener <rguenther@suse.de>
8459
8460 PR lto/56147
6edc3e32 8461 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 8462
cc06c01d
GJL
84632013-01-30 Georg-Johann Lay <avr@gjlay.de>
8464
8465 PR tree-optimization/56064
8466 * fixed-value.c (fixed_from_double_int): New function.
8467 * fixed-value.h (fixed_from_double_int): New prototype.
8468 (const_fixed_from_double_int): New static inline function.
8469 * fold-const.c (native_interpret_fixed): New static function.
8470 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
8471 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
8472 (native_encode_fixed): New static function.
8473 (native_encode_expr) <FIXED_CST>: Use it.
8474 (native_interpret_int): Move double_int worker code to...
8475 * double-int.c (double_int::from_buffer): ...this new static method.
8476 * double-int.h (double_int::from_buffer): Prototype it.
8477
d394a308
RB
84782013-01-30 Richard Biener <rguenther@suse.de>
8479
8480 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
8481 New pointer-map and obstack.
8482 (init_alias_vars): Allocate pointer-map and obstack.
8483 (delete_points_to_sets): Free them.
8484 (find_what_var_points_to): Cache result.
8485 (find_what_p_points_to): Adjust for changed interface of
8486 find_what_var_points_to.
8487 (compute_points_to_sets): Likewise.
8488 (ipa_pta_execute): Likewise.
8489
20804d96
RO
84902013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8491
8492 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
8493 * configure: Regenerate.
8494 * config.in: Regenerate.
8495 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
8496 #nobits/#progbits if supported.
8497
a7ad88a2
OE
84982013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
8499
8500 PR target/56121
8501 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8502 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
8503 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
8504
7af79f92
GY
85052013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8506
91bfca59
OE
8507 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
8508 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 8509
753bcf7b
GY
85102013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8511
91bfca59
OE
8512 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
8513 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 8514
8cbc2ea8
GY
85152013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8516
91bfca59
OE
8517 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
8518 declaration.
8519 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
8520 * config/arm/cortex-a7.md: New bypasses using
8521 arm_mac_accumulator_is_result.
8cbc2ea8 8522
697a3325
GY
85232013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8524
91bfca59 8525 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 8526 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
8527 (cortex_a7_fpfmad): New reservation.
8528 (cortex_a7_fpmacs): Use ffmas and update required units.
8529 (cortex_a7_fpmuld): Update required units and latency.
8530 (cortex_a7_fpmacd): Likewise.
8531 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
8532 (cortex_a7_neon). Likewise.
8533 (bypass) Update participating units.
697a3325 8534
29637783
GY
85352013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8536
91bfca59
OE
8537 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
8538 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
8539 from fmac to ffma.
8540 * config/arm/vfp11.md (vfp_farith): Use ffmas.
8541 (vfp_fmul): Use ffmad.
8542 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
8543 (cortex_r4_fmacd): Use ffmad.
8544 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
8545 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
8546 (cortex_a9_fmacd): Use ffmad.
8547 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
8548 (cortex_a8_vfp_macd): Use ffmad.
8549 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
8550 (cortex_a5_fpmacd): Use ffmad.
8551 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
8552 (cortex_a15_vfp_macd): Use ffmad.
8553 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 8554
2ee8a2d5
JM
85552013-01-29 Jason Merrill <jason@redhat.com>
8556
8557 PR libstdc++/54314
8558 * varasm.c (default_assemble_visibility): Don't warn about
8559 visibility on artificial decls.
8560
78d087bc
RB
85612013-01-29 Richard Biener <rguenther@suse.de>
8562
8563 PR tree-optimization/56113
8564 * tree-ssa-structalias.c (equiv_class_lookup): Also return
8565 the bitmap leader.
8566 (label_visit): Free duplicate bitmaps and record the leader instead.
8567 (perform_var_substitution): Adjust.
8568
83ba4d6f
RB
85692013-01-29 Richard Biener <rguenther@suse.de>
8570
8571 PR tree-optimization/55270
8572 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
8573 the CFG, schedule loops for fixup.
8574
66dfe13f
NC
85752013-01-29 Nick Clifton <nickc@redhat.com>
8576
8577 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
8578 SP_REG.
8579
5a579c3b
LE
85802013-01-28 Leif Ekblad <leif@rdos.net>
8581
8582 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
8583 * config/i386/i386.h (TARGET_RDOS): New macro.
8584 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
8585 * config/i386/i386.c (ix86_option_override_internal): For 64bit
8586 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
8587 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
8588 DEFAULT_LARGE_SECTION_THRESHOLD.
8589 * config/i386/i386.md (R14_REG, R15_REG): New constants.
8590 * config/i386/rdos.h: New file.
8591 * config/i386/rdos64.h: New file.
8592
51e44392
BS
85932013-01-28 Bernd Schmidt <bernds@codesourcery.com>
8594
8595 PR other/54814
8596 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
8597 TEST_HARD_REG_BIT.
8598
db1fb332
JJ
85992013-01-28 Jakub Jelinek <jakub@redhat.com>
8600
8601 PR rtl-optimization/56117
8602 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
8603 call cselib_lookup_from_insn on the MEM before calling
8604 add_insn_mem_dependence.
8605
16917761
RB
86062013-01-28 Richard Biener <rguenther@suse.de>
8607
8608 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
8609 to a stmt that didn't have one.
8610 (copy_phis_for_bb): Likewise for PHI arguments.
8611 (copy_debug_stmt): Likewise for debug stmts.
8612
b9fc0497
RB
86132013-01-28 Richard Biener <rguenther@suse.de>
8614
8615 PR tree-optimization/56034
6edc3e32 8616 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
8617 (partition_builtin_p): Adjust.
8618 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
8619 it is the last partition.
8620 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
8621 up the vertex for the definition.
8622 (classify_partition): Classify whether a partition is a
8623 PKIND_REDUCTION, thus has uses outside of the loop.
8624 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
8625 Merge all PKIND_REDUCTION partitions into the last partition.
8626 (tree_loop_distribution): Seed partitions from reductions as well.
8627
aa710d25
JJ
86282013-01-28 Jakub Jelinek <jakub@redhat.com>
8629
0bfbca58
JJ
8630 PR tree-optimization/56125
8631 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
8632 pow(x,c) into sqrt(x) * powi(x, n/2) or
8633 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
8634 optimizing for size.
8635 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
8636 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
8637 integer.
8638
aa710d25
JJ
8639 PR tree-optimization/56094
8640 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
8641 to UNKNOWN_LOCATION while gimplifying expr.
8642
77dc5297
UB
86432013-01-27 Uros Bizjak <ubizjak@gmail.com>
8644
8645 PR target/56114
8646 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
8647 operand 0 in movabs insn template for -masm=intel asm alternative.
8648 (*movabs<mode>_2): Ditto for operand 1.
8649
0bfbca58 86502013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
8651
8652 PR target/54663
8653 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
8654 of microblaze-c.o
8655
0bfbca58 86562013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
8657
8658 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
8659 tm_file.
8660
0bfbca58 86612013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
8662
8663 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
8664 Undef to avoid warning.
8665
478f60f9
MH
86662013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8667
8668 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
8669 * configure: Regenerate.
8670
d7fa6ee2
JJ
86712013-01-25 Jakub Jelinek <jakub@redhat.com>
8672
8673 PR tree-optimization/56098
8674 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
8675 for stmts with volatile ops.
8676 (cond_store_replacement): Don't optimize if assign has volatile ops.
8677 (cond_if_else_store_replacement_1): Don't optimize if either
8678 then_assign or else_assign have volatile ops.
8679 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
8680 volatile ops.
8681
f8fe87bd
GJL
86822013-01-25 Georg-Johann Lay <avr@gjlay.de>
8683
8684 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
8685
28398d0d
GJL
86862013-01-25 Georg-Johann Lay <avr@gjlay.de>
8687
8688 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
8689 missing ':' in asm example.
8690
b7d7d917
TB
86912013-01-25 Tejas Belagod <tejas.belagod@arm.com>
8692
8693 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
8694 entries into lane and laneq entries.
77dc5297
UB
8695 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
8696 Remove AdvSIMD scalar modes.
b7d7d917
TB
8697 (aarch64_sq<r>dmulh_laneq<mode>): New.
8698 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
8699 modes.
8700 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
8701 builtin implementations to relfect changes in RTL in aarch64-simd.md.
8702 * config/aarch64/iterators.md (VCOND): New.
8703 (VCONQ): New.
8704
556f9906
GJL
87052013-01-25 Georg-Johann Lay <avr@gjlay.de>
8706
8707 PR target/54222
8708 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
8709 Add NULL LIBNAME argument to existing definitions.
8710 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
8711 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
8712 * config/avr/avr.c (DEF_BUILTIN): Same.
8713 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
8714 (avr_expand_builtin): Expand to a vanilla call if a libgcc
8715 implementation is available (DECL_ASSEMBLER_NAME is set).
8716 (avr_fold_absfx): New static function.
8717 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
8718 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
8719 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
8720 AVR_BUILTIN_ABSLLK.
8721 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
8722 (abshk, absk, abslk, absllk): Provide as static inline functions.
8723
1f546bbb
MP
87242013-01-25 Marek Polacek <polacek@redhat.com>
8725
8726 PR tree-optimization/56035
8727 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
8728
7e184bd7
UB
87292012-01-24 Uros Bizjak <ubizjak@gmail.com>
8730
8731 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
8732 (*movtf_internal_rex64): Add (!o,C) alternative
8733 (*movxf_internal_rex64): Ditto.
8734 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
8735
f5ba49ac
SM
87362013-01-24 Shenghou Ma <minux.ma@gmail.com>
8737
8738 * doc/invoke.texi: fix typo.
8739 * doc/objc.texi: fix typo.
8740
a6343728
RS
87412013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8742
8743 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
8744 for the first two alternatives.
8745
cd030c07
DN
87462013-01-24 Diego Novillo <dnovillo@google.com>
8747
77dc5297 8748 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
8749 (ggc-zone.o): Remove.
8750 * configure.ac: Remove option --with-gc.
8751 * configure: Re-generate.
8752 * doc/install.texi: Remove documentation for --with-gc.
8753 * gengtype.c (write_enum_defn): Remove. Update all users.
8754 (write_Types_process_field): Remove generation of gt_e_* argument.
8755 (output_type_enum): Remove. Update all users.
8756 (write_enum_defn): Remove. Update all users.
8757 (enum alloc_zone): Remove. Update all users.
77dc5297 8758 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
8759 * ggc-common.c (ggc_splay_alloc): Remove first argument.
8760 Update all callers.
8761 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 8762 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
8763 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
8764 Update all users.
aaf1e810 8765 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
8766 (struct alloc_zone): Remove.
8767 (ggc_internal_alloc_zone_stat): Remove.
8768 (ggc_internal_cleared_alloc_zone_stat): Remove.
8769 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
8770 (ggc_pch_count_object): Remove last argument. Update all users.
8771 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
8772 (struct alloc_zone): Remove.
8773 * ggc-zone.c: Remove.
77dc5297 8774 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
8775 (struct alloc_zone): Remove.
8776 (ggc_alloc_typed_stat): Remove.
8777 (ggc_alloc_typed): Remove.
8778 (ggc_splay_alloc): Remove first argument.
8779 (rtl_zone): Remove. Update all users.
8780 (tree_zone): Remove. Update all users.
8781 (tree_id_zone): Remove. Update all users.
8782 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 8783 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 8784 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 8785 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 8786
a861ffa4
GJL
87872013-01-24 Georg-Johann Lay <avr@gjlay.de>
8788
8789 * config/avr/avr.c (avr_out_fract): Make register numbers that
8790 might be outside of source operand signed.
8791
593c0ddd
UB
87922013-01-24 Uros Bizjak <ubizjak@gmail.com>
8793
8794 * config/i386/constraints.md (Yf): New constraint.
8795 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
8796 of f constraint to conditionaly disable x87 register preferences.
8797 (*movdf_internal): Ditto.
8798 (*movsf_internal): Ditto.
8799
e86c0101
SB
88002013-01-24 Steven Bosscher <steven@gcc.gnu.org>
8801
8802 PR inline-asm/55934
8803 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
8804 that have operands with impossible constraints.
8805 Add a FIXME for a speed-up opportunity.
8806 * lra-constraints.c (process_alt_operands): Verify that a class
8807 selected from constraints on asms is valid for the operand mode.
8808 (curr_insn_transform): Remove incorrect comment.
8809
f6fee35f
DE
88102013-01-23 David Edelsohn <dje.gcc@gmail.com>
8811
8812 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
8813 TOC operand is a valid symbol ref in the constant pool.
8814
88152013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 8816
aaf1e810 8817 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 8818
dc62d7d1
GJL
88192013-01-23 Georg-Johann Lay <avr@gjlay.de>
8820
8821 PR target/54222
8822 * config/avr/stdfix.h: New file.
8823 * t-avr (stdfix-gcc.h): New rule to build it.
8824 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
8825
2660d12d
KS
88262013-01-23 Kostya Serebryany <kcc@google.com>
8827
77dc5297
UB
8828 * config/darwin.h: remove dependency on
8829 CoreFoundation (asan on Mac OS).
2660d12d 8830
a70418fc
JJ
88312013-01-23 Jakub Jelinek <jakub@redhat.com>
8832
8833 PR target/49069
8834 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
8835 instead of cmpdi_operand for first comparison operand.
8836 Don't assert that comparison operands aren't both constants.
8837
47876a2a
JW
88382013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8839
8840 * doc/install.texi (Downloading the Source): Update references to
8841 downloading separate components.
8842
88432013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
8844
8845 * doc/extend.texi (__int128): Improve grammar.
8846
47876a2a 88472013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
8848
8849 PR target/56028
8850 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
8851 alternative to (o,r).
8852 (*movdi_internal_rex64): Remove (!o,n) alternative.
8853 (DImode immediate->memory splitter): Remove.
8854 (DImode immediate->memory peephole2): Remove.
8855 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
8856 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
8857 alternative to (!o,*r).
8858 (*movtf_internal_sse): New pattern.
8859 (*movxf_internal_rex64): New pattern.
8860 (*movxf_internal): Disable for TARGET_64BIT.
8861 (*movdf_internal_rex64): Remove (!o,F) alternative.
8862
3a984f10
JJ
88632013-01-22 Jakub Jelinek <jakub@redhat.com>
8864
502498d5
JJ
8865 PR middle-end/56074
8866 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
8867 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
8868 * tree-vect-loop-manip.c (find_loop_location): Also ignore
8869 stmt locations where LOCATION_LOCUS of the stmt location is
8870 UNKNOWN_LOCATION or BUILTINS_LOCATION.
8871
3a984f10
JJ
8872 PR target/55686
8873 * config/i386/i386.md (UNSPEC_STOS): New.
8874 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
8875 *strsetqi_1): Add UNSPEC_STOS.
8876
fa817f7f
PC
88772013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
8878
8879 PR c++/56067
8880 * doc/invoke.texi: Remove left over -Wsynth example.
8881
8f498c1b
JJ
88822013-01-21 Jakub Jelinek <jakub@redhat.com>
8883
8884 PR tree-optimization/56051
8885 * fold-const.c (fold_binary_loc): Don't fold
8886 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8887 a narrowing conversion, or widening conversion from signed
8888 to unsigned.
8889
47876a2a 88902013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
8891
8892 PR rtl-optimization/56023
8893 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8894 dependent on debug instruction.
8895
5b9db1bc
MJ
88962013-01-21 Martin Jambor <mjambor@suse.cz>
8897
8898 PR middle-end/56022
8899 * function.c (allocate_struct_function): Call
8900 invoke_set_current_function_hook earlier.
8901
e8bb7d68
JJ
89022013-01-21 Jakub Jelinek <jakub@redhat.com>
8903
8904 * reload1.c (init_reload): Only initialize reload_obstack
8905 during the first call.
8906
616a4e32
MP
89072013-01-21 Marek Polacek <polacek@redhat.com>
8908
8909 * cfgloop.c (verify_loop_structure): Fix up grammar.
8910
4401981b
YHH
89112013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
8912
8913 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8914 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8915
8e87740b
RR
89162013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8917
8918 PR target/56058
8919 * config/arm/marvell-pj4.md: Update copyright year.
8920 Fix up use of alu to alu_reg and simple_alu_imm.
8921
47876a2a 89222013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
8923
8924 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8925
89d56d79
VM
89262013-01-20 Vladimir Makarov <vmakarov@redhat.com>
8927
8928 PR target/55433
8929 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 8930 insn for secondary memory move when memory mode should be different.
89d56d79 8931
fe603553
JDA
89322013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8933
8934 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
8935 atomic_storedi_1): New patterns.
8936
01284895
VK
89372013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8938
8939 btver2 pipeline descriptions.
8940 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
8941 descriptions.
8942 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 8943 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
8944 type attributes.
8945 * config/i386/btver2.md: New file describing btver2 pipelines.
8946
5630e3e1
JL
89472013-01-19 Andrew Pinski <apinski@cavium.com>
8948
8949 PR tree-optimization/52631
8950 * tree-ssa-sccvn (visit_use): Before looking up the original
8951 statement, try looking up the simplified expression.
8952
650ae806
AG
89532013-01-19 Anthony Green <green@moxielogic.com>
8954
8955 * config/moxie/moxie.c (moxie_expand_prologue): Set
8956 current_function_static_stack_size.
8957
e300ec2d
JJ
89582013-01-18 Jakub Jelinek <jakub@redhat.com>
8959
8960 PR tree-optimization/56029
8961 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
8962 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
8963
a3d7af04
SS
89642013-01-18 Sharad Singhai <singhai@google.com>
8965
8966 PR tree-optimization/55995
8967 * dumpfile.c (dump_loc): Print location only if available.
8968 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
8969
66aa7879
VM
89702013-01-18 Vladimir Makarov <vmakarov@redhat.com>
8971
8972 PR target/55433
8973 * lra-constraints.c (curr_insn_transform): Reuse original insn for
8974 secondary memory move.
8975 (inherit_reload_reg): Use rclass instead of cl for
8976 check_secondary_memory_needed_p.
8977
3f0fee7b
JJ
89782013-01-18 Jakub Jelinek <jakub@redhat.com>
8979
8980 PR middle-end/56015
8981 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 8982 the case where writing real complex part of target modifies op1.
3f0fee7b 8983
70c67693
JG
89842013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
8985
8986 * config/aarch64/aarch64-simd.md
8987 (aarch64_vcond_internal<mode>): Handle unordered cases.
8988 * config/aarch64/iterators.md (v_cmp_result): New.
8989
df8de9b3
YHH
89902013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
8991 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8992
8993 * config/arm/marvell-pj4.md: New file.
8994 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
8995 * config/arm/arm.md (generic_sched): Add marvell_pj4.
8996 (generic_vfp): Likewise.
8997 * config/arm/arm-cores.def: Add marvell-pj4.
8998 * config/arm/arm-tune.md: Regenerate.
8999 * config/arm/arm-tables.opt: Regenerate.
9000 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9001 * doc/invoke.texi: Document marvell-pj4.
9002
be30c356
TB
90032013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9004
9005 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9006
0bfbca58 90072013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
9008
9009 PR debug/54114
9010 PR debug/54402
9011 PR debug/49888
9012 * var-tracking.c (negative_power_of_two_p): New.
9013 (global_get_addr_cache, local_get_addr_cache): New.
9014 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9015 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9016 heading comment.
9017 (vt_stack_offset_p): Remove.
9018 (vt_canon_true_dep): Always canonicalize loc's address.
9019 (clobber_overlapping_mems): Make sure we have a MEM.
9020 (local_get_addr_clear_given_value): New.
9021 (val_reset): Clear local cached entries.
9022 (compute_bb_dataflow): Create and release the local cache.
9023 Disable duplicate MEMs clobbering.
9024 (emit_notes_in_bb): Clobber MEMs likewise.
9025 (vt_emit_notes): Create and release the local cache.
9026 (vt_initialize, vt_finalize): Create and release the global
9027 cache, respectively.
1f6bc337 9028 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 9029
0bfbca58 90302013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
9031
9032 PR libmudflap/53359
9033 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9034 not found in the symtab.
9035
0bfbca58 90362013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 9037
c350ba53 9038 PR debug/56006
3aa03517
AO
9039 PR rtl-optimization/55547
9040 PR rtl-optimization/53827
9041 PR debug/53671
9042 PR debug/49888
9043 * alias.c (offset_overlap_p): New, factored out of...
9044 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9045 the conservative special case for symbolic constants. Don't
9046 adjust zero sizes on alignment.
9047
c664546f
JL
90482013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9049
9050 PR rtl-optimization/52573
9051 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9052 REG_UNUSED for the same register.
9053
1bd3f750
MP
90542013-01-17 Richard Biener <rguenther@suse.de>
9055 Marek Polacek <polacek@redhat.com>
9056
9057 PR rtl-optimization/55833
9058 * loop-unswitch.c (unswitch_loops): Move loop verification...
9059 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9060 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9061 Set it to true when we're removing a loop from hierarchy tree in
9062 an irreducible region.
9063 (fix_bb_placements): Adjust caller.
9064 (fix_loop_placements): Likewise.
9065
e52a8b71
GJL
90662013-01-17 Georg-Johann Lay <avr@gjlay.de>
9067
9068 * config/avr/builtins.def (DEF_BUILTIN): Factor out
9069 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9070 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9071 Remove ID. Adjust comments.
9072 * config/avr/avr-c.c (avr_builtin_name): Remove.
9073 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9074 * config/avr/avr.c (avr_tolower): New static function.
9075 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
9076 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9077 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9078 default expansion.
9079
8386a7ea
JH
90802013-01-17 Jan Hubicka <jh@suse.cz>
9081
610fb637 9082 PR tree-optimization/55273
8386a7ea
JH
9083 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9084
47876a2a 90852013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
9086
9087 PR target/55981
9088 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9089 store through atomic_store<mode>_1.
9090 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9091
8222c37e
MJ
90922013-01-17 Martin Jambor <mjambor@suse.cz>
9093
9094 PR tree-optimizations/55264
9095 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9096 for virtual methods.
9097 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9098 virtual methods before inlining is over.
9099 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9100 virtual functions.
9101 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9102 non-virtual.
9103
79f01c76
VM
91042013-01-16 Vladimir Makarov <vmakarov@redhat.com>
9105
9106 PR rtl-optimization/56005
9107 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9108 pending reads for prefetch.
9109
d0b6bb1b
IB
91102013-01-16 Ian Bolton <ian.bolton@arm.com>
9111
aaf1e810 9112 * config/aarch64/aarch64.md
d0b6bb1b
IB
9113 (*cstoresi_neg_uxtw): New pattern.
9114 (*cmovsi_insn_uxtw): New pattern.
9115 (*<optab>si3_uxtw): New pattern.
9116 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
9117 (*<optab>si3_insn_uxtw): New pattern.
9118 (*bswapsi2_uxtw): New pattern.
9119
cb9cf03b
RB
91202013-01-16 Richard Biener <rguenther@suse.de>
9121
9122 * tree-inline.c (tree_function_versioning): Remove set but
9123 never used variable.
9124
2cfc56b9
RB
91252013-01-16 Richard Biener <rguenther@suse.de>
9126
9127 PR tree-optimization/55964
9128 * tree-flow.h (rename_variables_in_loop): Remove.
9129 (rename_variables_in_bb): Likewise.
9130 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
9131 (copy_loop_before): Adjust and delete update-ssa status.
9132 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 9133 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
9134 (rename_variables_in_loop): Remove.
9135 (slpeel_update_phis_for_duplicate_loop): Likewise.
9136 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
9137 use available cfg machinery instead of duplicating it.
9138 Update PHI nodes and perform poor-mans SSA update here.
9139 (slpeel_tree_peel_loop_to_edge): Adjust.
9140
c25a0c60
RB
91412013-01-16 Richard Biener <rguenther@suse.de>
9142
9143 PR tree-optimization/54767
9144 PR tree-optimization/53465
9145 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
9146 (vrp_visit_phi_node): For PHI arguments coming via backedges
9147 drop all symbolical range information.
9148 (execute_vrp): Compute backedges.
9149
04b535af
RB
91502013-01-16 Richard Biener <rguenther@suse.de>
9151
9152 * doc/install.texi: Update CLooG and ISL requirements to
9153 0.18.0 and 0.11.1.
9154
8b0a1e0b
CB
91552013-01-16 Christian Bruel <christian.bruel@st.com>
9156
9157 PR target/55301
9158 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
9159 (broken_move): Handle UNSPECV_SP_SWITCH_B.
9160 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
9161
91622013-01-16 DJ Delorie <dj@redhat.com>
9163
9164 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9165 (UNSPECV_SP_SWITCH_E): New.
9166 (sp_switch_1): Change to an unspec.
9167 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9168 replace $r15.
9169
91702013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
9171
9172 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
9173 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
9174 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
9175 (expand_mem_thread_fence): Ditto.
9176 (expand_mem_signal_fence): Ditto.
9177 (expand_atomic_load): Ditto.
9178 (expand_atomic_store): Ditto.
9179
0bfbca58 91802013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
9181
9182 PR rtl-optimization/55547
9183 PR rtl-optimization/53827
9184 PR debug/53671
9185 PR debug/49888
9186 * alias.c (memrefs_conflict_p): Set sizes to negative after
9187 AND adjustments.
9188
305e3ac1
JJ
91892013-01-15 Jakub Jelinek <jakub@redhat.com>
9190
9191 PR target/55940
9192 * function.c (thread_prologue_and_epilogue_insns): Always
9193 add crtl->drap_reg to set_up_by_prologue.set, even if
9194 stack_realign_drap is false.
9195
f78ac4f2
JBG
91962013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9197
9198 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
9199 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
9200 *call): Fix indention.
9201
a78a8cc4
TV
92022013-01-15 Tom de Vries <tom@codesourcery.com>
9203
9204 PR target/55876
9205 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
9206 Update comment.
9207
0e80383f
VM
92082013-01-15 Vladimir Makarov <vmakarov@redhat.com>
9209
305e3ac1 9210 PR rtl-optimization/55153
0e80383f
VM
9211 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
9212
207b5956
MJ
92132013-01-15 Martin Jambor <mjambor@suse.cz>
9214
9215 PR tree-optimization/55920
9216 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
9217 accesses as grp_to_be_debug_replaced.
9218
a7818b54
JJ
92192013-01-15 Jakub Jelinek <jakub@redhat.com>
9220
9221 PR tree-optimization/55920
9222 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
9223 there is non-useless type conversion needed from debug rhs to lhs,
9224 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
9225
b0fe107e
JM
92262013-01-15 Joseph Myers <joseph@codesourcery.com>
9227 Mikael Pettersson <mikpe@it.uu.se>
9228
9229 PR target/43961
9230 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
9231 Thumb.
9232 (ASM_OUTPUT_CASE_LABEL): Remove.
9233 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
9234 * final.c (shorten_branches): Update alignment of labels before
9235 jump tables if CASE_VECTOR_SHORTEN_MODE.
9236
34ab62ee
RB
92372013-01-15 Richard Biener <rguenther@suse.de>
9238
9239 PR bootstrap/55961
9240 * system.h: Do not include gmp.h for building host tools.
9241
783a3a05
RB
92422013-01-15 Richard Biener <rguenther@suse.de>
9243
9244 PR middle-end/55882
9245 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
9246 account for bitpos when computing alignment.
9247
3a579e09
VY
92482013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
9249
9250 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
9251 (ix86_target_macros_internal): Likewise.
9252
9253 * config/i386/i386.c (m_CORE2I7): Removed.
9254 (m_CORE_HASWELL): New macro.
9255 (m_CORE_ALL): Likewise.
9256 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
9257 (initial_ix86_arch_features): Likewise.
9258 (processor_target_table): Initializations for Core avx2.
9259 (cpu_names): New names "core-avx2".
9260 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
9261 PROCESSOR_CORE_HASWELL.
9262 (ix86_issue_rate): New case.
9263 (ia32_multipass_dfa_lookahead): Likewise.
9264 (ix86_sched_init_global): Likewise.
9265
9266 * config/i386/i386.h (TARGET_HASWELL): New macro.
9267 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
9268 (processor_type): New PROCESSOR_HASWELL.
9269
955f5a07
JJ
92702013-01-15 Jakub Jelinek <jakub@redhat.com>
9271
ff784829
JJ
9272 PR tree-optimization/55955
9273 * tree-vect-loop.c (vectorizable_reduction): Give up early on
9274 *SHIFT_EXPR and *ROTATE_EXPR codes.
9275
955f5a07
JJ
9276 PR tree-optimization/48766
9277 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
9278 -ftrapv disable -fwrapv.
9279
aeb8b4e9
GJL
92802013-01-14 Georg-Johann Lay <avr@gjlay.de>
9281
9282 PR target/55974
9283 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
9284 etc. to 1 and not to __flash.
9285 Use LL suffix for __INT24_MAX__ with -mint8.
9286 Use ULL suffix for __UINT24_MAX__ with -mint8.
9287
1c494c6a
GJL
92882013-01-14 Georg-Johann Lay <avr@gjlay.de>
9289
9290 * config/avr/avr-arch.h
9291 (struct base_arch_s): Use typedef avr_arch_t instead.
9292 (struct arch_info_s): Use typedef avr_arch_info_t instead.
9293 (struct mcu_type_s): Use typedef avr_mcu_t instead.
9294 * config/avr/avr.c: Same.
9295 * config/avr/avr-devices.c: Same.
9296 * config/avr/driver-avr.c: Same.
9297 * config/avr/gen-avr-mmcu-texi.c: Same.
9298 * config/avr/avr-mcus.def: Adjust comment.
9299
a50344cb
TB
93002013-01-14 Tejas Belagod <tejas.belagod@arm.com>
9301
88e784e6
UB
9302 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
9303 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 9304
47876a2a 93052013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
9306 Andi Kleen <ak@linux.intel.com>
9307
9308 PR target/55948
9309 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
9310 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
9311 memmodel flag.
9312
00892272
GJL
93132013-01-14 Georg-Johann Lay <avr@gjlay.de>
9314
9315 * config/avr/avr-stdint.h: Remove trailing blanks.
9316 * config/avr/avr-log.h: Same.
9317 * config/avr/avr-arch.h: Same.
9318 * config/avr/avr-devices.c: Same.
9319 * config/avr/avr-dimode.md: Same.
9320 * config/avr/predicates.md: Same.
9321 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 9322
00892272
GJL
9323 * config/avr/avr-protos.h: Same. And:
9324 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
9325 (init_cumulative_args): Rename to avr_init_cumulative_args.
9326 (expand_prologue): Rename to avr_expand_prologue.
9327 (expand_epilogue): Rename to avr_expand_epilogue.
9328 (adjust_insn_length): Rename to avr_adjust_insn_length.
9329 (notice_update_cc): Rename to avr_notice_update_cc.
9330 (final_prescan_insn): Rename to avr_final_prescan_insn.
9331 * config/avr/avr.c: Same.
9332 * config/avr/avr.h: Same.
9333 * config/avr/avr.md: Remove trailing blanks.
9334 (prologue): Use avr_expand_prologue.
9335 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
9336
7bb01996
RB
93372013-01-14 Richard Biener <rguenther@suse.de>
9338
9339 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
9340 verify_location, collect_subblocks): New functions.
9341 (verify_gimple_in_cfg): Verify that locations only reference
9342 BLOCKs in the functions BLOCK tree.
9343
2724573f
RB
93442013-01-14 Richard Biener <rguenther@suse.de>
9345
9346 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
9347 PHI argument.
9348 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
9349 unshare reference.
9350 (insert_out_of_ssa_copy_on_edge): Likewise.
9351 (rewrite_close_phi_out_of_ssa): Likewise.
9352 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
9353 debug expressions.
9354 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
9355 propagated constants.
9356 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
9357 can not be shared.
9358
9a0bbab6
GJL
93592013-01-14 Georg-Johann Lay <avr@gjlay.de>
9360
9361 * config/avr/avr-modes.def: Add GPL copyright notice.
9362
45805f17
UB
93632013-01-13 Uros Bizjak <ubizjak@gmail.com>
9364
9365 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
9366 MEMMODEL_MASK to determine memory model.
9367 (atomic_store<mode>): Ditto from operands[2].
9368 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
9369
9d60be38
JJ
93702013-01-13 Jakub Jelinek <jakub@redhat.com>
9371
9372 PR fortran/55935
45805f17 9373 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
9374 (fold_gimple_assign): Don't call unshare_expr here.
9375 (fold_ctor_reference): Call unshare_expr.
9376
e7f49d92
TG
93772013-01-13 Terry Guo <terry.guo@arm.com>
9378
aaf1e810
EB
9379 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
9380 * doc/fragments.texi: Document MULTILIB_REUSE.
9381 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 9382 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 9383 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
9384 (tmpmultilib4): Ditto.
9385 (multilib_reuse): New multilib argument.
9386
fbd03a27
RS
93872013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
9388
9389 * Makefile.in: Update copyright.
9390
b3681f13
TV
93912013-01-12 Tom de Vries <tom@codesourcery.com>
9392
9393 PR middle-end/55890
9394 * calls.c (expand_call): Check if arg_nr is valid.
9395
3f287e4b
MM
93962013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9397
9398 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
9399 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
9400 documentation. Add missing '__' in front of
9401 __builtin_ia32_packssdw256.
3f287e4b 9402
1abcd5eb
AK
94032013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9404
9405 PR target/55719
9406 * config/s390/s390.c (s390_preferred_reload_class): Do not return
9407 NO_REGS for larl operands.
9408 (s390_reload_larl_operand): Use s390_load_address instead of
9409 emit_move_insn.
9410
980d0812
RB
94112013-01-11 Richard Biener <rguenther@suse.de>
9412
9413 * tree-cfg.c (verify_node_sharing_1): Split out from ...
9414 (verify_node_sharing): ... here.
9415 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
9416
7cb9fd07
EB
94172013-01-11 Eric Botcazou <ebotcazou@adacore.com>
9418
9419 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
9420 Substitute TREECHECKING.
9421 * configure: Regenerate.
9422 * Makefile.in (TREECHECKING): New.
9423
47876a2a 94242013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
9425
9426 PR tree-optimization/44061
9427 * tree-vrp.c (extract_range_basic): Compute zero as
9428 value-range for __builtin_constant_p of function parameters.
9429
d1e082c2
RS
94302013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
9431
45805f17 9432 Update copyright years.
d1e082c2 9433
f85021b0
VM
94342013-01-10 Vladimir Makarov <vmakarov@redhat.com>
9435
9d60be38 9436 PR rtl-optimization/55672
0160442c
VM
9437 * lra-eliminations.c (mark_not_eliminable): Permit addition with
9438 const to be eliminable.
f85021b0 9439
7a8b1ec4
DE
94402013-01-10 David Edelsohn <dje.gcc@gmail.com>
9441
9442 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
9443 * configure: Regenerate.
9444
ad2e5b71
RB
94452013-01-10 Richard Biener <rguenther@suse.de>
9446
ddf9322d 9447 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 9448
ffc5b2bb
RB
94492013-01-10 Richard Biener <rguenther@suse.de>
9450
9451 PR bootstrap/55792
9452 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
9453 locations for virtual PHI arguments.
9454 (rewrite_update_phi_arguments): Likewise.
9455
e1f674e4
JS
94562013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
9457
9458 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
9459 on to assembler.
9460
a57fc743
JJ
94612013-01-10 Jakub Jelinek <jakub@redhat.com>
9462
9463 PR tree-optimization/55921
9464 * tree-complex.c (expand_complex_asm): New function.
9465 (expand_complex_operations_1): Call it for GIMPLE_ASM.
9466
0ff4390d
AK
94672013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9468
9469 PR target/55718
9470 * config/s390/s390.c (s390_symref_operand_p)
9471 (s390_loadrelative_operand_p): Merge the two functions.
9472 (s390_check_qrst_address, print_operand_address): Add parameters
9473 to s390_loadrelative_operand_p invokation.
9474 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
9475 (s390_reload_larl_operand, s390_secondary_reload): Use
9476 s390_loadrelative_operand_p instead of s390_symref_operand_p.
9477 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
9478
6f557e0e
MS
94792013-01-09 Mike Stump <mikestump@comcast.net>
9480
9481 * dse.c (record_store): Remove unnecessary assert.
9482
7770c9e9
JH
94832013-01-09 Jan Hubicka <jh@suse.cz>
9484
9485 PR tree-optimization/55569
9486 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
9487 * cfgloop.h (scale_loop_profile): Likewise.
9488
a19b1432
JH
94892013-01-09 Jan Hubicka <jh@suse.cz>
9490
9491 PR lto/45375
ddf9322d
UB
9492 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
9493 functions.
a19b1432
JH
9494 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
9495
9a002da8
RS
94962013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
9497
9498 PR middle-end/55114
9499 * expr.h (maybe_emit_group_store): Declare.
9500 * expr.c (maybe_emit_group_store): New function.
9501 * builtins.c (expand_builtin_int_roundingfn): Call it.
9502 (expand_builtin_int_roundingfn_2): Likewise.
9503
511dcace
VM
95042013-01-09 Vladimir Makarov <vmakarov@redhat.com>
9505
e1f2b729 9506 PR rtl-optimization/55829
511dcace
VM
9507 * lra-constraints.c (match_reload): Add code for absent output.
9508 (curr_insn_transform): Add code for reloads of matched inputs
9509 without output.
9510
7b0fe4f4
UB
95112013-01-09 Uros Bizjak <ubizjak@gmail.com>
9512
9513 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
9514 attribute of movddup insn to DF.
9515 (*vec_interleave_lowv2df): Ditto.
9516 (vec_dupv2df): Ditto.
9517
870ca331
JH
95182013-01-09 Jan Hubicka <jh@suse.cz>
9519
9520 PR tree-optimiation/55875
9521 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
9522 EVERY_ITERATION parameter.
7b0fe4f4 9523 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
9524 (idx_infer_loop_bounds): Similarly here.
9525 (n_of_executions_at_most): Simplify
9526 to only test for cases where statement is dominated by the
7b0fe4f4 9527 particular bound; handle correctly the "postdominance" test.
870ca331
JH
9528 (scev_probably_wraps_p): Use max loop iterations info
9529 as a global bound first.
9530
6f575fe4 95312013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
9532 Nick Clifton <nickc@redhat.com>
9533
9534 * config/v850/v850.md (cbranchsf4): New pattern.
9535 (cstoresf4): New pattern.
9536 (cbranchdf4): New pattern.
9537 (cstoredf4): New pattern.
9538 (movsicc): Disallow floating point comparisons.
9539 (cmpsf_le_insn): Fix order of operators.
9540 (cmpsf_lt_insn): Likewise.
9541 (cmpsf_eq_insn): Likewise.
9542 (cmpdf_le_insn): Likewise.
9543 (cmpdf_lt_insn): Likewise.
9544 (cmpdf_eq_insn): Likewise.
9545 (cmpsf_ge_insn): Use LE comparison.
9546 (cmpdf_ge_insn): Likewise.
9547 (cmpsf_gt_insn): Use LT comparison.
9548 (cmpdf_gt_insn): Likewise.
9549 (cmpsf_ne_insn): Delete pattern.
9550 (cmpdf_ne_insn): Delete pattern.
9551 * config/v850/v850.c (v850_gen_float_compare): Use
9552 gen_cmpdf_eq_insn for NE comparison.
9553 (v850_float_z_comparison_operator)
9554 (v850_float_nz_comparison_operator): Move from here ...
9555 * config/v850/predicates.md: ... to here. Move GT and GE
9556 comparisons into v850_float_z_comparison_operator.
9557 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
9558 Delete prototype.
9559 (v850_float_nz_comparison_operator): Likewise.
9560
f0d54148
JDA
95612013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9562
9563 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
9564 with calls to gen_insvsi/gen_insvdi.
9565
8f01beca
VK
95662013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9567
9568 * config/i386/i386.c (initial_ix86_tune_features): Set up
9569 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
9570
2aa579ad
JJ
95712013-01-09 Steven Bosscher <steven@gcc.gnu.org>
9572 Jakub Jelinek <jakub@redhat.com>
9573
9574 PR tree-optimization/48189
9575 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
9576 If nitercst is 0, don't predict the exit edge.
9577
6edc3e32 95782013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
9579
9580 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
9581 in asm_fprintf with reg_names.
9582 (aarch64_print_operand_address): Likewise.
9583 (aarch64_return_addr): Likewise.
9584 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
9585
f6f94d94
JDA
95862013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9587
9588 * config/pa/pa.h (VAL_U6_BITS_P): Define.
9589 (INT_U6_BITS): Likewise.
9590 * config/pa/predicates.md (uint6_operand): New predicate.
9591 (shift5_operand, shift6_operand): Likewise.
9592 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
9593 arith32_operand.
9594 (lshrdi3): Use shift6_operand.
9595 (shrpsi4, shrpdi4): New insn patterns.
9596 (extzv): Delete expander.
9597 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
9598 predicates in unamed zero extract patterns. Tighten common constraint.
9599 (extv): Delete expander.
9600 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
9601 predicates in unamed sign extract patterns. Tighten common constraint.
9602 (insv): Delete expander.
9603 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
9604 predicates in unamed insert patterns. Tighten common constraint.
9605 Change uint32_operand predicate to uint6_operand predicate in unamed
9606 DImode pattern to insert constant values of type 1...1xxxx.
9607
36b72910
JH
96082013-01-04 Jan Hubicka <jh@suse.cz>
9609
9610 PR tree-optimization/55823
7b0fe4f4
UB
9611 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
9612 issue.
36b72910 9613
47876a2a 96142013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
9615 Uros Bizjak <ubizjak@gmail.com>
9616
9617 PR rtl-optimization/55845
9618 * df-problems.c (can_move_insns_across): Stop scanning at
9619 volatile_insn_p source instruction or give up if
9620 across_from .. across_to range contains any volatile_insn_p
9621 instructions.
9622
4369c11e
TB
96232013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9624
7b0fe4f4
UB
9625 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
9626 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
9627 Declare.
4369c11e 9628 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 9629 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 9630
aeb7e7c1
JJ
96312013-01-08 Jakub Jelinek <jakub@redhat.com>
9632
9633 PR fortran/55341
9634 * asan.c (asan_clear_shadow): New function.
9635 (asan_emit_stack_protection): Use it.
9636
a02ad1aa
TB
96372013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9638
9639 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
9640 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
9641 with tab instead of space.
9642
f90d87f5
NC
96432013-01-08 Nick Clifton <nickc@redhat.com>
9644
9645 * config/rl78/rl78.c (rl78_expand_prologue): Always select
9646 register bank 0 at the start of an interrupt handler.
83ffd964
NC
9647 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
9648 MDBH registers.
f90d87f5 9649
385eb93d
JG
96502013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9651
9652 * config/aarch64/aarch64-simd.md
9653 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
9654 (aarch64_simd_bsl): Likewise.
9655 (aarch64_vcond_internal<mode>): Likewise.
9656 (vcond<mode><mode>): Likewise.
9657 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
9658 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
9659
4dcd1054
JG
96602013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9661
9662 * config/aarch64/aarch64-builtins.c
9663 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
9664
4267a4a6
MJ
96652013-01-08 Martin Jambor <mjambor@suse.cz>
9666
9667 PR debug/55579
9668 * tree-sra.c (analyze_access_subtree): Return true also after
9669 potentially creating a debug-only replacement.
9670
5f4e6de3
JJ
96712013-01-08 Jakub Jelinek <jakub@redhat.com>
9672
3138f224
JJ
9673 PR middle-end/55890
9674 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
9675
5f4e6de3
JJ
9676 PR tree-optimization/54120
9677 * tree-vrp.c (range_fits_type_p): Don't allow
9678 src_precision < precision from signed vr to unsigned_p
9679 if vr->min or vr->max is negative.
9680 (simplify_float_conversion_using_ranges): Test can_float_p
9681 against CODE_FOR_nothing.
9682
f3ef18ff
JJ
96832013-01-08 Jakub Jelinek <jakub@redhat.com>
9684 Richard Biener <rguenther@suse.de>
9685
9686 PR middle-end/55851
9687 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
9688 types instead of just INTEGER_TYPE types.
9689
25c210f9
MK
96902013-01-07 Mark Kettenis <kettenis@openbsd.org>
9691
9692 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
9693 TF_SIZE): Define.
f90d87f5 9694
81826a7b
SE
96952013-01-07 Steve Ellcey <sellcey@mips.com>
9696
9697 PR target/42661
9698 * config/mips/mips.opt: Change mad to mmad to match documentation.
9699
35678514
GJL
97002013-01-07 Georg-Johann Lay <avr@gjlay.de>
9701
9702 PR target/55897
9703 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
9704 .progmemx.data now.
9705
e5669488
GJL
97062013-01-07 Georg-Johann Lay <avr@gjlay.de>
9707
9708 PR target/55897
9709 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
9710 (avr_addrspace_t): Add .section_name field.
9711 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
9712 array size.
9713 (avr_addrspace): Same. Initialize .section_name. Remove last
9714 NULL entry. Put __memx into .progmemx.data.
9715 (progmem_section_prefix): Remove.
9716 (avr_asm_init_sections): No need to initialize progmem_section.
9717 (avr_asm_named_section): Use avr_addrspace[].section_name to get
9718 section name prefix.
9719 (avr_asm_select_section): Ditto. And use get_unnamed_section to
9720 retrieve the progmem section.
9721 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
9722 boundary to run over avr_addrspace[].
9723 (avr_register_target_pragmas): Ditto.
9724
656e6f37
JJ
97252013-01-06 Jakub Jelinek <jakub@redhat.com>
9726
9727 * varasm.c (output_constant_def_contents): For asan_protect_global
9728 protected strings, adjust DECL_ALIGN if needed, before testing for
9729 anchored symbols.
9730 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
9731 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
9732 normal decls.
9733 (output_object_block): For asan protected decls, emit asan padding
9734 after their contents.
9735 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
9736 (asan_finish_file): Test it here instead.
9737
6edc3e32
UB
97382013-01-07 Nick Clifton <nickc@redhat.com>
9739 Matthias Klose <doko@debian.org>
9740 Doug Kwan <dougkwan@google.com>
9741 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
9742
9743 PR driver/55470
9744 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
9745
9746 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
9747
9748 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
9749
7b0fe4f4 9750 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
9751
9752 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
9753
2a095093
GJL
97542013-01-07 Georg-Johann Lay <avr@gjlay.de>
9755
f3b503f4 9756 PR target/54461
2a095093
GJL
9757 * doc/install.texi (Cross-Compiler-Specific Options): Document
9758 --with-avrlibc.
9759
383f9b34
TB
97602013-01-07 Tejas Belagod <tejas.belagod@arm.com>
9761
9762 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
9763 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
9764 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
9765 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
9766 vqmovun_high_s64): Fix source operand number and update copyright.
9767
3626621a
RB
97682013-01-07 Richard Biener <rguenther@suse.de>
9769
9770 PR middle-end/55890
9771 * gimple.h (gimple_call_builtin_p): New overload.
9772 * gimple.c (validate_call): New function.
9773 (gimple_call_builtin_p): Likewise.
9774 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9775 Use gimple_call_builtin_p.
9776 (find_func_clobbers): Likewise.
9777 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
9778 (strlen_optimize_stmt): Likewise.
9779
8b2ea410
JG
97802013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9781
9782 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
9783 (vld1q_dup_*): Likewise.
9784 (vld1_*): Likewise.
9785 (vld1q_*): Likewise.
9786 (vld1_lane_*): Likewise.
9787 (vld1q_lane_*): Likewise.
9788
9713d329
RB
97892013-01-07 Richard Biener <rguenther@suse.de>
9790
9791 * lto-streamer.h (LTO_minor_version): Bump to 2.
9792
3520f7cc
JG
97932013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9794
9795 * config/aarch64/aarch64-protos.h
9796 (aarch64_const_double_zero_rtx_p): Rename to...
9797 (aarch64_float_const_zero_rtx_p): ...this.
9798 (aarch64_float_const_representable_p): New.
9799 (aarch64_output_simd_mov_immediate): Likewise.
9800 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
9801 move immediate case.
9802 * config/aarch64/aarch64.c
9803 (aarch64_const_double_zero_rtx_p): Rename to...
9804 (aarch64_float_const_zero_rtx_p): ...this.
9805 (aarch64_print_operand): Allow printing of new constants.
9806 (aarch64_valid_floating_const): New.
9807 (aarch64_legitimate_constant_p): Check for valid floating-point
9808 constants.
9809 (aarch64_simd_valid_immediate): Likewise.
9810 (aarch64_vect_float_const_representable_p): New.
9811 (aarch64_float_const_representable_p): Likewise.
9812 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
9813 (aarch64_output_simd_mov_immediate): New.
9814 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
9815 (*movdf_aarch64): Likewise.
9816 * config/aarch64/constraints.md (Ufc): New.
9817 (Y): call aarch64_float_const_zero_rtx.
9818 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
9819
e167c04d
RB
98202013-01-07 Richard Biener <rguenther@suse.de>
9821
9822 PR tree-optimization/55888
9823 PR tree-optimization/55862
9824 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
9825 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
9826 not if it is contained therein.
9827
0139aaab
GJL
98282013-01-07 Georg-Johann Lay <avr@gjlay.de>
9829
9830 * config/avr/t-avr: Typo.
9831
4a176b23
GJL
98322013-01-07 Georg-Johann Lay <avr@gjlay.de>
9833
9834 PR55243
9835 * config/avr/t-avr: Don't automatically rebuild
9836 $(srcdir)/config/avr/t-multilib
9837 $(srcdir)/config/avr/avr-tables.opt
9838 $(srcdir)/doc/avr-mmcu.texi
9839 (avr-mcus): New phony target to build them on request.
9840 (s-avr-mlib, s-avr-mmcu-texi): Remove.
9841 * avr/avr-mcus.def: Adjust comments.
9842
c7afdc98
UB
98432013-01-07 Uros Bizjak <ubizjak@gmail.com>
9844
9845 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
9846
1ab05c31
RS
98472013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9848
9849 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
9850
488e3acc
RS
98512013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9852
9853 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
9854
a89599d2
DE
98552013-01-05 David Edelsohn <dje.gcc@gmail.com>
9856
9857 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
9858 to generate profiling.
9859 * config/rs6000/aix64.h (LIB_SPEC): Same.
9860
70f09188
AP
98612013-01-04 Andrew Pinski <apinski@cavium.com>
9862
9863 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
9864 New function.
9865 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9866
918d445f
UB
98672013-01-04 Uros Bizjak <ubizjak@gmail.com>
9868
9869 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
9870 unconditionally.
9871 (ix86_expand_move): Ditto.
9872 (ix86_zero_extend_to_Pmode): Ditto.
9873 (ix86_expand_call): Ditto.
9874 (ix86_expand_special_args_builtin): Ditto.
9875 (ix86_expand_builtin): Ditto.
9876
361618ec
RB
98772013-01-04 Richard Biener <rguenther@suse.de>
9878
9879 PR tree-optimization/55862
9880 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9881 translating them through PHI nodes.
9882
87eab554
MJ
98832013-01-04 Martin Jambor <mjambor@suse.cz>
9884
9885 PR tree-optimization/55755
9886 * tree-sra.c (sra_modify_assign): Do not check that an access has no
9887 children when trying to avoid producing a VIEW_CONVERT_EXPR.
9888
33879b9f
MP
98892013-01-04 Marek Polacek <polacek@redhat.com>
9890
9891 PR middle-end/55859
9892 * opts.c (default_options_optimization): Clarify error message.
9893
3068819a
RB
98942013-01-04 Richard Biener <rguenther@suse.de>
9895
9896 PR middle-end/55863
9897 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9898 reassociation.
9899
0e4ae794
JDA
99002013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9901
9902 PR target/53789
9903 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
9904 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9905 references.
0e4ae794 9906
65c88cef
RH
99072013-01-03 Richard Henderson <rth@redhat.com>
9908
9909 * config/i386/i386.c (ix86_expand_move): Always assign to op1
9910 after eliminating TLS symbols.
9911
8ac16127
MG
99122013-01-03 Marc Glisse <marc.glisse@inria.fr>
9913
9914 PR bootstrap/50167
9915 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9916 * graphite-poly.c (debug_gmp_value): Likewise.
9917
bb664f09
UB
99182013-01-03 Uros Bizjak <ubizjak@gmail.com>
9919
9920 PR target/55712
9921 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9922 selected code model, define __code_mode_small__, __code_model_medium__,
9923 __code_model_large__, __code_model_32__ or __code_model_kernel__.
9924 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9925 xchg temporary register with %k. Declare temporary register as
9926 early clobbered.
9927 [__x86_64__]: For medium and large code models, preserve %rbx register.
9928
bcf1ef00
RB
99292013-01-03 Richard Biener <rguenther@suse.de>
9930
0506634a 9931 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
9932 (dump_subscript): Adjust.
9933 (finalize_ddr_dependent): Do not dump redundant info.
9934 (analyze_siv_subscript): Adjust.
9935 (subscript_dependence_tester): Likewise.
9936 (compute_affine_dependence): Likewise.
9937
59fd17e3
RB
99382013-01-03 Richard Biener <rguenther@suse.de>
9939
9940 Revert
9941 2013-01-03 Richard Biener <rguenther@suse.de>
9942
9943 PR tree-optimization/55857
9944 * tree-vect-stmts.c (vectorizable_load): Do not setup
9945 re-alignment for invariant loads.
9946
9947 2013-01-02 Richard Biener <rguenther@suse.de>
9948
9949 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 9950 invariant load do not generate a vector load from the scalar location.
59fd17e3 9951
595c2679
RB
99522013-01-03 Richard Biener <rguenther@suse.de>
9953
9954 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
9955 for not vectorizing.
9956 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9957 not build INDIRECT_REFs, call get_name once only.
9958 (vect_create_data_ref_ptr): Likewise. Dump base object kind
9959 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
9960
90bb7d7a
RB
99612013-01-03 Richard Biener <rguenther@suse.de>
9962
9963 PR tree-optimization/55857
9964 * tree-vect-stmts.c (vectorizable_load): Do not setup
9965 re-alignment for invariant loads.
9966
f09b77ca
RB
99672013-01-03 Richard Biener <rguenther@suse.de>
9968
9969 PR lto/55848
9970 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
9971 prefer a built-in decl.
9972
3461a16e
JJ
99732013-01-03 Jakub Jelinek <jakub@redhat.com>
9974
df8e2b4f
JJ
9975 * gcc.c (process_command): Update copyright notice dates.
9976 * gcov.c (print_version): Likewise.
9977 * gcov-dump.c (print_version): Likewise.
9978
3461a16e
JJ
9979 PR rtl-optimization/55838
9980 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
9981 iv0.step, iv1.step and step.
9982
8b5546d6
JJ
99832013-01-03 Jakub Jelinek <jakub@redhat.com>
9984 Marc Glisse <marc.glisse@inria.fr>
9985
9986 PR tree-optimization/55832
9987 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
9988 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
9989 integer_{one,zero}_node.
9990
8ab1d2e9
JJ
99912013-01-03 Jakub Jelinek <jakub@redhat.com>
9992
9993 PR debug/54402
9994 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
9995 * var-tracking.c (reverse_op): Don't add reverse ops to
9996 VALUEs that have already
0506634a 9997 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 9998
5b9ad1d4
GP
99992013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10000
10001 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10002
e25a6711
TJ
100032013-01-02 Teresa Johnson <tejohnson@google.com>
10004
10005 * dumpfile.c (dump_loc): Print filename with location.
10006 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10007 new location_t parameter to emit complete unroll message with
10008 new dump framework.
10009 (canonicalize_loop_induction_variables): Compute loops location
10010 and pass to try_unroll_loop_completely.
10011 * loop-unroll.c (report_unroll_peel): New function.
10012 (peel_loops_completely): Use new dump format with location
10013 for main dumpfile message, and invoke report_unroll_peel on success.
10014 (decide_unrolling_and_peeling): Ditto.
10015 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10016 by report_unroll_peel.
10017 (decide_peel_completely): Ditto.
10018 (decide_unroll_constant_iterations): Ditto.
10019 (decide_unroll_runtime_iterations): Ditto.
10020 (decide_peel_simple): Ditto.
10021 (decide_unroll_stupid): Ditto.
10022 * cfgloop.c (get_loop_location): New function.
10023 * cfgloop.h (get_loop_location): Declare.
10024
77878621
ST
100252013-01-02 Sriraman Tallam <tmsriram@google.com>
10026
10027 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10028 NULL.
10029
9e65d03e
JDA
100302013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10031
10032 PR middle-end/55198
10033 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10034 BLKmode objects when EXPAND_MEMORY is specified.
10035
6a7da30f
ST
100362013-01-02 Sriraman Tallam <tmsriram@google.com>
10037
10038 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10039 in loop predicate.
10040 (fold_builtin_cpu): Do not share cpu model decls across statements.
10041
e78167f2
JM
100422013-01-02 Jason Merrill <jason@redhat.com>
10043
10044 PR c++/55804
10045 * tree.c (build_array_type_1): Revert earlier change.
10046
8c075fb4
YZ
100472013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10048
10049 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10050 "cortex-a57".
10051 * config/aarch64/aarch64-tune.md: Re-generate.
10052
0682ed3e
RB
100532013-01-02 Richard Biener <rguenther@suse.de>
10054
10055 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10056 invariant load do not generate a vector load from the scalar location.
0682ed3e 10057
b8f6a302
RB
100582013-01-02 Richard Biener <rguenther@suse.de>
10059
10060 PR bootstrap/55784
10061 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10062 * configure: Regenerate.
10063
04b80dbb
RS
100642013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10065
10066 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10067 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10068 (expand_builtin_int_roundingfn_2): Keep the original target around
10069 for the fallback case.
10070
635b0b0c
RS
100712013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10072
10073 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10074 to be clear for sign changes.
10075
42d57399
JH
100762013-01-01 Jan Hubicka <jh@suse.cz>
10077
10078 * ipa-inline-analysis.c: Fix formatting.
10079
5bb6669d
JJ
100802013-01-01 Jakub Jelinek <jakub@redhat.com>
10081
10082 PR tree-optimization/55831
10083 * tree-vect-loop.c (get_initial_def_for_induction): Use
10084 gsi_after_labels instead of gsi_start_bb.
ad41bd84 10085\f
86a2db33 10086Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
10087
10088Copying and distribution of this file, with or without modification,
10089are permitted in any medium without royalty provided the copyright
10090notice and this notice are preserved.