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