arm: Implement vec_perm and vec_perm_const for NEON.
[gcc.git] / gcc / ChangeLog
1 2012-01-10 Richard Henderson <rth@redhat.com>
2
3 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
4 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
5 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
6 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
7 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
8 arm_expand_vec_perm_const): New.
9 * config/arm/arm-protos.h: Update.
10 * config/arm/neon.md (UNSPEC_VCONCAT): New.
11 (*neon_vswp<VDQX>): New.
12 (neon_vcombine<VDX>): Use neon_split_vcombine.
13 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
14 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
15 (vec_perm<VE>): New.
16
17 2012-01-10 Richard Henderson <rth@redhat.com>
18
19 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
20 use it if reload_completed.
21 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
22 arm_output_asm_insn, arm_process_output_memory_barrier,
23 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
24 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
25 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
26 arm_process_output_sync_insn, arm_output_sync_insn,
27 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
28 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
29 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
30 (emit_unlikely_jump): New.
31 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
32 (arm_split_atomic_op): New.
33 * config/arm/arm-protos.h: Update.
34 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
35 (struct arm_sync_generator): Remove.
36 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
37 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
38 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
39 (VUNSPEC_LL, VUNSPEC_SC): New.
40 (sync_result, sync_memory, sync_required_value, sync_new_value,
41 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
42 (attr length): Don't use arm_sync_loop_insns.
43 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
44 (movsfcc, movdfcc): Likewise.
45 * config/arm/constraints.md (Ua): New.
46 * config/arm/prediates.md (mem_noofs_operand): New.
47 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
48 (sync_clobber, sync_t2_reqd): Remove.
49 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
50 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
51 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
52 (arm_sync_compare_and_swap<SIDI>): Remove.
53 (arm_sync_compare_and_swap<NARROW>): Remove.
54 (arm_sync_lock_test_and_set<SIDI>): Remove.
55 (arm_sync_lock_test_and_set<NARROW>): Remove.
56 (arm_sync_new_<syncop><SIDI>): Remove.
57 (arm_sync_new_<syncop><NARROW>): Remove.
58 (arm_sync_new_nand<SIDI>): Remove.
59 (arm_sync_new_nand<NARROW>): Remove.
60 (arm_sync_old_<syncop><SIDI>): Remove.
61 (arm_sync_old_<syncop><NARROW>): Remove.
62 (arm_sync_old_nand<SIDI>): Remove.
63 (arm_sync_old_nand<NARROW>): Remove.
64 (*memory_barrier): Merge arm_output_memory_barrier.
65 (atomic_compare_and_swap<QHSD>): New.
66 (atomic_compare_and_swap<NARROW>_1): New.
67 (atomic_compare_and_swap<SIDI>_1): New.
68 (atomic_exchange<QHSD>): New.
69 (cas_cmp_operand, cas_cmp_str): New.
70 (atomic_op_operand, atomic_op_str): New.
71 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
72 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
73 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
74 (arm_load_exclusive<NARROW>): New.
75 (arm_load_exclusivesi, arm_load_exclusivedi): New.
76 (arm_store_exclusive<QHSD>): New.
77
78 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
79
80 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
81 reload patterns if -mvsx-scalar-memory.
82
83 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
84 generated, even -mno-vsx-scalar-double was used.
85 (vsx_xscvdpsp_scalar): Likewise.
86 (vsx_xscvspdp_scalar2): Likewise.
87
88 2012-01-09 Tom de Vries <tom@codesourcery.com>
89 Andrew Pinski <apinski@cavium.com>
90
91 * reorg.c (fill_slots_from_thread): Don't speculate frame-related insns.
92
93 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
94
95 * sched-int.h (bb_note): Move to...
96 * basic-block.h: ...here.
97 * haifa-sched.c (bb_note): Move to...
98 * cfgrtl.c: ...here.
99 * function.c (next_block_for_reg): New function.
100 (move_insn_for_shrink_wrap): Likewise.
101 (prepare_shrink_wrap): Rewrite to use the above.
102
103 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
104
105 * gimple.c (is_gimple_non_addressable): Remove.
106 * gimple.h: Remove is_gimple_non_addressable.
107 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
108 is_gimple_non_addressable.
109 * trans-mem.c (expand_assign_tm): Same.
110
111 2012-01-09 Richard Guenther <rguenther@suse.de>
112
113 PR tree-optimization/51775
114 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
115 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
116
117 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
118
119 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
120 tuning parameters.
121 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
122
123 2012-01-09 Richard Guenther <rguenther@suse.de>
124
125 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
126
127 2012-01-08 Jan Hubicka <jh@suse.cz>
128
129 PR tree-optimize/51680
130 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
131 on when known_vals needs to be computed; cleanup.
132
133 2012-01-08 Jan Hubicka <jh@suse.cz>
134
135 PR tree-optimize/51694
136 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
137
138 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
139
140 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
141 for -std=c++98 and -std=c++11 too.
142
143 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
144
145 * cfgloop.c (cancel_loop): Add free() of bbs array.
146
147 2012-01-07 Jan Hubicka <jh@suse.cz>
148
149 PR tree-optimization/51600
150 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
151 that benefits small functions.
152
153 2012-01-07 Jan Hubicka <jh@suse.cz>
154
155 * ipa-inline.c (want_inline_small_function_p): Fix formating.
156
157 2012-01-07 Jan Hubicka <jh@suse.cz>
158
159 PR tree-optimization/51680
160 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
161 whose inlining reduce unit size.
162
163 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
164
165 PR bootstrap/51725
166 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
167 Add canonical node to containing_mem chain after the non-canonical
168 one, even if there weren't any locs to propagate.
169 (remove_useless_values): Keep only canonical values.
170 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
171 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
172 canonicalize mem_chain elements that are not discarded.
173
174 2012-01-06 Jakub Jelinek <jakub@redhat.com>
175
176 PR target/47333
177 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
178 before emitting functions.
179
180 PR gcov-profile/50127
181 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
182 clear_aux_for_blocks.
183
184 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
185
186 PR debug/51746
187 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
188
189 2012-01-06 Arnaud Charlet <charlet@adacore.com>
190
191 * c-decl.c (ext_block): Moved up.
192 (collect_all_refs, for_each_global_decl): Take ext_block into account.
193
194 2012-01-06 Han Shen <shenhan@google.com>
195
196 Translate built-in include paths for sysroot.
197 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
198 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
199
200 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
201 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
202
203 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
204 control whether sysroot should be prepended to gxx include dir.
205
206 * configure: Regenerate.
207
208 2012-01-06 Torvald Riegel <triegel@redhat.com>
209
210 PR rtl-optimization/51771
211 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST):
212 New.
213 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
214
215 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
216
217 PR tree-optimization/51315
218 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
219 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
220
221 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
222
223 PR target/51681
224 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
225 for shrp pattern. Correctly handle and fixup shift variable.
226 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
227
228 2012-01-05 Jakub Jelinek <jakub@redhat.com>
229
230 PR debug/51762
231 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
232 note when !ACCUMULATE_OUTGOING_ARGS.
233
234 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
235
236 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
237 condition.
238 (extract_range_from_unary_expr_1): Avoid useless computations.
239
240 2012-01-05 Jakub Jelinek <jakub@redhat.com>
241
242 PR rtl-optimization/51767
243 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
244 of jump_block and add an extra edge for degenerated asm gotos.
245
246 PR middle-end/51768
247 * stmt.c (check_unique_operand_names): Don't ICE during error
248 reporting if i is from labels chain.
249
250 PR middle-end/44777
251 * profile.c (branch_prob): Split bbs that have exit edge
252 and need a fake entry edge too.
253
254 2012-01-05 Jan Hubicka <jh@suse.cz>
255
256 PR middle-end/49710
257 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
258 unlooping loops.
259
260 2012-01-05 Richard Guenther <rguenther@suse.de>
261
262 PR lto/50490
263 * tree-streamer-out.c (write_ts_optimization): New function.
264 (streamer_write_tree_body): Call it.
265 * tree-streamer-in.c (lto_input_ts_optimization): New function.
266 (streamer_read_tree_body): Call it.
267 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
268
269 2012-01-05 Jakub Jelinek <jakub@redhat.com>
270
271 PR middle-end/51761
272 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
273 * gimplify.c (gimplify_cleanup_point_expr): Save and set
274 in_cleanup_point_expr before gimplify_stmt call and restore it
275 afterwards.
276 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
277 in_cleanup_point_expr is false.
278
279 2012-01-05 Richard Guenther <rguenther@suse.de>
280
281 PR middle-end/51764
282 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
283 to c.opt.
284 * toplev.c (process_options): Reject combining mudflap and LTO.
285 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
286
287 2012-01-05 Richard Guenther <rguenther@suse.de>
288
289 PR tree-optimization/51760
290 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
291 not VARYING.
292 (bit_value_unop): Handle UNDEFINED operands.
293 (bit_value_binop): Likewise.
294
295 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
296
297 * config/avr/avr.c (avr_replace_prefix): Remove.
298 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
299 (avr_asm_function_rodata_section): Ditto.
300 (avr_asm_select_section): Ditto.
301
302 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
303
304 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
305 insertion.
306
307 2012-01-05 Jakub Jelinek <jakub@redhat.com>
308
309 PR bootstrap/51648
310 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
311 calls that have any non-fake successor edges.
312
313 PR debug/51746
314 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
315
316 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
317
318 PR tree-optimization/51624
319 * tree-sra.c (build_ref_for_model): When replicating a chain of
320 COMPONENT_REFs, stop as soon as the offset would become negative.
321
322 2012-01-04 Jakub Jelinek <jakub@redhat.com>
323
324 PR debug/51695
325 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
326 in .debug_loc on the floor.
327
328 2012-01-04 Andrew Pinski <apinski@cavium.com>
329
330 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
331
332 2012-01-04 Andrew Pinski <apinski@cavium.com>
333 Adam Nemet <anemet@caviumnetworks.com>
334
335 * config/mips/mips.md (size): Add SI and DI.
336 (SIZE): New mode attribute.
337 (U): New code attribute.
338 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
339 (mips_lbux_<mode>): Delete.
340 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
341 (mips_lhx): Use gen_mips_lhx_extsi.
342 (mips_lhx_<mode>): Delete.
343 (mips_lwx): Delete.
344 (mips_l<size>x): New expand.
345 (mips_lwx_<mode>): Delete.
346 (mips_l<GPR:size>x_<P:mode>): New pattern.
347 (*mips_lw<u>x_<P:mode>_ext): Likewise.
348 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
349 * config/mips/mips.c (mips_lx_address_p): New function.
350 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
351 (dsp64): New availability predicate.
352 (mips_builtins): Add an entry for __builtin_mips_ldx.
353 * config/mips/mips.h (ISA_HAS_LBX): New define.
354 (ISA_HAS_LBUX): Likewise.
355 (ISA_HAS_LHX): Likewise.
356 (ISA_HAS_LHUX): Likewise.
357 (ISA_HAS_LWX): Likewise.
358 (ISA_HAS_LWUX): Likewise.
359 (ISA_HAS_LDX): Likewise.
360 * doc/extend.texi (__builtin_mips_ldx): Document.
361
362 2012-01-04 Tristan Gingold <gingold@adacore.com>
363
364 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
365 when long pointers are used.
366 * config.build (*-*-*vms*): Handle all OpenVMS targets.
367 (alpha64-dec-*vms*, alpha*-dec-*vms*)
368 (ia64-hp-*vms*): Remove.
369 * config/vms/xm-vms64.h: Delete.
370
371 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
372
373 PR middle-end/51472
374 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
375
376 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
377
378 * opts.c (finish_options): Remove duplicate sorry.
379
380 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
381
382 PR middle-end/51696
383 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
384 correctly.
385
386 2012-01-04 Richard Guenther <rguenther@suse.de>
387
388 PR middle-end/51750
389 * tree.c (size_low_cst): New function.
390 * tree.h (size_low_cst): Declare.
391 * fold-const.c (fold_comparison): Use it to extract the low
392 part of the POINTER_PLUS_EXPR offset.
393
394 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
395
396 Fix clearing ZERO_REG
397 * config/avr/avr.md (cc): Add alternative "ldi".
398 (movqi_insn): Use it in cc attribute.
399 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
400 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
401 (output_reload_insisf): Use ZERO_REG to pre-clear register.
402
403 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
404
405 * configure: Regenerate.
406
407 2012-01-04 Richard Guenther <rguenther@suse.de>
408
409 PR tree-optimization/49651
410 * tree-ssa-structalias.c (type_can_have_subvars): New function.
411 (var_can_have_subvars): Use it.
412 (get_constraint_for_1): Only consider subfields if there can be any.
413
414 2012-01-03 Jakub Jelinek <jakub@redhat.com>
415
416 PR bootstrap/51725
417 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
418 to its new canonical_cselib_val and the cselib_val was in
419 first_containing_mem chain, but the canonical_cselib_val was not,
420 add the latter into the chain.
421 (cselib_invalidate_mem): Compare canonical_cselib_val of
422 addr_list chain elt with v.
423
424 PR pch/51722
425 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
426 dwarf2out_undef): Allocate e.info using ggc_strdup instead
427 of xstrdup.
428 (output_macinfo_op): Don't ggc_strdup fd->filename.
429 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
430 then ggc_strdup it. Don't free inc->info or cur->info.
431 (output_macinfo): Don't free ref->info or file->info.
432
433 2012-01-03 Ira Rosen <irar@il.ibm.com>
434
435 PR tree-optimization/51269
436 * tree-vect-loop-manip.c (set_prologue_iterations): Make
437 first_niters a pointer.
438 (slpeel_tree_peel_loop_to_edge): Likewise.
439 (vect_do_peeling_for_loop_bound): Update call to
440 slpeel_tree_peel_loop_to_edge.
441 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
442 here. Remove it from the parameters list.
443 (vect_do_peeling_for_alignment): Update calls and compute
444 wide_prolog_niters.
445
446 2012-01-03 Richard Guenther <rguenther@suse.de>
447
448 PR tree-optimization/51070
449 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
450 Properly handle calls.
451
452 2012-01-03 Richard Guenther <rguenther@suse.de>
453
454 PR tree-optimization/51692
455 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
456 the LHS of allocation stmts.
457
458 2012-01-03 Olivier Hainque <hainque@adacore.com>
459
460 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
461
462 2012-01-03 Olivier Hainque <hainque@adacore.com>
463
464 * collect2.c (main): In AIX specific computations for vector
465 insertions, use CONST_CAST2 to cast from char ** to const char **.
466
467 2012-01-03 Richard Guenther <rguenther@suse.de>
468
469 PR debug/51650
470 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
471 the context of a limbo DIE when it does not already exist.
472
473 2012-01-03 Jakub Jelinek <jakub@redhat.com>
474
475 PR tree-optimization/51719
476 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
477 but direct call is, clear direct call's lhs and don't add fallthrough
478 edge from dcall_bb to join_bb and PHIs.
479
480 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
481
482 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
483 the instructions emitted by the pattern.
484 ("*TDC_insn_<mode>"): Add comment.
485
486 2012-01-03 Richard Guenther <rguenther@suse.de>
487
488 PR middle-end/51730
489 * fold-const.c (fold_comparison): Properly canonicalize
490 tree offset and HOST_WIDE_INT bit position.
491
492 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
493
494 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
495 operands for extzv pattern.
496
497 2012-01-02 Jakub Jelinek <jakub@redhat.com>
498
499 PR bootstrap/51725
500 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
501 on mem_elt first.
502
503 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
504
505 * doc/invoke.texi (-flto and related options): Copy-edit.
506
507 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
508
509 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
510
511 2012-01-02 Jakub Jelinek <jakub@redhat.com>
512
513 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
514 New patterns.
515
516 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
517
518 * expr.h (move_by_pieces_ninsns): Declare.
519 * expr.c (move_by_pieces_ninsns): Make external.
520 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
521 (mips_store_by_pieces_p): Likewise.
522 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
523 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
524 * config/mips/mips.c (mips_move_by_pieces_p): New function.
525 (mips_store_by_pieces_p): Likewise.
526
527 2012-01-02 Jakub Jelinek <jakub@redhat.com>
528
529 * passes.c (register_one_dump_file): Free full_name.
530
531 * reload1.c (reload): Don't allocate reg_max_ref_width here.
532 (calculate_elim_costs_all_insns): Free offsets_at and
533 offsets_known_at at the end and clear the pointers.
534
535 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
536
537 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
538 this option introduced in r180739.
539
540 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
541
542 PR target/51345
543 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
544 (tmake_file target=avr): Add avr/t-multilib.
545
546 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
547 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
548 * config/avr/genmultilib.awk: New file.
549 * config/avr/t-multilib: New auto-generated file.
550 * config/avr/multilib.h: New auto-generated file.
551 * config/avr/t-avr (AVR_MCUS): New variable.
552 (genopt.sh): Use it.
553 (s-mlib): Depend on t-multilib.
554 (t-multilib, multilib.h): New dependencies.
555 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
556 (MULTILIB_OPTIONS): Remove.
557 (MULTILIB_MATCHES): Remove.
558 (MULTILIB_DIRNAMES): Remove.
559 (MULTILIB_EXCEPTIONS): Remove:
560 * config/avr/genopt.sh: Don't use hard coded file name;
561 pass AVR_MCUS from t-avr instead.
562
563 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
564
565 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
566
567 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
568
569 Implement light-weight DImode support.
570 * config/avr/avr-dimode.md: New file.
571 * config/avr/avr.md: Include it.
572 (adjust_len): Add plus64, compare64.
573 (HIDI): Remove code iterator.
574 (code_stdname): New code attribute.
575 (rotx, rotsmode): Remove DI.
576 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
577 as code iterator.
578 * config/avr/avr-protos.h (avr_have_dimode): New.
579 (avr_out_plus64, avr_out_compare64): New.
580 * config/avr/avr.c (avr_out_compare): Handle DImode.
581 (avr_have_dimode): New variable definition and initialization.
582 (avr_out_compare64, avr_out_plus64): New functions.
583 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
584 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
585 (avr_compare_pattern): Skip DImode comparisons.
586
587 2012-01-02 Revital Eres <revital.eres@linaro.org>
588
589 * ddg.c (def_has_ccmode_p): New function.
590 (add_cross_iteration_register_deps,
591 create_ddg_dep_from_intra_loop_link): Call it.
592
593 2012-01-02 Richard Guenther <rguenther@suse.de>
594
595 PR other/51679
596 * invoke.texi (fassociative-math): Remove spurious paranthesis.
597
598 2012-01-01 Jakub Jelinek <jakub@redhat.com>
599
600 * gcc.c (process_command): Update copyright notice dates.
601 * gcov.c (print_version): Likewise.
602 * gcov-dump.c (print_version): Likewise.
603 * mips-tfile.c (main): Likewise.
604 * mips-tdump.c (main): Likewise.
605
606 2012-01-01 Ira Rosen <irar@il.ibm.com>
607
608 PR tree-optimization/51704
609 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
610 a use is inside the basic block or loop before accessing its vect info.
611
612 2012-01-01 Jan Hubicka <jhjh@suse.cz>
613
614 PR rtl-optimization/51069
615 * cfgloopmanip.c (remove_path): Removing path making irreducible
616 region unconditional makes BB part of the region.
617
618 2012-01-01 Jakub Jelinek <jakub@redhat.com>
619
620 PR tree-optimization/51683
621 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
622 calls with side-effects.
623 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
624 \f
625 Copyright (C) 2012 Free Software Foundation, Inc.
626
627 Copying and distribution of this file, with or without modification,
628 are permitted in any medium without royalty provided the copyright
629 notice and this notice are preserved.