]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
3cfbe04d
SB
12013-04-04 Steven Bosscher <steven@gcc.gnu.org>
2
3 PR middle-end/56729
4 * df-scan.c (df_insn_delete): Disable failing assert.
5
dfa3f8d0
KT
62013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7
8 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9 New function prototype.
10 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
11 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
12 (arm_builtin_vectorized_function): New function.
13
f7837758
KT
142013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15
16 * config/arm/arm_neon_builtins.def: New file.
17 * config/arm/arm.c (neon_builtin_data): Move contents to
18 arm_neon_builtins.def.
19 (enum arm_builtins): Include neon builtin definitions.
20 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
21 * config/arm/t-arm (arm.o): Add dependency on
22 arm_neon_builtins.def.
23
39c1b6db
MP
242013-04-04 Marek Polacek <polacek@redhat.com>
25
26 PR tree-optimization/48186
27 * predict.c (maybe_hot_frequency_p): Return false if
28 HOT_BB_FREQUENCY_FRACTION is 0.
29 (cgraph_maybe_hot_edge_p): Likewise.
30
314f64eb
RB
312013-04-04 Richard Biener <rguenther@suse.de>
32
33 PR tree-optimization/56826
34 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
35 more accurately.
36
51a905b2
RB
372013-04-04 Richard Biener <rguenther@suse.de>
38
39 PR tree-optimization/56213
40 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
41 (vect_analyze_data_refs): Allow all non-nested loads as
42 strided loads.
43
f1bf4f3a
RB
442013-04-04 Richard Biener <rguenther@suse.de>
45
46 PR tree-optimization/56837
47 * tree-loop-distribution.c (classify_partition): For non-zero
48 values require that the value has the same precision as its
49 mode to be useful as memset value.
50
0bca7ded
NC
512013-04-03 Nick Clifton <nickc@redhat.com>
52
53 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5
54 architectures.
55 (fmssf4): Use fmsf.s on E3V5 architectures.
56 (fnmasf4): Use fnmaf.s on E3V5 architectures.
57 (fnmssf4): Use fnmsf.s on E3V5 architectures.
58
b4019227
JL
592013-04-03 Jeff Law <law@redhat.com>
60
61 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
62 (lra-eliminations.o): Likewise.
63
f57ddb5b
TJ
642013-04-03 Teresa Johnson <tejohnson@google.com>
65
66 * gcov-io.c (compute_working_sets): Moved most of body of old
67 compute_working_sets here from profile.c.
68 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
69 (gcov_working_set_t): Moved typedef here from basic-block.h
70 (compute_working_set): Declare.
71 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
72 (get_working_sets): Renamed from compute_working_set,
73 replace most of body with call to new compute_working_sets.
74 (get_exec_counts): Replace call to compute_working_sets
75 to get_working_sets.
76 * profile.h (get_working_sets): Renamed from
77 compute_working_set.
78 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
79 to get_working_sets.
80 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
81 * gcov-dump.c (dump_working_sets): New function.
82
5e0919f1
KZ
832013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
84
85 * hwint.c (sext_hwi, zext_hwi): New functions.
86 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
87 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
88 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
89 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
90 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
91 (sext_hwi, zext_hwi): New functions.
0bca7ded 92
be672e08
JL
932013-04-03 Jeff Law <law@redhat.com>
94
95 PR tree-optimization/56799
96 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
97 back test for widening conversion erroneously dropped in prior
98 change.
99
9d821fa5
KT
1002013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
101
102 PR target/56809
103 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
104 instead of next_real_insn.
105
71c581e7
MP
1062013-04-03 Marek Polacek <polacek@redhat.com>
107
108 PR sanitizer/55702
109 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
110 functions.
111
4a32ef80
KT
1122013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
113
114 PR target/56809
115 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
116 next_real_insn.
117 (thumb1_output_casesi): Likewise.
118 (thumb2_output_casesi): Likewise.
119
1b2253d4
RB
1202013-04-03 Richard Biener <rguenther@suse.de>
121
122 PR tree-optimization/56817
123 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
124 Split out ...
125 (tree_unroll_loops_completely_1): ... new function to manually
126 walk the loop tree, properly defering outer loops of unrolled
127 loops to later iterations.
128
38000232
MG
1292013-04-03 Marc Glisse <marc.glisse@inria.fr>
130
131 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
132 (vectorizable_load): Likewise.
133 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
134 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
135
3fa35298
MG
1362013-04-03 Marc Glisse <marc.glisse@inria.fr>
137
138 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
139 BIT_FIELD_REF.
140
b3d45ff0
UW
1412013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
142
143 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
144
ec9202a8
BC
1452013-04-03 Bin Cheng <bin.cheng@arm.com>
146
147 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
148
6805bd36
MG
1492013-04-03 Marc Glisse <marc.glisse@inria.fr>
150
151 PR tree-optimization/56790
152 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant folding.
153
da694a77
MG
1542013-04-03 Marc Glisse <marc.glisse@inria.fr>
155
156 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
157 Handle VEC_MERGE.
158 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
159 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
160 equal arguments.
161
4e7d7b3d
JJ
1622013-04-03 Jakub Jelinek <jakub@redhat.com>
163
164 PR c/19449
165 * tree.h (force_folding_builtin_constant_p): New decl.
166 * builtins.c (force_folding_builtin_constant_p): New variable.
167 (fold_builtin_constant_p): Fold immediately also if
168 force_folding_builtin_constant_p.
169
e6c9d234
RB
1702013-04-03 Richard Biener <rguenther@suse.de>
171
172 PR tree-optimization/56812
173 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
174 DRs of the same interleaving chain are independent.
175
984d07dd
JM
1762013-04-02 Jason Merrill <jason@redhat.com>
177
178 * gdbinit.in (pbb): Use debug fn.
179
622849c9
LC
1802013-04-02 Lawrence Crowl <crowl@google.com>
181
182 * sese.h (struct ivtype_map_elt_s): Remove unused.
183 (extern debug_ivtype_map): Remove unused.
184 (extern eq_ivtype_map_elts): Remove unused.
185 * sese.c (debug_ivtype_map): Removed unused.
186 (debug_ivtype_map_1): Removed unused.
187 (debug_ivtype_elt): Remove unused.
188 (eq_ivtype_map_elts): Remove unused.
189
190
82c0e1a0
KT
1912013-04-02 Kai Tietz <ktietz@redhat.com>
192
193 PR target/52790
194 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
195 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
196 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static function.
197 (legitimize_pe_coff_symbol): Likewise.
198 (is_imported_p): New helper-function.
199 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
200 for Windows x64 targets.
201 (ix86_expand_prologue): Optimize for pe-coff targets.
202 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
203 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
204 medium/large code-model.
205 (legitimize_pic_address): Likewise.
206 (legitimize_tls_address): Likewise.
207 (ix86_expand_call): Likewise.
208 (x86_output_mi_thunk): Likewise.
209 (get_dllimport_decl): Add new beimport argument.
210 (construct_plt_address): Don't assert for x64 pe-coff targets.
211 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
212 targets.
213 (SYMBOL_FLAG_STUBVAR): New macro.
214 (SYMBOL_REF_STUBVAR_P): Likewise.
215 * config/i386/winnt.c (stub_list): New structure.
216 (stub_head): New local variable.
217 (i386_pe_record_stub): New function.
218 (i386_pe_file_end): Emit refptr-stubs.
219
5d751b0c
JJ
2202013-04-02 Jakub Jelinek <jakub@redhat.com>
221
09bb4c99
JJ
222 PR rtl-optimization/56745
223 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
224 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
225
a1d8947a
JJ
226 PR c++/34949
227 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
228 and both of them are MEM_REFs, just compare first argument for
229 equality and attempt to deal even with differing offsets.
230
5d751b0c
JJ
231 PR c++/34949
232 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
233 of gimple_clobber_p to be MEM_REF.
234 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
235 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
236 after gimplification.
237 * asan.c (get_mem_ref_of_assignment): Don't instrument
238 gimple_clobber_p stmts.
239 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
240 gimple_clobber_p stmt if they have MEM_REF lhs and
241 are dead because of another gimple_clobber_p stmt.
242 * tree-ssa-live.c (clear_unused_block_pointer): Treat
243 gimple_clobber_p stmts like debug stmts.
244 (remove_unused_locals): Remove clobbers with MEM_REF lhs
245 that refer to unused VAR_DECLs or uninitialized values.
246 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
247 gimple_clobber_p stmts if they refer to removed parameters.
248 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
249 formatting.
250
e594716a
UB
2512013-04-02 Uros Bizjak <ubizjak@gmail.com>
252
253 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
254 using SWI48 mode attribute.
255
7a80735b
WM
2562013-04-02 Wei Mi <wmi@google.com>
257
258 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
259 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
260 *<rotate_insn><mode>3_mask in i386.md.
261
f423a9e4
AI
2622013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
263
264 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
265
90eb75f2
RB
2662013-04-02 Richard Biener <rguenther@suse.de>
267
268 PR tree-optimization/56778
269 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
270 Runtime alias tests are not supported for gather loads.
271 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
272 stmts referenced from SSA operands before updating SSA form.
273
d8c69a92
IC
2742013-04-02 Ian Caulfield <ian.caulfield@arm.com>
275 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
276
277 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
278 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
279 * config/arm/cortex-a53.md: New file.
280 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
281 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
282 * config/arm/arm.c (arm_issue_rate): Likewise.
283 * config/arm/arm-tune.md: Regenerate
284 * config/arm/arm-tables.opt: Regenerate.
285 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 286
239eb04c
ZC
2872013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
288
289 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
290 non-static link.
291
c902d3c8
SN
2922013-04-02 Sofiane Naci <sofiane.naci@arm.com>
293
d8c69a92
IC
294 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
295 scalar load/store operations using B/H registers.
c902d3c8
SN
296 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
297
051d0e2f
SN
2982013-04-02 Sofiane Naci <sofiane.naci@arm.com>
299
300 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
301 scalar move.
302 * config/aarch64/aarch64.c
303 (aarch64_simd_scalar_immediate_valid_for_move): New.
304 * config/aarch64/aarch64-protos.h
305 (aarch64_simd_scalar_immediate_valid_for_move): New.
306 * config/aarch64/constraints.md (Dh, Dq): New.
307 * config/aarch64/iterators.md (hq): New.
308
0ee1e3d9
EB
3092013-04-02 Eric Botcazou <ebotcazou@adacore.com>
310
311 * reorg.c (get_branch_condition): Deal with conditional returns.
312 (fill_simple_delay_slots): Remove dead code dealing with jumps.
313
136fb3f7
WM
3142013-04-01 Wei Mi <wmi@google.com>
315
316 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
317 Truncate operand 2 using %b asm operand modifier.
318 (*<shift_insn><mode>3_mask): Ditto.
319 (*<rotate_insn><mode>3_mask): Ditto.
320
6388c738
SB
3212013-04-01 Steven Bosscher <steven@gcc.gnu.org>
322
323 PR middle-end/56798
324 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
325
f7a4d826
KK
3262013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
327
328 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
329 of next_real_insn.
330 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
331
4b943a49
LC
3322013-03-30 Lawrence Crowl <crowl@google.com>
333
334 * dse.c (clear_alias_sets): Remove never set.
335 (disqualified_clear_alias_sets): Remove never set.
336 (clear_alias_mode_pool): Remove never set.
337 (dse_step0): Remove condition that is never true.
338 (canon_address): Remove condition that is never true.
339 (dse_step7): Remove condition that is never true.
340 (rest_of_handle_dse): Remove condition that is never true.
341 (rest_of_handle_dse::did_global): Remove never read from above.
342 (dse_step2_spill): Remove never called from above.
343 (dse_step5_spill): Remove never called from above.
344
39718607
SB
3452013-03-30 Steven Bosscher <steven@gcc.gnu.org>
346
da5c6bde
SB
347 * doc/md.texi (Standard Names) <casesi>: Update documentation for
348 JUMP_TABLE_DATA changes.
349 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
350 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
351 (Insns) <jump_table_data>: New entry.
352 * doc/tm.texi: Regenerate.
353
39718607
SB
354 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
355
356 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
357 for table jump at the end of a basic block using tablejump_p.
358 * targhooks.c (default_invalid_within_doloop): Likewise.
359 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
360 target hook implementation that is identical to the default hook.
361 (rs6000_invalid_within_doloop): Remove.
362
363 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
364 unused variable from tablejump_p call.
365
366 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
367 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
368 (INSN_DELETED_P): Likewise.
369 (emit_jump_table_data): New prototype.
370 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
371 after 4th as unused.
372 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
373 * sched-vis.c (print_insn): Likewise.
374 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
375 insn for compatibility with back ends that use next_active_insn to
376 identify jump table data.
377 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
378 (remove_insn): Likewise.
379 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
380 to be emitted.
381 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
382 (emit_jump_table_data): New function.
383
384 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
385 basic block, a JUMP_TABLE_DATA never is.
386 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
387 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
388 off from code handling real insns.
389 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
390 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
391 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
392 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
393 is not a NONDEBUG_INSN_P.
394 * ira-costs.c (scan_one_insn): Likewise.
395 * jump.c (mark_all_labels): Likewise.
396 (mark_jump_label_1): Likewise.
397 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
398 * lra.c (get_insn_freq): Expect all insns reaching here to be in
399 a basic block.
400 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
401 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
402 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
403 JUMP_TABLE_DATA_P insns.
404 (calculate_elim_costs_all_insns): Likewise.
405 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
406 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
407 (delete_output_reload): Code style fixups.
408 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
409 insn flags on this non-insn.
410 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
411 as scheduling barriers, for pre-change compatibility.
412 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
413 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
414
415 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
416 redundant JUMP_TABLE_DATA_P test.
417 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
418 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
419 (frv_for_each_packet): Likewise.
420 * config/i386/i386.c (min_insn_size): Likewise.
421 (ix86_avoid_jump_mispredicts): Likewise.
422 * config/m32r/m32r.c (m32r_is_insn): Likewise.
423 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
424 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
425 (mips16_insn_length): Robustify.
426 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
427 (mips16_split_long_branches): Likewise.
428 * config/pa/pa.c (pa_combine_instructions): Likewise.
429 * config/rs6000/rs6000.c (get_next_active_insn): Treat
430 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
431 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
432 as contributing to pool range lengths.
433 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
434 Remove redundant JUMP_TABLE_DATA_P test.
435 (sh_loop_align): Likewise.
436 (split_branches): Likewise.
437 (sh_insn_length_adjustment): Likewise.
438 * config/spu/spu.c (get_branch_target): Likewise.
439
0208f7da
JH
4402013-03-29 Jan Hubicka <jh@suse.cz>
441
442 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
443 gcov streaming; stream hot bb threshold to ltrans.
444 * predict.c (get_hot_bb_threshold): Break out from ....
445 (maybe_hot_count_p): ... here.
446 (set_hot_bb_threshold): New function.
447 * lto-section-in.c (lto_section_name): Add profile.
448 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
449 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
450 and data-streamer.h
451 (histogram_entry): New structure.
452 (histogram, histogram_pool): New global vars.
453 (histogram_hash): New structure.
454 (histogram_hash::hash): New method.
455 (histogram_hash::equal): Likewise.
456 (account_time_size): New function.
457 (cmp_counts): New function.
458 (dump_histogram): New function.
459 (ipa_profile_generate_summary): New function.
460 (ipa_profile_write_summary): New function.
461 (ipa_profile_read_summary): New function.
462 (ipa_profile): Decide on threshold.
e594716a
UB
463 (pass_ipa_profile): Add ipa_profile_write_summary and
464 ipa_profile_read_summary.
0208f7da
JH
465 * Makefile.in (ipa.o): Update dependencies.
466 * lto-streamer.h (LTO_section_ipa_profile): New section.
467
5a6ccc94
GDR
4682013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
469
470 * tree.h (VAR_P): New.
471
39385fa6
PC
4722013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
473
474 PR lto/56777
475 * doc/invoke.texi ([-fwhole-program]): Fix typo.
476
34f0d87a
SB
4772013-03-29 Steven Bosscher <steven@gcc.gnu.org>
478
479 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
480 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
481 (control_flow_insn_p): Likewise.
482 * cfgrtl.c (duplicate_insn_chain): Likewise.
483 * final.c (get_attr_length_1): Likewise.
484 (shorten_branches): Likewise.
485 (final_scan_insn): Likewise.
486 * function.c (instantiate_virtual_regs): Likewise.
487 * gcse.c (insert_insn_end_basic_block): Likewise.
488 * ira-costs.c (scan_one_insn): Likewise.
489 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
490 * lra.c (check_rtl): Likewise.
491 * reload1.c (elimination_costs_in_insn): Likewise.
492 * reorg.c (follow_jumps): Likewise.
493
494 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
495 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
496 (thumb_far_jump_used_p): Likewise.
497 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
498 (workaround_speculation): Likewise.
499 (add_sched_insns_for_speculation): Likewise.
500 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
501 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
502 (frv_for_each_packet): Likewise.
503 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
504 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
505 (final_emit_insn_group_barriers): Likewise.
506 * config/m32r/m32r.c (m32r_is_insn): Likewise.
507 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
508 (mips16_insn_length): Likewise.
509 * config/pa/pa.c (pa_reorg): Likewise.
510 (pa_combine_instructions): Likewise.
511 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
512 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
513 (sh_reorg): Likewise.
514 (split_branches): Likewise.
515 * config/spu/spu.c (get_branch_target): Likewise.
516
517 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
518 JUMP_TABLE_DATA_P.
519
4ac761b0
KY
5202013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
521
39385fa6 522 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
523 Fix declaration name.
524
58a49189
LC
5252013-03-28 Lawrence Crowl <crowl@google.com>
526
527 * graphds.h (struct graph.indicies): Remove unused.
528 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
529 (SCOP_ORIGINAL_PDDRS): Remove unused.
530 * sese.h (extern insert_loop_close_phis): Removed unused.
531 (extern insert_guard_phis): Removed unused.
532 (extern ivtype_map_elt_info): Removed unused.
533 (new_ivtype_map_elt): Removed unused.
534 * sese.c (ivtype_map_elt_info): Removed unused.
535
7b3b6ae4
LC
5362013-03-28 Lawrence Crowl <crowl@google.com>
537
538 * Makefile.in: Add several missing include dependences.
539 (DUMPFILE_H): New.
540 (test-dump.o): New. This object is not added to any executable,
541 but is present for ad-hoc testing.
542 * bitmap.c
543 (debug (const bitmap_head_def &)): New.
544 (debug (const bitmap_head_def *)): New.
545 * bitmap.h
546 (extern debug (const bitmap_head_def &)): New.
547 (extern debug (const bitmap_head_def *)): New.
548 * cfg.c
549 (debug (edge_def &)): New.
550 (debug (edge_def *)): New.
551 * cfghooks.c
552 (debug (basic_block_def &)): New.
553 (debug (basic_block_def *)): New.
554 * dumpfile.h
555 (dump_node (const_tree, int, FILE *)): Correct source file.
556 * dwarf2out.c
557 (debug (die_struct &)): New.
558 (debug (die_struct *)): New.
559 * dwarf2out.h
560 (extern debug (die_struct &)): New.
561 (extern debug (die_struct *)): New.
562 * gimple-pretty-print.c
563 (debug (gimple_statement_d &)): New.
564 (debug (gimple_statement_d *)): New.
565 * gimple-pretty-print.h
566 (extern debug (gimple_statement_d &)): New.
567 (extern debug (gimple_statement_d *)): New.
568 * ira-build.c
569 (debug (ira_allocno_copy &)): New.
570 (debug (ira_allocno_copy *)): New.
571 (debug (ira_allocno &)): New.
572 (debug (ira_allocno *)): New.
573 * ira-int.h
574 (extern debug (ira_allocno_copy &)): New.
575 (extern debug (ira_allocno_copy *)): New.
576 (extern debug (ira_allocno &)): New.
577 (extern debug (ira_allocno *)): New.
578 * ira-lives.c
579 (debug (live_range &)): New.
580 (debug (live_range *)): New.
581 * lra-int.h
582 (debug (lra_live_range &)): New.
583 (debug (lra_live_range *)): New.
584 * lra-lives.c
585 (debug (lra_live_range &)): New.
586 (debug (lra_live_range *)): New.
587 * omega.c
588 (debug (omega_pb_d &)): New.
589 (debug (omega_pb_d *)): New.
590 * omega.h
591 (extern debug (omega_pb_d &)): New.
592 (extern debug (omega_pb_d *)): New.
593 * print-rtl.c
594 (debug (const rtx_def &)): New.
595 (debug (const rtx_def *)): New.
596 * print-tree.c
597 (debug_tree (tree): Move within file.
598 (debug_raw (const tree_node &)): New.
599 (debug_raw (const tree_node *)): New.
600 (dump_tree_via_hooks (const tree_node *, int)): New.
601 (debug (const tree_node &)): New.
602 (debug (const tree_node *)): New.
603 (debug_verbose (const tree_node &)): New.
604 (debug_verbose (const tree_node *)): New.
605 (debug_head (const tree_node &)): New.
606 (debug_head (const tree_node *)): New.
607 (debug_body (const tree_node &)): New.
608 (debug_body (const tree_node *)): New.
609 (debug_vec_tree (tree): Move and reimplement in terms of dump.
610 (debug (vec<tree, va_gc> &)): New.
611 (debug (vec<tree, va_gc> *)): New.
612 * rtl.h
613 (extern debug (const rtx_def &)): New.
614 (extern debug (const rtx_def *)): New.
615 * sbitmap.c
616 (debug_raw (simple_bitmap_def &)): New.
617 (debug_raw (simple_bitmap_def *)): New.
618 (debug (simple_bitmap_def &)): New.
619 (debug (simple_bitmap_def *)): New.
620 * sbitmap.h
621 (extern debug (simple_bitmap_def &)): New.
622 (extern debug (simple_bitmap_def *)): New.
623 (extern debug_raw (simple_bitmap_def &)): New.
624 (extern debug_raw (simple_bitmap_def *)): New.
625 * sel-sched-dump.c
626 (debug (vinsn_def &)): New.
627 (debug (vinsn_def *)): New.
628 (debug_verbose (vinsn_def &)): New.
629 (debug_verbose (vinsn_def *)): New.
630 (debug (expr_def &)): New.
631 (debug (expr_def *)): New.
632 (debug_verbose (expr_def &)): New.
633 (debug_verbose (expr_def *)): New.
634 (debug (vec<rtx> &)): New.
635 (debug (vec<rtx> *)): New.
636 * sel-sched-dump.h
637 (extern debug (vinsn_def &)): New.
638 (extern debug (vinsn_def *)): New.
639 (extern debug_verbose (vinsn_def &)): New.
640 (extern debug_verbose (vinsn_def *)): New.
641 (extern debug (expr_def &)): New.
642 (extern debug (expr_def *)): New.
643 (extern debug_verbose (expr_def &)): New.
644 (extern debug_verbose (expr_def *)): New.
645 (extern debug (vec<rtx> &)): New.
646 (extern debug (vec<rtx> *)): New.
647 * sel-sched-ir.h
648 (_list_iter_cond_expr): Make inline instead of static.
649 * sreal.c
650 (debug (sreal &)): New.
651 (debug (sreal *)): New.
652 * sreal.h
653 (extern debug (sreal &)): New.
654 (extern debug (sreal *)): New.
655 * tree.h
656 (extern debug_raw (const tree_node &)): New.
657 (extern debug_raw (const tree_node *)): New.
658 (extern debug (const tree_node &)): New.
659 (extern debug (const tree_node *)): New.
660 (extern debug_verbose (const tree_node &)): New.
661 (extern debug_verbose (const tree_node *)): New.
662 (extern debug_head (const tree_node &)): New.
663 (extern debug_head (const tree_node *)): New.
664 (extern debug_body (const tree_node &)): New.
665 (extern debug_body (const tree_node *)): New.
666 (extern debug (vec<tree, va_gc> &)): New.
667 (extern debug (vec<tree, va_gc> *)): New.
668 * tree-cfg.c
669 (debug (struct loop &)): New.
670 (debug (struct loop *)): New.
671 (debug_verbose (struct loop &)): New.
672 (debug_verbose (struct loop *)): New.
673 * tree-dump.c: Add header dependence.
674 * tree-flow.h
675 (extern debug (struct loop &)): New.
676 (extern debug (struct loop *)): New.
677 (extern debug_verbose (struct loop &)): New.
678 (extern debug_verbose (struct loop *)): New.
679 * tree-data-ref.c
680 (debug (data_reference &)): New.
681 (debug (data_reference *)): New.
682 (debug (vec<data_reference_p> &)): New.
683 (debug (vec<data_reference_p> *)): New.
684 (debug (vec<ddr_p> &)): New.
685 (debug (vec<ddr_p> *)): New.
686 * tree-data-ref.h
687 (extern debug (data_reference &)): New.
688 (extern debug (data_reference *)): New.
689 (extern debug (vec<data_reference_p> &)): New.
690 (extern debug (vec<data_reference_p> *)): New.
691 (extern debug (vec<ddr_p> &)): New.
692 (extern debug (vec<ddr_p> *)): New.
693 * tree-ssa-alias.c
694 (debug (pt_solution &)): New.
695 (debug (pt_solution *)): New.
696 * tree-ssa-alias.h
697 (extern debug (pt_solution &)): New.
698 (extern debug (pt_solution *)): New.
699 * tree-ssa-alias.c
700 (debug (_var_map &)): New.
701 (debug (_var_map *)): New.
702 (debug (tree_live_info_d &)): New.
703 (debug (tree_live_info_d *)): New.
704 * tree-ssa-alias.h
705 (extern debug (_var_map &)): New.
706 (extern debug (_var_map *)): New.
707 (extern debug (tree_live_info_d &)): New.
708 (extern debug (tree_live_info_d *)): New.
709
be77e1e5
JH
7102013-03-28 Jan Hubicka <jh@suse.cz>
711
712 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
713
777e6976
IB
7142013-03-28 Ian Bolton <ian.bolton@arm.com>
715
716 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
717 record only when desired or required.
718
9cd347ae
UB
7192013-03-28 Uros Bizjak <ubizjak@gmail.com>
720
721 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
722 *vec_extractv2di_1_rex64. Use x64 isa attribute.
723
2a1d1991
N
7242013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
725
726 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
727 (*andsi3_compare0_uxtw): New pattern.
728 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
729 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
730
89ab31c1
JH
7312013-03-28 Jan Hubicka <jh@suse.cz>
732
733 * data-streamer-in.c (streamer_read_gcov_count): New function.
734 * gimple-streamer-out.c: Include value-prof.h.
735 (output_gimple_stmt): Output histogram.
736 (output_bb): Use streamer_write_gcov_count.
737 * value-prof.c: Include data-streamer.h
738 (dump_histogram_value): Add HIST_TYPE_MAX.
739 (stream_out_histogram_value): New function.
740 (stream_in_histogram_value): New function.
741 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
742 (stream_out_histogram_value, stream_in_histogram_value): Declare.
743 * data-streamer-out.c (streamer_write_gcov_count): New function.
744 (streamer_write_gcov_count_stream): New function.
745 * lto-cgraph.c (lto_output_edge): Update counter streaming.
746 (lto_output_node): Likewise.
747 (input_node, input_edge): Likewise.
748 * lto-streamer-out.c (output_cfg): Update streaming.
749 * lto-streamer-in.c (input_cfg): Likewise.
750 * data-streamer.h (streamer_write_gcov_count,
751 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
752 * gimple-streamer-in.c: Include value-prof.h
753 (input_gimple_stmt): Input histograms.
754 (input_bb): Update profile streaming.
755
e594716a 7562013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 757
8697be17
KZ
758 * genmodes.c (emit_max_int): New function.
759 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
760 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
761 Added doc.
8697be17 762 * machmode.def: Fixed comment.
89ab31c1 763
e594716a 7642013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
765
766 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
767 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
768
74946978
MP
7692013-03-28 Marek Polacek <polacek@redhat.com>
770 Richard Biener <rguenther@suse.de>
771
772 PR tree-optimization/56695
773 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
774 build signed result of a vector comparison.
775 * tree-cfg.c (verify_gimple_comparison): Check that a result
776 of a vector comparison has signed type.
777
a64b9c26
RB
7782013-03-28 Richard Biener <rguenther@suse.de>
779
780 PR tree-optimization/37021
781 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
782 do not restrict gaps between groups.
783 * tree-vect-stmts.c (vectorizable_load): Properly account for
784 a gap between groups.
785
a9dc2a2f
EB
7862013-03-28 Eric Botcazou <ebotcazou@adacore.com>
787
788 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
789 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
790 is not enabled.
791
53cb97f9
GP
7922013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
793
794 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
795 * doc/extend.texi (Named Address Spaces): Ditto.
796 (Variable Attributes): Ditto.
797
b802ae5c
KT
7982013-03-27 Kai Tietz <ktietz@redhat.com>
799
eddae10a
KT
800 * config.build: Add support for cygwin x64 target.
801 * config.gcc: Likewise.
802 * config.host: Likewise.
803 * configure.ac: Likewise
804 * configure: Regenerated.
b802ae5c 805
8269de54
KT
8062013-03-27 Kai Tietz <ktietz@redhat.com>
807
808 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
809 * config/i386/t-cygwin-w64: New file.
810 * config/i386/cygwin-w64.h: New file.
811 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
812 and add support for x64-cygwin target.
813 (CPP_SPEC): Likewise.
814 (CXX_WRAP_SPEC_LIST): Undefine before define.
815 (LIBGCJ_SONAME): Use 15 as version.
816
f49b33cb
RB
8172013-03-27 Richard Biener <rguenther@suse.de>
818
819 PR tree-optimization/56716
820 * tree-ssa-structalias.c (perform_var_substitution): Adjust
821 dumping for ref nodes.
822
b37a6ce5
MJ
8232013-03-27 Martin Jambor <mjambor@suse.cz>
824
825 PR tree-optimization/55334
826 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
827 restricted pointers to arrays.
828
9469b9b2
GDR
8292013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
830
831 * Makefile.in (.SUFFIXES): Add .cc.
832 (.c.o): Apply same recipe for implicit rule .cc.o.
833
7d24f650
RB
8342013-03-27 Richard Biener <rguenther@suse.de>
835
836 PR tree-optimization/37021
837 * tree-vect-data-refs.c (vect_check_strided_load): Allow
838 REALPART/IMAGPART_EXPRs around the supported refs.
839 * tree-ssa-structalias.c (find_func_aliases): Assume that
840 floating-point values are not used to transfer pointers.
841
2f251a05
AI
8422013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
843
39385fa6
PC
844 * target.def (TARGET_HAS_IFUNC_P): New target hook.
845 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
846 * doc/tm.texi: Regenerate.
847 * targhooks.h (default_has_ifunc_p): New.
848 * targhooks.c (default_has_ifunc_p): Ditto.
849 * config/linux-protos.h: New file.
850 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
851 this hook for linux which disables support of indirect functions in
852 android.
39385fa6
PC
853 * config/linux-android.c: New file.
854 * config/t-linux-android.c: Ditto.
855 * config.gcc: Added new object file linux-android.o.
856 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 857 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 858 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
859 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
860 doesn't support indirect functions.
861 * configure: Regenerate.
862
78b4e425
BC
8632013-03-27 Bin Cheng <bin.cheng@arm.com>
864
865 PR target/56102
866 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
867 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
868 mult-word mode.
869
a5ba7b92
AK
8702013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
871
872 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
873
be624986
TG
8742013-03-27 Terry Guo <terry.guo@arm.com>
875
876 * config/arm/arm-cores.def: Added core cortex-r7.
877 * config/arm/arm-tune.md: Regenerated.
878 * config/arm/arm-tables.opt: Regenerated.
879 * doc/invoke.texi: Added entry for core cortex-r7.
880
0a514f47
WL
8812013-03-27 Walter Lee <walt@tilera.com>
882
883 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
884 double-decrement of next_scratch_regno.
885
9332b0d2
WL
8862013-03-27 Walter Lee <walt@tilera.com>
887
801d9b2a 888 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
889 input operands.
890 (insn_v1mulus): Ditto.
891 (insn_v2muls): Ditto.
892
f54ea5dd
WL
8932013-03-27 Walter Lee <walt@tilera.com>
894
e594716a 895 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
896 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
897
bf60f4ca
WL
8982013-03-27 Walter Lee <walt@tilera.com>
899
e594716a 900 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
901 (*sibcall_value): Ditto.
902
e3b51eeb
WL
9032013-03-27 Walter Lee <walt@tilera.com>
904
905 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
906 (insn_mnz_v8qi): ... this ...
907 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
908 vector equivalent.
909 (insn_v<n>mnz): Replaced by ...
910 (insn_v1mnz): ... this ...
911 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
912 equivalent.
913 (insn_mz_<mode>): Replaced by ...
914 (insn_mz_v8qi): ... this ...
915 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
916 vector equivalent.
917 (insn_v<n>mz): Replaced by ...
918 (insn_v1mz): ... this ...
919 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
920 equivalent.
921
4fc7b145
EB
9222013-03-26 Eric Botcazou <ebotcazou@adacore.com>
923
924 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
925
6f33817e
RM
9262013-03-26 Roland McGrath <mcgrathr@google.com>
927
928 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
929 than fprintf with a non-constant, non-format string.
930
93a4145b
UB
9312013-03-26 Uros Bizjak <ubizjak@gmail.com>
932
933 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
934 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
935 operand 0 predicate.
936 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
937 attribute. Use general_x64nomem_operand as operand 1 predicate.
938 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
939 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
940 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
941 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
942 (mov<mode>_insv_1): Remove expander. Merge insn with
943 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
944 Use general_x64nomem_operand as operand 1 predicate.
945 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
946 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
947 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
948 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
949 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
950 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
951 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
952 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
953 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
954 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
955 (general_x64nomem_operand): Ditto.
956
c6a9ed5a 9572013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
958
959 * config/rtems.opt: Add -pthread option.
960
31b0a960
RB
9612013-03-26 Richard Biener <rguenther@suse.de>
962
93a4145b
UB
963 * alias.c (find_base_term): Avoid redundant and not used recursion.
964 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
965 (true_dependence_1): Compute and pass base terms to base_alias_check.
966 (write_dependence_p): Likewise.
967 (may_alias_p): Likewise.
968
79517551
SN
9692013-03-26 Sofiane Naci <sofiane.naci@arm.com>
970
971 * config/aarch64/aarch64.c (aarch64_classify_address): Support
972 PC-relative load in SI modes and above only.
973
a76213b9
XQ
9742013-03-26 Xinyu Qi <xyqi@marvell.com>
975
976 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
977 * config/arm/iwmmxt.md (WCGR0): Update.
978 (WCGR1, WCGR2, WCGR3): Likewise.
979
37ff9355
UB
9802013-03-26 Uros Bizjak <ubizjak@gmail.com>
981
982 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
983 Use x64 and nox64 isa attributes.
984
30b0317c
RB
9852013-03-26 Richard Biener <rguenther@suse.de>
986
987 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
988 alignment computations and rely on get_object_alignment_1
989 for the !TYPE_P case.
990 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
991
cbcdb140
WL
9922013-03-26 Walter Lee <walt@tilera.com>
993
994 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
995 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
996
dd884525 9972013-03-25 Jeff Law <law@redhat.com>
be672e08 998
dd884525
JL
999 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
1000 check for INTEGRAL_TYPE_P that was missing due to checking in
1001 wrong version of prior patch.
1002
0051d3ec
WL
10032013-03-25 Walter Lee <walt@tilera.com>
1004
1005 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
1006 TILEGX_INSN_SHUFFLEBYTES1.
1007 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
1008 shufflebytes1.
1009 (tilegx_builtins): Ditto.
1010 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
1011
065a3605
WL
10122013-03-25 Walter Lee <walt@tilera.com>
1013
1014 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
1015 (floatunssisf2): New pattern.
1016 (floatsidf2): New pattern.
1017 (floatunssidf2): New pattern.
065a3605 1018
5b2a3c82
WL
10192013-03-25 Walter Lee <walt@tilera.com>
1020
1021 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
1022 tests for constraint J, K, N, P.
1023
192ea533
WL
10242013-03-25 Walter Lee <walt@tilera.com>
1025
1026 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
1027 Use indirect/pcrel encoding.
1028 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
1029 Ditto.
1030
855e0d0b
SE
10312013-03-25 Steve Ellcey <sellcey@mips.com>
1032
1033 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
1034 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
1035 * config/mips/mips.c (mips_option_override): Set IMADD default.
1036 * config/mips/mips.h (PTF_AVOID_IMADD): New.
1037 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
1038 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
1039 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
1040 * doc/invoke.texi (-mimadd/-mno-imadd): New.
1041
39e45653
JL
10422013-03-25 Jeff Law <law@redhat.com>
1043
1044 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
1045 slightly to avoid creating and folding useless trees. Simplify
1046 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
1047
7482c470
UB
10482013-03-25 Uros Bizjak <ubizjak@gmail.com>
1049
1050 * config/i386/i386.md (*zero_extendsidi2): Merge with
1051 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
1052 * config/i386/predicates.md (x86_64_zext_operand): Rename from
1053 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
1054 targets. Clarify comment.
1055
4a53743e
MJ
10562013-03-25 Martin Jambor <mjambor@suse.cz>
1057
1058 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
1059 pass-through jump functions differently.
1060 (ipa_read_jump_function): Likewise. Also use setter functions to set
1061 up jump functions.
1062
162712de
MJ
10632013-03-25 Martin Jambor <mjambor@suse.cz>
1064
1065 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
1066 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
1067 process it.
1068 (ipa_get_indirect_edge_target): New function.
1069 (devirtualization_time_bonus): New parameter known_aggs, pass it to
1070 ipa_get_indirect_edge_target. Update all callers.
1071 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
1072 ipa_get_indirect_edge_target_1 instead of calling
1073 ipa_get_indirect_edge_target.
1074 (create_specialized_node): Pass aggvlas to
1075 ipcp_discover_new_direct_edges.
1076
a5a4c20a
KT
10772013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1078
1079 * config/arm/arm.md (f_sels, f_seld): New types.
1080 (*cmov<mode>): New pattern.
1081 * config/arm/predicates.md (arm_vsel_comparison_operator): New
1082 predicate.
1083
f992b9fc
KT
10842013-03-25 Kai Tietz <ktietz@redhat.com>
1085
1086 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
1087 POSIX-printf for mingw-hosted builds.
1088
c16fd676
RB
10892013-03-25 Richard Biener <rguenther@suse.de>
1090
1091 PR middle-end/56694
1092 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
1093 must-not-throw stmt location.
1094
5ad29f12
KT
10952013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1096
1097 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
1098 Emit load-acquire versions when acq is true.
1099 (arm_emit_store_exclusive): Add rel parameter.
1100 Emit store-release versions when rel is true.
1101 (arm_split_compare_and_swap): Use acquire-release instructions
1102 instead.
1103 of barriers when appropriate.
1104 (arm_split_atomic_op): Likewise.
1105 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
1106 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
1107 (VUNSPEC_SLX): Likewise.
1108 (VUNSPEC_LDA): Likewise.
1109 (VUNSPEC_STL): Likewise.
1110 * config/arm/sync.md (atomic_load<mode>): New pattern.
1111 (atomic_store<mode>): Likewise.
1112 (arm_load_acquire_exclusive<mode>): Likewise.
1113 (arm_load_acquire_exclusivesi): Likewise.
1114 (arm_load_acquire_exclusivedi): Likewise.
1115 (arm_store_release_exclusive<mode>): Likewise.
1116
03a7dddb
CM
11172013-03-25 Catherine Moore <clm@codesourcery.com>
1118
1119 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
1120 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
1121 * config/mip/predicates.md (lwsp_swsp_operand,
1122 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
1123 sb16_operand, db4_operand, db7_operand, ib3_operand,
1124 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
1125 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
1126 andi16_operand): New predicates.
1127 * config/mips/mips.md (compression): New attribute.
1128 (enabled): New attribute.
1129 (length): Consider compression in computing length.
1130 (shift_compression): New code attribute.
1131 (*add<mode>3): New operands. Record compression.
1132 (sub<mode>3): Likewise.
1133 (one_cmpl<mode>2): Likewise.
1134 (*and<mode>3): Likewise.
1135 (*ior<mode>3): Likewise.
1136 (unnamed pattern for xor): Likewise.
1137 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
1138 (*<optab><mode>3): Likewise.
1139 (*mov<mode>_internal: Likewise.
1140 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
1141 (mips_unsigned_immediate_p): New.
1142 (umips_lwsp_swsp_address_p): New.
1143 (m16_based_address_p): New.
1144 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
1145 (mips_unsigned_immediate_p): New prototype.
1146 (lwsp_swsp_address_p): New prototype.
1147 (m16_based_address_p): New prototype.
1148 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
1149 (mips_signed_immediate_p): New function.
1150 (m16_based_address_p): New function.
1151 (lwsp_swsp_address_p): New function.
1152 (mips_print_operand_punctuation): Recognize short delay slot insns
1153 for microMIPS.add<mode>3"
1154
f35c297f 11552013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 1156
f35c297f
KT
1157 PR target/56720
1158 * config/arm/iterators.md (v_cmp_result): New mode attribute.
1159 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
1160
051b9446
RB
11612013-03-25 Richard Biener <rguenther@suse.de>
1162
1163 PR tree-optimization/56689
1164 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
1165 any edge.
1166
374001cb
RB
11672013-03-25 Richard Biener <rguenther@suse.de>
1168
1169 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
1170 of bitmap.
1171 (memory_references): Likewise.
1172 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
1173 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
1174 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
1175 (gather_mem_refs_in_loops): Fold into ...
1176 (analyze_memory_references): ... this. Move initialization
1177 to tree_ssa_lim_initialize.
1178 (fill_always_executed_in): Rename to ...
1179 (fill_always_executed_in_1): ... this.
1180 (fill_always_executed_in): Move contains_call computation to
1181 this new function from ...
1182 (tree_ssa_lim_initialize): ... here.
1183 (tree_ssa_lim): Call fill_always_executed_in.
1184
57895947
EB
11852013-03-25 Eric Botcazou <ebotcazou@adacore.com>
1186
1187 * postreload.c (reload_combine): Fix code detecting returns.
1188
1e1b18c1
EB
11892013-03-25 Eric Botcazou <ebotcazou@adacore.com>
1190
1191 * function.c (emit_use_return_register_into_block): On cc0 targets,
1192 do not emit the sequence between cc0 setter and user.
1193
9216baf1
KT
11942013-03-25 Kai Tietz <ktietz@redhat.com>
1195
1e1b18c1
EB
1196 * config/i386/predicates.md (local_symbolic_operand): Interpret
1197 dll-imported symbols as none-local.
9216baf1 1198
76421b44
RB
11992013-03-25 Richard Biener <rguenther@suse.de>
1200
1201 * tree-ssa-loop-im.c (struct depend): Remove.
1202 (struct lim_aux_data): Make depends a vec of gimples.
1203 (free_lim_aux_data): Adjust.
1204 (add_dependency): Likewise.
1205 (set_level): Likewise.
1206
d154bfa2
RB
12072013-03-25 Richard Biener <rguenther@suse.de>
1208
1209 PR middle-end/56434
1210 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
1211 the pointer returned by calls with ECF_MALLOC set.
1212
2cd9804e
UB
12132013-03-24 Uros Bizjak <ubizjak@gmail.com>
1214
acef5fe0
UB
1215 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
1216
12172013-03-24 Uros Bizjak <ubizjak@gmail.com>
1218
1219 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
1220 using MMXMODE mode iterator.
1221 (*move<mode>_internal): Merge with *movv2sf_internal and
1222 *movv2sf_internal_rex64 using MMXMODE mode iterator.
1223
225ccc68
SB
12242013-03-23 Steven Bosscher <steven@gcc.gnu.org>
1225
85c0f02d
SB
1226 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
1227 (record_last_mem_set_info): Likewise.
1228
225ccc68
SB
1229 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
1230 of XNEWVEC followed by memset.
1231 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
1232
b64925dc
SB
12332013-03-23 Steven Bosscher <steven@gcc.gnu.org>
1234
1235 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
1236 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
1237 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
1238 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
1239 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
1240 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
1241 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
1242 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
1243 BARRIER_P instead of GET_CODE.
1244
b9aaf52e
EB
12452013-03-23 Eric Botcazou <ebotcazou@adacore.com>
1246
1247 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
1248 inaccuracy in the probing code.
1249
1250 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
1251 (ctrapdi4): Likewise.
1252
66de4d7c
EB
12532013-03-23 Eric Botcazou <ebotcazou@adacore.com>
1254
1255 * calls.c (expand_call): Add missing guard to code handling return
1256 of non-BLKmode structures in MSB.
1257 * function.c (expand_function_end): Likewise.
1258
4f25c8fb
EB
12592013-03-23 Eric Botcazou <ebotcazou@adacore.com>
1260
1261 * combine.c (try_combine): Adjust comment. Do not add the set of
1262 insn #0 if the destination indirectly is set or dies in insn #2.
1263 Tidy up code to distribute a new note.
1264
23b7850d
UB
12652013-03-22 Uros Bizjak <ubizjak@gmail.com>
1266
1267 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
1268 also for alternatives 16 and 17.
1269
bed852cf
UB
12702013-03-22 Uros Bizjak <ubizjak@gmail.com>
1271
1272 * config/i386/sse.md (*mov<mode>_internal): Merge with
1273 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
1274 Emit insn template depending on type attribute. Use
1275 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1276 movd instead of movq mnemonic for interunit moves. Rewrite mode
1277 attribute calculation. Remove unit attribute calculation.
1278 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
1279 Set prefix_data16 attribute for DImode ssemov types.
1280 Use Ym instead of y for SSE-MMX conversion alternatives.
1281 Reorder operand constraints.
1282
1e8a7937
SB
12832013-03-22 Steven Bosscher <steven@gcc.gnu.org>
1284
1285 * df.h (df_insn_delete): Adjust prototype.
1286 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
1287 and let it decide whether mark the basic block dirty.
1288 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
1289 * df-scan.c (df_insn_info_delete): New helper function, split
1290 off from df_insn_delete.
1291 (df_scan_free_bb_info): Use it.
1292 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
1293 Likewise.
1294 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
1295 that the insn is actually an insn and it has a non-NULL basic block.
1296 Do not mark basic block dirty if only deleting a DEBUG_INSN.
1297
e14d094c
RB
12982013-03-22 Richard Biener <rguenther@suse.de>
1299
1300 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
1301 dep_ref members.
1302 (mem_ref_alloc): Do not allocate them.
1303 (refs_independent_p): Do not query or maintain a cache.
1304
e9cf7316
RB
13052013-03-22 Richard Biener <rguenther@suse.de>
1306
1307 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
1308 (gather_mem_refs_in_loops): Do not compute it.
1309 (analyze_memory_references): Do not allocate it.
1310 (tree_ssa_lim_finalize): Do not free it.
1311 (for_all_locs_in_loop): Do not query all_refs_in_loop.
1312
f046e81b
RB
13132013-03-22 Richard Biener <rguenther@suse.de>
1314
1315 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 1316
a05c0ddf
IB
13172013-03-22 Ian Bolton <ian.bolton@arm.com>
1318
1319 * config/aarch64/aarch64.c (aarch64_print_operand): New
1320 format specifier for printing a constant in hex.
1321 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
1322 format specifier for printing second operand.
1323
c00217fc
RB
13242013-03-22 Richard Biener <rguenther@suse.de>
1325
1326 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
1327 bitmaps.
1328 (gather_mem_refs_in_loops): Perform store accumulation here.
1329 (create_vop_ref_mapping_loop): Remove.
1330 (create_vop_ref_mapping): Likewise.
1331 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 1332 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
1333 (record_indep_loop): Remove.
1334 (record_dep_loop): New function.
1335 (ref_indep_loop_p_1): Adjust to only walk over references
1336 in the loop, not its subloops.
1337 (ref_indep_loop_p): Rename to ...
1338 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
1339 maintaining a more fine-grained cache.
1340 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
1341 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
1342
15d19bf8
RB
13432013-03-22 Richard Biener <rguenther@suse.de>
1344
1345 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
1346 (struct mem_ref): Make accesses_in_loop a vec of a vec of
1347 aggregate mem_ref_loc.
1348 (free_mem_ref_locs): Inline into ...
1349 (memref_free): ... this and adjust.
1350 (mem_ref_alloc): Adjust.
1351 (mem_ref_locs_alloc): Remove.
1352 (record_mem_ref_loc): Adjust.
1353 (get_all_locs_in_loop): Rewrite into ...
1354 (for_all_locs_in_loop): ... this iterator.
1355 (rewrite_mem_ref_loc): New functor.
1356 (rewrite_mem_refs): Use for_all_locs_in_loop.
1357 (sm_set_flag_if_changed): New functor.
1358 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
1359 (ref_always_accessed): New functor.
1360 (ref_always_accessed_p): Use for_all_locs_in_loop.
1361
6f37411d
MG
13622013-03-21 Marc Glisse <marc.glisse@inria.fr>
1363
1364 * tree-pass.h (PROP_gimple_lvec): New.
1365 * passes.c (dump_properties): Handle PROP_gimple_lvec.
1366 (init_optimization_passes): Move pass_lower_vector.
1367 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
1368 PROP_gimple_lvec.
1369 (pass_lower_vector): Provide PROP_gimple_lvec.
1370 (pass_lower_vector_ssa): Likewise.
1371 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
1372
511ef689
MW
13732013-03-21 Mark Wielaard <mjw@redhat.com>
1374
1375 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
1376
cc1df30b
UB
13772013-03-21 Uros Bizjak <ubizjak@gmail.com>
1378
1379 * config/i386/i386.md (*movdi_internal): Disparage slightly
1380 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
1381 conversion alternatives.
1382
c845cfe1
JJ
13832013-03-21 Jakub Jelinek <jakub@redhat.com>
1384
37e99116
JJ
1385 PR middle-end/48087
1386 * diagnostic.def (DK_WERROR): New kind.
1387 * diagnostic.h (werrorcount): Define.
1388 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
1389 promoted to DK_ERROR, increment DK_WERROR counter instead of
1390 DK_ERROR counter.
1391 * toplev.c (toplev_main): Call print_ignored_options even if
1392 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
1393 even if just werrorcount is non-zero.
1394
c845cfe1
JJ
1395 PR debug/55608
1396 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
1397 on failure.
1398 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
1399 (string_cst_pool_decl): New function.
1400 (optimize_one_addr_into_implicit_ptr): New function.
1401 (resolve_addr_in_expr): Optimize DWARF location expression
1402 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
1403 which doesn't live in memory, but has DW_AT_location or
1404 DW_AT_const_value, or refers to a string literal, into
1405 DW_OP_GNU_implicit_pointer.
1406 (optimize_location_into_implicit_ptr): New function.
1407 (resolve_addr): If removing DW_AT_location of a variable because
1408 it was DW_OP_addr of address of the variable, but the variable doesn't
1409 live in memory, try to emit const value attribute for the initializer.
1410
08e0cda6
MG
14112013-03-21 Marc Glisse <marc.glisse@inria.fr>
1412
1413 * tree.h (VECTOR_TYPE_P): New macro.
1414 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
1415 TYPE_MODE): Use it.
1416 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
1417 VEC_COND_EXPR cannot be lvalues.
1418 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
1419
d08633b4
MG
14202013-03-21 Marc Glisse <marc.glisse@inria.fr>
1421
1422 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
1423 Restrict the transformation to equal modes.
1424
e6647190
RB
14252013-03-21 Richard Biener <rguenther@suse.de>
1426
1427 PR tree-optimization/39326
1428 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
1429 (MEM_ANALYZABLE): Adjust.
1430 (record_mem_ref_loc): Move bitmap ops ...
1431 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
1432 unanalyzable refs, do not record locations for it.
1433 (analyze_memory_references): Allocate ref zero as shared
1434 unanalyzable ref.
1435 (refs_independent_p): Do not test for unanalyzed mems here.
1436 (ref_indep_loop_p_1): Special-case disambiguation against
1437 the unanalyzed ref.
cc1df30b 1438 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 1439
65074f54
CL
14402013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
1441
1442 * config/arm/arm-protos.h (tune_params): Add
1443 prefer_neon_for_64bits field.
1444 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
1445 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
1446 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1447 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1448 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
1449 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1450 (arm_option_override): Handle -mneon-for-64bits new option.
1451 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
1452 (prefer_neon_for_64bits): Declare new variable.
1453 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 1454 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
1455 (arch_enabled): Handle new arch types. Remove support for onlya8
1456 and nota8.
1457 (one_cmpldi2): Use new arch names.
bc5faa5b 1458 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
1459 * config/arm/arm.opt (mneon-for-64bits): Add option.
1460 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
1461 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
1462 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
1463 of onlya8.
1464 * doc/invoke.texi (-mneon-for-64bits): Document.
1465
5a2d2a79
RB
14662013-03-21 Richard Biener <rguenther@suse.de>
1467
1468 PR tree-optimization/39326
1469 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
1470 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 1471 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 1472
5abe1e05
RB
14732013-03-21 Richard Biener <rguenther@suse.de>
1474
1475 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
1476 (vect_insert_into_interleaving_chain): Likewise.
1477 (vect_drs_dependent_in_basic_block): Inline ...
1478 (vect_slp_analyze_data_ref_dependence): ... here. New function,
1479 split out from ...
1480 (vect_analyze_data_ref_dependence): ... here. Simplify.
1481 (vect_check_interleaving): Simplify.
1482 (vect_analyze_data_ref_dependences): Likewise. Split out ...
1483 (vect_slp_analyze_data_ref_dependences): ... this new function.
1484 (dr_group_sort_cmp): New function.
1485 (vect_analyze_data_ref_accesses): Compute data-reference groups
1486 here instead of in vect_analyze_data_ref_dependence. Use
1487 a more efficient algorithm.
1488 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
1489 vect_slp_analyze_data_ref_dependences. Call
1490 vect_analyze_data_ref_accesses earlier.
1491 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1492 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
1493 (vect_slp_analyze_data_ref_dependences): New prototype.
1494
cad1735b
RB
14952013-03-21 Richard Biener <rguenther@suse.de>
1496
1497 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
1498 ref is stored in the loop.
1499 (find_refs_for_sm): Walk only over all stores.
1500 (store_motion_loop): Allocate from lim_bitmap_obstack.
1501 (store_motion): Likewise.
1502
141310ef
RB
15032013-03-21 Richard Biener <rguenther@suse.de>
1504
1505 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
1506 Update virtual SSA form.
1507
5022315a
RO
15082013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1509
1510 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
1511 * configure: Regenerate.
1512 * config.in: Regenerate.
1513 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
1514 if !HAVE_LD_EH_FRAME_CIEV3.
1515
50d4421c
RB
15162013-03-21 Richard Biener <rguenther@suse.de>
1517
1518 * tree-cfg.c (verify_expr_no_block): New function.
1519 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
1520 nor DECL_VALUE_EXPR have locations with associated blocks.
1521 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
1522 (clear_unused_block_pointer): Remove code dealing with
1523 blocks in DECL_DEBUG_EXPR locations.
1524
839b422f
RB
15252013-03-21 Richard Biener <rguenther@suse.de>
1526
1527 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
1528 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
1529 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
1530 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
1531 instead of DECL_DEBUG_EXPR_IS_FROM.
1532 * gimplify.c (gimplify_modify_expr): Likewise.
1533 * tree-cfg.c (verify_expr_location_1): Likewise.
1534 * tree-complex.c (create_one_component_var): Likewise.
1535 * tree-sra.c (create_access_replacement): Likewise.
1536 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
1537 (clear_unused_block_pointer): Likewise.
1538 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1539 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1540 * var-tracking.c (var_debug_decl): Likewise.
1541 (track_expr_p): Likewise.
1542 * tree-inline.c (add_local_variables): Likewise. Set
1543 DECL_HAS_DEBUG_EXPR_P after copying it.
1544 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1545 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
1546
fe04878d
UB
15472013-03-21 Uros Bizjak <ubizjak@gmail.com>
1548
1549 PR bootstrap/56656
1550 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
1551 * configure: Regenerate.
1552 * config.in: Regenerate.
1553 * config/i386/i386.md (*movdf_internal): Use
1554 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1555 movd instead of movq mnemonic for interunit moves.
1556 (*movdi_internal): Ditto.
1557
bd059b26 15582013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
1559
1560 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
1561 (abd<mode>_3): New pattern.
1562 (aba<mode>_3): New pattern.
1563 (fabd<mode>_3): New pattern.
1564
bd059b26 15652013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
1566
1567 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
1568 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
1569 occurrence of REGISTER_PREFIX as its empty string.
1570
4f1f78b9
JL
15712013-03-20 Jeff Law <law@redhat.com>
1572
1573 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
1574 addititional equivalences for equality comparisons between an SSA_NAME
1575 and a constant where the SSA_NAME was set from a widening conversion.
1576
327a1118
WL
15772013-03-20 Walter Lee <walt@tilera.com>
1578
1579 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
1580
813e0036
UB
15812013-03-20 Uros Bizjak <ubizjak@gmail.com>
1582
1583 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
1584 depending on type attribute.
1585 (*movti_internal): Ditto.
1586 (*movtf_internal): Ditto.
1587 (*movxf_internal): Ditto.
1588 (*movdf_internal): Ditto.
1589 (*movsf_internal): Ditto.
1590
7cf34aae
UB
15912013-03-20 Uros Bizjak <ubizjak@gmail.com>
1592
1593 * config/i386/i386.md (*movti_internal): Set prefix attribute to
1594 maybe_vex for sselog1 and ssemov types.
1595 (*movdi_internal): Reorder operand constraints.
1596 (*movsi_internal): Ditto. Set prefix attribute to
1597 maybe_vex for sselog1 and ssemov types.
1598 (*movtf_internal): Set prefix attribute to maybe_vex
1599 for sselog1 and ssemov types.
1600 (*movdf_internal): Ditto. Set prefix_data16 attribute for
1601 DImode ssemov types. Reorder operand constraints.
1602 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
1603 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
1604 attribute for SImode ssemov types. Reorder operand constraints.
1605
19321415
MJ
16062013-03-20 Martin Jambor <mjambor@suse.cz>
1607
1608 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
1609 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
1610
c6d5ff83
MM
16112013-03-20 Pat Haugen <pthaugen@us.ibm.com>
1612
1613 * config/rs6000/predicates.md (indexed_address, update_address_mem
1614 update_indexed_address_mem): New predicates.
1615 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
1616 attribute for load/store instructions.
1617 * config/rs6000/dfp.md (movsd_store): Likewise.
1618 (movsd_load): Likewise.
1619 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
1620 (unnamed HI->DI extend define_insn): Likewise.
1621 (unnamed SI->DI extend define_insn): Likewise.
1622 (unnamed QI->SI extend define_insn): Likewise.
1623 (unnamed QI->HI extend define_insn): Likewise.
1624 (unnamed HI->SI extend define_insn): Likewise.
1625 (unnamed HI->SI extend define_insn): Likewise.
1626 (extendsfdf2_fpr): Likewise.
1627 (movsi_internal1): Likewise.
1628 (movsi_internal1_single): Likewise.
1629 (movhi_internal): Likewise.
1630 (movqi_internal): Likewise.
1631 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
1632 attribute for load/store instructions.
1633 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
1634 instructions.
1635 (mov<mode>_softfloat): Likewise.
1636 (mov<mode>_hardfloat32): Likewise.
1637 (mov<mode>_hardfloat64): Likewise.
1638 (mov<mode>_softfloat64): Likewise.
1639 (movdi_internal32): Likewise.
1640 (movdi_internal64): Likewise.
1641 (probe_stack_<mode>): Likewise.
1642
16432013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1644
1645 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
1646 floating point, and decimal floating point to reload iterator.
1647
1648 * config/rs6000/constraints.md (wl constraint): New constraints to
1649 return FLOAT_REGS if certain options are used to reduce the number
1650 of separate patterns that exist in the file.
1651 (wx constraint): Likewise.
1652 (wz constraint): Likewise.
1653
1654 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1655 -mdebug=reg, print wg, wl, wx, and wz constraints.
1656 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1657 Initialize the reload functions for 64-bit binary/decimal floating
1658 point types.
1659 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1660 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1661 create the buffer on the stack to overcome not having a 32-bit
1662 load and store.
1663 (rs6000_emit_move): Likewise.
1664 (rs6000_secondary_memory_needed_rtx): Likewise.
1665 (rs6000_alloc_sdmode_stack_slot): Likewise.
1666 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1667 via xxlxor, just like DFmode 0.0.
1668
1669 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
1670 define as 1 if we are running on a power7 or newer.
1671 (enum r6000_reg_class_enum): Add new constraints.
1672
1673 * config/rs6000/dfp.md (movsd): Delete, combine with binary
1674 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
1675 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 1676 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
1677 (movsd splitter): Likewise.
1678 (movsd_hardfloat): Likewise.
1679 (movsd_softfloat): Likewise.
1680
1681 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
1682 binary and decimal floating point moves.
1683 (fmove_ok): New attributes to combine binary and decimal floating
1684 point moves, and to combine power6x (mfpgpr) moves along normal
1685 floating moves.
1686 (real_value_to_target): Likewise.
1687 (f32_lr): Likewise.
1688 (f32_lm): Likewise.
1689 (f32_li): Likewise.
1690 (f32_sr): Likewise.
1691 (f32_sm): Likewise.
1692 (f32_si): Likewise.
1693 (movsf): Combine binary and decimal floating point moves. Combine
1694 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 1695 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
1696 (mov<mode> for SFmode/SDmode); Likewise.
1697 (SFmode/SDmode splitters): Likewise.
1698 (movsf_hardfloat): Likewise.
1699 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
1700 (movsf_softfloat): Likewise.
1701 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
1702
1703 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
1704 wx and wz constraints.
1705
1706 * config/rs6000/constraints.md (wg constraint): New constraint to
1707 return FLOAT_REGS if -mmfpgpr (power6x) was used.
1708
1709 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
1710 constraint.
1711
1712 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1713 -mdebug=reg, print wg, wl, wx, and wz constraints.
1714 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1715 Initialize the reload functions for 64-bit binary/decimal floating
1716 point types.
1717 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1718 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1719 create the buffer on the stack to overcome not having a 32-bit
1720 load and store.
1721 (rs6000_emit_move): Likewise.
1722 (rs6000_secondary_memory_needed_rtx): Likewise.
1723 (rs6000_alloc_sdmode_stack_slot): Likewise.
1724 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1725 via xxlxor, just like DFmode 0.0.
1726
c6d5ff83
MM
1727 * config/rs6000/dfp.md (movdd): Delete, combine with binary
1728 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
1729 with other moves by using conditional constraits (wg). Use LFIWZX
1730 and STFIWX for loading SDmode on power7.
1731 (movdd splitters): Likewise.
1732 (movdd_hardfloat32): Likewise.
1733 (movdd_softfloat32): Likewise.
1734 (movdd_hardfloat64_mfpgpr): Likewise.
1735 (movdd_hardfloat64): Likewise.
1736 (movdd_softfloat64): Likewise.
1737
1738 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
1739 64-bit binary and decimal floating point moves.
1740 (FMOVE64X): Likewise.
1741 (movdf): Combine 64-bit binary and decimal floating point moves.
1742 Combine power6x (mfpgpr) moves with other moves by using
1743 conditional constraits (wg).
1744 (mov<mode> for DFmode/DDmode): Likewise.
1745 (DFmode/DDmode splitters): Likewise.
1746 (movdf_hardfloat32): Likewise.
1747 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
1748 (movdf_softfloat32): Likewise.
1749 (movdf_hardfloat64_mfpgpr): Likewise.
1750 (movdf_hardfloat64): Likewise.
1751 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
1752 (movdf_softfloat64): Likewise.
1753 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
1754 (reload_<mode>_load): Move to later in the file so they aren't in
1755 the middle of the floating point move insns.
1756 (reload_<mode>_store): Likewise.
1757
1758 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
1759 constraint.
1760
1761 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
1762 constraint if -mdebug=reg.
bd059b26
UB
1763 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
1764 Enable using dd reload support if needed.
c6d5ff83
MM
1765
1766 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
1767 binary and decimal floating point moves in rs6000.md.
1768 (movtd_internal): Likewise.
1769
1770 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
1771 decimal floating point moves.
1772 (movtf): Likewise.
1773 (movtf_internal): Likewise.
1774 (mov<mode>_internal, TDmode/TFmode): Likewise.
1775 (movtf_softfloat): Likewise.
1776 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
1777
1778 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
1779 movdi_internal64, using wg constraint for move direct operations.
1780 (movdi_internal64): Likewise.
1781
1782 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
1783 MODES_TIEABLE_P for selected modes. Print the numerical value of
1784 the various virtual registers. Use GPR/FPR first/last values,
1785 instead of hard coding the register numbers. Print which modes
1786 have reload functions registered.
bd059b26
UB
1787 (rs6000_option_override_internal): If -mdebug=reg, trace the options
1788 settings before/after setting cpu, target and subtarget settings.
1789 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
1790 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
1791 (rs6000_secondary_reload_fail): Likewise.
1792 (rs6000_secondary_reload_inner): Likewise.
1793
1794 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
1795 macros for first/last GPR and FPR registers.
1796 (LAST_GPR_REGNO): Likewise.
1797 (FIRST_FPR_REGNO): Likewise.
1798 (LAST_FPR_REGNO): Likewise.
1799
1800 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
1801 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
1802 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
1803 (vcond<mode><mode>): Likewise.
1804 (vcondu<mode><mode>): Likewise.
1805 (vector_gtu<mode>): Likewise.
1806 (vector_gte<mode>): Likewise.
1807 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 1808 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
1809 (ior<mode>3): Likewise.
1810 (and<mode>3): Likewise.
1811 (one_cmpl<mode>2): Likewise.
1812 (nor<mode>3): Likewise.
1813 (andc<mode>3): Likewise.
1814
1815 * config/rs6000/constraints.md (wt constraint): New constraint
1816 that returns VSX_REGS if TImode is allowed in VSX registers.
1817
1818 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
1819 constant under VSX.
1820
1821 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
1822 similar to TImode, but it is restricted to being in the GPRs.
1823
1824 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
1825 TImode to occupy a single VSX register.
1826
1827 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
1828 -mvsx-timode for power7/power8.
1829 (power7 cpu): Likewise.
1830 (power8 cpu): Likewise.
1831
1832 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
1833 sure that TFmode/TDmode take up two registers if they are ever
1834 allowed in the upper VSX registers.
1835 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
1836 registers.
1837 (rs6000_init_hard_regno_mode_ok): Likewise.
1838 (rs6000_debug_reg_global): Add debugging for PTImode and wt
1839 constraint. Print if LRA is turned on.
1840 (rs6000_option_override_internal): Give an error if -mvsx-timode
1841 and VSX is not enabled.
1842 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
1843 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
1844 to reg+offset addressing. Use PTImode when checking offset
1845 addresses for validity.
1846 (reg_offset_addressing_ok_p): Likewise.
1847 (rs6000_legitimate_offset_address_p): Likewise.
1848 (rs6000_legitimize_address): Likewise.
1849 (rs6000_legitimize_reload_address): Likewise.
1850 (rs6000_legitimate_address_p): Likewise.
1851 (rs6000_eliminate_indexed_memrefs): Likewise.
1852 (rs6000_emit_move): Likewise.
1853 (rs6000_secondary_reload): Likewise.
1854 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
1855 reloads to fpr registers to continue to use reg+offset addressing,
1856 but 64-bit reloads to altivec registers need reg+reg addressing.
1857 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
1858 it. Treat LO_SUM like a PLUS operation.
1859 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 1860 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
1861 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
1862 registers to share a register with a smaller sized type, since VSX
1863 puts scalars in the upper 64-bits.
1864 (print_operand): Add support for PTImode.
1865 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
1866 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
1867 registers, but don't have arithmetic support.
1868 (rs6000_memory_move_cost): Add test for VSX.
1869 (rs6000_opt_masks): Add -mvsx-timode.
1870
1871 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
1872 for TImode.
1873 (VSs): Likewise.
1874 (VSr): Use wt constraint for TImode.
1875 (VSv): Drop TImode support.
1876 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
1877 (vsx_movti_64bit): Likewise.
1878 (vsx_movti_32bit): Likewise.
1879 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
1880 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
1881 one '?' on the appropriate output constraint. Do not allow TImode
1882 logical operations on 32-bit systems.
1883 (vsx_ior<mode>3): Likewise.
1884 (vsx_xor<mode>3): Likewise.
1885 (vsx_one_cmpl<mode>2): Likewise.
1886 (vsx_nor<mode>3): Likewise.
1887 (vsx_andc<mode>3): Likewise.
1888 (vsx_concat_<mode>): Likewise.
1889 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
1890
1891 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
1892 OPTION_MASK_VSX_TIMODE.
1893 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
1894 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
1895
1896 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
1897 (TI2 iterator): New iterator for TImode, PTImode.
1898 (wd mode attribute): Add values for vector types.
bd059b26
UB
1899 (movti_string): Replace TI move operations with operations for TImode
1900 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
1901 (mov<mode>_string, TImode/PTImode): Likewise.
1902 (movti_ppc64): Likewise.
1903 (mov<mode>_ppc64, TImode/PTImode): Likewise.
1904 (TI mode splitters): Likewise.
1905
1906 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
1907 constraint.
1908
1fc5eced
MG
19092013-03-20 Marc Glisse <marc.glisse@inria.fr>
1910
1911 PR tree-optimization/56355
1912 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
1913 Also handle integers with undefined overflow.
1914
22c4c869
CM
19152013-03-20 Catherine Moore <clm@codesourcery.com>
1916 Maciej W. Rozycki <macro@codesourcery.com>
1917 Tom de Vries <tom@codesourcery.com>
1918 Nathan Sidwell <nathan@codesourcery.com>
1919 Iain Sandoe <iain@codesourcery.com>
1920 Nathan Froyd <froydnj@codesourcery.com>
1921 Chao-ying Fu <fu@mips.com>
1922
1923 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 1924 Document new function attributes.
22c4c869
CM
1925 * doc/invoke.texi (minterlink-compressed, mmicromips,
1926 m14k, m14ke, m14kec): Document new options.
1927 (minterlink-mips16): Update documentation.
1928 * doc/md.texi (ZC, ZD): Document new constraints.
1929 * configure.ac (gcc_cv_as_micromips): Check if linker
1930 supports the .set micromips directive.
1931 * configure: Regenerate.
1932 * config.in: Regenerate.
1933 * config/mips/mips-tables.opt: Regenerate.
1934 * config/mips/micromips.md: New file.
1935 * constraints.md (ZC, ZD): New constraints.
1936 * config/mips/predicates.md (movep_src_register): New predicate.
1937 (movep_src_operand): New predicate.
1938 (non_volatile_mem_operand): New predicate.
1939 * config/mips/mips.md (multimem): New type.
1940 (length): Differentiate between 17-bit and 18-bit branch offsets.
1941 (MOVEP1, MOVEP2): New mode iterator.
1942 (mov_<load>l): Use ZC constraint.
1943 (mov_<load>r): Likewise.
1944 (mov_<store>l): Likewise.
1945 (mov_<store>r): Likewise.
1946 (*branch_equality<mode>_inverted): Add microMIPS support.
1947 (*branch_equality<mode>): Likewise.
1948 (*jump_absolute): Likewise.
1949 (indirect_jump_<mode>): Likewise.
1950 (tablejump_<mode>): Likewise.
1951 (<optab>_internal): Likewise.
1952 (sibcall_internal): Likewise.
1953 (sibcall_value_internal): Likewise.
1954 (prefetch): Use constraint ZD.
1955 * config/mips/mips.opt (minterlink-compressed): New option.
1956 (minterlink-mips16): Now an alias for minterlink-compressed.
1957 (mmicromips): New option.
1958 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1959 (compare_and_swap_12): Likewise.
1960 (sync_add<mode>): Likewise.
1961 (sync_<optab>_12): Likewise.
1962 (sync_old_<optab>_12): Likewise.
1963 (sync_new_<optab>_12): Likewise.
1964 (sync_nand_12): Likewise.
1965 (sync_old_nand_12): Likewise.
1966 (sync_new_nand_12): Likewise.
1967 (sync_sub<mode>): Likewise.
1968 (sync_old_add<mode>): Likewise.
1969 (sync_old_sub<mode>): Likewise.
1970 (sync_new_add<mode>): Likewise.
1971 (sync_new_sub<mode>): Likewise.
1972 (sync_<optab><mode>): Likewise.
1973 (sync_old_<optab><mode>): Likewise.
1974 (sync_new_<optab><mode>): Likewise.
1975 (sync_nand<mode>): Likewise.
1976 (sync_old_nand<mode>): Likewise.
1977 (sync_new_nand<mode>): Likewise.
1978 (sync_lock_test_and_set<mode>): Likewise.
1979 (test_and_set_12): Likewise.
1980 (atomic_compare_and_swap<mode>): Likewise.
1981 (atomic_exchange<mode>_llsc): Likewise.
1982 (atomic_fetch_add<mode>_llsc): Likewise.
1983 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1984 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1985 (umips_save_restore_pattern_p): Likewise.
1986 (umips_load_store_pair_p): Likewise.
1987 (umips_output_load_store_pair): Likewise.
1988 (umips_movep_target_p): Likewise.
1989 (umips_12bit_offset_address_p): Likewise.
1990 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1991 (mips_base_mips16): Rename this...
1992 (mips_base_compression_flags): ...to this. Update all uses.
1993 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1994 (mips_mips16_decl_p): Delete.
1995 (mips_nomips16_decl_p): Delete.
1996 (mips_get_compress_on_flags): New function.
1997 (mips_get_compress_off_flags): New function.
1998 (mips_get_compress_mode): New function.
1999 (mips_get_compress_on_name): New function.
2000 (mips_get_compress_off_name): New function.
2001 (mips_insert_attributes): Support multiple compression types.
2002 (mips_merge_decl_attributes): Likewise.
2003 (umips_12bit_offset_address_p): New function.
2004 (mips_start_function_definition): Emit .set micromips directive.
2005 (mips_call_may_need_jalx_p): New function.
2006 (mips_function_ok_for_sibcall): Add microMIPS support.
2007 (mips_print_operand_punctuation): Support short delay slots and
2008 compact jumps.
2009 (umips_swm_mask, umips_swm_encoding): New.
2010 (umips_build_save_restore): New function.
2011 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2012 (was_mips16_p): Remove.
2013 (old_compression_mode): New.
2014 (mips_set_compression_mode): New function.
2015 (mips_set_current_function): Add microMIPS support.
2016 (mips_option_override): Likewise.
2017 (umips_save_restore_pattern_p): New function.
2018 (umips_output_save_restore): New function.
2019 (umips_load_store_pair_p_1): New function.
2020 (umips_load_store_pair_p): New function.
2021 (umips_output_load_store_pair_1): New function.
2022 (umips_output_load_store_pair): New function.
2023 (umips_movep_target_p) New function.
2024 (mips_prepare_pch_save): Add microMIPS support.
2025 * config/mips/mips.h (TARGET_COMPRESSION): New.
2026 (TARGET_CPU_CPP_BUILTINS): Update macro
2027 to use new compression flags and to support microMIPS.
2028 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2029 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2030 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2031 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2032 (ASM_SPEC): Support mmicromips and mno-micromips.
2033 (M16STORE_REG_P): New macro.
2034 (MIPS_CALL): Support TARGET_MICROMIPS.
2035 (MICROMIPS_J): New macro.
2036 (mips_base_mips16): Rename this...
2037 (mips_base_compression_flags): ...to this.
2038 (UMIPS_12BIT_OFFSET_P): New macro.
2039 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2040 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
20412013-03-20 Richard Biener <rguenther@suse.de>
2042
2043 PR tree-optimization/56661
2044 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
2045 the result does not have to be distinct.
2046
54714c68
RB
20472013-03-20 Richard Biener <rguenther@suse.de>
2048
2049 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
2050 remap_gimple_op_r.
2051
cca1130d
BS
20522013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2053 Steven Bosscher <steven@gcc.gnu.org>
2054
2055 PR rtl-optimization/56605
2056 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
2057
2a930377
UB
20582013-03-20 Uros Bizjak <ubizjak@gmail.com>
2059
2060 PR bootstrap/56656
2061 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
2062 that require movd instead of movq.
2063
d6d305fe
RB
20642013-03-20 Richard Biener <rguenther@suse.de>
2065
2066 * tree-ssa-structalias.c (struct variable_info): Add pointer
2067 to the first field of an aggregate with sub-vars. Make
2068 this and the pointer to the next subfield its ID.
2069 (vi_next): New function.
2070 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
2071 storedanything_id, integer_id): Increment by one.
2072 (new_var_info, get_call_vi, lookup_call_clobber_vi,
2073 get_call_clobber_vi): Adjust.
2074 (solution_set_expand): Simplify and speedup.
2075 (solution_set_add): Inline into ...
2076 (set_union_with_increment): ... this. Adjust accordingly.
2077 (do_sd_constraint): Likewise.
2078 (do_ds_constraint): Likewise.
2079 (do_complex_constraint): Simplify.
2080 (build_pred_graph): Adjust.
2081 (solve_graph): Likewise. Simplify and speedup.
2082 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
2083 get_constraint_for_component_ref, get_constraint_for_1,
2084 first_vi_for_offset, first_or_preceding_vi_for_offset,
2085 create_function_info_for, create_variable_info_for_1,
2086 create_variable_info_for, intra_create_variable_infos): Adjust.
2087 (init_base_vars): Push NULL for ID zero.
2088 (compute_points_to_sets): Adjust.
2089
a271b42d
RB
20902013-03-20 Richard Biener <rguenther@suse.de>
2091
2092 * cfgloop.c (verify_loop_structure): Streamline and avoid
2093 ICEing on corrupt loop tree.
2094 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
2095 loop tree.
2096
ebd65954
RB
20972013-03-20 Richard Biener <rguenther@suse.de>
2098
2099 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
2100 check whether an SSA update is needed.
2101
4547b7ee
RS
21022013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
2103
2104 * config/mips/constraints.md (T): Rename to...
2105 (Yf): ...this.
2106 (U): Rename to...
2107 (Yd): ...this.
2108 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
2109 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
2110
0b8cdc58
IB
21112013-03-19 Ian Bolton <ian.bolton@arm.com>
2112
2113 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
2114 (*subsi3_carryin_uxtw): Likewise.
2115
5977a10d
IB
21162013-03-19 Ian Bolton <ian.bolton@arm.com>
2117
2118 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
2119 (*rorsi3_insn_uxtw): Likewise.
2120
bd83ff2c
IB
21212013-03-19 Ian Bolton <ian.bolton@arm.com>
2122
2123 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
2124 (*extrsi5_insn_uxtw): Likewise.
2125
ba65123c
RB
21262013-03-19 Richard Biener <rguenther@suse.de>
2127
2128 PR tree-optimization/56273
2129 * passes.c (init_optimization_passes): Move second VRP after DOM.
2130
2eac0476
UB
21312013-03-19 Uros Bizjak <ubizjak@gmail.com>
2132
2133 * config/i386/i386.md (*movti_internal): Merge from
2134 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
2135 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
2136 nox64 isa attributes.
2137
6e55eda7
RB
21382013-03-18 Richard Biener <rguenther@suse.de>
2139
2140 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
2141 (unite): Likewise.
2142 (merge_node_constraints): Likewise.
2143 (build_succ_graph): Likewise.
2144 (valid_graph_edge): Inline into single caller.
2145 (unify_nodes): Likewise. Use bitmap_set_bit return value
2146 and cache varinfo.
2147 (scc_visit): Fix formatting and variable use.
2148 (do_sd_constraint): Use gcc_checking_assert.
2149 (do_ds_constraint): Likewise.
2150 (do_complex_constraint): Likewise.
2151 (condense_visit): Likewise. Cleanup.
2152 (dump_pred_graph): New function.
2153 (perform_var_substitution): Dump the pred-graph before
2154 variable substitution.
2155 (find_equivalent_node): Use gcc_checking_assert.
2156 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
2157
4bdd44c4
RB
21582013-03-18 Richard Biener <rguenther@suse.de>
2159
2160 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2161 Remove cond_expr_stmt_list argument and do not gimplify the
2162 built expression.
2163 (vect_loop_versioning): Adjust.
2164 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2165 Cleanup to use less temporaries.
2166 (vect_create_data_ref_ptr): Cleanup.
2167
38c56a5b
JJ
21682013-03-18 Jakub Jelinek <jakub@redhat.com>
2169
2170 PR tree-optimization/56635
2171 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
2172 require types_compatible_p types.
2173
20b2e6a0
NC
21742013-03-18 Nick Clifton <nickc@redhat.com>
2175
a6178a25
NC
2176 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
2177 spurious backslash.
2178
20b2e6a0
NC
2179 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
2180 Add missing line to comment describing function.
2181
92608d0e
RB
21822013-03-18 Richard Biener <rguenther@suse.de>
2183
2184 PR tree-optimization/56210
2185 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2186 Handle string / character search functions.
2187 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2188
31348d52
RB
21892013-03-18 Richard Biener <rguenther@suse.de>
2190
2191 PR middle-end/56483
2192 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
2193 and implement properly.
2194 * gimple.h (gimple_cond_single_var_p): Remove.
2195
fcac74a1
RB
21962013-03-18 Richard Biener <rguenther@suse.de>
2197
2198 * tree-data-ref.h (find_data_references_in_loop): Declare.
2199 * tree-data-ref.c (get_references_in_stmt): Use a stack
2200 vector pre-allocated in the callers.
2201 (find_data_references_in_stmt): Adjust.
2202 (graphite_find_data_references_in_stmt): Likewise.
2203 (create_rdg_vertices): Likewise.
2204 (find_data_references_in_loop): Export.
2205 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
2206 Compute dependences here...
2207 (vect_analyze_data_refs): ...not here. When we encounter
2208 a non-vectorizable data reference in basic-block vectorization
2209 truncate the data reference vector. Do not bother to
2210 fixup data-dependence information for gather loads.
2211 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
2212 of data references, as reported.
2213
0d5a1b56
RB
22142013-03-18 Richard Biener <rguenther@suse.de>
2215
2216 PR tree-optimization/3713
2217 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
2218 has_constants and expr.
2219 (stmt_has_constants): Properly valueize SSA names when deciding
2220 whether the stmt has constants.
2221
789c34e3
RB
22222013-03-18 Richard Biener <rguenther@suse.de>
2223
2224 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
2225 whole function when there is nothing to do.
2226 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
2227 * tree-vectorizer.c (vectorize_loops): Update virtual and
2228 loop-closed SSA once.
2229 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
2230
076b4605
RB
22312013-03-18 Richard Biener <rguenther@suse.de>
2232
2233 PR middle-end/56113
2234 * domwalk.c (bb_postorder): New global static.
2235 (cmp_bb_postorder): New function.
2236 (walk_dominator_tree): Replace scheme imposing an order for
2237 visiting dominator sons by one sorting them at the time they
2238 are pushed on the stack.
2239
bdb01696
RB
22402013-03-18 Richard Biener <rguenther@suse.de>
2241
2242 PR tree-optimization/39326
2243 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
2244 (struct mem_ref): Replace mem member with ao_ref typed member.
2245 (MEM_ANALYZABLE): Adjust.
2246 (memref_eq): Likewise.
2247 (mem_ref_alloc): Likewise.
2248 (gather_mem_refs_stmt): Likewise.
2249 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
2250 (execute_sm_if_changed_flag_set): Adjust.
2251 (execute_sm): Likewise.
2252 (ref_always_accessed_p): Likewise.
2253 (refs_independent_p): Likewise.
2254 (can_sm_ref_p): Likewise.
2255
12d2dc5e
JJ
22562013-03-18 Jakub Jelinek <jakub@redhat.com>
2257
2258 PR c/56566
2259 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
2260 return 1 even for !unsignedp.
2261
286fb677
UB
22622013-03-17 Uros Bizjak <ubizjak@gmail.com>
2263
2264 * config/i386/i386.md (isa): Add x64 and nox64.
2265 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
2266 (*pushtf): Enable *roF alternative for x64 isa only.
2267 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
2268 mode attribute of integer alternatives to DImode for TARGET_64BIT.
2269 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
2270 (*movtf_internal): Merge from *movtf_internal_rex64 and
2271 *movtf_internal_sse. Use x64 and nox64 isa attributes.
2272 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
2273 nox64 isa attributes.
2274 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
2275 nox64 isa attributes.
2276 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
2277
88b97037
UB
22782013-03-17 Uros Bizjak <ubizjak@gmail.com>
2279
2280 * config/alpha/alpha.c (TARGET_LRA_P): New define.
2281
9f4f1735
JJ
22822013-03-17 Jakub Jelinek <jakub@redhat.com>
2283
2284 PR target/56640
2285 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
2286 class names. Remove trailing comma after "ALL_REGS".
2287
48f4a6fa
JH
22882013-03-16 Jan Hubicka <jh@suse.cz>
2289
2290 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
2291 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
2292 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
2293 of cgraph_get_create_node.
2294 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2295
98e81123
JM
22962013-03-16 Jason Merrill <jason@redhat.com>
2297
2298 PR debug/49090
2299 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
2300 with DW_AT_default_value.
2301
8a298c04
JJ
23022013-03-16 Jakub Jelinek <jakub@redhat.com>
2303
2304 * BASE-VER: Set to 4.9.0.
2305
4323afa0
AK
23062013-03-14 Andi Kleen <ak@linux.intel.com>
2307
2308 PR target/56619
2309 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
2310 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
2311 Document _x* TSX intrinsics.
2312
b3c0d469
JJ
23132013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
2314 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
2315
2316 * configure.ac: Add MicroBlaze TLS support detection.
2317 * configure: Regenerate.
88b97037
UB
2318 * config/microblaze/microblaze-protos.h
2319 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
2320 symbol_mentioned_p, label_mentioned_p): Add prototypes.
2321 * config/microblaze/microblaze.c (microblaze_address_type): Add
2322 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
2323 (microblaze_address_info): Add tls_reloc.
2324 (TARGET_HAVE_TLS): Define.
2325 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
2326 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
2327 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
2328 load_tls_operand, microblaze_call_tls_get_addr,
2329 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
2330 (microblaze_classify_unspec): Handle UNSPEC_TLS.
2331 (get_base_reg): Use microblaze_tls_symbol_p.
2332 (microblaze_classify_address): Handle TLS.
88b97037
UB
2333 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
2334 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
2335 (microblaze_legitimize_address): Handle TLS.
2336 (microblaze_address_insns): Handle ADDRESS_TLS.
2337 (pic_address_needs_scratch): Handle TLS.
2338 (print_operand_address): Handle TLS.
2339 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
2340 (microblaze_expand_move): Handle TLS.
88b97037
UB
2341 (microblaze_legitimate_constant_p): Check
2342 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
2343 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2344 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
2345 (PIC_OFFSET_TABLE_REGNUM): Set.
2346 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
2347 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
2348 (addsi3, movsi_internal2, movdf_internal): Update constraints
2349 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
2350 (move_operand): Redefine as move_src_operand,
2351 check microblaze_tls_referenced_p.
8cc9a5a5 2352
d803a491
IB
23532013-03-14 Ian Bolton <ian.bolton@arm.com>
2354
2355 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
2356 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
2357
a8504f22
IB
23582013-03-14 Ian Bolton <ian.bolton@arm.com>
2359
2360 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
2361 CC mode for AND.
2362
df2dfaea
JJ
23632013-03-14 Jakub Jelinek <jakub@redhat.com>
2364
fbd28bc3
JJ
2365 PR tree-optimization/53265
2366 * common.opt (Waggressive-loop-optimizations): New option.
2367 * tree-ssa-loop-niter.c: Include tree-pass.h.
2368 (do_warn_aggressive_loop_optimizations): New function.
2369 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
2370 if number_of_latch_executions returned constant.
2371 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
2372 early. If number_of_latch_executions returned constant, set
2373 nb_iterations_upper_bound back to it.
2374 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
2375 field.
2376 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
2377 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
2378
df2dfaea
JJ
2379 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
2380 (MULTILIB_OSDIRNAMES): Set.
2381 * genmultilib: If defaultosdirname doesn't start with :: , set
2382 defaultosdirname2 instead, clear it and emit two . multilib_raw
2383 entries instead of just one.
2384
ee0d2b68
KK
23852013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
2386
2387 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2388 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
2389 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2390 (SUBTARGET_OVERRIDE_OPTIONS): New.
2391
decc676e
OE
23922013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
2393
2394 PR target/49880
2395 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
2396 (musermode): Convert to Var(TARGET_USERMODE).
2397 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
2398 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
2399 * config/sh/sh.c (sh_option_override): Use
2400 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
2401 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
2402 condition.
2403 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
2404 TARGET_SH4.
2405 (udivsi3_i4_single, divsi3_i4_single): Use
2406 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
2407
f4b719c7
DK
24082013-03-13 Dave Korn <dave.korn.cygwin@....>
2409
2410 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
2411 default setting.
2412
c40eced0
RB
24132013-03-13 Richard Biener <rguenther@suse.de>
2414
2415 PR tree-optimization/56608
2416 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
2417 calls when vectorizing basic-blocks.
2418
1bfa5973
JJ
24192013-03-13 Jakub Jelinek <jakub@redhat.com>
2420
2421 PR plugins/45078
2422 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
2423 tm_file.
2424
6fcf5434
JJ
24252013-03-12 Jakub Jelinek <jakub@redhat.com>
2426
2427 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
2428
4f38fa8c
JH
24292013-03-11 Jan Hubicka <jh@suse.cz>
2430
2431 PR lto/56557
2432 * lto-streamer-out.c (output_symbol_p): Skip references from
2433 constructors of external variables.
2434
c5c5ba89
JH
24352013-03-11 Jan Hubicka <jh@suse.cz>
2436
2437 PR middle-end/56571
2438 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
2439 from pseudos.
2440 * emit-rtl.c (verify_rtx_sharing): Likewise.
2441 (copy_insn_1): Likewise.
2442 * rtl.c (copy_rtx): Likewise.
2443
c2a939b1
GJL
24442013-03-11 Georg-Johann Lay <avr@gjlay.de>
2445
2446 PR target/56591
2447 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
2448 output_operand_lossage message.
88b97037 2449
3c3279fb
RE
24502013-03-11 Richard Earnshaw <rearnsha@arm.com>
2451
2452 PR target/56470
2453 * arm.c (shift_op): Validate RTL pattern on the fly.
2454 (arm_print_operand, case 'S'): Don't use shift_operator to validate
2455 the RTL.
2456
aef5ef9d
JDA
24572013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2458
2459 PR target/56347
2460 * config/pa/pa.md (call_value): Check for calls to powf and direct to
2461 new call patterns that clobber %fr12.
2462 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
2463 split and postreload patterns.
2464 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
2465 registers %fr12 and %fr12R as call used.
2466
456610d3
SB
24672013-03-09 Steven Bosscher <steven@gcc.gnu.org>
2468
2469 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
2470 (canon_address, record_store, replace_read, check_mem_read_rtx,
2471 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
2472 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
2473 rest_of_handle_dse): Likewise.
2474
4b1baac8
RS
24752013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2476
2477 PR middle-end/56524
2478 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
2479 Add base_optabs.
2480 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
2481 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
2482 (save_optabs_if_changed): Replace with...
2483 (init_tree_optimization_optabs): ...this.
2484 * optabs.c (save_optabs_if_changed): Rename to...
2485 (init_tree_optimization_optabs): ...this. Take the optimization node
2486 as argument. Do nothing if the base optabs are already correct.
2487 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
2488 to recompute optabs.
2489 * function.h (function): Remove optabs field.
2490 * function.c (invoke_set_current_function_hook): Call
2491 init_tree_optimization_optabs. Use the result to initialize
2492 this_fn_optabs.
2493
b7a78683
AH
24942013-02-27 Aldy Hernandez <aldyh@redhat.com>
2495
2496 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
2497 if GTMA_HAS_NO_INSTRUMENTATION.
2498 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
2499 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
2500 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
2501 * gimple-pretty-print.c (dump_gimple_transaction): Handle
2502 GTMA_HAS_NO_INSTRUMENTATION.
2503
6384c29b
JJ
25042013-03-08 Jakub Jelinek <jakub@redhat.com>
2505
2506 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
2507 libasan_preinit.o.
2508
ecd4f20a
MP
25092013-03-08 Marek Polacek <polacek@redhat.com>
2510 Jakub Jelinek <jakub@redhat.com>
2511
2512 PR tree-optimization/56478
2513 * predict.c (is_comparison_with_loop_invariant_p): Change the
2514 type of loop_step to tree.
2515 (predict_loops): Adjust.
2516 (predict_iv_comparison): Perform the computations on double_ints.
2517
64366d35
RB
25182013-03-08 Richard Biener <rguenther@suse.de>
2519
2520 PR tree-optimization/56570
2521 * tree-cfg.c (verify_expr_location_1): Verify locations for
2522 DECL_DEBUG_EXPR.
2523 * tree-sra.c (create_access_replacement): Strip locations
2524 from DECL_DEBUG_EXPRs.
2525
a9d5a059
RB
25262013-03-08 Richard Biener <rguenther@suse.de>
2527
2528 * tree-inline.c (expand_call_inline): Do not associate
2529 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
2530 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
2531
b7aa4e9a
RB
25322013-03-08 Richard Biener <rguenther@suse.de>
2533
2534 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
2535 or block changes with -Og. Fix for location / block encoding
2536 changes and PHI arguments with locations.
2537
c4c2f9fa
SB
25382013-03-07 Steven Bosscher <steven@gcc.gnu.org>
2539
2540 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
2541 for all counters.
2542 (struct output_info): Likewise.
2543 (register_overhead): Remove bad gcc_assert.
2544 (bitmap_find_bit): If there is only a single bitmap element, do not
2545 count a miss as a search.
2546 (print_statistics): Update for counter type changes.
2547 (dump_bitmap_statistics): Likewise. Print headers such that they
2548 are properly lined up with the printed counters.
2549
5bf6606a
JJ
25502013-03-07 Jakub Jelinek <jakub@redhat.com>
2551
2552 PR tree-optimization/56559
2553 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
2554 check that it has only a single use.
2555
2c653d46
RB
25562013-03-07 Richard Biener <rguenther@suse.de>
2557
2558 * doc/invoke.texi (fwhole-program): Discourage use in combination
2559 with -flto.
2560
a72d8780
JJ
25612013-03-06 Jakub Jelinek <jakub@redhat.com>
2562
01a454df
JJ
2563 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
2564
c1781047
JJ
2565 PR tree-optimization/56539
2566 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
2567 instead of GSI_CONTINUE_LINKING as last argument to
2568 force_gimple_operand_gsi. Adjust function comment.
2569
9772c47a
JJ
2570 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
2571 aarch64-cores.def.
2572
a72d8780
JJ
2573 PR middle-end/56548
2574 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
2575 promoted mode, convert the result back to the original mode.
2576
fa5556de
RB
25772013-03-06 Richard Biener <rguenther@suse.de>
2578
2579 PR middle-end/56294
2580 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
2581 (insert_updated_phi_nodes_compare_uids): New function.
2582 (update_ssa): Sort symbols_to_rename after UID before
2583 traversing it to insert PHI nodes.
2584
010403d1
RB
25852013-03-06 Richard Biener <rguenther@suse.de>
2586
2587 PR middle-end/50494
2588 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2589 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
2590
2591 Revert
2592 2013-02-13 Richard Biener <rguenther@suse.de>
2593
2594 PR lto/50494
2595 * varasm.c (output_constant_def_1): Get the decl representing
2596 the constant as argument.
2597 (output_constant_def): Wrap output_constant_def_1.
2598 (make_decl_rtl): Use output_constant_def_1 with the decl
2599 representing the constant.
2600 (build_constant_desc): Optionally re-use a decl already
2601 representing the constant.
2602 (tree_output_constant_def): Adjust.
2603
3c27ce4c
JY
26042013-03-06 Joey Ye <joey.ye@arm.com>
2605
2606 PR lto/50293
2607 * gcc.c (convert_white_space): New function.
2608 (main): Handles white space in function name.
2609
8f6d1c86
OE
26102013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
2611
2612 PR target/56529
2613 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
2614 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
2615 to SH_DIV_CALL_TABLE for TARGET_SH2.
2616 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
2617 list.
2618 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
2619 call-table options.
2620
798a209f
SA
26212013-03-05 Sterling Augustine <saugustine@google.com>
2622 Cary Coutant <ccoutant@google.com>
2623
2624 PR debug/55364
2625 * dwarf2out.c (resolve_addr): Don't call
2626 remove_loc_list_addr_table_entries a second time for the same
2627 expression.
2628
6cfa417f 26292013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 2630
6cfa417f
JJ
2631 PR debug/56510
2632 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
2633 (avoid_complex_debug_insns): New function.
2634 (expand_debug_locations): Call it.
2635
2636 PR rtl-optimization/56484
2637 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
2638 lifetimes of hard registers on small register class machines.
2639
26402013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
2641
2642 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 2643 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 2644 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
2645 fast_interrupt.
2646 (microblaze_fast_interrupt_function_p): New function.
2647 (microblaze_is_interrupt_handler): Rename to
2648 microblaze_is_interrupt_variant and add fast_interrupt check.
2649 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
2650 (save_restore_insns): Likewise.
2651 (compute_frame_size): Likewise.
2652 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
2653 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
2654 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
2655 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
2656 microblaze_is_interrupt_variant.
2657
731aefac
KT
26582013-03-05 Kai Tietz <ktietz@redhat.com>
2659
2660 * sdbout.c (sdbout_one_type): Switch to current function's section
2661 supporting cold/hot.
2662
a72d8780 26632013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
2664
2665 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
2666 -mxl-reorder.
2667
334e71e8
JJ
26682013-03-05 Jakub Jelinek <jakub@redhat.com>
2669
0b50e654
JJ
2670 PR middle-end/56461
2671 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
2672 if VALGRIND_GET_VBITS is defined, temporarily make object
2673 memory all defined, and restore previous valgrind addressability
2674 and definability afterwards. Free this_object at the end.
2675
4ccf8f43
JJ
2676 PR middle-end/56461
2677 * lra.c (lra): Call lra_clear_live_ranges if live_p,
2678 right before calling lra_create_live_ranges, also call it
2679 when clearing live_p. Only call lra_clear_live_ranges
2680 at the end if live_p.
2681
334e71e8
JJ
2682 PR middle-end/56461
2683 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
2684
9ca966ca
RB
26852013-03-05 Richard Biener <rguenther@suse.de>
2686
2687 PR tree-optimization/56521
2688 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
2689 value-id.
2690
d273b176
SB
26912013-03-05 Steven Bosscher <steven@gcc.gnu.org>
2692
2693 PR c++/55135
2694 * except.h (remove_unreachable_eh_regions): New prototype.
2695 * except.c (remove_eh_handler_splicer): New function, split out
2696 of remove_eh_handler.
2697 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
2698 warning about running it on many EH regions one at a time.
2699 (remove_unreachable_eh_regions_worker): New function, walk the
2700 EH tree in depth-first order and remove non-marked regions.
2701 (remove_unreachable_eh_regions): New function.
2702 * tree-eh.c (mark_reachable_handlers): New function, split out
2703 from remove_unreachable_handlers.
2704 (remove_unreachable_handlers): Use mark_reachable_handlers and
2705 remove_unreachable_eh_regions.
2706 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
2707 and remove_unreachable_eh_regions.
2708
5e7f1aef
RB
27092013-03-05 Richard Biener <rguenther@suse.de>
2710
2711 PR middle-end/56525
2712 * loop-init.c (fix_loop_structure): Remove loops in two stages,
2713 not freeing them until the end.
2714
f276b762
AK
27152013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2716
2717 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
2718
12a43ab8
RB
27192013-03-05 Richard Biener <rguenther@suse.de>
2720
2721 PR tree-optimization/56270
2722 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
2723 of loads after scheduling an SLP instance.
2724
93675444
JJ
27252013-03-05 Jakub Jelinek <jakub@redhat.com>
2726
db4138e3
JJ
2727 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
2728 tic6x.exp.
2729 (check_gcc_parallelize): Run guality.exp as a separate job from
2730 vect.exp with unsorted.exp and $(dg_target_exps) separately from
2731 struct-layout-1.exp with stackalign.exp.
2732
dd3d1ec0
JJ
2733 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
2734
b8d381a3
JJ
2735 PR middle-end/56461
2736 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
2737 load_index sbitmap even if some bit in it isn't set.
2738
b4f9786b
JJ
2739 PR middle-end/56461
2740 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
2741 (discover_iteration_bound_by_body_walk): Change queues to
2742 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
2743 spelling in comment. Call safe_push on queues[bound_index] directly.
2744 Release queues[queue_index] in every iteration unconditionally.
2745 Release bounds vector.
2746
93675444
JJ
2747 PR middle-end/56461
2748 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
2749 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
2750 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
2751 inner_phis vector.
2752
3e492e9c
RB
27532013-03-05 Richard Biener <rguenther@suse.de>
2754
2755 PR lto/56515
2756 * tree-inline.c (remap_blocks_to_null): New function.
2757 (expand_call_inline): When expanding a call stmt without
2758 an associated block inline remap all callee blocks to NULL.
2759
a5d1569a
JJ
27602013-03-05 Jakub Jelinek <jakub@redhat.com>
2761
86efb5cd
JJ
2762 PR rtl-optimization/56494
2763 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
2764 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
2765 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
2766
85f5dbea
JJ
2767 PR middle-end/56461
2768 * sel-sched-ir.c (free_sched_pools): Release
2769 succs_info_pool.stack[succs_info_pool.max_top] vectors too
2770 if succs_info_pool.max_top isn't -1.
2771
a5d1569a
JJ
2772 PR bootstrap/56509
2773 * opts.c (opts_obstack, opts_concat): Moved to...
2774 * opts-common.c (opts_obstack, opts_concat): ... here.
2775
4432aa6c
JJ
27762013-03-04 Jakub Jelinek <jakub@redhat.com>
2777
2778 PR middle-end/56461
2779 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
2780
f3a1fb91
MJ
27812013-03-04 Martin Jambor <mjambor@suse.cz>
2782
2783 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
2784 all appropriate places.
2785
22110e6c
EB
27862013-01-04 Eric Botcazou <ebotcazou@adacore.com>
2787
2788 PR tree-optimization/56424
2789 * ipa-split.c (split_function): Do not set the RSO flag if result is
2790 not by reference and its type is a register type.
2791
a72d8780 27922013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 2793
88b97037 2794 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 2795 (microblaze_legitimate_pic_operand): Likewise
88b97037 2796 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
2797 new function microblaze_legitimate_pic_operand
2798 * config/microblaze/microblaze-protos.h
2799 (microblaze_legitimate_pic_operand): Declare.
2800
a72d8780 28012013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 2802
a72d8780 2803 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 2804 New predicate for supported rtx code types.
a72d8780 2805 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
2806 call_insn_simple_operand predicate.
2807
541d9ac8
JJ
28082013-03-04 Jakub Jelinek <jakub@redhat.com>
2809
5eb010bc
JJ
2810 PR middle-end/56461
2811 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
2812 partitions.ordered_remove.
2813
30862efc
JJ
2814 PR middle-end/56461
2815 * tree-vect-stmts.c (vectorizable_conversion): Don't call
2816 vec_oprnds0.create (1) for modifier == NONE.
2817
8930f723
JJ
2818 PR middle-end/56461
2819 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
2820 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
2821 vec_oprnds1 right before pushing anything to it for
2822 scalar_shift_arg.
2823
541d9ac8
JJ
2824 PR middle-end/56461
2825 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
2826 set nbbs to 0 instead of having separate code path.
2827 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2828 instead of false as last argument if returning NULL.
2829
7aa7f2e3
SL
28302013-03-03 Sandra Loosemore <sandra@codesourcery.com>
2831
2832 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2833 the attribute is now called "target" instead of "option".
2834 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2835 * doc/tm.texi.in (Target Attributes): Likewise document the correct
2836 attribute/pragma name for TARGET_OPTION_VALID_P and
2837 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
2838 * doc/tm.texi: Regenerated.
2839
8930f723 28402013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 2841
8930f723 2842 * config/microblaze/microblaze.c:
cb8a1637 2843 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
2844 * config/microblaze/microblaze.h: Add -mxl-reorder to
2845 DRIVER_SELF_SPECS.
2846 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2847 instructions emitted if TARGET_REORDER.
88b97037
UB
2848 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2849 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 2850 separately.
cb8a1637 2851
4dc1d68c
XDL
28522013-03-01 Xinliang David Li <davidxl@google.com>
2853
2854 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2855 walk length.
2856
689eaba3
JJ
28572013-03-01 Jakub Jelinek <jakub@redhat.com>
2858
9d676bf6
JJ
2859 PR middle-end/56461
2860 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2861 vector even when returning true. Fix up function comment formatting.
2862
caff7edf
JJ
2863 PR middle-end/56461
2864 * ira-build.c (ira_loop_nodes_count): New variable.
2865 (create_loop_tree_nodes): Initialize it.
2866 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2867
b6b9227d
JJ
2868 PR middle-end/56461
2869 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2870 method on dr_chain and result_chain.
2871 * tree-vect-stmts.c (vectorizable_store): Only call
2872 result_chain.create if j == 0.
2873
689eaba3
JJ
2874 PR middle-end/56461
2875 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2876 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2877 before overwriting it.
2878
40bf31ed
TB
28792013-03-01 Tobias Burnus <burnus@net-b.de>
2880
2881 * doc/extended.texi (C Extensions): Change order in @menu
2882 to match @node.
2883 (Other MIPS Built-in Functions): Move last MIPS entry before
2884 "picoChip Built-in Functions".
2885 (SH Built-in Functions): Move after RX Built-in Functions.
2886 * doc/gcc.texi (Introduction): Change order in @menu
2887 to match @node.
2888 * doc/md.texi (Constraints): Ditto.
2889 * gty.texi (Type Information): Ditto.
2890 (User-provided marking routines for template types): Make
2891 subsection.
2892 * doc/invoke.texi (AArch64 Options): Move before
2893 "Adapteva Epiphany Options".
2894
e664c61c
KS
28952013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2896 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR sanitizer/56454
2899 * asan.c (gate_asan): Lookup no_sanitize_address instead of
2900 no_address_safety_analysis attribute.
2901 * doc/extend.texi (no_address_safety_attribute): Rename to
2902 no_sanitize_address attribute, mention no_address_safety_analysis
2903 attribute as deprecated alias.
2904
37b5ec8f
JJ
29052013-02-28 Jakub Jelinek <jakub@redhat.com>
2906
2907 PR middle-end/56461
2908 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2909 type to vec<vec<tree> > *.
2910 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
2911 to be vec<tree> instead of vec<tree> *, set vec_defs
2912 to vNULL and call vec_defs.create (number_of_vects), adjust other
2913 uses of vec_defs.
2914 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2915 vectorizable_condition): Adjust vect_get_slp_defs callers.
2916
ba96cdfb
JG
29172013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2918
2919 * config/aarch64/aarch64.c
2920 (aarch64_float_const_representable): Remove unused variable.
2921
6f549691
JG
29222013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2923
2924 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2925
af55e82d
JG
29262013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2927
2928 * config/aarch64/aarch64-builtins.c
2929 (aarch64_init_simd_builtins): Make static.
2930
1df3f464
JG
29312013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2932
2933 * config/aarch64/aarch64.c
2934 (aarch64_simd_make_constant): Make static.
2935
f8f42513
MJ
29362013-02-28 Martin Jambor <mjambor@suse.cz>
2937
2938 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2939 with no initialization to the RHS of debug statements.
2940
b48b3fc4
MJ
29412013-02-28 Martin Jambor <mjambor@suse.cz>
2942
2943 PR tree-optimization/56294
2944 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2945 Adjust dumping.
2946 (get_access_replacement): Do not call create_access_replacement.
2947 Assert a replacement exists.
2948 (get_repl_default_def_ssa_name): Create the replacement declaration
2949 itself.
2950
c3ae224c
RR
29512013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2952
2953 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2954 final_end_function.
2955
45fa0eef
MP
29562013-02-28 Marek Polacek <polacek@redhat.com>
2957
2958 PR rtl-optimization/56466
2959 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2960 if we're changing a loop.
2961 (peel_loops_completely): Likewise.
2962
502c067d
PC
29632013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2964
2965 PR c++/55813
2966 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2967
ff24afc8
GJL
29682013-02-28 Georg-Johann Lay <avr@gjlay.de>
2969
2970 PR target/56445
2971 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2972 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2973 INTX_FTYPE_FX, FX_FTYPE_INTX.
2974 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2975
c7b1fc1b
GJL
29762013-02-28 Georg-Johann Lay <avr@gjlay.de>
2977
2978 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2979 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2980 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2981 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2982 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2983 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2984 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2985 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2986 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2987 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2988 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2989 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2990 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2991 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2992 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2993 (avrxmega6): Increase max flash segments from 5 to 6.
2994 * config/avr/t-multilib: Regenerate.
2995 * config/avr/avr-tables.opt: Regenerate.
2996 * doc/avr-mmcu.texi: Regenerate.
2997
4a0e3cfe
GJL
29982013-02-28 Georg-Johann Lay <avr@gjlay.de>
2999
3000 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
3001 (avr_device_to_arch): Rename to avr_device_to_ld.
3002 (avr_device_to_as): New prototype.
3003 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
3004 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
3005 * config/avr/driver-avr.c (avr_device_to_as): New.
3006 (avr_device_to_arch): Rename to avr_device_to_ld.
3007
97785e52
JJ
30082013-02-27 Jakub Jelinek <jakub@redhat.com>
3009
3f292312
JJ
3010 PR middle-end/56461
3011 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
3012 method on dr_chain and result_chain.
3013
a344216b
JJ
3014 PR middle-end/56461
3015 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
3016 pointer_set_destroy on not_executed_last_iteration.
3017
f121ad02 3018 PR middle-end/56461
88b97037 3019 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 3020
307f83a3
JJ
3021 PR middle-end/56461
3022 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
3023 FOR_EACH_DEFINED_FUNCTION when freeing state.
3024
e19624ee
JJ
3025 PR middle-end/56461
3026 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
3027 pool_free.
3028 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
3029 overwriting it.
3030
90e709fd
JJ
3031 PR middle-end/56461
3032 * ipa-cp.c (decide_whether_version_node): Call vec_free on
3033 known_aggs[i].items and release known_aggs vector.
3034
97785e52
JJ
3035 PR middle-end/56461
3036 * ipa-reference.c (propagate): Free node_info even for alias nodes.
3037
30382013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 3039
97785e52
JJ
3040 * config/microblaze/microblaze.c (microblaze_emit_compare):
3041 Use xor for EQ/NE comparisions.
3042 * config/microblaze/microblaze.md (cstoresf4): Add constraints
3043 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 3044
6fa5e0ed
JJ
30452013-02-27 Jakub Jelinek <jakub@redhat.com>
3046
3047 PR middle-end/56461
3048 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
3049 vector.
3050 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
3051 vec_safe_push, always update *slot.
3052 (redirect_edge_var_map_clear): Use vec_free.
3053 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
3054 (free_var_map_entry): Use vec_free.
3055 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
3056 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
3057
436a956a
AB
30582013-02-27 Andrey Belevantsev <abel@ispras.ru>
3059
3060 PR middle-end/45472
436a956a
AB
3061 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
3062 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
3063 Reorder tests for speculativeness in the logical and operator.
3064
f5c2caca
JJ
30652013-02-27 Jakub Jelinek <jakub@redhat.com>
3066
0fcb564b
JJ
3067 * incpath.c (add_standard_paths): Use reconcat instead of concat
3068 where appropriate and avoid leaking memory.
3069
dc357798
JJ
3070 * opts.h: Include obstack.h.
3071 (opts_concat): New prototype.
3072 (opts_obstack): New declaration.
3073 * opts.c (opts_concat): New function.
3074 (opts_obstack): New variable.
3075 (init_options_struct): Call gcc_init_obstack on opts_obstack.
3076 (finish_options): Use opts_concat instead of concat
3077 and XOBNEWVEC instead of XNEWVEC.
3078 * opts-common.c (generate_canonical_option, decode_cmdline_option,
3079 generate_option): Likewise.
3080 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
3081 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
3082
f5c2caca
JJ
3083 PR target/56455
3084 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
3085 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
3086
d0163673
JJ
30872013-02-26 Jakub Jelinek <jakub@redhat.com>
3088
3089 PR middle-end/56461
3090 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
3091
b5ad2b8e
JR
30922013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
3093
3094 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
3095 (arm_block_move_unaligned_straight): Likewise.
3096 (arm_adjust_block_mem): Likewise.
3097
9b639e2c
JR
30982013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
3099
3100 PR target/48901
3101 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
3102 temp, cond and label.
3103 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
3104
e13a0ccb
JR
3105 PR target/52500
3106 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
3107 * config/c6x/c6x.h (dbx_register_map): Update declaration.
3108
fbe4f171
JR
3109 PR target/52501
3110 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
3111 of prologue/epilogue functions.
3112
ae006543
JR
3113 PR target/52550
3114 * config/tilegx/tilegx.c (tilegx_expand_prologue):
3115 Remove unused variable cfa_offset.
3116 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
3117
c81369fa
JR
3118 PR target/54639
3119 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
3120 type promotion to unsigned.
3121
f8a8fea7
JR
3122 PR target/54640
3123 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
3124 for HOST_WIDE_INT of 32 bit / same size as int.
3125 (arm_block_move_unaligned_straight): Likewise.
3126 (arm_adjust_block_mem): Likewise.
3127
f8be5169
JR
3128 PR target/54662
3129 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
3130 ALL_CFLAGS.
3131
f1ad3354
MP
31322013-02-26 Marek Polacek <polacek@redhat.com>
3133
3134 PR tree-optimization/56426
88b97037 3135 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 3136
a6af0f42
RB
31372013-02-26 Richard Biener <rguenther@suse.de>
3138
3139 PR target/56444
3140 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
3141 unused variable loops.
3142
aca43c6c
JJ
31432013-02-26 Jakub Jelinek <jakub@redhat.com>
3144
cecbe5d9
JJ
3145 PR tree-optimization/56448
3146 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
3147 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
3148 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
3149 later operands of the references, or even first operand for
3150 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
3151
aca43c6c
JJ
3152 PR tree-optimization/56443
3153 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
3154 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
3155 to type_for_mode langhook.
3156
53e2e141
MT
31572013-02-25 Matt Turner <mattst88@gmail.com>
3158
3159 * doc/invoke.texi: Document r4700.
3160
259ee451
RB
31612013-02-25 Richard Biener <rguenther@suse.de>
3162
3163 PR tree-optimization/56175
3164 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
3165 split out from ...
3166 (simplify_bitwise_binary): ... here. Also guard the conversion
3167 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
3168
6d65e8f1
CM
31692013-02-25 Catherine Moore <clm@codesourcery.com>
3170
3171 Revert:
3172 2013-02-24 Catherine Moore <clm@codesourcery.com>
3173 Maciej W. Rozycki <macro@codesourcery.com>
3174 Tom de Vries <tom@codesourcery.com>
a72d8780 3175 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
3176 Iain Sandoe <iain@codesourcery.com>
3177 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 3178 Chao-ying Fu <fu@mips.com>
88b97037 3179
6d65e8f1 3180 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 3181 Document new function attributes.
6d65e8f1
CM
3182 * doc/invoke.texi (minterlink-compressed, mmicromips,
3183 m14k, m14ke, m14kec): Document new options.
3184 (minterlink-mips16): Update documentation.
3185 * doc/md.texi (ZC, ZD): Document new constraints.
3186 * configure.ac (gcc_cv_as_micromips): Check if linker
3187 supports the .set micromips directive.
3188 * configure: Regenerate.
3189 * config.in: Regenerate.
3190 * config/mips/mips-tables.opt: Regenerate.
3191 * config/mips/micromips.md: New file.
3192 * constraints.md (ZC, AD): New constraints.
3193 * config/mips/predicates.md (movep_src_register): New predicate.
3194 (movep_src_operand): New predicate.
3195 (non_volatile_mem_operand): New predicate.
3196 * config/mips/mips.md (multimem): New type.
3197 (length): Differentiate between 17-bit and 18-bit branch offsets.
3198 (MOVEP1, MOVEP2): New mode iterator.
3199 (mov_<load>l): Use ZC constraint.
3200 (mov_<load>r): Likewise.
3201 (mov_<store>l): Likewise.
3202 (mov_<store>r): Likewise.
3203 (*branch_equality<mode>_inverted): Add microMIPS support.
3204 (*branch_equality<mode>): Likewise.
3205 (*jump_absolute): Likewise.
3206 (indirect_jump_<mode>): Likewise.
3207 (tablejump_<mode>): Likewise.
3208 (<optab>_internal): Likewise.
3209 (sibcall_internal): Likewise.
3210 (sibcall_value_internal): Likewise.
3211 (prefetch): Use constraint ZD.
3212 * config/mips/mips.opt (minterlink-compressed): New option.
3213 (minterlink-mips16): Now an alias for minterlink-compressed.
3214 (mmicromips): New option.
3215 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3216 (compare_and_swap_12): Likewise.
3217 (sync_add<mode>): Likewise.
3218 (sync_<optab>_12): Likewise.
3219 (sync_old_<optab>_12): Likewise.
3220 (sync_new_<optab>_12): Likewise.
3221 (sync_nand_12): Likewise.
3222 (sync_old_nand_12): Likewise.
3223 (sync_new_nand_12): Likewise.
3224 (sync_sub<mode>): Likewise.
3225 (sync_old_add<mode>): Likewise.
3226 (sync_old_sub<mode>): Likewise.
3227 (sync_new_add<mode>): Likewise.
3228 (sync_new_sub<mode>): Likewise.
3229 (sync_<optab><mode>): Likewise.
3230 (sync_old_<optab><mode>): Likewise.
3231 (sync_new_<optab><mode>): Likewise.
3232 (sync_nand<mode>): Likewise.
3233 (sync_old_nand<mode>): Likewise.
3234 (sync_new_nand<mode>): Likewise.
3235 (sync_lock_test_and_set<mode>): Likewise.
3236 (test_and_set_12): Likewise.
3237 (atomic_compare_and_swap<mode>): Likewise.
3238 (atomic_exchange<mode>_llsc): Likewise.
3239 (atomic_fetch_add<mode>_llsc): Likewise.
3240 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3241 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3242 (umips_save_restore_pattern_p): Likewise.
3243 (umips_load_store_pair_p): Likewise.
3244 (umips_output_load_store_pair): Likewise.
3245 (umips_movep_target_p): Likewise.
3246 (umips_12bit_offset_address_p): Likewise.
3247 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3248 (mips_base_mips16): Rename this...
3249 (mips_base_compression_flags): ...to this. Update all uses.
3250 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3251 (mips_mips16_decl_p): Delete.
3252 (mips_nomips16_decl_p): Delete.
3253 (mips_get_compress_on_flags): New function.
3254 (mips_get_compress_off_flags): New function.
3255 (mips_get_compress_mode): New function.
3256 (mips_get_compress_on_name): New function.
3257 (mips_get_compress_off_name): New function.
3258 (mips_insert_attributes): Support multiple compression types.
3259 (mips_merge_decl_attributes): Likewise.
3260 (umips_12bit_offset_address_p): New function.
3261 (mips_start_function_definition): Emit .set micromips directive.
3262 (mips_call_may_need_jalx_p): New function.
3263 (mips_function_ok_for_sibcall): Add microMIPS support.
3264 (mips_print_operand_punctuation): Support short delay slots and
3265 compact jumps.
3266 (umips_swm_mask, umips_swm_encoding): New.
3267 (umips_build_save_restore): New function.
3268 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3269 (was_mips16_p): Remove.
3270 (old_compression_mode): New.
3271 (mips_set_compression_mode): New function.
3272 (mips_set_current_function): Add microMIPS support.
3273 (mips_option_override): Likewise.
3274 (umips_save_restore_pattern_p): New function.
3275 (umips_output_save_restore): New function.
3276 (umips_load_store_pair_p_1): New function.
3277 (umips_load_store_pair_p): New function.
3278 (umips_output_load_store_pair_1): New function.
3279 (umips_output_load_store_pair): New function.
3280 (umips_movep_target_p) New function.
3281 (mips_prepare_pch_save): Add microMIPS support.
3282 * config/mips/mips.h (TARGET_COMPRESSION): New.
3283 (TARGET_CPU_CPP_BUILTINS): Update macro
3284 to use new compression flags and to support microMIPS.
3285 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3286 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3287 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3288 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3289 (ASM_SPEC): Support mmicromips and mno-micromips.
3290 (M16STORE_REG_P): New macro.
3291 (MIPS_CALL): Support TARGET_MICROMIPS.
3292 (MICROMIPS_J): New macro.
3293 (mips_base_mips16): Rename this...
3294 (mips_base_compression_flags): ...to this.
3295 (UMIPS_12BIT_OFFSET_P): New macro.
3296 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3297 (MULTILIB_DIRNAMES): Likewise.
3298
5e5df392
TV
32992013-02-25 Tom de Vries <tom@codesourcery.com>
3300
3301 PR rtl-optimization/56131
3302 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
3303 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
3304 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
3305
3fdb53c1
TB
33062013-02-25 Tobias Burnus <burnus@net-b.de>
3307
3308 * doc/invoke.texi (-fsanitize=): Move from optimization
3309 to debugging options.
3310
ed358aea
AB
33112013-02-25 Andrey Belevantsev <abel@ispras.ru>
3312
3313 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
3314
f45e9053
AB
33152013-02-25 Andrey Belevantsev <abel@ispras.ru>
3316 Alexander Monakov <amonakov@ispras.ru>
3317
3318 PR middle-end/56077
3319 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
3320 flush pending lists also on non-jumps. Adjust comment.
3321
6941b508
CM
33222013-02-24 Catherine Moore <clm@codesourcery.com>
3323 Maciej W. Rozycki <macro@codesourcery.com>
3324 Tom de Vries <tom@codesourcery.com>
a72d8780 3325 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
3326 Iain Sandoe <iain@codesourcery.com>
3327 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 3328 Chao-ying Fu <fu@mips.com>
6941b508
CM
3329
3330 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 3331 Document new function attributes.
6941b508
CM
3332 * doc/invoke.texi (minterlink-compressed, mmicromips,
3333 m14k, m14ke, m14kec): Document new options.
3334 (minterlink-mips16): Update documentation.
3335 * doc/md.texi (ZC, ZD): Document new constraints.
3336 * configure.ac (gcc_cv_as_micromips): Check if linker
3337 supports the .set micromips directive.
3338 * configure: Regenerate.
3339 * config.in: Regenerate.
3340 * config/mips/mips-tables.opt: Regenerate.
3341 * config/mips/micromips.md: New file.
3342 * constraints.md (ZC, AD): New constraints.
3343 * config/mips/predicates.md (movep_src_register): New predicate.
3344 (movep_src_operand): New predicate.
3345 (non_volatile_mem_operand): New predicate.
3346 * config/mips/mips.md (multimem): New type.
3347 (length): Differentiate between 17-bit and 18-bit branch offsets.
3348 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 3349 (mov_<load>l): Use ZC constraint.
6941b508
CM
3350 (mov_<load>r): Likewise.
3351 (mov_<store>l): Likewise.
3352 (mov_<store>r): Likewise.
3353 (*branch_equality<mode>_inverted): Add microMIPS support.
3354 (*branch_equality<mode>): Likewise.
3355 (*jump_absolute): Likewise.
3356 (indirect_jump_<mode>): Likewise.
3357 (tablejump_<mode>): Likewise.
3358 (<optab>_internal): Likewise.
3359 (sibcall_internal): Likewise.
3360 (sibcall_value_internal): Likewise.
3361 (prefetch): Use constraint ZD.
3362 * config/mips/mips.opt (minterlink-compressed): New option.
3363 (minterlink-mips16): Now an alias for minterlink-compressed.
3364 (mmicromips): New option.
3365 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3366 (compare_and_swap_12): Likewise.
3367 (sync_add<mode>): Likewise.
3368 (sync_<optab>_12): Likewise.
3369 (sync_old_<optab>_12): Likewise.
3370 (sync_new_<optab>_12): Likewise.
3371 (sync_nand_12): Likewise.
3372 (sync_old_nand_12): Likewise.
3373 (sync_new_nand_12): Likewise.
3374 (sync_sub<mode>): Likewise.
3375 (sync_old_add<mode>): Likewise.
3376 (sync_old_sub<mode>): Likewise.
3377 (sync_new_add<mode>): Likewise.
3378 (sync_new_sub<mode>): Likewise.
3379 (sync_<optab><mode>): Likewise.
3380 (sync_old_<optab><mode>): Likewise.
3381 (sync_new_<optab><mode>): Likewise.
3382 (sync_nand<mode>): Likewise.
3383 (sync_old_nand<mode>): Likewise.
3384 (sync_new_nand<mode>): Likewise.
3385 (sync_lock_test_and_set<mode>): Likewise.
3386 (test_and_set_12): Likewise.
3387 (atomic_compare_and_swap<mode>): Likewise.
3388 (atomic_exchange<mode>_llsc): Likewise.
3389 (atomic_fetch_add<mode>_llsc): Likewise.
3390 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3391 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3392 (umips_save_restore_pattern_p): Likewise.
3393 (umips_load_store_pair_p): Likewise.
3394 (umips_output_load_store_pair): Likewise.
3395 (umips_movep_target_p): Likewise.
3396 (umips_12bit_offset_address_p): Likewise.
3397 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3398 (mips_base_mips16): Rename this...
3399 (mips_base_compression_flags): ...to this. Update all uses.
3400 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3401 (mips_mips16_decl_p): Delete.
3402 (mips_nomips16_decl_p): Delete.
3fdb53c1 3403 (mips_get_compress_on_flags): New function.
6941b508
CM
3404 (mips_get_compress_off_flags): New function.
3405 (mips_get_compress_mode): New function.
3406 (mips_get_compress_on_name): New function.
3407 (mips_get_compress_off_name): New function.
3408 (mips_insert_attributes): Support multiple compression types.
3409 (mips_merge_decl_attributes): Likewise.
3410 (umips_12bit_offset_address_p): New function.
3411 (mips_start_function_definition): Emit .set micromips directive.
3412 (mips_call_may_need_jalx_p): New function.
3413 (mips_function_ok_for_sibcall): Add microMIPS support.
3414 (mips_print_operand_punctuation): Support short delay slots and
3415 compact jumps.
3416 (umips_swm_mask, umips_swm_encoding): New.
3417 (umips_build_save_restore): New function.
3418 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3419 (was_mips16_p): Remove.
3420 (old_compression_mode): New.
3421 (mips_set_compression_mode): New function.
3422 (mips_set_current_function): Add microMIPS support.
3423 (mips_option_override): Likewise.
3424 (umips_save_restore_pattern_p): New function.
3425 (umips_output_save_restore): New function.
3426 (umips_load_store_pair_p_1): New function.
3427 (umips_load_store_pair_p): New function.
3428 (umips_output_load_store_pair_1): New function.
3429 (umips_output_load_store_pair): New function.
3430 (umips_movep_target_p) New function.
3431 (mips_prepare_pch_save): Add microMIPS support.
3432 * config/mips/mips.h (TARGET_COMPRESSION): New.
3433 (TARGET_CPU_CPP_BUILTINS): Update macro
3434 to use new compression flags and to support microMIPS.
3435 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3436 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3437 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3438 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3439 (ASM_SPEC): Support mmicromips and mno-micromips.
3440 (M16STORE_REG_P): New macro.
3441 (MIPS_CALL): Support TARGET_MICROMIPS.
3442 (MICROMIPS_J): New macro.
3443 (mips_base_mips16): Rename this...
3444 (mips_base_compression_flags): ...to this.
3445 (UMIPS_12BIT_OFFSET_P): New macro.
3446 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3447 (MULTILIB_DIRNAMES): Likewise.
3448
cdebbc6d
JJ
34492013-02-24 Jakub Jelinek <jakub@redhat.com>
3450
3451 PR target/52555
3452 * target-globals.c (save_target_globals): For init_reg_sets and
3453 target_reinit remporarily set this_fn_optabs to this_target_optabs.
3454
18c63565
JG
34552013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
3456
3457 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
3458 * config/aarch64/t-aarch64
3459 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
3460
2194f7a2
VM
34612013-02-22 Vladimir Makarov <vmakarov@redhat.com>
3462
3463 PR inline-asm/56148
3464 * lra-constraints.c (process_alt_operands): Reload operand
3465 conflicting with earlier clobber only if no more other conflicting
3466 operands.
3467
7d613735
JJ
34682013-02-22 Jakub Jelinek <jakub@redhat.com>
3469
3470 PR sanitizer/56393
3471 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
3472 if not linking a shared library.
3473
ac8d93a7
SL
34742013-02-22 Seth LaForge <sethml@google.com>
3475
3476 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
3477
e0237780
GY
34782013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
3479
3fdb53c1
TB
3480 * config/arm/arm.md (split for extendsidi): Update condition.
3481 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
3482 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
3483 (qhs_zextenddi_cstr): Likewise.
e0237780 3484
d7fde18c
JJ
34852013-02-21 Jakub Jelinek <jakub@redhat.com>
3486
be63b77d
JJ
3487 PR middle-end/56420
3488 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
3489 avoid signed wrapping.
3490 (expand_mult): Handle properly multiplication by
3491 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
3492 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
3493 in the compiler if coeff is HOST_WIDE_INT_MIN.
3494 (expand_divmod): Don't make ext_op1 static, change it's type to
3495 uhwi. Avoid undefined behavior in -INTVAL (op1).
3496
d7fde18c
JJ
3497 PR rtl-optimization/50339
3498 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
3499 field.
3500 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
3501 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
3502 into splitting_ashiftrt field.
3503 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
3504 ASHIFTRT.
3505 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
3506 choices.
3507
6aad4455
AH
35082013-02-20 Aldy Hernandez <aldyh@redhat.com>
3509
3510 PR middle-end/56108
3511 * trans-mem.c (execute_tm_mark): Do not expand transactions that
3512 are sure to go irrevocable.
3513
38fe784d
HPN
35142013-02-21 Hans-Peter Nilsson <hp@axis.com>
3515
3516 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
3517 scalars are valid operands.
3518
0fd44da3
MJ
35192013-02-21 Martin Jambor <mjambor@suse.cz>
3520
3521 PR tree-optimization/56310
3522 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
3523 only matching indices and non-negative final offsets.
3524 (intersect_aggregates_with_edge): Pass src_idx to
3525 agg_replacements_to_vector. Pass src_idx insstead of index to
3526 intersect_with_agg_replacements.
3527
7a92038b
MJ
35282013-02-21 Martin Jambor <mjambor@suse.cz>
3529
3530 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
3531 instead of hard-wired defaults.
3532
c0da9c37
MR
35332013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
3534
3535 * doc/invoke.texi (MIPS Options): Update documentation of the
3536 floating-point multiply-accumulate instruction restrictions.
3537
d247ea0c 35382013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
3539
3540 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
3541 asan_shadow_offset on x86_64 linux.
3542
22deefcb
RB
35432013-02-21 Richard Biener <rguenther@suse.de>
3544
3545 PR tree-optimization/56415
3546 Revert
3547 2013-02-11 Richard Biener <rguenther@suse.de>
3548
3549 PR tree-optimization/56273
3550 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3551 first VRP run.
3552
7bcc6e75
JJ
35532013-02-21 Jakub Jelinek <jakub@redhat.com>
3554
a0ad148f
JJ
3555 PR bootstrap/56258
3556 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
3557 instead of @itemx.
3558
7bcc6e75
JJ
3559 PR inline-asm/56405
3560 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
3561 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
3562
a0a7b611
JH
35632013-02-20 Jan Hubicka <jh@suse.cz>
3564
3565 PR tree-optimization/56265
88b97037
UB
3566 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
3567 when target is referenced for first time.
a0a7b611 3568
c0e50f72
RB
35692013-02-20 Richard Biener <rguenther@suse.de>
3570
3571 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
3572 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
3573 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3574 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
3575 not return anything.
3576 (rename_ssa_copies): Do not remove unused locals.
3577 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 3578 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
3579 * passes.c (execute_function_todo): Do not schedule unused locals
3580 removal if cleanup_tree_cfg did something.
3581 * tree-ssa-live.c (remove_unused_locals): Dump statistics
3582 about the number of removed locals.
3583
a52ca739
RB
35842013-02-20 Richard Biener <rguenther@suse.de>
3585
3586 PR tree-optimization/56398
88b97037 3587 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 3588
ec9c9d1b
MJ
35892013-02-20 Martin Jambor <mjambor@suse.cz>
3590
3591 PR tree-optimization/55334
3592 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
3593 restricted pointers to arrays.
3594
e91c8ed6 35952013-02-20 Richard Biener <rguenther@suse.de>
88b97037 3596 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
3597
3598 PR tree-optimization/56396
3599 * tree-ssa-ccp.c (n_const_val): New static variable.
3600 (get_value): Return NULL for SSA names we don't have a lattice
3601 entry for.
3602 (ccp_initialize): Initialize n_const_val.
3603 * tree-ssa-copy.c (n_copy_of): New static variable.
3604 (init_copy_prop): Initialize n_copy_of.
3605 (get_value): Return NULL_TREE for SSA names we don't have a
3606 lattice entry for.
3607
3d916479
MJ
36082013-02-20 Martin Jambor <mjambor@suse.cz>
3609
3610 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
3611
71a86758
RB
36122013-02-20 Richard Biener <rguenther@suse.de>
3613
3614 * genpreds.c (write_lookup_constraint): Do not compare first
3615 letter of the constraint again.
3616
79836a12
RB
36172013-02-20 Richard Biener <rguenther@suse.de>
3618
3619 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
3620 and ceil_log2.
3621 (get_use_iv_cost): Terminate hashtable walk when coming across
3622 an empty entry.
3623
bbe4fb2c
IZ
36242013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
3625
3626 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
3627 reassociation for avx2 targets.
3628
a72d8780 36292012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 3630
c77f83d5
EI
3631 * config/microblaze/microblaze.c: microblaze_has_clz = 0
3632 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 3633 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
3634 version and TARGET_PATTERN_COMPARE check
3635 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 3636
a72d8780 36372012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 3638
a72d8780 3639 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
3640 function before branching.
3641
242387fa
AB
36422012-02-19 Andrey Belevantsev <abel@ispras.ru>
3643
3644 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
3645 DUMP_INSN_RTX_UID.
3646 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
3647
b4979ab9
AB
36482012-02-19 Andrey Belevantsev <abel@ispras.ru>
3649
3650 PR middle-end/55889
b4979ab9
AB
3651 * sel-sched.c: Include ira.h.
3652 (implicit_clobber_conflict_p): New function.
3653 (moveup_expr): Use it.
88b97037 3654 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 3655
24d63016
RB
36562013-02-19 Richard Biener <rguenther@suse.de>
3657
3658 PR tree-optimization/56384
3659 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
3660 (vn_hash_type): Split out from ...
3661 (vn_hash_constant_with_type): ... here.
3662 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
3663 (vn_phi_eq): Compare types from vn_phi_s structure.
3664 (vn_phi_lookup): Populate vn_phi_s type.
3665 (vn_phi_insert): Likewise.
3666
a475fd3d
JJ
36672013-02-19 Jakub Jelinek <jakub@redhat.com>
3668
47cc28f5
JJ
3669 PR tree-optimization/56350
3670 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
3671 if haven't found reduction or nested cycle operand, rather than
3672 asserting we must find it.
3673
a475fd3d
JJ
3674 PR tree-optimization/56381
3675 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
3676 to fold_build3.
3677
36782013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3679 Jakub Jelinek <jakub@redhat.com>
3680
3681 PR target/52555
3682 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
3683 (swap_optab_enable): Same.
3684 (init_all_optabs): Use argument instead of global.
88b97037 3685 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
3686 * expr.h (init_all_optabs): Add argument to prototype.
3687 (TREE_OPTIMIZATION_OPTABS): New.
3688 (save_optabs_if_changed): Protoize.
3689 * optabs.h: Declare this_fn_optabs.
3690 * optabs.c (save_optabs_if_changed): New.
3691 Declare this_fn_optabs.
3692 (init_optabs): Add argument to init_all_optabs() call.
3693 * function.c (invoke_set_current_function_hook): Handle per
3694 function optabs.
3695 * function.h (struct function): New field optabs.
3696 * config/mips/mips.c (mips_set_mips16_mode): Handle when
3697 optimization_current_node has changed.
3698 * target-globals.h (save_target_globals_default_opts): Protoize.
3699 * target-globals.c (save_target_globals_default_opts): New.
3700
3f587ca3
JDA
37012013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3702
3703 PR target/56347
3704 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
3705 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
3706
3707 PR target/56214
3708 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
3709 and HImode, require all displacements to be an integer multiple of
3710 their mode size.
ceaca33e
JDA
3711 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
3712 only allow QImode and HImode when reload is in progress and strict is
3713 true. Likewise for symbolic addresses. Use base14_operand to check
3714 displacements in REG+BASE addresses.
3715
fe0b4796
RB
37162013-02-18 Richard Biener <rguenther@suse.de>
3717
3718 PR tree-optimization/56366
3719 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3720 handle sign-conversion of outer-loop initial induction value.
3721
6aaf596b
RB
37222013-02-18 Richard Biener <rguenther@suse.de>
3723
73db8ff1 3724 PR middle-end/56349
6aaf596b
RB
3725 * cfghooks.c (merge_blocks): If we merge a latch into another
3726 block adjust references to it.
3727 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
3728 (verify_loop_structure): Verify that a recorded latch is in fact
3729 a latch.
3730
5e97dfb6
RB
37312013-02-18 Richard Biener <rguenther@suse.de>
3732
3733 PR tree-optimization/56321
3734 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
3735 order SSA name release and virtual operand unlinking.
3736
825527e8
EI
37372013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3738
3739 * config/microblaze/microblaze.md (save_stack_block): Define.
3740 (restore_stack_block): Likewise.
3741
debd11d9
EI
37422013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3743
3744 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
3745 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
3746 * config/microblaze/microblaze.c (microblaze_option_override):
3747 Bail out early for PIC modes when target does not support PIC.
3748
8ec77be0
EI
37492013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3750
88b97037 3751 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
3752 Replace with a microblaze version.
3753 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 3754 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
3755 microblaze.
3756
b41288b3
JJ
37572013-02-16 Jakub Jelinek <jakub@redhat.com>
3758 Dodji Seketeli <dodji@redhat.com>
3759
3760 PR asan/56330
88b97037 3761 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
3762 (instrument_mem_region_access): Do not forget to always put
3763 instrumentation of the of 'base' and 'base + len' in a "if (len !=
3764 0) statement, even for cases where either 'base' or 'base + len'
3765 are not instrumented -- because they have been previously
3766 instrumented. Simplify the logic by putting all the statements
3767 instrument 'base + len' inside a sequence, and then insert that
3768 sequence right before the current insertion point. Then, to
3769 instrument 'base + len', just get an iterator on that statement.
3770 And do not forget to update the pointer to iterator the function
3771 received as argument.
3772
47918951
VM
37732013-02-15 Vladimir Makarov <vmakarov@redhat.com>
3774
3775 PR rtl-optimization/56348
3776 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
3777
3fb7c699
SB
37782013-02-15 Steven Bosscher <steven@gcc.gnu.org>
3779
3780 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
3781 (clean_graph_dump_file): Pass base to start_graph_dump.
3782
576fe41a
RH
37832013-02-14 Richard Henderson <rth@redhat.com>
3784
3785 PR target/55941
3786 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
3787
bb3accfa
SB
37882013-02-14 Steven Bosscher <steven@gcc.gnu.org>
3789
3790 * collect2-aix.h: Define F_LOADONLY.
3791
03143140
RB
37922013-02-14 Richard Biener <rguenther@suse.de>
3793
3794 PR lto/50494
3795 * varasm.c (output_constant_def_1): Get the decl representing
3796 the constant as argument.
3797 (output_constant_def): Wrap output_constant_def_1.
3798 (make_decl_rtl): Use output_constant_def_1 with the decl
3799 representing the constant.
3800 (build_constant_desc): Optionally re-use a decl already
3801 representing the constant.
3802 (tree_output_constant_def): Adjust.
3803
8fb06726
DS
38042013-02-14 Dodji Seketeli <dodji@redhat.com>
3805
3806 Fix an asan crash
3807 * asan.c (instrument_builtin_call): Really put the length of the
3808 second source argument into src1_len.
3809
c4bfe8bf
JJ
38102013-02-13 Jakub Jelinek <jakub@redhat.com>
3811
3812 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
3813 argument. If it is false, don't create edge from then_bb to
3814 fallthru_bb.
3815 (insert_if_then_before_iter): Pass true to it.
3816 (build_check_stmt): Pass false to it.
3817 (transform_statements): Flush hash table only on extended basic
3818 block boundaries, rather than at the beginning of every bb.
3819 Don't flush hash table on nonfreeing_call_p calls.
3820 * tree-flow.h (nonfreeing_call_p): New prototype.
3821 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
3822
7afe2801
DM
38232013-02-13 David S. Miller <davem@davemloft.net>
3824
3825 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3826
70cc3288
VM
38272013-02-13 Vladimir Makarov <vmakarov@redhat.com>
3828
3829 PR target/56184
3830 * ira.c (max_regno_before_ira): Move from ...
3831 (ira): ... here.
3832 (fix_reg_equiv_init): Use max_regno_before_ira instead of
3833 vec_safe_length.
3834
6422242b
JJ
38352013-02-13 Jakub Jelinek <jakub@redhat.com>
3836
3837 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3838
976a81ee
RB
38392013-02-13 Richard Biener <rguenther@suse.de>
3840
3841 PR lto/56295
3842 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3843 globals in MEM_REFs.
3844
c1874a87
RB
38452013-02-13 Richard Biener <rguenther@suse.de>
3846
3847 * loop-init.c (loop_optimizer_init): Clear loop state when
3848 re-initializing preserved loops.
3849 * loop-unswitch.c (unswitch_single_loop): Return whether
3850 we unswitched the loop. Do not verify loop state here.
88b97037 3851 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 3852
b4ab7d34
KS
38532013-02-13 Kostya Serebryany <kcc@google.com>
3854
88b97037
UB
3855 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
3856 on x86_64 linux.
b4ab7d34
KS
3857 * sanitizer.def: Rename __asan_init to __asan_init_v1.
3858
bdcbe80c
DS
38592013-02-12 Dodji Seketeli <dodji@redhat.com>
3860
3861 Avoid instrumenting duplicated memory access in the same basic block
3862 * Makefile.in (asan.o): Add new dependency on hash-table.h
3863 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3864 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3865 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3866 (free_mem_ref_resources, has_mem_ref_been_instrumented)
3867 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3868 (get_mem_ref_of_assignment): New functions.
3869 (get_mem_refs_of_builtin_call): Extract from
3870 instrument_builtin_call and tweak a little bit to make it fit with
3871 the new signature.
3872 (instrument_builtin_call): Use the new
3873 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
3874 of is_gimple_builtin_call.
3875 (instrument_derefs, instrument_mem_region_access): Insert the
3876 instrumented memory reference into the hash table.
3877 (maybe_instrument_assignment): Renamed instrument_assignment into
3878 this, and change it to advance the iterator when instrumentation
3879 actually happened and return true in that case. This makes it
3880 homogeneous with maybe_instrument_assignment, and thus give a
3881 chance to callers to be more 'regular'.
3882 (transform_statements): Clear the memory reference hash table
3883 whenever we enter a new BB, when we cross a function call, or when
3884 we are done transforming statements. Use
3885 maybe_instrument_assignment instead of instrumentation. No more
3886 need to special case maybe_instrument_assignment and advance the
3887 iterator after calling it; it's now handled just like
3888 maybe_instrument_call. Update comment.
3889
4861a1f7
RB
38902013-02-13 Richard Biener <rguenther@suse.de>
3891
3892 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3893 Fix loop discovery code.
3894
1c86bd80
VM
38952013-02-12 Vladimir Makarov <vmakarov@redhat.com>
3896
3897 PR inline-asm/56148
3898 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 3899 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
3900 the operand is not reloaded. Prefer to reload conflicting operand
3901 if earlyclobber and matching operands are the same.
3902
7cbda518
RB
39032013-02-12 Richard Biener <rguenther@suse.de>
3904
3905 PR lto/56297
3906 * lto-streamer-out.c (write_symbol): Do not output symbols
3907 for hard register variables.
3908
e68a4ef6
GJL
39092013-02-12 Georg-Johann Lay <avr@gjlay.de>
3910
3911 PR target/54222
3912 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3913 (umulsidi3_insn, mulsidi3_insn): New insns.
3914
a72d8780 39152013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
3916
3917 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3918 (struct tune_params): Add vec_costs field.
3919 * config/arm/arm.c (arm_builtin_vectorization_cost)
3920 (arm_add_stmt_cost): New functions.
3921 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3922 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3923 (arm_default_vec_cost): New struct of type cpu_vec_costs.
3924 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3925 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3926 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3927 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3928
43320568
RB
39292013-02-12 Richard Biener <rguenther@suse.de>
3930
3931 PR lto/56295
3932 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3933 decls again if possible.
3934
a011aa39
RB
39352013-02-12 Richard Biener <rguenther@suse.de>
3936
3937 PR middle-end/56288
3938 * tree-ssa.c (verify_ssa_name): Fix check, move
3939 SSA_NAME_IN_FREE_LIST check up.
3940
6da26889
JJ
39412013-02-12 Jakub Jelinek <jakub@redhat.com>
3942 Steven Bosscher <steven@gcc.gnu.org>
3943
3944 PR rtl-optimization/56151
3945 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3946 equal to op0 or op1, and last_insn pattern is CODE operation
3947 with MEM dest and one of the operands matches that MEM.
3948
f80e0faf
ST
39492013-02-11 Sriraman Tallam <tmsriramgoogle.com>
3950
3951 * doc/extend.texi: Document Function Multiversioning and "default"
3952 parameter string to target attribute.
3953 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3954 target attribute parameter is "default".
3955 (ix86_compare_version_priority): Remove checks for target attribute.
3956 (ix86_mangle_function_version_assembler_name): Change error to sorry.
3957 Remove check for target attribute equal to NULL. Add assert.
3958 (ix86_generate_version_dispatcher_body): Change error to sorry.
3959
6c59ffd1
IS
39602013-02-11 Iain Sandoe <iain@codesourcery.com>
3961 Jack Howarth <howarth@bromo.med.uc.edu>
3962 Patrick Marlier <patrick.marlier@gmail.com>
3963
3964 PR libitm/55693
3965 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3966 define ENDFILE_SPEC as TM_DESTRUCTOR.
3967 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3968
a72d8780 39692013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
3970 Jack Howarth <howarth@bromo.med.uc.edu>
3971 Jakub Jelinek <jakub@redhat.com>
3972
3973 PR sanitizer/55617
3974 * config/darwin.c (cdtor_record): Rename ctor_record.
3975 (sort_cdtor_records): Rename sort_ctor_records.
3976 (finalize_dtors): New routine to sort destructors by
3977 priority before use in assemble_integer.
3978 (machopic_asm_out_destructor): Use finalize_dtors if needed.
3979
b63fe007
UB
39802013-02-11 Uros Bizjak <ubizjak@gmail.com>
3981
3982 PR rtl-optimization/56275
3983 * simplify-rtx.c (avoid_constant_pool_reference): Check that
3984 offset is non-negative and less than cmode size before
3985 calling simplify_subreg.
3986
8e89b5b5
RB
39872013-02-11 Richard Biener <rguenther@suse.de>
3988
3989 PR tree-optimization/56264
3990 * cfgloop.h (fix_loop_structure): Adjust prototype.
3991 * loop-init.c (fix_loop_structure): Return the number of
3992 newly discovered loops.
3993 * tree-cfgcleanup.c (repair_loop_structures): When new loops
3994 are discovered, do a full loop-closed SSA rewrite.
3995
b4a4b56d
RB
39962013-02-11 Richard Biener <rguenther@suse.de>
3997
3998 PR tree-optimization/56273
3999 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4000 first VRP run.
4001 (check_array_ref): Fix missing newline in dumps.
4002 (search_for_addr_array): Likewise.
4003
0c885229
DE
40042013-02-09 David Edelsohn <dje.gcc@gmail.com>
4005
4006 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
4007
59ac9a55
JJ
40082013-02-09 Jakub Jelinek <jakub@redhat.com>
4009
4010 PR target/56256
4011 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
4012
25bb0bb5
VM
40132013-02-08 Vladimir Makarov <vmakarov@redhat.com>
4014
4015 PR rtl-optimization/56246
0c885229 4016 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
4017 reload pseudo.
4018 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
4019 constraints are satisfied.
4020
a698cc03
JL
40212013-02-08 Jeff Law <law@redhat.com>
4022
4023 PR debug/53948
4024 * emit-rtl.c (reg_is_parm_p): New function.
4025 * regs.h (reg_is_parm_p): New prototype.
4026 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
4027 callee-clobbered registers.
4028
e1122ddd
MM
40292013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4030
4031 PR target/56043
4032 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
4033 If there is no implicit builtin declaration, just return NULL.
4034
19c5f6e6
UB
40352013-02-08 Uros Bizjak <ubizjak@gmail.com>
4036
4037 * config/i386/sse.md (FMAMODEM): New mode iterator.
4038 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
4039 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
4040
2480f2ca 40412013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 4042
2480f2ca
UB
4043 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
4044 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
4045 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
4046
40472013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4048
4049 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
4050 (microblaze*-*-elf): Likewise.
4051 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
4052 LINK_SPEC.
4053 * config/microblaze/microblaze-c.c: Add builtin defines for
4054 _LITTLE_ENDIAN and _BIG_ENDIAN.
4055 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
4056 add to TARGET_DEFAULT flags.
76ef61fb 4057 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
4058 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
4059 * config/microblaze/microblaze.md: Update extendsidi2 and
4060 movdi_internal instructions to use low-order / high-order reg
4061 print_operands.
4062 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
4063 options and inversemask / mask of LITTLE_ENDIAN.
4064 * config/microblaze/t-microblaze: Expand multilib options to
4065 include mlittle-endian (le) and update exceptions patterns.
4066
600a5961
JJ
40672013-02-08 Jakub Jelinek <jakub@redhat.com>
4068
5df81313
JJ
4069 PR rtl-optimization/56195
4070 * lra-constraints.c (get_reload_reg): Don't reuse regs
4071 if they have smaller mode than requested, if they have
4072 wider mode than requested, try to return a SUBREG.
4073
600a5961
JJ
4074 PR tree-optimization/56250
4075 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
4076 if type is unsigned and code isn't MULT_EXPR.
4077
ff544649
GJL
40782013-02-08 Georg-Johann Lay <avr@gjlay.de>
4079
4080 PR tree-optimization/56064
4081 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
4082 bits according to mode.
4083 * fixed-value.h (fixed_from_double_int)
4084 (const_fixed_from_double_int): Adjust comments.
4085
e45cde98
RB
40862013-02-08 Richard Biener <rguenther@suse.de>
4087
4088 PR lto/56231
4089 * lto-streamer.h (struct data_in): Remove current_file, current_line
4090 and current_col members.
4091 * lto-streamer-out.c (lto_output_location): Stream changed bits
4092 en-block for efficiency.
4093 * lto-streamer-in.c (clear_line_info): Remove.
4094 (lto_input_location): Cache current file, line and column
4095 globally via local statics. Read changed bits en-block.
4096 (input_function): Do not call clear_line_info.
4097 (lto_read_body): Likewise.
4098 (lto_input_toplevel_asms): Likewise.
4099
c1ca73d8
MM
41002013-02-08 Michael Matz <matz@suse.de>
4101
4102 PR tree-optimization/52448
4103 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
4104 (nt_call_phase): New static.
4105 (add_or_mark_expr): Only mark accesses with newer phase than any
4106 call seen.
4107 (nonfreeing_call_p): New.
4108 (nt_init_block): Update nt_call_phase, mark blocks as visited.
4109 (nt_fini_block): Keep blocks marked as visited.
4110 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
4111
57548aa2
RB
41122013-02-08 Richard Biener <rguenther@suse.de>
4113
4114 * ira.c (ira): Free broken dominator information.
4115
8e10366f
UB
41162013-02-08 Uros Bizjak <ubizjak@gmail.com>
4117
4118 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
4119
f64fb0fa
MP
41202013-02-08 Marek Polacek <polacek@redhat.com>
4121
8e10366f 4122 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 4123
0375167b
RB
41242013-02-08 Richard Biener <rguenther@suse.de>
4125
4126 PR middle-end/56181
4127 * cfgloop.h (flow_loops_find): Adjust.
4128 (bb_loop_header_p): Declare.
4129 * cfgloop.c (bb_loop_header_p): New function split out from ...
4130 (flow_loops_find): ... here. Adjust function signature,
4131 support incremental loop structure update.
4132 (verify_loop_structure): Cleanup. Verify a loop is a loop.
4133 * cfgloopmanip.c (fix_loop_structure): Move ...
4134 * loop-init.c (fix_loop_structure): ... here.
4135 (apply_loop_flags): Split out from ...
4136 (loop_optimizer_init): ... here.
4137 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
4138 in incremental mode, only remove dead loops here.
4139
85d768f3
GJL
41402013-02-08 Georg-Johann Lay <avr@gjlay.de>
4141
4142 PR target/54222
4143 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
4144 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
4145 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
4146 (*round<mode>3.libgcc): New insns for fixed-modes.
4147 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
4148 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
4149 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
4150 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
4151 implementations. Define to __builtin_avr_absFX,
4152 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
4153 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
4154 __builtin_avr_countlsFX, respectively.
4155 * config/avr/avr-c.c (target.h): Include it.
4156 (enum avr_builtin_id): New enum.
4157 (avr_resolve_overloaded_builtin): New static function.
4158 (avr_register_target_pragmas): Use it to set
4159 targetm.resolve_overloaded_builtin.
4160 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
4161 tree nodes used by DEF_BUILTIN.
4162 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
4163 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
4164 <AVR_BUILTIN_xxBITS>: Same.
4165
661bc682
RB
41662013-02-08 Richard Biener <rguenther@suse.de>
4167
4168 * cfgloop.c (verify_loop_structure): Properly handle
4169 a loop exiting to another loop header.
4170 * ira-int.h (ira_loops): Remove.
4171 * ira.c (ira_loops): Remove.
4172 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
4173 (do_reload): Use loop_optimizer_finalize.
4174 * ira-build.c (create_loop_tree_nodes): Use get_loops and
4175 number_of_loops to access the loop tree.
4176 (more_one_region_p): Likewise.
4177 (finish_loop_tree_nodes): Likewise.
4178 (rebuild_regno_allocno_maps): Likewise.
4179 (mark_loops_for_removal): Likewise.
4180 (mark_all_loops_for_removal): Likewise.
4181 (remove_unnecessary_regions): Likewise.
4182 (ira_build): Likewise.
4183 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4184
0d5049b2
RB
41852013-02-08 Richard Biener <rguenther@suse.de>
4186
4187 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
4188 * ipa-pure-const.c (analyze_function): Avoid calling
4189 mark_irreducible_loops twice.
8e10366f 4190 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 4191
499f32e8
DM
41922013-02-07 David S. Miller <davem@davemloft.net>
4193
4194 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
4195 on 'reg'.
4196 * var-tracking.c (vt_add_function_parameter): Test the presence of
4197 HAVE_window_save properly and do not remap argument registers when
4198 we have a leaf function.
4199
6edc3e32
UB
42002013-02-07 Uros Bizjak <ubizjak@gmail.com>
4201
4202 PR bootstrap/56227
4203 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
4204 instead of "ll".
4205 * config/i386/i386.c (ix86_print_operand): Ditto.
4206
5306401f
VM
42072013-02-07 Vladimir Makarov <vmakarov@redhat.com>
4208
6edc3e32 4209 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 4210
027ece11
VM
42112013-02-07 Vladimir Makarov <vmakarov@redhat.com>
4212
4213 PR rtl-optimization/56225
4214 * lra-constraints.c (process_alt_operands): Check that reload hard
4215 reg can hold value for strict_low_part.
4216
f980dfdb
JJ
42172013-02-07 Jakub Jelinek <jakub@redhat.com>
4218
4219 PR debug/56154
4220 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
4221 dwarf2out_end_function.
4222 (in_first_function_p, maybe_at_text_label_p,
4223 first_loclabel_num_not_at_text_label): New variables.
4224 (dwarf2out_var_location): In the first function find out
6edc3e32 4225 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
4226 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
4227 functions.
4228
73dd3123
EB
42292013-02-07 Eric Botcazou <ebotcazou@adacore.com>
4230
4231 PR rtl-optimization/56178
4232 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
4233 SUBREG of a register. Tidy up related block of code.
4234 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
4235 note if the source is a register or a SUBREG of a register.
4236
e3936f47
JJ
42372013-02-07 Jakub Jelinek <jakub@redhat.com>
4238
4239 PR target/56228
4240 * config/rs6000/rs6000.md (ptrm): New mode attr.
4241 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
4242 call_value_indirect_aix<pttrsize>,
4243 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
4244 m in constraints.
4245
d96d674b
MH
42462013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4247
4248 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
4249 if -bnortl. Convert to strcmp and strncmp.
4250
921f2dee
AM
42512013-02-07 Alan Modra <amodra@gmail.com>
4252
4253 PR target/54009
4254 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
4255 addresses won't wrap when offsetting.
4256 (rs6000_secondary_reload): Provide secondary reloads needed for
4257 wrapping LO_SUM addresses.
4258
d09c7dba
TS
42592013-02-06 Thomas Schwinge <thomas@codesourcery.com>
4260
4261 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
4262 MACH, just __MACH__.
4263
a44bbd48
RB
42642013-02-06 Richard Biener <rguenther@suse.de>
4265
4266 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
4267 instead of calling fix_loop_structure.
4268
6d840d99
JJ
42692013-02-06 Jakub Jelinek <jakub@redhat.com>
4270
4271 PR middle-end/56217
4272 * omp-low.c (use_pointer_for_field): Return false if
4273 lower_send_shared_vars doesn't generate any copy-out code.
4274
0f33baa9
TV
42752013-02-06 Tom de Vries <tom@codesourcery.com>
4276
4277 PR rtl-optimization/56131
4278 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
4279 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
4280 of the label is NULL. Add comment.
4281
11f1e3ab
JJ
42822013-02-05 Jakub Jelinek <jakub@redhat.com>
4283
31502f9f
JJ
4284 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
4285
a74db9bd
JJ
4286 PR sanitizer/55374
4287 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
4288 (STATIC_LIBTSAN_LIBS): Likewise.
4289 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
4290 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
4291 is defined, don't add anything else beyond that.
4292 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
4293 (LINK_COMMAND_SPEC): Use them.
4294
11f1e3ab
JJ
4295 PR tree-optimization/56205
4296 * tree-stdarg.c (check_all_va_list_escapes): Return true if
4297 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
4298 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
4299
14ac6aa2
RB
43002013-02-05 Richard Biener <rguenther@suse.de>
4301
4302 PR tree-optimization/53342
4303 PR tree-optimization/53185
4304 * tree-vectorizer.h (vect_check_strided_load): Remove.
4305 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
4306 not disallow peeling for vectorized strided loads.
4307 (vect_check_strided_load): Make static and simplify.
4308 (vect_analyze_data_refs): Adjust.
4309 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
4310 correctly when vectorizing strided loads.
4311
6f22445a
RB
43122013-02-05 Richard Biener <rguenther@suse.de>
4313
4314 * doc/install.texi: Refer to ISL, not PPL.
4315
39f9719e
JH
43162013-02-05 Jan Hubicka <jh@suse.cz>
4317
ec4224ac
JH
4318 PR tree-optimization/55789
4319 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
4320
43212013-02-05 Jan Hubicka <jh@suse.cz>
4322
4323 PR tree-optimization/55789
39f9719e
JH
4324 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
4325 the dead call anyway.
4326
956d3b33
EB
43272013-02-05 Eric Botcazou <ebotcazou@adacore.com>
4328
4329 PR sanitizer/55374
4330 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
4331
43322013-02-04 Alexander Potapenko <glider@google.com>
4333 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
4334 Jakub Jelinek <jakub@redhat.com>
4335
4336 PR sanitizer/55617
4337 * config/darwin.c (sort_ctor_records): Stabilized qsort
4338 on constructor priority by using original position.
4339 (finalize_ctors): New routine to sort constructors by
4340 priority before use in assemble_integer.
4341 (machopic_asm_out_constructor): Use finalize_ctors if needed.
4342
7ac3af38
JJ
43432013-02-04 Jakub Jelinek <jakub@redhat.com>
4344
4345 PR libstdc++/54314
4346 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
4347 about visibility on artificial decls.
4348 * config/sol2.c (solaris_assemble_visibility): Likewise.
4349
152689dc
KT
43502013-02-04 Kai Tietz <ktietz@redhat.com>
4351
4352 PR target/56186
4353 * config/i386/i386.c (function_value_ms_64): Add additional valtype
4354 argument and improve checking of return-argument types for 16-byte
4355 modes.
4356 (ix86_function_value_1): Add additional valtype argument on call
4357 of function_value_64.
4358 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
4359 handling infunction_value_64 function.
4360
2b5987b5
MGD
43612013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
4362
7ac3af38 4363 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 4364
14597080
RB
43652013-02-04 Richard Biener <rguenther@suse.de>
4366
4367 PR tree-optimization/56188
4368 * tree-ssa-structalias.c (label_visit): Consider case with
4369 initially non-empty points-to set.
4370 (perform_var_substitution): Dump node mapping and clean up.
4371
ed73881e
RG
43722013-02-04 Richard Guenther <rguenther@suse.de>
4373
4374 PR lto/56168
4375 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
4376 node prevail as last resort.
4377 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 4378 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 4379
139a0707
RB
43802013-02-04 Richard Biener <rguenther@suse.de>
4381
4382 PR tree-optimization/56113
4383 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
4384 Merge into ...
4385 (equiv_class_lookup_or_add): ... this.
4386 (label_visit): Adjust and fix error in previous patch.
4387 (perform_var_substitution): Adjust.
4388
50fe8924
OE
43892013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
4390
4391 * config/sh/divtab.c: Fix formatting and comments throughout the file.
4392 * config/sh/sh4-300.md: Likewise.
4393 * config/sh/sh4a.md: Likewise.
4394 * config/sh/constraints.md: Likewise.
4395 * config/sh/sh.md: Likewise.
4396 * config/sh/netbsd-elf.h: Likewise.
4397 * config/sh/predicates.md: Likewise.
4398 * config/sh/sh-protos.h: Likewise.
4399 * config/sh/ushmedia.h: Likewise.
4400 * config/sh/linux.h: Likewise.
4401 * config/sh/sh.c: Likewise.
4402 * config/sh/superh.h: Likewise.
4403 * config/sh/elf.h: Likewise.
4404 * config/sh/sh4.md: Likewise.
4405 * config/sh/sh.h: Likewise.
4406
1a04ac2b
JDA
44072013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4408
4409 * config/pa/constraints.md: Adjust unused letters. Change "T"
4410 constraint to match_test floating_point_store_memory_operand().
4411 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
4412 (base14_operand): New.
4413 (floating_point_store_memory_operand): New.
4414 (integer_store_memory_operand): Revise to use base14_operand and
4415 reg_plus_base_memory_operand.
4416 (move_dest_operand): Allow symbolic_memory_operands.
4417 (symbolic_memory_operand): Check for LO_SOM.
4418 (symbolic_operand): Change default case to break.
4419 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
4420 CONST_DOUBLE values to be reloaded by putting them into memory when
4421 the destination is a floating point register.
4422 (movdf): Remove code to handle CONST_DOUBLE.
4423 (movsf): Likewise.
4424 (reload_indf_r1): New.
4425 (reload_insf_r1): New.
4426 Consistently use "Q" and "T" constraints with integer and floating
4427 point move instructions, respectively.
4428 (movdi): Remove FAIL.
4429 Change predicate for source operand unamed DImode move from
4430 general_operand to move_src_operand.
4431 (umulsidi3): Change predicate for destination operand to
4432 register_operand.
4433 Likewise for similar unamed patterns.
4434 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
4435 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
4436 (hppa_legitimize_address): Simplify mask calculation.
4437 (pa_emit_move_sequence): Revised handling of secondary reloads from
4438 REG+D addresses for floating point loads and stores. Directly handle
4439 loading CONST0_RTX (mode) to a floating point register.
4440 (pa_secondary_reload): Handle reloading DF and SFmode constant values
4441 to floating point registers. Don't restrict secondary reloads to
4442 floating point registers to integer modes. Revise some comments and
4443 cleanup some code.
4444 (TARGET_LEGITIMATE_ADDRESS_P): Define.
4445 (pa_legitimate_address_p): New.
4446 (pa_legitimize_reload_address): New.
4447 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
4448 (STRICT_REG_OK_FOR_BASE_P): New.
4449 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
4450 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
4451
3bf65591
DE
44522013-02-03 David Edelsohn <dje.gcc@gmail.com>
4453 Andrew Dixie <andrewd@gentrack.com>
4454
4455 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
4456 flag set.
4457
c0a8a3e6
RS
44582013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
4459
4460 * expmed.c (extract_bit_field_1): Pass the full width of the
4461 structure to get_best_reg_extraction_insn.
4462
99113dff
DE
44632013-02-01 David Edelsohn <dje.gcc@gmail.com>
4464
4465 PR target/54601
4466 * configure.ac (use_cxa_atexit): Add AIX.
4467 * configure: Regenerate.
4468
4469 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
4470
ddd84654
JJ
44712013-02-01 Jakub Jelinek <jakub@redhat.com>
4472
4473 PR debug/54793
4474 * final.c (need_profile_function): New variable.
4475 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
4476 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
4477 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
4478 notes, targetm.asm_out.function_prologue doesn't emit anything,
4479 HAVE_prologue and profiler should be emitted before prologue,
4480 set need_profile_function instead of emitting it.
4481 (final_scan_insn): If need_profile_function, emit
4482 profile_function on the first NOTE_INSN_BASIC_BLOCK or
4483 NOTE_INSN_FUNCTION_BEG note.
4484
44852013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
4486
4487 * config/rs6000/rs6000.md (smulditi3): New.
4488 (umulditi3): New.
4489
ff2a9d88
RH
4490 * config/alpha/alpha.md (umulditi3): New.
4491
14d52b90
DE
44922013-02-01 David Edelsohn <dje.gcc@gmail.com>
4493
4494 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
4495 (ASM_OUTPUT_ALIGNED_LOCAL): New.
4496
8c7ca45c
RB
44972013-02-01 Richard Biener <rguenther@suse.de>
4498
4499 PR tree-optimization/56113
4500 * tree-ssa-structalias.c (label_visit): Reduce work for
4501 single-predecessor nodes.
4502
9f419393
EB
45032013-02-01 Eric Botcazou <ebotcazou@adacore.com>
4504
4505 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
4506 range isn't testing for zero.
4507
c5f4be84
SB
45082013-01-31 Steven Bosscher <steven@gcc.gnu.org>
4509
4510 PR middle-end/56113
4511 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
4512
dbdbd982
NC
45132013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
4514 Nick Clifton <nickc@redhat.com>
4515
4516 * config/v850/constraints.md (Q): Define as a memory constraint.
4517 * config/v850/predicates.md (label_ref_operand): New predicate.
4518 (e3v5_shift_operand): New predicate.
4519 (ior_operator): New predicate.
4520 * config/v850/t-v850: Add e3v5 multilib.
4521 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
4522 (v850_gen_movdi): Prototype.
4523 * config/v850/v850.c: Add support for e3v5 architecture.
4524 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
4525 TARGET_V850E_UP.
4526 (construct_save_jarl): Add e3v5 long JARL support.
4527 (v850_adjust_insn_length): New function. Adjust length of call
4528 insns when using e3v5 instructions.
4529 (v850_gen_movdi): New function: Generate instructions to move a
4530 DImode value.
4531 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
4532 (CPP_SPEC): Define __v850e3v5__ as appropriate.
4533 (TARGET_USE_FPU): Enable for e3v5.
4534 (CONST_OK_FOR_W): New macro.
4535 (ADJUST_INSN_LENGTH): Define.
4536 * config/v850/v850.md (UNSPEC_LOOP): Define.
4537 (attr cpu): Add v850e3v5.
4538 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
4539 (movdi): New pattern.
4540 (movdi_internal): New pattern.
4541 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
4542 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
4543 (cstoresf4): Likewise.
4544 (cstoredf4): Likewise.
4545 (insv): New pattern.
4546 (rotlso3_a): New pattern.
4547 (rotlsi3_b): New pattern
4548 (rotlsi3_v850e3v5): New pattern.
4549 (doloop_begin): New pattern.
4550 (fix_loop_counter): New pattern.
4551 (doloop_end): New pattern.
4552 (branch_normal): Add e3v5 long branch support.
4553 (branch_invert): Likewise.
4554 (branch_z_normal): Likewise.
4555 (branch_z_invert): Likewise.
4556 (branch_nz_normal): Likewise.
4557 (branch_nz_invert): Likewise.
4558 (call_internal_short): Add e3v5 register-indirect JARL support.
4559 (call_internal_long): Likewise.
4560 (call_value_internal_short): Likewise.
4561 (call_value_internal_long): Likewise.
4562 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
4563 (mloop): New option.
4564 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 4565 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 4566
73861a41
PK
45672013-01-31 Paul Koning <ni1d@arrl.net>
4568
4569 PR debug/55059
4570 PR debug/54508
4571 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
4572 children if parent is a class.
4573 (prune_unused_types_prune): Don't add DW_AT_declaration.
4574
e44978dc
RB
45752013-01-31 Richard Biener <rguenther@suse.de>
4576
4577 PR tree-optimization/56157
4578 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
4579 match up operand with SLP child.
4580
90b10dec
JM
45812013-01-31 Jason Merrill <jason@redhat.com>
4582
04d2dadd 4583 PR debug/54410
90b10dec
JM
4584 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
4585 parameters the first time.
4586 (gen_scheduled_generic_parms_dies): Check completeness here.
4587
6e616110
RB
45882013-01-31 Richard Biener <rguenther@suse.de>
4589
4590 PR middle-end/53073
4591 * common.opt (faggressive-loop-optimizations): New flag,
4592 enabled by default.
4593 * doc/invoke.texi (faggressive-loop-optimizations): Document.
4594 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
4595 infer_loop_bounds_from_undefined by it.
4596
636f59cf
RB
45972013-01-31 Richard Biener <rguenther@suse.de>
4598
4599 PR tree-optimization/56150
4600 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
4601 visit virtual operands.
4602 (find_uses_to_rename_bb): Likewise.
4603
46042013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
4605
4606 PR tree-optimization/56150
4607 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
4608 mixed store non-store stmts.
4609
32887460
JJ
46102013-01-30 Jakub Jelinek <jakub@redhat.com>
4611
e60e09a0
JJ
4612 PR sanitizer/55374
4613 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
4614 LIBASAN_EARLY_SPEC is defined.
4615 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
4616 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
4617 before %o.
4618 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
4619
32887460
JJ
4620 PR c++/55742
4621 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
4622 invalid args instead of ICEing on it.
4623 (ix86_valid_target_attribute_tree): Return error_mark_node if
4624 ix86_valid_target_attribute_inner_p failed.
4625 (ix86_valid_target_attribute_p): Return false only if
4626 ix86_valid_target_attribute_tree returned error_mark_node. Allow
4627 target("default") attribute.
4628 (sorted_attr_string): Change argument from const char * to tree,
4629 merge in all target attribute arguments rather than just one.
4630 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
4631 instead of free. Avoid using strcat.
4632 (ix86_mangle_function_version_assembler_name): Mangle
4633 target("default") as if no target attribute is present. Adjust
4634 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
4635 instead of xmalloc and XDELETEVEC instead of free.
4636 (ix86_function_versions): Don't return true if one of the decls
4637 doesn't have target attribute. If they don't and one of the decls
4638 is DECL_FUNCTION_VERSIONED, report an error. Adjust
4639 sorted_attr_string caller. Use XDELETEVEC instead of free.
4640 (ix86_supports_function_versions): Remove.
4641 (make_name): Fix up formatting.
4642 (make_dispatcher_decl): Remove resolver_name and its initialization.
4643 Avoid leaking memory.
4644 (is_function_default_version): Return true if there is
4645 target("default") attribute rather than no target attribute at all.
4646 (make_resolver_func): Avoid leaking memory.
4647 (ix86_generate_version_dispatcher_body): Likewise.
4648 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
4649 * target.def (supports_function_versions): Remove.
4650 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
4651 * doc/tm.texi: Regenerated.
4652
73cca0cc
VM
46532013-01-30 Vladimir Makarov <vmakarov@redhat.com>
4654
4655 PR rtl-optimization/56144
4656 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
4657 for values with side effects.
4658
11452e7b
RB
46592013-01-30 Richard Biener <rguenther@suse.de>
4660
4661 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
4662 (sparseset_pop): Likewise.
4663 * cfganal.c (compute_idf): Likewise. Increase work-stack size
4664 to be able to use quick_push in the worker loop.
4665
01cb1ef5
MP
46662013-01-30 Marek Polacek <polacek@redhat.com>
4667
4668 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
4669
e892936e
RB
46702013-01-30 Richard Biener <rguenther@suse.de>
4671
4672 PR lto/56147
6edc3e32 4673 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 4674
cc06c01d
GJL
46752013-01-30 Georg-Johann Lay <avr@gjlay.de>
4676
4677 PR tree-optimization/56064
4678 * fixed-value.c (fixed_from_double_int): New function.
4679 * fixed-value.h (fixed_from_double_int): New prototype.
4680 (const_fixed_from_double_int): New static inline function.
4681 * fold-const.c (native_interpret_fixed): New static function.
4682 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
4683 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
4684 (native_encode_fixed): New static function.
4685 (native_encode_expr) <FIXED_CST>: Use it.
4686 (native_interpret_int): Move double_int worker code to...
4687 * double-int.c (double_int::from_buffer): ...this new static method.
4688 * double-int.h (double_int::from_buffer): Prototype it.
4689
d394a308
RB
46902013-01-30 Richard Biener <rguenther@suse.de>
4691
4692 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
4693 New pointer-map and obstack.
4694 (init_alias_vars): Allocate pointer-map and obstack.
4695 (delete_points_to_sets): Free them.
4696 (find_what_var_points_to): Cache result.
4697 (find_what_p_points_to): Adjust for changed interface of
4698 find_what_var_points_to.
4699 (compute_points_to_sets): Likewise.
4700 (ipa_pta_execute): Likewise.
4701
20804d96
RO
47022013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4703
4704 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
4705 * configure: Regenerate.
4706 * config.in: Regenerate.
4707 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
4708 #nobits/#progbits if supported.
4709
a7ad88a2
OE
47102013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
4711
4712 PR target/56121
4713 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
4714 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
4715 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
4716
7af79f92
GY
47172013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4718
91bfca59
OE
4719 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
4720 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 4721
753bcf7b
GY
47222013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4723
91bfca59
OE
4724 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
4725 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 4726
8cbc2ea8
GY
47272013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4728
91bfca59
OE
4729 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
4730 declaration.
4731 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
4732 * config/arm/cortex-a7.md: New bypasses using
4733 arm_mac_accumulator_is_result.
8cbc2ea8 4734
697a3325
GY
47352013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4736
91bfca59 4737 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 4738 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
4739 (cortex_a7_fpfmad): New reservation.
4740 (cortex_a7_fpmacs): Use ffmas and update required units.
4741 (cortex_a7_fpmuld): Update required units and latency.
4742 (cortex_a7_fpmacd): Likewise.
4743 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
4744 (cortex_a7_neon). Likewise.
4745 (bypass) Update participating units.
697a3325 4746
29637783
GY
47472013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4748
91bfca59
OE
4749 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
4750 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
4751 from fmac to ffma.
4752 * config/arm/vfp11.md (vfp_farith): Use ffmas.
4753 (vfp_fmul): Use ffmad.
4754 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
4755 (cortex_r4_fmacd): Use ffmad.
4756 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
4757 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
4758 (cortex_a9_fmacd): Use ffmad.
4759 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
4760 (cortex_a8_vfp_macd): Use ffmad.
4761 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
4762 (cortex_a5_fpmacd): Use ffmad.
4763 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
4764 (cortex_a15_vfp_macd): Use ffmad.
4765 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 4766
2ee8a2d5
JM
47672013-01-29 Jason Merrill <jason@redhat.com>
4768
4769 PR libstdc++/54314
4770 * varasm.c (default_assemble_visibility): Don't warn about
4771 visibility on artificial decls.
4772
78d087bc
RB
47732013-01-29 Richard Biener <rguenther@suse.de>
4774
4775 PR tree-optimization/56113
4776 * tree-ssa-structalias.c (equiv_class_lookup): Also return
4777 the bitmap leader.
4778 (label_visit): Free duplicate bitmaps and record the leader instead.
4779 (perform_var_substitution): Adjust.
4780
83ba4d6f
RB
47812013-01-29 Richard Biener <rguenther@suse.de>
4782
4783 PR tree-optimization/55270
4784 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
4785 the CFG, schedule loops for fixup.
4786
66dfe13f
NC
47872013-01-29 Nick Clifton <nickc@redhat.com>
4788
4789 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
4790 SP_REG.
4791
5a579c3b
LE
47922013-01-28 Leif Ekblad <leif@rdos.net>
4793
4794 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
4795 * config/i386/i386.h (TARGET_RDOS): New macro.
4796 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
4797 * config/i386/i386.c (ix86_option_override_internal): For 64bit
4798 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
4799 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
4800 DEFAULT_LARGE_SECTION_THRESHOLD.
4801 * config/i386/i386.md (R14_REG, R15_REG): New constants.
4802 * config/i386/rdos.h: New file.
4803 * config/i386/rdos64.h: New file.
4804
51e44392
BS
48052013-01-28 Bernd Schmidt <bernds@codesourcery.com>
4806
4807 PR other/54814
4808 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
4809 TEST_HARD_REG_BIT.
4810
db1fb332
JJ
48112013-01-28 Jakub Jelinek <jakub@redhat.com>
4812
4813 PR rtl-optimization/56117
4814 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
4815 call cselib_lookup_from_insn on the MEM before calling
4816 add_insn_mem_dependence.
4817
16917761
RB
48182013-01-28 Richard Biener <rguenther@suse.de>
4819
4820 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
4821 to a stmt that didn't have one.
4822 (copy_phis_for_bb): Likewise for PHI arguments.
4823 (copy_debug_stmt): Likewise for debug stmts.
4824
b9fc0497
RB
48252013-01-28 Richard Biener <rguenther@suse.de>
4826
4827 PR tree-optimization/56034
6edc3e32 4828 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
4829 (partition_builtin_p): Adjust.
4830 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
4831 it is the last partition.
4832 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4833 up the vertex for the definition.
4834 (classify_partition): Classify whether a partition is a
4835 PKIND_REDUCTION, thus has uses outside of the loop.
4836 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4837 Merge all PKIND_REDUCTION partitions into the last partition.
4838 (tree_loop_distribution): Seed partitions from reductions as well.
4839
aa710d25
JJ
48402013-01-28 Jakub Jelinek <jakub@redhat.com>
4841
0bfbca58
JJ
4842 PR tree-optimization/56125
4843 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4844 pow(x,c) into sqrt(x) * powi(x, n/2) or
4845 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4846 optimizing for size.
4847 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4848 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4849 integer.
4850
aa710d25
JJ
4851 PR tree-optimization/56094
4852 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4853 to UNKNOWN_LOCATION while gimplifying expr.
4854
77dc5297
UB
48552013-01-27 Uros Bizjak <ubizjak@gmail.com>
4856
4857 PR target/56114
4858 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4859 operand 0 in movabs insn template for -masm=intel asm alternative.
4860 (*movabs<mode>_2): Ditto for operand 1.
4861
0bfbca58 48622013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
4863
4864 PR target/54663
4865 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4866 of microblaze-c.o
4867
0bfbca58 48682013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
4869
4870 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4871 tm_file.
4872
0bfbca58 48732013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
4874
4875 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4876 Undef to avoid warning.
4877
478f60f9
MH
48782013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4879
4880 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4881 * configure: Regenerate.
4882
d7fa6ee2
JJ
48832013-01-25 Jakub Jelinek <jakub@redhat.com>
4884
4885 PR tree-optimization/56098
4886 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4887 for stmts with volatile ops.
4888 (cond_store_replacement): Don't optimize if assign has volatile ops.
4889 (cond_if_else_store_replacement_1): Don't optimize if either
4890 then_assign or else_assign have volatile ops.
4891 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4892 volatile ops.
4893
f8fe87bd
GJL
48942013-01-25 Georg-Johann Lay <avr@gjlay.de>
4895
4896 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4897
28398d0d
GJL
48982013-01-25 Georg-Johann Lay <avr@gjlay.de>
4899
4900 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4901 missing ':' in asm example.
4902
b7d7d917
TB
49032013-01-25 Tejas Belagod <tejas.belagod@arm.com>
4904
4905 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4906 entries into lane and laneq entries.
77dc5297
UB
4907 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4908 Remove AdvSIMD scalar modes.
b7d7d917
TB
4909 (aarch64_sq<r>dmulh_laneq<mode>): New.
4910 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4911 modes.
4912 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4913 builtin implementations to relfect changes in RTL in aarch64-simd.md.
4914 * config/aarch64/iterators.md (VCOND): New.
4915 (VCONQ): New.
4916
556f9906
GJL
49172013-01-25 Georg-Johann Lay <avr@gjlay.de>
4918
4919 PR target/54222
4920 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4921 Add NULL LIBNAME argument to existing definitions.
4922 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4923 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4924 * config/avr/avr.c (DEF_BUILTIN): Same.
4925 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4926 (avr_expand_builtin): Expand to a vanilla call if a libgcc
4927 implementation is available (DECL_ASSEMBLER_NAME is set).
4928 (avr_fold_absfx): New static function.
4929 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4930 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4931 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4932 AVR_BUILTIN_ABSLLK.
4933 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4934 (abshk, absk, abslk, absllk): Provide as static inline functions.
4935
1f546bbb
MP
49362013-01-25 Marek Polacek <polacek@redhat.com>
4937
4938 PR tree-optimization/56035
4939 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4940
7e184bd7
UB
49412012-01-24 Uros Bizjak <ubizjak@gmail.com>
4942
4943 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4944 (*movtf_internal_rex64): Add (!o,C) alternative
4945 (*movxf_internal_rex64): Ditto.
4946 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4947
f5ba49ac
SM
49482013-01-24 Shenghou Ma <minux.ma@gmail.com>
4949
4950 * doc/invoke.texi: fix typo.
4951 * doc/objc.texi: fix typo.
4952
a6343728
RS
49532013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4954
4955 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4956 for the first two alternatives.
4957
cd030c07
DN
49582013-01-24 Diego Novillo <dnovillo@google.com>
4959
77dc5297 4960 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
4961 (ggc-zone.o): Remove.
4962 * configure.ac: Remove option --with-gc.
4963 * configure: Re-generate.
4964 * doc/install.texi: Remove documentation for --with-gc.
4965 * gengtype.c (write_enum_defn): Remove. Update all users.
4966 (write_Types_process_field): Remove generation of gt_e_* argument.
4967 (output_type_enum): Remove. Update all users.
4968 (write_enum_defn): Remove. Update all users.
4969 (enum alloc_zone): Remove. Update all users.
77dc5297 4970 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
4971 * ggc-common.c (ggc_splay_alloc): Remove first argument.
4972 Update all callers.
4973 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 4974 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
4975 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4976 Update all users.
aaf1e810 4977 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
4978 (struct alloc_zone): Remove.
4979 (ggc_internal_alloc_zone_stat): Remove.
4980 (ggc_internal_cleared_alloc_zone_stat): Remove.
4981 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
4982 (ggc_pch_count_object): Remove last argument. Update all users.
4983 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
4984 (struct alloc_zone): Remove.
4985 * ggc-zone.c: Remove.
77dc5297 4986 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
4987 (struct alloc_zone): Remove.
4988 (ggc_alloc_typed_stat): Remove.
4989 (ggc_alloc_typed): Remove.
4990 (ggc_splay_alloc): Remove first argument.
4991 (rtl_zone): Remove. Update all users.
4992 (tree_zone): Remove. Update all users.
4993 (tree_id_zone): Remove. Update all users.
4994 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 4995 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 4996 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 4997 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 4998
a861ffa4
GJL
49992013-01-24 Georg-Johann Lay <avr@gjlay.de>
5000
5001 * config/avr/avr.c (avr_out_fract): Make register numbers that
5002 might be outside of source operand signed.
5003
593c0ddd
UB
50042013-01-24 Uros Bizjak <ubizjak@gmail.com>
5005
5006 * config/i386/constraints.md (Yf): New constraint.
5007 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
5008 of f constraint to conditionaly disable x87 register preferences.
5009 (*movdf_internal): Ditto.
5010 (*movsf_internal): Ditto.
5011
e86c0101
SB
50122013-01-24 Steven Bosscher <steven@gcc.gnu.org>
5013
5014 PR inline-asm/55934
5015 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
5016 that have operands with impossible constraints.
5017 Add a FIXME for a speed-up opportunity.
5018 * lra-constraints.c (process_alt_operands): Verify that a class
5019 selected from constraints on asms is valid for the operand mode.
5020 (curr_insn_transform): Remove incorrect comment.
5021
f6fee35f
DE
50222013-01-23 David Edelsohn <dje.gcc@gmail.com>
5023
5024 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
5025 TOC operand is a valid symbol ref in the constant pool.
5026
50272013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 5028
aaf1e810 5029 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 5030
dc62d7d1
GJL
50312013-01-23 Georg-Johann Lay <avr@gjlay.de>
5032
5033 PR target/54222
5034 * config/avr/stdfix.h: New file.
5035 * t-avr (stdfix-gcc.h): New rule to build it.
5036 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
5037
2660d12d
KS
50382013-01-23 Kostya Serebryany <kcc@google.com>
5039
77dc5297
UB
5040 * config/darwin.h: remove dependency on
5041 CoreFoundation (asan on Mac OS).
2660d12d 5042
a70418fc
JJ
50432013-01-23 Jakub Jelinek <jakub@redhat.com>
5044
5045 PR target/49069
5046 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
5047 instead of cmpdi_operand for first comparison operand.
5048 Don't assert that comparison operands aren't both constants.
5049
47876a2a
JW
50502013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
5051
5052 * doc/install.texi (Downloading the Source): Update references to
5053 downloading separate components.
5054
50552013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
5056
5057 * doc/extend.texi (__int128): Improve grammar.
5058
47876a2a 50592013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
5060
5061 PR target/56028
5062 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
5063 alternative to (o,r).
5064 (*movdi_internal_rex64): Remove (!o,n) alternative.
5065 (DImode immediate->memory splitter): Remove.
5066 (DImode immediate->memory peephole2): Remove.
5067 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
5068 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
5069 alternative to (!o,*r).
5070 (*movtf_internal_sse): New pattern.
5071 (*movxf_internal_rex64): New pattern.
5072 (*movxf_internal): Disable for TARGET_64BIT.
5073 (*movdf_internal_rex64): Remove (!o,F) alternative.
5074
3a984f10
JJ
50752013-01-22 Jakub Jelinek <jakub@redhat.com>
5076
502498d5
JJ
5077 PR middle-end/56074
5078 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
5079 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
5080 * tree-vect-loop-manip.c (find_loop_location): Also ignore
5081 stmt locations where LOCATION_LOCUS of the stmt location is
5082 UNKNOWN_LOCATION or BUILTINS_LOCATION.
5083
3a984f10
JJ
5084 PR target/55686
5085 * config/i386/i386.md (UNSPEC_STOS): New.
5086 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
5087 *strsetqi_1): Add UNSPEC_STOS.
5088
fa817f7f
PC
50892013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
5090
5091 PR c++/56067
5092 * doc/invoke.texi: Remove left over -Wsynth example.
5093
8f498c1b
JJ
50942013-01-21 Jakub Jelinek <jakub@redhat.com>
5095
5096 PR tree-optimization/56051
5097 * fold-const.c (fold_binary_loc): Don't fold
5098 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
5099 a narrowing conversion, or widening conversion from signed
5100 to unsigned.
5101
47876a2a 51022013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
5103
5104 PR rtl-optimization/56023
5105 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
5106 dependent on debug instruction.
5107
5b9db1bc
MJ
51082013-01-21 Martin Jambor <mjambor@suse.cz>
5109
5110 PR middle-end/56022
5111 * function.c (allocate_struct_function): Call
5112 invoke_set_current_function_hook earlier.
5113
e8bb7d68
JJ
51142013-01-21 Jakub Jelinek <jakub@redhat.com>
5115
5116 * reload1.c (init_reload): Only initialize reload_obstack
5117 during the first call.
5118
616a4e32
MP
51192013-01-21 Marek Polacek <polacek@redhat.com>
5120
5121 * cfgloop.c (verify_loop_structure): Fix up grammar.
5122
4401981b
YHH
51232013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
5124
5125 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
5126 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
5127
8e87740b
RR
51282013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5129
5130 PR target/56058
5131 * config/arm/marvell-pj4.md: Update copyright year.
5132 Fix up use of alu to alu_reg and simple_alu_imm.
5133
47876a2a 51342013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
5135
5136 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
5137
89d56d79
VM
51382013-01-20 Vladimir Makarov <vmakarov@redhat.com>
5139
5140 PR target/55433
5141 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 5142 insn for secondary memory move when memory mode should be different.
89d56d79 5143
fe603553
JDA
51442013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5145
5146 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
5147 atomic_storedi_1): New patterns.
5148
01284895
VK
51492013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5150
5151 btver2 pipeline descriptions.
5152 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
5153 descriptions.
5154 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 5155 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
5156 type attributes.
5157 * config/i386/btver2.md: New file describing btver2 pipelines.
5158
5630e3e1
JL
51592013-01-19 Andrew Pinski <apinski@cavium.com>
5160
5161 PR tree-optimization/52631
5162 * tree-ssa-sccvn (visit_use): Before looking up the original
5163 statement, try looking up the simplified expression.
5164
650ae806
AG
51652013-01-19 Anthony Green <green@moxielogic.com>
5166
5167 * config/moxie/moxie.c (moxie_expand_prologue): Set
5168 current_function_static_stack_size.
5169
e300ec2d
JJ
51702013-01-18 Jakub Jelinek <jakub@redhat.com>
5171
5172 PR tree-optimization/56029
5173 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
5174 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
5175
a3d7af04
SS
51762013-01-18 Sharad Singhai <singhai@google.com>
5177
5178 PR tree-optimization/55995
5179 * dumpfile.c (dump_loc): Print location only if available.
5180 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
5181
66aa7879
VM
51822013-01-18 Vladimir Makarov <vmakarov@redhat.com>
5183
5184 PR target/55433
5185 * lra-constraints.c (curr_insn_transform): Reuse original insn for
5186 secondary memory move.
5187 (inherit_reload_reg): Use rclass instead of cl for
5188 check_secondary_memory_needed_p.
5189
3f0fee7b
JJ
51902013-01-18 Jakub Jelinek <jakub@redhat.com>
5191
5192 PR middle-end/56015
5193 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 5194 the case where writing real complex part of target modifies op1.
3f0fee7b 5195
70c67693
JG
51962013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
5197
5198 * config/aarch64/aarch64-simd.md
5199 (aarch64_vcond_internal<mode>): Handle unordered cases.
5200 * config/aarch64/iterators.md (v_cmp_result): New.
5201
df8de9b3
YHH
52022013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
5203 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5204
5205 * config/arm/marvell-pj4.md: New file.
5206 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
5207 * config/arm/arm.md (generic_sched): Add marvell_pj4.
5208 (generic_vfp): Likewise.
5209 * config/arm/arm-cores.def: Add marvell-pj4.
5210 * config/arm/arm-tune.md: Regenerate.
5211 * config/arm/arm-tables.opt: Regenerate.
5212 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
5213 * doc/invoke.texi: Document marvell-pj4.
5214
be30c356
TB
52152013-01-18 Tejas Belagod <tejas.belagod@arm.com>
5216
5217 * config/aarch64/arm_neon.h: Map scalar types to standard types.
5218
0bfbca58 52192013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
5220
5221 PR debug/54114
5222 PR debug/54402
5223 PR debug/49888
5224 * var-tracking.c (negative_power_of_two_p): New.
5225 (global_get_addr_cache, local_get_addr_cache): New.
5226 (get_addr_from_global_cache, get_addr_from_local_cache): New.
5227 (vt_canonicalize_addr): Rewrite using the above. Adjust the
5228 heading comment.
5229 (vt_stack_offset_p): Remove.
5230 (vt_canon_true_dep): Always canonicalize loc's address.
5231 (clobber_overlapping_mems): Make sure we have a MEM.
5232 (local_get_addr_clear_given_value): New.
5233 (val_reset): Clear local cached entries.
5234 (compute_bb_dataflow): Create and release the local cache.
5235 Disable duplicate MEMs clobbering.
5236 (emit_notes_in_bb): Clobber MEMs likewise.
5237 (vt_emit_notes): Create and release the local cache.
5238 (vt_initialize, vt_finalize): Create and release the global
5239 cache, respectively.
1f6bc337 5240 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 5241
0bfbca58 52422013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
5243
5244 PR libmudflap/53359
5245 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
5246 not found in the symtab.
5247
0bfbca58 52482013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 5249
c350ba53 5250 PR debug/56006
3aa03517
AO
5251 PR rtl-optimization/55547
5252 PR rtl-optimization/53827
5253 PR debug/53671
5254 PR debug/49888
5255 * alias.c (offset_overlap_p): New, factored out of...
5256 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
5257 the conservative special case for symbolic constants. Don't
5258 adjust zero sizes on alignment.
5259
c664546f
JL
52602013-01-18 Bernd Schmidt <bernds@codesourcery.com>
5261
5262 PR rtl-optimization/52573
5263 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
5264 REG_UNUSED for the same register.
5265
1bd3f750
MP
52662013-01-17 Richard Biener <rguenther@suse.de>
5267 Marek Polacek <polacek@redhat.com>
5268
5269 PR rtl-optimization/55833
5270 * loop-unswitch.c (unswitch_loops): Move loop verification...
5271 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
5272 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
5273 Set it to true when we're removing a loop from hierarchy tree in
5274 an irreducible region.
5275 (fix_bb_placements): Adjust caller.
5276 (fix_loop_placements): Likewise.
5277
e52a8b71
GJL
52782013-01-17 Georg-Johann Lay <avr@gjlay.de>
5279
5280 * config/avr/builtins.def (DEF_BUILTIN): Factor out
5281 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
5282 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
5283 Remove ID. Adjust comments.
5284 * config/avr/avr-c.c (avr_builtin_name): Remove.
5285 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
5286 * config/avr/avr.c (avr_tolower): New static function.
5287 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
5288 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
5289 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
5290 default expansion.
5291
8386a7ea
JH
52922013-01-17 Jan Hubicka <jh@suse.cz>
5293
610fb637 5294 PR tree-optimization/55273
8386a7ea
JH
5295 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
5296
47876a2a 52972013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
5298
5299 PR target/55981
5300 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
5301 store through atomic_store<mode>_1.
5302 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
5303
8222c37e
MJ
53042013-01-17 Martin Jambor <mjambor@suse.cz>
5305
5306 PR tree-optimizations/55264
5307 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
5308 for virtual methods.
5309 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
5310 virtual methods before inlining is over.
5311 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
5312 virtual functions.
5313 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
5314 non-virtual.
5315
79f01c76
VM
53162013-01-16 Vladimir Makarov <vmakarov@redhat.com>
5317
5318 PR rtl-optimization/56005
5319 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
5320 pending reads for prefetch.
5321
d0b6bb1b
IB
53222013-01-16 Ian Bolton <ian.bolton@arm.com>
5323
aaf1e810 5324 * config/aarch64/aarch64.md
d0b6bb1b
IB
5325 (*cstoresi_neg_uxtw): New pattern.
5326 (*cmovsi_insn_uxtw): New pattern.
5327 (*<optab>si3_uxtw): New pattern.
5328 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
5329 (*<optab>si3_insn_uxtw): New pattern.
5330 (*bswapsi2_uxtw): New pattern.
5331
cb9cf03b
RB
53322013-01-16 Richard Biener <rguenther@suse.de>
5333
5334 * tree-inline.c (tree_function_versioning): Remove set but
5335 never used variable.
5336
2cfc56b9
RB
53372013-01-16 Richard Biener <rguenther@suse.de>
5338
5339 PR tree-optimization/55964
5340 * tree-flow.h (rename_variables_in_loop): Remove.
5341 (rename_variables_in_bb): Likewise.
5342 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
5343 (copy_loop_before): Adjust and delete update-ssa status.
5344 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 5345 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
5346 (rename_variables_in_loop): Remove.
5347 (slpeel_update_phis_for_duplicate_loop): Likewise.
5348 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
5349 use available cfg machinery instead of duplicating it.
5350 Update PHI nodes and perform poor-mans SSA update here.
5351 (slpeel_tree_peel_loop_to_edge): Adjust.
5352
c25a0c60
RB
53532013-01-16 Richard Biener <rguenther@suse.de>
5354
5355 PR tree-optimization/54767
5356 PR tree-optimization/53465
5357 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
5358 (vrp_visit_phi_node): For PHI arguments coming via backedges
5359 drop all symbolical range information.
5360 (execute_vrp): Compute backedges.
5361
04b535af
RB
53622013-01-16 Richard Biener <rguenther@suse.de>
5363
5364 * doc/install.texi: Update CLooG and ISL requirements to
5365 0.18.0 and 0.11.1.
5366
8b0a1e0b
CB
53672013-01-16 Christian Bruel <christian.bruel@st.com>
5368
5369 PR target/55301
5370 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
5371 (broken_move): Handle UNSPECV_SP_SWITCH_B.
5372 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
5373
53742013-01-16 DJ Delorie <dj@redhat.com>
5375
5376 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
5377 (UNSPECV_SP_SWITCH_E): New.
5378 (sp_switch_1): Change to an unspec.
5379 (sp_switch_2): Change to an unspec. Don't use post-inc when we
5380 replace $r15.
5381
53822013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
5383
5384 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
5385 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
5386 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
5387 (expand_mem_thread_fence): Ditto.
5388 (expand_mem_signal_fence): Ditto.
5389 (expand_atomic_load): Ditto.
5390 (expand_atomic_store): Ditto.
5391
0bfbca58 53922013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
5393
5394 PR rtl-optimization/55547
5395 PR rtl-optimization/53827
5396 PR debug/53671
5397 PR debug/49888
5398 * alias.c (memrefs_conflict_p): Set sizes to negative after
5399 AND adjustments.
5400
305e3ac1
JJ
54012013-01-15 Jakub Jelinek <jakub@redhat.com>
5402
5403 PR target/55940
5404 * function.c (thread_prologue_and_epilogue_insns): Always
5405 add crtl->drap_reg to set_up_by_prologue.set, even if
5406 stack_realign_drap is false.
5407
f78ac4f2
JBG
54082013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5409
5410 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
5411 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
5412 *call): Fix indention.
5413
a78a8cc4
TV
54142013-01-15 Tom de Vries <tom@codesourcery.com>
5415
5416 PR target/55876
5417 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
5418 Update comment.
5419
0e80383f
VM
54202013-01-15 Vladimir Makarov <vmakarov@redhat.com>
5421
305e3ac1 5422 PR rtl-optimization/55153
0e80383f
VM
5423 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
5424
207b5956
MJ
54252013-01-15 Martin Jambor <mjambor@suse.cz>
5426
5427 PR tree-optimization/55920
5428 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
5429 accesses as grp_to_be_debug_replaced.
5430
a7818b54
JJ
54312013-01-15 Jakub Jelinek <jakub@redhat.com>
5432
5433 PR tree-optimization/55920
5434 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
5435 there is non-useless type conversion needed from debug rhs to lhs,
5436 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
5437
b0fe107e
JM
54382013-01-15 Joseph Myers <joseph@codesourcery.com>
5439 Mikael Pettersson <mikpe@it.uu.se>
5440
5441 PR target/43961
5442 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
5443 Thumb.
5444 (ASM_OUTPUT_CASE_LABEL): Remove.
5445 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
5446 * final.c (shorten_branches): Update alignment of labels before
5447 jump tables if CASE_VECTOR_SHORTEN_MODE.
5448
34ab62ee
RB
54492013-01-15 Richard Biener <rguenther@suse.de>
5450
5451 PR bootstrap/55961
5452 * system.h: Do not include gmp.h for building host tools.
5453
783a3a05
RB
54542013-01-15 Richard Biener <rguenther@suse.de>
5455
5456 PR middle-end/55882
5457 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
5458 account for bitpos when computing alignment.
5459
3a579e09
VY
54602013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
5461
5462 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
5463 (ix86_target_macros_internal): Likewise.
5464
5465 * config/i386/i386.c (m_CORE2I7): Removed.
5466 (m_CORE_HASWELL): New macro.
5467 (m_CORE_ALL): Likewise.
5468 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
5469 (initial_ix86_arch_features): Likewise.
5470 (processor_target_table): Initializations for Core avx2.
5471 (cpu_names): New names "core-avx2".
5472 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
5473 PROCESSOR_CORE_HASWELL.
5474 (ix86_issue_rate): New case.
5475 (ia32_multipass_dfa_lookahead): Likewise.
5476 (ix86_sched_init_global): Likewise.
5477
5478 * config/i386/i386.h (TARGET_HASWELL): New macro.
5479 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
5480 (processor_type): New PROCESSOR_HASWELL.
5481
955f5a07
JJ
54822013-01-15 Jakub Jelinek <jakub@redhat.com>
5483
ff784829
JJ
5484 PR tree-optimization/55955
5485 * tree-vect-loop.c (vectorizable_reduction): Give up early on
5486 *SHIFT_EXPR and *ROTATE_EXPR codes.
5487
955f5a07
JJ
5488 PR tree-optimization/48766
5489 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
5490 -ftrapv disable -fwrapv.
5491
aeb8b4e9
GJL
54922013-01-14 Georg-Johann Lay <avr@gjlay.de>
5493
5494 PR target/55974
5495 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
5496 etc. to 1 and not to __flash.
5497 Use LL suffix for __INT24_MAX__ with -mint8.
5498 Use ULL suffix for __UINT24_MAX__ with -mint8.
5499
1c494c6a
GJL
55002013-01-14 Georg-Johann Lay <avr@gjlay.de>
5501
5502 * config/avr/avr-arch.h
5503 (struct base_arch_s): Use typedef avr_arch_t instead.
5504 (struct arch_info_s): Use typedef avr_arch_info_t instead.
5505 (struct mcu_type_s): Use typedef avr_mcu_t instead.
5506 * config/avr/avr.c: Same.
5507 * config/avr/avr-devices.c: Same.
5508 * config/avr/driver-avr.c: Same.
5509 * config/avr/gen-avr-mmcu-texi.c: Same.
5510 * config/avr/avr-mcus.def: Adjust comment.
5511
a50344cb
TB
55122013-01-14 Tejas Belagod <tejas.belagod@arm.com>
5513
88e784e6
UB
5514 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
5515 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 5516
47876a2a 55172013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
5518 Andi Kleen <ak@linux.intel.com>
5519
5520 PR target/55948
5521 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
5522 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
5523 memmodel flag.
5524
00892272
GJL
55252013-01-14 Georg-Johann Lay <avr@gjlay.de>
5526
5527 * config/avr/avr-stdint.h: Remove trailing blanks.
5528 * config/avr/avr-log.h: Same.
5529 * config/avr/avr-arch.h: Same.
5530 * config/avr/avr-devices.c: Same.
5531 * config/avr/avr-dimode.md: Same.
5532 * config/avr/predicates.md: Same.
5533 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 5534
00892272
GJL
5535 * config/avr/avr-protos.h: Same. And:
5536 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
5537 (init_cumulative_args): Rename to avr_init_cumulative_args.
5538 (expand_prologue): Rename to avr_expand_prologue.
5539 (expand_epilogue): Rename to avr_expand_epilogue.
5540 (adjust_insn_length): Rename to avr_adjust_insn_length.
5541 (notice_update_cc): Rename to avr_notice_update_cc.
5542 (final_prescan_insn): Rename to avr_final_prescan_insn.
5543 * config/avr/avr.c: Same.
5544 * config/avr/avr.h: Same.
5545 * config/avr/avr.md: Remove trailing blanks.
5546 (prologue): Use avr_expand_prologue.
5547 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
5548
7bb01996
RB
55492013-01-14 Richard Biener <rguenther@suse.de>
5550
5551 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
5552 verify_location, collect_subblocks): New functions.
5553 (verify_gimple_in_cfg): Verify that locations only reference
5554 BLOCKs in the functions BLOCK tree.
5555
2724573f
RB
55562013-01-14 Richard Biener <rguenther@suse.de>
5557
5558 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
5559 PHI argument.
5560 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
5561 unshare reference.
5562 (insert_out_of_ssa_copy_on_edge): Likewise.
5563 (rewrite_close_phi_out_of_ssa): Likewise.
5564 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
5565 debug expressions.
5566 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
5567 propagated constants.
5568 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
5569 can not be shared.
5570
9a0bbab6
GJL
55712013-01-14 Georg-Johann Lay <avr@gjlay.de>
5572
5573 * config/avr/avr-modes.def: Add GPL copyright notice.
5574
45805f17
UB
55752013-01-13 Uros Bizjak <ubizjak@gmail.com>
5576
5577 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
5578 MEMMODEL_MASK to determine memory model.
5579 (atomic_store<mode>): Ditto from operands[2].
5580 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
5581
9d60be38
JJ
55822013-01-13 Jakub Jelinek <jakub@redhat.com>
5583
5584 PR fortran/55935
45805f17 5585 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
5586 (fold_gimple_assign): Don't call unshare_expr here.
5587 (fold_ctor_reference): Call unshare_expr.
5588
e7f49d92
TG
55892013-01-13 Terry Guo <terry.guo@arm.com>
5590
aaf1e810
EB
5591 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
5592 * doc/fragments.texi: Document MULTILIB_REUSE.
5593 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 5594 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 5595 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
5596 (tmpmultilib4): Ditto.
5597 (multilib_reuse): New multilib argument.
5598
fbd03a27
RS
55992013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
5600
5601 * Makefile.in: Update copyright.
5602
b3681f13
TV
56032013-01-12 Tom de Vries <tom@codesourcery.com>
5604
5605 PR middle-end/55890
5606 * calls.c (expand_call): Check if arg_nr is valid.
5607
3f287e4b
MM
56082013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5609
5610 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
5611 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
5612 documentation. Add missing '__' in front of
5613 __builtin_ia32_packssdw256.
3f287e4b 5614
1abcd5eb
AK
56152013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5616
5617 PR target/55719
5618 * config/s390/s390.c (s390_preferred_reload_class): Do not return
5619 NO_REGS for larl operands.
5620 (s390_reload_larl_operand): Use s390_load_address instead of
5621 emit_move_insn.
5622
980d0812
RB
56232013-01-11 Richard Biener <rguenther@suse.de>
5624
5625 * tree-cfg.c (verify_node_sharing_1): Split out from ...
5626 (verify_node_sharing): ... here.
5627 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
5628
7cb9fd07
EB
56292013-01-11 Eric Botcazou <ebotcazou@adacore.com>
5630
5631 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
5632 Substitute TREECHECKING.
5633 * configure: Regenerate.
5634 * Makefile.in (TREECHECKING): New.
5635
47876a2a 56362013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
5637
5638 PR tree-optimization/44061
5639 * tree-vrp.c (extract_range_basic): Compute zero as
5640 value-range for __builtin_constant_p of function parameters.
5641
d1e082c2
RS
56422013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
5643
45805f17 5644 Update copyright years.
d1e082c2 5645
f85021b0
VM
56462013-01-10 Vladimir Makarov <vmakarov@redhat.com>
5647
9d60be38 5648 PR rtl-optimization/55672
0160442c
VM
5649 * lra-eliminations.c (mark_not_eliminable): Permit addition with
5650 const to be eliminable.
f85021b0 5651
7a8b1ec4
DE
56522013-01-10 David Edelsohn <dje.gcc@gmail.com>
5653
5654 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
5655 * configure: Regenerate.
5656
ad2e5b71
RB
56572013-01-10 Richard Biener <rguenther@suse.de>
5658
ddf9322d 5659 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 5660
ffc5b2bb
RB
56612013-01-10 Richard Biener <rguenther@suse.de>
5662
5663 PR bootstrap/55792
5664 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
5665 locations for virtual PHI arguments.
5666 (rewrite_update_phi_arguments): Likewise.
5667
e1f674e4
JS
56682013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
5669
5670 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
5671 on to assembler.
5672
a57fc743
JJ
56732013-01-10 Jakub Jelinek <jakub@redhat.com>
5674
5675 PR tree-optimization/55921
5676 * tree-complex.c (expand_complex_asm): New function.
5677 (expand_complex_operations_1): Call it for GIMPLE_ASM.
5678
0ff4390d
AK
56792013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5680
5681 PR target/55718
5682 * config/s390/s390.c (s390_symref_operand_p)
5683 (s390_loadrelative_operand_p): Merge the two functions.
5684 (s390_check_qrst_address, print_operand_address): Add parameters
5685 to s390_loadrelative_operand_p invokation.
5686 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
5687 (s390_reload_larl_operand, s390_secondary_reload): Use
5688 s390_loadrelative_operand_p instead of s390_symref_operand_p.
5689 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
5690
6f557e0e
MS
56912013-01-09 Mike Stump <mikestump@comcast.net>
5692
5693 * dse.c (record_store): Remove unnecessary assert.
5694
7770c9e9
JH
56952013-01-09 Jan Hubicka <jh@suse.cz>
5696
5697 PR tree-optimization/55569
5698 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
5699 * cfgloop.h (scale_loop_profile): Likewise.
5700
a19b1432
JH
57012013-01-09 Jan Hubicka <jh@suse.cz>
5702
5703 PR lto/45375
ddf9322d
UB
5704 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
5705 functions.
a19b1432
JH
5706 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
5707
9a002da8
RS
57082013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
5709
5710 PR middle-end/55114
5711 * expr.h (maybe_emit_group_store): Declare.
5712 * expr.c (maybe_emit_group_store): New function.
5713 * builtins.c (expand_builtin_int_roundingfn): Call it.
5714 (expand_builtin_int_roundingfn_2): Likewise.
5715
511dcace
VM
57162013-01-09 Vladimir Makarov <vmakarov@redhat.com>
5717
e1f2b729 5718 PR rtl-optimization/55829
511dcace
VM
5719 * lra-constraints.c (match_reload): Add code for absent output.
5720 (curr_insn_transform): Add code for reloads of matched inputs
5721 without output.
5722
7b0fe4f4
UB
57232013-01-09 Uros Bizjak <ubizjak@gmail.com>
5724
5725 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
5726 attribute of movddup insn to DF.
5727 (*vec_interleave_lowv2df): Ditto.
5728 (vec_dupv2df): Ditto.
5729
870ca331
JH
57302013-01-09 Jan Hubicka <jh@suse.cz>
5731
5732 PR tree-optimiation/55875
5733 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
5734 EVERY_ITERATION parameter.
7b0fe4f4 5735 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
5736 (idx_infer_loop_bounds): Similarly here.
5737 (n_of_executions_at_most): Simplify
5738 to only test for cases where statement is dominated by the
7b0fe4f4 5739 particular bound; handle correctly the "postdominance" test.
870ca331
JH
5740 (scev_probably_wraps_p): Use max loop iterations info
5741 as a global bound first.
5742
6f575fe4 57432013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
5744 Nick Clifton <nickc@redhat.com>
5745
5746 * config/v850/v850.md (cbranchsf4): New pattern.
5747 (cstoresf4): New pattern.
5748 (cbranchdf4): New pattern.
5749 (cstoredf4): New pattern.
5750 (movsicc): Disallow floating point comparisons.
5751 (cmpsf_le_insn): Fix order of operators.
5752 (cmpsf_lt_insn): Likewise.
5753 (cmpsf_eq_insn): Likewise.
5754 (cmpdf_le_insn): Likewise.
5755 (cmpdf_lt_insn): Likewise.
5756 (cmpdf_eq_insn): Likewise.
5757 (cmpsf_ge_insn): Use LE comparison.
5758 (cmpdf_ge_insn): Likewise.
5759 (cmpsf_gt_insn): Use LT comparison.
5760 (cmpdf_gt_insn): Likewise.
5761 (cmpsf_ne_insn): Delete pattern.
5762 (cmpdf_ne_insn): Delete pattern.
5763 * config/v850/v850.c (v850_gen_float_compare): Use
5764 gen_cmpdf_eq_insn for NE comparison.
5765 (v850_float_z_comparison_operator)
5766 (v850_float_nz_comparison_operator): Move from here ...
5767 * config/v850/predicates.md: ... to here. Move GT and GE
5768 comparisons into v850_float_z_comparison_operator.
5769 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
5770 Delete prototype.
5771 (v850_float_nz_comparison_operator): Likewise.
5772
f0d54148
JDA
57732013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5774
5775 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
5776 with calls to gen_insvsi/gen_insvdi.
5777
8f01beca
VK
57782013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5779
5780 * config/i386/i386.c (initial_ix86_tune_features): Set up
5781 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
5782
2aa579ad
JJ
57832013-01-09 Steven Bosscher <steven@gcc.gnu.org>
5784 Jakub Jelinek <jakub@redhat.com>
5785
5786 PR tree-optimization/48189
5787 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
5788 If nitercst is 0, don't predict the exit edge.
5789
6edc3e32 57902013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
5791
5792 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
5793 in asm_fprintf with reg_names.
5794 (aarch64_print_operand_address): Likewise.
5795 (aarch64_return_addr): Likewise.
5796 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
5797
f6f94d94
JDA
57982013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5799
5800 * config/pa/pa.h (VAL_U6_BITS_P): Define.
5801 (INT_U6_BITS): Likewise.
5802 * config/pa/predicates.md (uint6_operand): New predicate.
5803 (shift5_operand, shift6_operand): Likewise.
5804 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
5805 arith32_operand.
5806 (lshrdi3): Use shift6_operand.
5807 (shrpsi4, shrpdi4): New insn patterns.
5808 (extzv): Delete expander.
5809 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
5810 predicates in unamed zero extract patterns. Tighten common constraint.
5811 (extv): Delete expander.
5812 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
5813 predicates in unamed sign extract patterns. Tighten common constraint.
5814 (insv): Delete expander.
5815 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
5816 predicates in unamed insert patterns. Tighten common constraint.
5817 Change uint32_operand predicate to uint6_operand predicate in unamed
5818 DImode pattern to insert constant values of type 1...1xxxx.
5819
36b72910
JH
58202013-01-04 Jan Hubicka <jh@suse.cz>
5821
5822 PR tree-optimization/55823
7b0fe4f4
UB
5823 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
5824 issue.
36b72910 5825
47876a2a 58262013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
5827 Uros Bizjak <ubizjak@gmail.com>
5828
5829 PR rtl-optimization/55845
5830 * df-problems.c (can_move_insns_across): Stop scanning at
5831 volatile_insn_p source instruction or give up if
5832 across_from .. across_to range contains any volatile_insn_p
5833 instructions.
5834
4369c11e
TB
58352013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5836
7b0fe4f4
UB
5837 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5838 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5839 Declare.
4369c11e 5840 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 5841 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 5842
aeb7e7c1
JJ
58432013-01-08 Jakub Jelinek <jakub@redhat.com>
5844
5845 PR fortran/55341
5846 * asan.c (asan_clear_shadow): New function.
5847 (asan_emit_stack_protection): Use it.
5848
a02ad1aa
TB
58492013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5850
5851 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5852 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5853 with tab instead of space.
5854
f90d87f5
NC
58552013-01-08 Nick Clifton <nickc@redhat.com>
5856
5857 * config/rl78/rl78.c (rl78_expand_prologue): Always select
5858 register bank 0 at the start of an interrupt handler.
83ffd964
NC
5859 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5860 MDBH registers.
f90d87f5 5861
385eb93d
JG
58622013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5863
5864 * config/aarch64/aarch64-simd.md
5865 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5866 (aarch64_simd_bsl): Likewise.
5867 (aarch64_vcond_internal<mode>): Likewise.
5868 (vcond<mode><mode>): Likewise.
5869 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5870 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5871
4dcd1054
JG
58722013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5873
5874 * config/aarch64/aarch64-builtins.c
5875 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5876
4267a4a6
MJ
58772013-01-08 Martin Jambor <mjambor@suse.cz>
5878
5879 PR debug/55579
5880 * tree-sra.c (analyze_access_subtree): Return true also after
5881 potentially creating a debug-only replacement.
5882
5f4e6de3
JJ
58832013-01-08 Jakub Jelinek <jakub@redhat.com>
5884
3138f224
JJ
5885 PR middle-end/55890
5886 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5887
5f4e6de3
JJ
5888 PR tree-optimization/54120
5889 * tree-vrp.c (range_fits_type_p): Don't allow
5890 src_precision < precision from signed vr to unsigned_p
5891 if vr->min or vr->max is negative.
5892 (simplify_float_conversion_using_ranges): Test can_float_p
5893 against CODE_FOR_nothing.
5894
f3ef18ff
JJ
58952013-01-08 Jakub Jelinek <jakub@redhat.com>
5896 Richard Biener <rguenther@suse.de>
5897
5898 PR middle-end/55851
5899 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5900 types instead of just INTEGER_TYPE types.
5901
25c210f9
MK
59022013-01-07 Mark Kettenis <kettenis@openbsd.org>
5903
5904 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5905 TF_SIZE): Define.
f90d87f5 5906
81826a7b
SE
59072013-01-07 Steve Ellcey <sellcey@mips.com>
5908
5909 PR target/42661
5910 * config/mips/mips.opt: Change mad to mmad to match documentation.
5911
35678514
GJL
59122013-01-07 Georg-Johann Lay <avr@gjlay.de>
5913
5914 PR target/55897
5915 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5916 .progmemx.data now.
5917
e5669488
GJL
59182013-01-07 Georg-Johann Lay <avr@gjlay.de>
5919
5920 PR target/55897
5921 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5922 (avr_addrspace_t): Add .section_name field.
5923 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5924 array size.
5925 (avr_addrspace): Same. Initialize .section_name. Remove last
5926 NULL entry. Put __memx into .progmemx.data.
5927 (progmem_section_prefix): Remove.
5928 (avr_asm_init_sections): No need to initialize progmem_section.
5929 (avr_asm_named_section): Use avr_addrspace[].section_name to get
5930 section name prefix.
5931 (avr_asm_select_section): Ditto. And use get_unnamed_section to
5932 retrieve the progmem section.
5933 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5934 boundary to run over avr_addrspace[].
5935 (avr_register_target_pragmas): Ditto.
5936
656e6f37
JJ
59372013-01-06 Jakub Jelinek <jakub@redhat.com>
5938
5939 * varasm.c (output_constant_def_contents): For asan_protect_global
5940 protected strings, adjust DECL_ALIGN if needed, before testing for
5941 anchored symbols.
5942 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5943 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
5944 normal decls.
5945 (output_object_block): For asan protected decls, emit asan padding
5946 after their contents.
5947 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5948 (asan_finish_file): Test it here instead.
5949
6edc3e32
UB
59502013-01-07 Nick Clifton <nickc@redhat.com>
5951 Matthias Klose <doko@debian.org>
5952 Doug Kwan <dougkwan@google.com>
5953 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
5954
5955 PR driver/55470
5956 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5957
5958 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5959
5960 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5961
7b0fe4f4 5962 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
5963
5964 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5965
2a095093
GJL
59662013-01-07 Georg-Johann Lay <avr@gjlay.de>
5967
f3b503f4 5968 PR target/54461
2a095093
GJL
5969 * doc/install.texi (Cross-Compiler-Specific Options): Document
5970 --with-avrlibc.
5971
383f9b34
TB
59722013-01-07 Tejas Belagod <tejas.belagod@arm.com>
5973
5974 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5975 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5976 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5977 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5978 vqmovun_high_s64): Fix source operand number and update copyright.
5979
3626621a
RB
59802013-01-07 Richard Biener <rguenther@suse.de>
5981
5982 PR middle-end/55890
5983 * gimple.h (gimple_call_builtin_p): New overload.
5984 * gimple.c (validate_call): New function.
5985 (gimple_call_builtin_p): Likewise.
5986 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5987 Use gimple_call_builtin_p.
5988 (find_func_clobbers): Likewise.
5989 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5990 (strlen_optimize_stmt): Likewise.
5991
8b2ea410
JG
59922013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5993
5994 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5995 (vld1q_dup_*): Likewise.
5996 (vld1_*): Likewise.
5997 (vld1q_*): Likewise.
5998 (vld1_lane_*): Likewise.
5999 (vld1q_lane_*): Likewise.
6000
9713d329
RB
60012013-01-07 Richard Biener <rguenther@suse.de>
6002
6003 * lto-streamer.h (LTO_minor_version): Bump to 2.
6004
3520f7cc
JG
60052013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
6006
6007 * config/aarch64/aarch64-protos.h
6008 (aarch64_const_double_zero_rtx_p): Rename to...
6009 (aarch64_float_const_zero_rtx_p): ...this.
6010 (aarch64_float_const_representable_p): New.
6011 (aarch64_output_simd_mov_immediate): Likewise.
6012 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
6013 move immediate case.
6014 * config/aarch64/aarch64.c
6015 (aarch64_const_double_zero_rtx_p): Rename to...
6016 (aarch64_float_const_zero_rtx_p): ...this.
6017 (aarch64_print_operand): Allow printing of new constants.
6018 (aarch64_valid_floating_const): New.
6019 (aarch64_legitimate_constant_p): Check for valid floating-point
6020 constants.
6021 (aarch64_simd_valid_immediate): Likewise.
6022 (aarch64_vect_float_const_representable_p): New.
6023 (aarch64_float_const_representable_p): Likewise.
6024 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
6025 (aarch64_output_simd_mov_immediate): New.
6026 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
6027 (*movdf_aarch64): Likewise.
6028 * config/aarch64/constraints.md (Ufc): New.
6029 (Y): call aarch64_float_const_zero_rtx.
6030 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
6031
e167c04d
RB
60322013-01-07 Richard Biener <rguenther@suse.de>
6033
6034 PR tree-optimization/55888
6035 PR tree-optimization/55862
6036 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
6037 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
6038 not if it is contained therein.
6039
0139aaab
GJL
60402013-01-07 Georg-Johann Lay <avr@gjlay.de>
6041
6042 * config/avr/t-avr: Typo.
6043
4a176b23
GJL
60442013-01-07 Georg-Johann Lay <avr@gjlay.de>
6045
6046 PR55243
6047 * config/avr/t-avr: Don't automatically rebuild
6048 $(srcdir)/config/avr/t-multilib
6049 $(srcdir)/config/avr/avr-tables.opt
6050 $(srcdir)/doc/avr-mmcu.texi
6051 (avr-mcus): New phony target to build them on request.
6052 (s-avr-mlib, s-avr-mmcu-texi): Remove.
6053 * avr/avr-mcus.def: Adjust comments.
6054
c7afdc98
UB
60552013-01-07 Uros Bizjak <ubizjak@gmail.com>
6056
6057 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
6058
1ab05c31
RS
60592013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
6060
6061 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
6062
488e3acc
RS
60632013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
6064
6065 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
6066
a89599d2
DE
60672013-01-05 David Edelsohn <dje.gcc@gmail.com>
6068
6069 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
6070 to generate profiling.
6071 * config/rs6000/aix64.h (LIB_SPEC): Same.
6072
70f09188
AP
60732013-01-04 Andrew Pinski <apinski@cavium.com>
6074
6075 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
6076 New function.
6077 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6078
918d445f
UB
60792013-01-04 Uros Bizjak <ubizjak@gmail.com>
6080
6081 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
6082 unconditionally.
6083 (ix86_expand_move): Ditto.
6084 (ix86_zero_extend_to_Pmode): Ditto.
6085 (ix86_expand_call): Ditto.
6086 (ix86_expand_special_args_builtin): Ditto.
6087 (ix86_expand_builtin): Ditto.
6088
361618ec
RB
60892013-01-04 Richard Biener <rguenther@suse.de>
6090
6091 PR tree-optimization/55862
6092 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
6093 translating them through PHI nodes.
6094
87eab554
MJ
60952013-01-04 Martin Jambor <mjambor@suse.cz>
6096
6097 PR tree-optimization/55755
6098 * tree-sra.c (sra_modify_assign): Do not check that an access has no
6099 children when trying to avoid producing a VIEW_CONVERT_EXPR.
6100
33879b9f
MP
61012013-01-04 Marek Polacek <polacek@redhat.com>
6102
6103 PR middle-end/55859
6104 * opts.c (default_options_optimization): Clarify error message.
6105
3068819a
RB
61062013-01-04 Richard Biener <rguenther@suse.de>
6107
6108 PR middle-end/55863
6109 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
6110 reassociation.
6111
0e4ae794
JDA
61122013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6113
6114 PR target/53789
6115 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
6116 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
6117 references.
0e4ae794 6118
65c88cef
RH
61192013-01-03 Richard Henderson <rth@redhat.com>
6120
6121 * config/i386/i386.c (ix86_expand_move): Always assign to op1
6122 after eliminating TLS symbols.
6123
8ac16127
MG
61242013-01-03 Marc Glisse <marc.glisse@inria.fr>
6125
6126 PR bootstrap/50167
6127 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
6128 * graphite-poly.c (debug_gmp_value): Likewise.
6129
bb664f09
UB
61302013-01-03 Uros Bizjak <ubizjak@gmail.com>
6131
6132 PR target/55712
6133 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
6134 selected code model, define __code_mode_small__, __code_model_medium__,
6135 __code_model_large__, __code_model_32__ or __code_model_kernel__.
6136 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
6137 xchg temporary register with %k. Declare temporary register as
6138 early clobbered.
6139 [__x86_64__]: For medium and large code models, preserve %rbx register.
6140
bcf1ef00
RB
61412013-01-03 Richard Biener <rguenther@suse.de>
6142
0506634a 6143 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
6144 (dump_subscript): Adjust.
6145 (finalize_ddr_dependent): Do not dump redundant info.
6146 (analyze_siv_subscript): Adjust.
6147 (subscript_dependence_tester): Likewise.
6148 (compute_affine_dependence): Likewise.
6149
59fd17e3
RB
61502013-01-03 Richard Biener <rguenther@suse.de>
6151
6152 Revert
6153 2013-01-03 Richard Biener <rguenther@suse.de>
6154
6155 PR tree-optimization/55857
6156 * tree-vect-stmts.c (vectorizable_load): Do not setup
6157 re-alignment for invariant loads.
6158
6159 2013-01-02 Richard Biener <rguenther@suse.de>
6160
6161 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 6162 invariant load do not generate a vector load from the scalar location.
59fd17e3 6163
595c2679
RB
61642013-01-03 Richard Biener <rguenther@suse.de>
6165
6166 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
6167 for not vectorizing.
6168 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6169 not build INDIRECT_REFs, call get_name once only.
6170 (vect_create_data_ref_ptr): Likewise. Dump base object kind
6171 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
6172
90bb7d7a
RB
61732013-01-03 Richard Biener <rguenther@suse.de>
6174
6175 PR tree-optimization/55857
6176 * tree-vect-stmts.c (vectorizable_load): Do not setup
6177 re-alignment for invariant loads.
6178
f09b77ca
RB
61792013-01-03 Richard Biener <rguenther@suse.de>
6180
6181 PR lto/55848
6182 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
6183 prefer a built-in decl.
6184
3461a16e
JJ
61852013-01-03 Jakub Jelinek <jakub@redhat.com>
6186
df8e2b4f
JJ
6187 * gcc.c (process_command): Update copyright notice dates.
6188 * gcov.c (print_version): Likewise.
6189 * gcov-dump.c (print_version): Likewise.
6190
3461a16e
JJ
6191 PR rtl-optimization/55838
6192 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
6193 iv0.step, iv1.step and step.
6194
8b5546d6
JJ
61952013-01-03 Jakub Jelinek <jakub@redhat.com>
6196 Marc Glisse <marc.glisse@inria.fr>
6197
6198 PR tree-optimization/55832
6199 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
6200 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
6201 integer_{one,zero}_node.
6202
8ab1d2e9
JJ
62032013-01-03 Jakub Jelinek <jakub@redhat.com>
6204
6205 PR debug/54402
6206 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
6207 * var-tracking.c (reverse_op): Don't add reverse ops to
6208 VALUEs that have already
0506634a 6209 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 6210
5b9ad1d4
GP
62112013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
6212
6213 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
6214
e25a6711
TJ
62152013-01-02 Teresa Johnson <tejohnson@google.com>
6216
6217 * dumpfile.c (dump_loc): Print filename with location.
6218 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
6219 new location_t parameter to emit complete unroll message with
6220 new dump framework.
6221 (canonicalize_loop_induction_variables): Compute loops location
6222 and pass to try_unroll_loop_completely.
6223 * loop-unroll.c (report_unroll_peel): New function.
6224 (peel_loops_completely): Use new dump format with location
6225 for main dumpfile message, and invoke report_unroll_peel on success.
6226 (decide_unrolling_and_peeling): Ditto.
6227 (decide_peel_once_rolling): Remove old dumpfile message subsumed
6228 by report_unroll_peel.
6229 (decide_peel_completely): Ditto.
6230 (decide_unroll_constant_iterations): Ditto.
6231 (decide_unroll_runtime_iterations): Ditto.
6232 (decide_peel_simple): Ditto.
6233 (decide_unroll_stupid): Ditto.
6234 * cfgloop.c (get_loop_location): New function.
6235 * cfgloop.h (get_loop_location): Declare.
6236
77878621
ST
62372013-01-02 Sriraman Tallam <tmsriram@google.com>
6238
6239 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
6240 NULL.
6241
9e65d03e
JDA
62422013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6243
6244 PR middle-end/55198
6245 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
6246 BLKmode objects when EXPAND_MEMORY is specified.
6247
6a7da30f
ST
62482013-01-02 Sriraman Tallam <tmsriram@google.com>
6249
6250 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
6251 in loop predicate.
6252 (fold_builtin_cpu): Do not share cpu model decls across statements.
6253
e78167f2
JM
62542013-01-02 Jason Merrill <jason@redhat.com>
6255
6256 PR c++/55804
6257 * tree.c (build_array_type_1): Revert earlier change.
6258
8c075fb4
YZ
62592013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
6260
6261 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
6262 "cortex-a57".
6263 * config/aarch64/aarch64-tune.md: Re-generate.
6264
0682ed3e
RB
62652013-01-02 Richard Biener <rguenther@suse.de>
6266
6267 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 6268 invariant load do not generate a vector load from the scalar location.
0682ed3e 6269
b8f6a302
RB
62702013-01-02 Richard Biener <rguenther@suse.de>
6271
6272 PR bootstrap/55784
6273 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
6274 * configure: Regenerate.
6275
04b80dbb
RS
62762013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6277
6278 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
6279 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
6280 (expand_builtin_int_roundingfn_2): Keep the original target around
6281 for the fallback case.
6282
635b0b0c
RS
62832013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6284
6285 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
6286 to be clear for sign changes.
6287
42d57399
JH
62882013-01-01 Jan Hubicka <jh@suse.cz>
6289
6290 * ipa-inline-analysis.c: Fix formatting.
6291
5bb6669d
JJ
62922013-01-01 Jakub Jelinek <jakub@redhat.com>
6293
6294 PR tree-optimization/55831
6295 * tree-vect-loop.c (get_initial_def_for_induction): Use
6296 gsi_after_labels instead of gsi_start_bb.
ad41bd84 6297\f
86a2db33 6298Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
6299
6300Copying and distribution of this file, with or without modification,
6301are permitted in any medium without royalty provided the copyright
6302notice and this notice are preserved.