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