* config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2
3         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
5         *call): Fix indention.
6
7 2013-01-15  Tom de Vries  <tom@codesourcery.com>
8
9         PR target/55876
10         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11         Update comment.
12
13 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14
15         PR rtl-optimization/pr55153
16         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
17
18 2013-01-15  Martin Jambor  <mjambor@suse.cz>
19
20         PR tree-optimization/55920
21         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
22         accesses as grp_to_be_debug_replaced.
23
24 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
25
26         PR tree-optimization/55920
27         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
28         there is non-useless type conversion needed from debug rhs to lhs,
29         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
30
31 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
32             Mikael Pettersson  <mikpe@it.uu.se>
33
34         PR target/43961
35         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36         Thumb.
37         (ASM_OUTPUT_CASE_LABEL): Remove.
38         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
39         * final.c (shorten_branches): Update alignment of labels before
40         jump tables if CASE_VECTOR_SHORTEN_MODE.
41
42 2013-01-15  Richard Biener  <rguenther@suse.de>
43
44         PR bootstrap/55961
45         * system.h: Do not include gmp.h for building host tools.
46
47 2013-01-15  Richard Biener  <rguenther@suse.de>
48
49         PR middle-end/55882
50         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
51         account for bitpos when computing alignment.
52
53 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
54
55         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
56         (ix86_target_macros_internal): Likewise.
57
58         * config/i386/i386.c (m_CORE2I7): Removed.
59         (m_CORE_HASWELL): New macro.
60         (m_CORE_ALL): Likewise.
61         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
62         (initial_ix86_arch_features): Likewise.
63         (processor_target_table): Initializations for Core avx2.
64         (cpu_names): New names "core-avx2".
65         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
66         PROCESSOR_CORE_HASWELL.
67         (ix86_issue_rate): New case.
68         (ia32_multipass_dfa_lookahead): Likewise.
69         (ix86_sched_init_global): Likewise.
70
71         * config/i386/i386.h (TARGET_HASWELL): New macro.
72         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
73         (processor_type): New PROCESSOR_HASWELL.
74
75 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
76
77         PR tree-optimization/55955
78         * tree-vect-loop.c (vectorizable_reduction): Give up early on
79         *SHIFT_EXPR and *ROTATE_EXPR codes.
80
81         PR tree-optimization/48766
82         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
83         -ftrapv disable -fwrapv.
84
85 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
86
87         PR target/55974
88         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
89         etc. to 1 and not to __flash.
90         Use LL suffix for __INT24_MAX__ with -mint8.
91         Use ULL suffix for __UINT24_MAX__ with -mint8.
92
93 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
94
95         * config/avr/avr-arch.h
96         (struct base_arch_s): Use typedef avr_arch_t instead.
97         (struct arch_info_s): Use typedef avr_arch_info_t instead.
98         (struct mcu_type_s): Use typedef avr_mcu_t instead.
99         * config/avr/avr.c: Same.
100         * config/avr/avr-devices.c: Same.
101         * config/avr/driver-avr.c: Same.
102         * config/avr/gen-avr-mmcu-texi.c: Same.
103         * config/avr/avr-mcus.def: Adjust comment.
104
105 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
106
107         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New. 
108         * config/aarch64/iterators.md (VALLDI): New. 
109
110 2012-01-14  Uros Bizjak  <ubizjak@gmail.com>
111             Andi Kleen  <ak@linux.intel.com>
112
113         PR target/55948
114         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
115         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
116         memmodel flag.
117
118 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
119
120         * config/avr/avr-stdint.h: Remove trailing blanks.
121         * config/avr/avr-log.h: Same.
122         * config/avr/avr-arch.h: Same.
123         * config/avr/avr-devices.c: Same.
124         * config/avr/avr-dimode.md: Same.
125         * config/avr/predicates.md: Same.
126         * config/avr/avr-c.c: Same.  And fix typo.
127
128         * config/avr/avr-protos.h: Same.  And:
129         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
130         (init_cumulative_args): Rename to avr_init_cumulative_args.
131         (expand_prologue): Rename to avr_expand_prologue.
132         (expand_epilogue): Rename to avr_expand_epilogue.
133         (adjust_insn_length): Rename to avr_adjust_insn_length.
134         (notice_update_cc): Rename to avr_notice_update_cc.
135         (final_prescan_insn): Rename to avr_final_prescan_insn.
136         * config/avr/avr.c: Same.
137         * config/avr/avr.h: Same.
138         * config/avr/avr.md: Remove trailing blanks.
139         (prologue): Use avr_expand_prologue.
140         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
141
142 2013-01-14  Richard Biener  <rguenther@suse.de>
143
144         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
145         verify_location, collect_subblocks): New functions.
146         (verify_gimple_in_cfg): Verify that locations only reference
147         BLOCKs in the functions BLOCK tree.
148
149 2013-01-14  Richard Biener  <rguenther@suse.de>
150
151         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
152         PHI argument.
153         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
154         unshare reference.
155         (insert_out_of_ssa_copy_on_edge): Likewise.
156         (rewrite_close_phi_out_of_ssa): Likewise.
157         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
158         debug expressions.
159         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
160         propagated constants.
161         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
162         can not be shared.
163
164 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
165
166         * config/avr/avr-modes.def: Add GPL copyright notice.
167
168 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
169
170         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
171         MEMMODEL_MASK to determine memory model.
172         (atomic_store<mode>): Ditto from operands[2].
173         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
174
175 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
176
177         PR fortran/55935
178         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
179         (fold_gimple_assign): Don't call unshare_expr here.
180         (fold_ctor_reference): Call unshare_expr.
181
182 2013-01-13  Terry Guo  <terry.guo@arm.com>
183
184         * gcc/Makefile.in (s-mlib): New argument MULTILIB_REUSE.
185         * gcc/doc/fragments.texi: Document MULTILIB_REUSE.
186         * gcc/gcc.c (multilib_reuse): New internal spec.
187         (set_multilib_dir): Also search multilib from multilib_reuse.
188         * gcc/genmultilib (tmpmultilib3): Refactor code.
189         (tmpmultilib4): Ditto.
190         (multilib_reuse): New multilib argument.
191
192 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
193
194         * Makefile.in: Update copyright.
195
196 2013-01-12  Tom de Vries  <tom@codesourcery.com>
197
198         PR middle-end/55890
199         * calls.c (expand_call): Check if arg_nr is valid.
200
201 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
202
203         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
204         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
205         documentation.  Add missing '__' in front of
206         __builtin_ia32_packssdw256.
207
208 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
209
210         PR target/55719
211         * config/s390/s390.c (s390_preferred_reload_class): Do not return
212         NO_REGS for larl operands.
213         (s390_reload_larl_operand): Use s390_load_address instead of
214         emit_move_insn.
215
216 2013-01-11  Richard Biener  <rguenther@suse.de>
217
218         * tree-cfg.c (verify_node_sharing_1): Split out from ...
219         (verify_node_sharing): ... here.
220         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
221
222 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
223
224         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
225         Substitute TREECHECKING.
226         * configure: Regenerate.
227         * Makefile.in (TREECHECKING): New.
228
229 2012-01-11  Richard Guenther  <rguenther@suse.de>
230
231         PR tree-optimization/44061
232         * tree-vrp.c (extract_range_basic): Compute zero as
233         value-range for __builtin_constant_p of function parameters.
234
235 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
236
237         Update copyright years.
238
239 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
240
241         PR rtl-optimization/55672
242         * lra-eliminations.c (mark_not_eliminable): Permit addition with
243         const to be eliminable.
244
245 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
246
247         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
248         * configure: Regenerate.
249
250 2013-01-10  Richard Biener  <rguenther@suse.de>
251
252         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
253
254 2013-01-10  Richard Biener  <rguenther@suse.de>
255
256         PR bootstrap/55792
257         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
258         locations for virtual PHI arguments.
259         (rewrite_update_phi_arguments): Likewise.
260
261 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
262
263         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
264         on to assembler.
265
266 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
267
268         PR tree-optimization/55921
269         * tree-complex.c (expand_complex_asm): New function.
270         (expand_complex_operations_1): Call it for GIMPLE_ASM.
271
272 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
273
274         PR target/55718
275         * config/s390/s390.c (s390_symref_operand_p)
276         (s390_loadrelative_operand_p): Merge the two functions.
277         (s390_check_qrst_address, print_operand_address): Add parameters
278         to s390_loadrelative_operand_p invokation.
279         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
280         (s390_reload_larl_operand, s390_secondary_reload): Use
281         s390_loadrelative_operand_p instead of s390_symref_operand_p.
282         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
283
284 2013-01-09  Mike Stump  <mikestump@comcast.net>
285
286         * dse.c (record_store): Remove unnecessary assert.
287
288 2013-01-09  Jan Hubicka  <jh@suse.cz>
289
290         PR tree-optimization/55569
291         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
292         * cfgloop.h (scale_loop_profile): Likewise.
293
294 2013-01-09  Jan Hubicka  <jh@suse.cz>
295
296         PR lto/45375
297         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
298         functions.
299         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
300
301 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
302
303         PR middle-end/55114
304         * expr.h (maybe_emit_group_store): Declare.
305         * expr.c (maybe_emit_group_store): New function.
306         * builtins.c (expand_builtin_int_roundingfn): Call it.
307         (expand_builtin_int_roundingfn_2): Likewise.
308
309 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
310
311         PR rtl-optimization/55829
312         * lra-constraints.c (match_reload): Add code for absent output.
313         (curr_insn_transform): Add code for reloads of matched inputs
314         without output.
315
316 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
317
318         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
319         attribute of movddup insn to DF.
320         (*vec_interleave_lowv2df): Ditto.
321         (vec_dupv2df): Ditto.
322
323 2013-01-09  Jan Hubicka  <jh@suse.cz>
324
325         PR tree-optimiation/55875
326         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
327         EVERY_ITERATION parameter.
328         (number_of_iterations_exit): Check if exit is executed every iteration.
329         (idx_infer_loop_bounds): Similarly here.
330         (n_of_executions_at_most): Simplify
331         to only test for cases where statement is dominated by the
332         particular bound; handle correctly the "postdominance" test.
333         (scev_probably_wraps_p): Use max loop iterations info
334         as a global bound first.
335
336 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
337             Nick Clifton  <nickc@redhat.com>
338
339         * config/v850/v850.md (cbranchsf4): New pattern.
340         (cstoresf4): New pattern.
341         (cbranchdf4): New pattern.
342         (cstoredf4): New pattern.
343         (movsicc): Disallow floating point comparisons.
344         (cmpsf_le_insn): Fix order of operators.
345         (cmpsf_lt_insn): Likewise.
346         (cmpsf_eq_insn): Likewise.
347         (cmpdf_le_insn): Likewise.
348         (cmpdf_lt_insn): Likewise.
349         (cmpdf_eq_insn): Likewise.
350         (cmpsf_ge_insn): Use LE comparison.
351         (cmpdf_ge_insn): Likewise.
352         (cmpsf_gt_insn): Use LT comparison.
353         (cmpdf_gt_insn): Likewise.
354         (cmpsf_ne_insn): Delete pattern.
355         (cmpdf_ne_insn): Delete pattern.
356         * config/v850/v850.c (v850_gen_float_compare): Use
357         gen_cmpdf_eq_insn for NE comparison.
358         (v850_float_z_comparison_operator)
359         (v850_float_nz_comparison_operator): Move from here ...
360         * config/v850/predicates.md: ... to here.  Move GT and GE
361         comparisons into v850_float_z_comparison_operator.
362         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
363         Delete prototype.
364         (v850_float_nz_comparison_operator): Likewise.
365
366 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
367
368         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
369         with calls to gen_insvsi/gen_insvdi.
370
371 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
372
373         * config/i386/i386.c (initial_ix86_tune_features): Set up
374         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
375
376 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
377             Jakub Jelinek  <jakub@redhat.com>
378
379         PR tree-optimization/48189
380         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
381         If nitercst is 0, don't predict the exit edge.
382
383 2013-01-08   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
384
385         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
386         in asm_fprintf with reg_names.
387         (aarch64_print_operand_address): Likewise.
388         (aarch64_return_addr): Likewise.
389         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
390
391 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
392
393         * config/pa/pa.h (VAL_U6_BITS_P): Define.
394         (INT_U6_BITS): Likewise.
395         * config/pa/predicates.md (uint6_operand): New predicate.
396         (shift5_operand, shift6_operand): Likewise.
397         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
398         arith32_operand.
399         (lshrdi3): Use shift6_operand.
400         (shrpsi4, shrpdi4): New insn patterns.
401         (extzv): Delete expander.
402         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
403         predicates in unamed zero extract patterns.  Tighten common constraint.
404         (extv): Delete expander.
405         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
406         predicates in unamed sign extract patterns.  Tighten common constraint.
407         (insv): Delete expander.
408         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
409         predicates in unamed insert patterns.  Tighten common constraint.
410         Change uint32_operand predicate to uint6_operand predicate in unamed
411         DImode pattern to insert constant values of type 1...1xxxx.
412
413 2013-01-04  Jan Hubicka  <jh@suse.cz>
414
415         PR tree-optimization/55823
416         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
417         issue.
418
419 2012-01-08  Jakub Jelinek  <jakub@redhat.com>
420             Uros Bizjak  <ubizjak@gmail.com>
421
422         PR rtl-optimization/55845
423         * df-problems.c (can_move_insns_across): Stop scanning at
424         volatile_insn_p source instruction or give up if
425         across_from .. across_to range contains any volatile_insn_p
426         instructions.
427
428 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
429
430         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
431         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
432         Declare.
433         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
434         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
435
436 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
437
438         PR fortran/55341
439         * asan.c (asan_clear_shadow): New function.
440         (asan_emit_stack_protection): Use it.
441
442 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
443
444         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
445         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
446         with tab instead of space.
447
448 2013-01-08  Nick Clifton  <nickc@redhat.com>
449
450         * config/rl78/rl78.c (rl78_expand_prologue): Always select
451         register bank 0 at the start of an interrupt handler.
452         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
453         MDBH registers.
454
455 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
456
457         * config/aarch64/aarch64-simd.md
458         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
459         (aarch64_simd_bsl): Likewise.
460         (aarch64_vcond_internal<mode>): Likewise.
461         (vcond<mode><mode>): Likewise.
462         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
463         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
464
465 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
466
467         * config/aarch64/aarch64-builtins.c
468         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
469
470 2013-01-08  Martin Jambor  <mjambor@suse.cz>
471
472         PR debug/55579
473         * tree-sra.c (analyze_access_subtree): Return true also after
474         potentially creating a debug-only replacement.
475
476 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
477
478         PR middle-end/55890
479         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
480
481         PR tree-optimization/54120
482         * tree-vrp.c (range_fits_type_p): Don't allow
483         src_precision < precision from signed vr to unsigned_p
484         if vr->min or vr->max is negative.
485         (simplify_float_conversion_using_ranges): Test can_float_p
486         against CODE_FOR_nothing.
487
488 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
489             Richard Biener  <rguenther@suse.de>
490
491         PR middle-end/55851
492         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
493         types instead of just INTEGER_TYPE types.
494
495 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
496
497         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
498         TF_SIZE): Define.
499
500 2013-01-07  Steve Ellcey  <sellcey@mips.com>
501
502         PR target/42661
503         * config/mips/mips.opt: Change mad to mmad to match documentation.
504
505 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
506
507         PR target/55897
508         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
509         .progmemx.data now.
510
511 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
512
513         PR target/55897
514         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
515         (avr_addrspace_t): Add .section_name field.
516         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
517         array size.
518         (avr_addrspace): Same.  Initialize .section_name.  Remove last
519         NULL entry.  Put __memx into .progmemx.data.
520         (progmem_section_prefix): Remove.
521         (avr_asm_init_sections): No need to initialize progmem_section.
522         (avr_asm_named_section): Use avr_addrspace[].section_name to get
523         section name prefix.
524         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
525         retrieve the progmem section.
526         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
527         boundary to run over avr_addrspace[].
528         (avr_register_target_pragmas): Ditto.
529
530 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
531
532         * varasm.c (output_constant_def_contents): For asan_protect_global
533         protected strings, adjust DECL_ALIGN if needed, before testing for
534         anchored symbols.
535         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
536         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
537         normal decls.
538         (output_object_block): For asan protected decls, emit asan padding
539         after their contents.
540         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
541         (asan_finish_file): Test it here instead.
542
543 2013-01-07   Nick Clifton  <nickc@redhat.com>
544              Matthias Klose <doko@debian.org>
545              Doug Kwan  <dougkwan@google.com>
546              H.J. Lu  <hongjiu.lu@intel.com>
547
548         PR driver/55470
549         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
550
551         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
552
553         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
554
555         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
556
557         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
558
559 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
560
561         PR target/54461
562         * doc/install.texi (Cross-Compiler-Specific Options): Document
563         --with-avrlibc.
564
565 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
566
567         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
568         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
569         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
570         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
571         vqmovun_high_s64): Fix source operand number and update copyright.
572
573 2013-01-07  Richard Biener  <rguenther@suse.de>
574
575         PR middle-end/55890
576         * gimple.h (gimple_call_builtin_p): New overload.
577         * gimple.c (validate_call): New function.
578         (gimple_call_builtin_p): Likewise.
579         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
580         Use gimple_call_builtin_p.
581         (find_func_clobbers): Likewise.
582         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
583         (strlen_optimize_stmt): Likewise.
584
585 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
586
587         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
588         (vld1q_dup_*): Likewise.
589         (vld1_*): Likewise.
590         (vld1q_*): Likewise.
591         (vld1_lane_*): Likewise.
592         (vld1q_lane_*): Likewise.
593
594 2013-01-07  Richard Biener  <rguenther@suse.de>
595
596         * lto-streamer.h (LTO_minor_version): Bump to 2.
597
598 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
599
600         * config/aarch64/aarch64-protos.h
601         (aarch64_const_double_zero_rtx_p): Rename to...
602         (aarch64_float_const_zero_rtx_p): ...this.
603         (aarch64_float_const_representable_p): New.
604         (aarch64_output_simd_mov_immediate): Likewise.
605         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
606         move immediate case.
607         * config/aarch64/aarch64.c
608         (aarch64_const_double_zero_rtx_p): Rename to...
609         (aarch64_float_const_zero_rtx_p): ...this.
610         (aarch64_print_operand): Allow printing of new constants.
611         (aarch64_valid_floating_const): New.
612         (aarch64_legitimate_constant_p): Check for valid floating-point
613         constants.
614         (aarch64_simd_valid_immediate): Likewise.
615         (aarch64_vect_float_const_representable_p): New.
616         (aarch64_float_const_representable_p): Likewise.
617         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
618         (aarch64_output_simd_mov_immediate): New.
619         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
620         (*movdf_aarch64): Likewise.
621         * config/aarch64/constraints.md (Ufc): New.
622         (Y): call aarch64_float_const_zero_rtx.
623         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
624
625 2013-01-07  Richard Biener  <rguenther@suse.de>
626
627         PR tree-optimization/55888
628         PR tree-optimization/55862
629         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
630         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
631         not if it is contained therein.
632
633 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
634
635         * config/avr/t-avr: Typo.
636
637 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
638
639         PR55243
640         * config/avr/t-avr: Don't automatically rebuild
641         $(srcdir)/config/avr/t-multilib
642         $(srcdir)/config/avr/avr-tables.opt
643         $(srcdir)/doc/avr-mmcu.texi
644         (avr-mcus): New phony target to build them on request.
645         (s-avr-mlib, s-avr-mmcu-texi): Remove.
646         * avr/avr-mcus.def: Adjust comments.
647
648 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
649
650         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
651
652 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
653
654         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
655
656 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
657
658         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
659
660 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
661
662         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
663         to generate profiling.
664         * config/rs6000/aix64.h (LIB_SPEC): Same.
665
666 2013-01-04  Andrew Pinski  <apinski@cavium.com>
667
668         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
669         New function.
670         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
671
672 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
673
674         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
675         unconditionally.
676         (ix86_expand_move): Ditto.
677         (ix86_zero_extend_to_Pmode): Ditto.
678         (ix86_expand_call): Ditto.
679         (ix86_expand_special_args_builtin): Ditto.
680         (ix86_expand_builtin): Ditto.
681
682 2013-01-04  Richard Biener  <rguenther@suse.de>
683
684         PR tree-optimization/55862
685         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
686         translating them through PHI nodes.
687
688 2013-01-04  Martin Jambor  <mjambor@suse.cz>
689
690         PR tree-optimization/55755
691         * tree-sra.c (sra_modify_assign): Do not check that an access has no
692         children when trying to avoid producing a VIEW_CONVERT_EXPR.
693
694 2013-01-04  Marek Polacek  <polacek@redhat.com>
695
696         PR middle-end/55859
697         * opts.c (default_options_optimization): Clarify error message.
698
699 2013-01-04  Richard Biener  <rguenther@suse.de>
700
701         PR middle-end/55863
702         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
703         reassociation.
704
705 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
706
707         PR target/53789
708         * config/pa/pa.md (movsi): Revert previous change.
709         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
710         references.
711
712 2013-01-03  Richard Henderson  <rth@redhat.com>
713
714         * config/i386/i386.c (ix86_expand_move): Always assign to op1
715         after eliminating TLS symbols.
716
717 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
718
719         PR bootstrap/50167
720         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
721         * graphite-poly.c (debug_gmp_value): Likewise.
722
723 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
724
725         PR target/55712
726         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
727         selected code model, define __code_mode_small__, __code_model_medium__,
728         __code_model_large__, __code_model_32__ or __code_model_kernel__.
729         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
730         xchg temporary register with %k.  Declare temporary register as
731         early clobbered.
732         [__x86_64__]: For medium and large code models, preserve %rbx register.
733
734 2013-01-03  Richard Biener  <rguenther@suse.de>
735
736         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
737         (dump_subscript): Adjust.
738         (finalize_ddr_dependent): Do not dump redundant info.
739         (analyze_siv_subscript): Adjust.
740         (subscript_dependence_tester): Likewise.
741         (compute_affine_dependence): Likewise.
742
743 2013-01-03  Richard Biener  <rguenther@suse.de>
744
745         Revert
746         2013-01-03  Richard Biener  <rguenther@suse.de>
747
748         PR tree-optimization/55857
749         * tree-vect-stmts.c (vectorizable_load): Do not setup
750         re-alignment for invariant loads.
751
752         2013-01-02  Richard Biener  <rguenther@suse.de>
753
754         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
755         invariant load do not generate a vector load from the scalar location.
756
757 2013-01-03  Richard Biener  <rguenther@suse.de>
758
759         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
760         for not vectorizing.
761         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
762         not build INDIRECT_REFs, call get_name once only.
763         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
764         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
765
766 2013-01-03  Richard Biener  <rguenther@suse.de>
767
768         PR tree-optimization/55857
769         * tree-vect-stmts.c (vectorizable_load): Do not setup
770         re-alignment for invariant loads.
771
772 2013-01-03  Richard Biener  <rguenther@suse.de>
773
774         PR lto/55848
775         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
776         prefer a built-in decl.
777
778 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
779
780         * gcc.c (process_command): Update copyright notice dates.
781         * gcov.c (print_version): Likewise.
782         * gcov-dump.c (print_version): Likewise.
783
784         PR rtl-optimization/55838
785         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
786         iv0.step, iv1.step and step.
787
788 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
789             Marc Glisse  <marc.glisse@inria.fr>
790
791         PR tree-optimization/55832
792         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
793         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
794         integer_{one,zero}_node.
795
796 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
797
798         PR debug/54402
799         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
800         * var-tracking.c (reverse_op): Don't add reverse ops to
801         VALUEs that have already
802         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
803
804 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
805
806         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
807
808 2013-01-02  Teresa Johnson  <tejohnson@google.com>
809
810         * dumpfile.c (dump_loc): Print filename with location.
811         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
812         new location_t parameter to emit complete unroll message with
813         new dump framework.
814         (canonicalize_loop_induction_variables): Compute loops location
815         and pass to try_unroll_loop_completely.
816         * loop-unroll.c (report_unroll_peel): New function.
817         (peel_loops_completely): Use new dump format with location
818         for main dumpfile message, and invoke report_unroll_peel on success.
819         (decide_unrolling_and_peeling): Ditto.
820         (decide_peel_once_rolling): Remove old dumpfile message subsumed
821         by report_unroll_peel.
822         (decide_peel_completely): Ditto.
823         (decide_unroll_constant_iterations): Ditto.
824         (decide_unroll_runtime_iterations): Ditto.
825         (decide_peel_simple): Ditto.
826         (decide_unroll_stupid): Ditto.
827         * cfgloop.c (get_loop_location): New function.
828         * cfgloop.h (get_loop_location): Declare.
829
830 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
831
832         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
833         NULL.
834
835 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
836
837         PR middle-end/55198
838         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
839         BLKmode objects when EXPAND_MEMORY is specified.
840
841 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
842
843         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
844         in loop predicate.
845         (fold_builtin_cpu): Do not share cpu model decls across statements.
846
847 2013-01-02  Jason Merrill  <jason@redhat.com>
848
849         PR c++/55804
850         * tree.c (build_array_type_1): Revert earlier change.
851
852 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
853
854         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
855         "cortex-a57".
856         * config/aarch64/aarch64-tune.md: Re-generate.
857
858 2013-01-02  Richard Biener  <rguenther@suse.de>
859
860         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
861         invariant load do not generate a vector load from the scalar location.
862
863 2013-01-02  Richard Biener  <rguenther@suse.de>
864
865         PR bootstrap/55784
866         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
867         * configure: Regenerate.
868
869 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
870
871         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
872         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
873         (expand_builtin_int_roundingfn_2): Keep the original target around
874         for the fallback case.
875
876 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
877
878         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
879         to be clear for sign changes.
880
881 2013-01-01  Jan Hubicka  <jh@suse.cz>
882
883         * ipa-inline-analysis.c: Fix formatting.
884
885 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
886
887         PR tree-optimization/55831
888         * tree-vect-loop.c (get_initial_def_for_induction): Use
889         gsi_after_labels instead of gsi_start_bb.
890 \f
891 Copyright (C) 2013 Free Software Foundation, Inc.
892
893 Copying and distribution of this file, with or without modification,
894 are permitted in any medium without royalty provided the copyright
895 notice and this notice are preserved.