1 2013-06-09 Jakub Jelinek <jakub@redhat.com>
4 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
5 that operands[2] doesn't overlap with operands[0].
7 2013-05-22 Uros Bizjak <ubizjak@gmail.com>
10 * config/i386/i386.md (*movti_internal_rex64): Emit movaps/movups
11 for non-sse2 targets. Simplify mode attribute calculation.
13 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
15 Backport from mainline
16 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
18 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
19 cache parameters using detect_caches_amd also for CYRIX,
20 NSC and TM2 signatures.
22 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
23 Dzianis Kahanovich <mahatma@eu.by>
27 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28 VIA/Centaur processors and determine their cache parameters
29 using detect_caches_amd.
31 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
33 * config/i386/i386.c (ix86_option_override_internal): Add
34 PTA_POPCNT to corei7 entry.
36 2013-05-14 Richard Biener <rguenther@suse.de>
39 Backport from mainline
40 2012-06-30 Nathan Sidwell <nathan@acm.org>
42 * coverage.c (coverage_init): Read counts file before writing
45 2013-05-13 Uros Bizjak <ubizjak@gmail.com>
48 Backport from mainline
49 2013-01-22 Jakub Jelinek <jakub@redhat.com>
52 * config/i386/i386.md (UNSPEC_STOS): New.
53 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
54 *strsetqi_1): Add UNSPEC_STOS.
56 2013-05-10 Joey Ye <joey.ye@arm.com>
58 Backport from mainline
59 2012-11-29 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
62 * config/arm/arm.md (thumb2_pool_range, pool_range): Add comment on
64 (thumb1_extendhisi2): Reduce Thumb pool range.
65 (arm_movdi): Likewise.
66 (thumb1_movdi_insn): Likewise.
67 (thumb1_movsi_insn): Likewise.
68 (pic_load_addr_unified): Likewise.
69 (pic_load_addr_32bit): Likewise.
70 (pic_load_addr_thumb1): Likewise.
71 (thumb1_movhf): Likewise.
72 (arm_movsf_soft_insn): Likewise.
73 (thumb1_movsf_soft_insn): Likewise.
74 (movdf_soft_insn): Likewise.
75 (thumb1_movdf_soft_insn): Likewise.
76 * config/arm/neon.md (*neon_mov<mode>): Likewise.
77 (*neon_mov<mode>): Likwise.
78 * config/arm/thumb2.md: (*thumb2_movsi_insn): Likewise.
79 (*thumb2_movhi_insn): Likewise.
80 (*thumb2_extendqisi_v6): Likewise.
81 (*thumb2_zero_extendqisi_v6): Likewise.
82 (*thumb2_zero_extendqisi2_v6): Likewise.
83 * config/arm/vfp.md: (*thumb2_movsi_vfp): Likewise.
84 (*movdi_vfp): Likewise.
85 (*movdi_vfp_cortexa8): Likewise.
86 (*thumb2_movsf_vfp): Likewise.
87 (*thumb2_movdf_vfp): Likewise.
89 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
91 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
92 Add mthumb/march=armv7-a multilib.
93 Add mthumb/march=armv7-r multilib.
94 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
96 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
99 * config/v850/t-rtems: Add more multilibs.
101 2013-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
104 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
107 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
108 to save TFmode registers and DImode to save TImode registers for
109 caller save operations.
110 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
111 mark being partially clobbered since they only use the first
114 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
115 and TDmode only use the upper 64-bits of each VSX register.
117 2013-05-03 Marek Polacek <polacek@redhat.com>
119 Backport from mainline
120 2013-04-25 Marek Polacek <polacek@redhat.com>
122 PR tree-optimization/57066
123 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
125 2013-04-30 Uros Bizjak <ubizjak@gmail.com>
127 Backport from mainline
128 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
131 * config/i386/i386.md (*zero_extendsidi2_rex64): Add "!" to m->?*y
133 (*zero_extendsidi2): Ditto.
135 Backport from mainline
136 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
139 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
141 2013-04-29 Christian Bruel <christian.bruel@st.com>
144 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
146 2013-04-27 Jakub Jelinek <jakub@redhat.com>
149 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
150 the immediate rotate count.
152 2013-04-21 Eric Botcazou <ebotcazou@adacore.com>
154 * cfgexpand.c (avoid_complex_debug_insns): Fix C++ism.
156 2013-04-19 Matthias Klose <doko@ubuntu.com>
160 2013-04-01 Andrey Belevantsev <abel@ispras.ru>
162 Backport from mainline
163 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
164 Alexander Monakov <amonakov@ispras.ru>
167 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
168 flush pending lists also on non-jumps. Adjust comment.
171 2012-08-27 Maxim Kuvyrkov <maxim@codesourcery.com>
173 * sched-deps.c (add_dependence_list_and_free): Simplify.
174 (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free
175 lists when add_dependence_list_and_free doesn't free them.
177 2013-04-19 Marek Polacek <polacek@redhat.com>
179 Backport from mainline
180 2013-01-08 Steven Bosscher <steven@gcc.gnu.org>
181 Jakub Jelinek <jakub@redhat.com>
183 PR tree-optimization/48189
184 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
185 If nitercst is 0, don't predict the exit edge.
187 2013-04-16 Jack Howarth <howarth@bromo.med.uc.edu>
189 Backport from mainline
190 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
191 * config/darwin.h (STARTFILE_SPEC): Use -no_new_main with -lgcrt1.o
193 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10 and < 12.
196 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
198 * doc/tm.texi: Update.
199 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
200 * target.def (force_at_comp_dir): New hook.
201 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
202 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
204 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
207 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
208 (S_MODES): Set H_MODE bit.
209 (SF_MODES): Set only S_MODE and SF_MODE bits.
210 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
211 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
212 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
213 <MODE_FLOAT>: Likewise.
215 2013-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
217 Backport from mainline:
218 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
221 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
222 nuses, make sure we have a label.
224 2013-04-11 Richard Biener <rguenther@suse.de>
226 * BASE-VER: Set to 4.7.4.
227 * DEV-PHASE: Set to prerelease.
229 2013-04-11 Release Manager
231 * GCC 4.7.3 released.
233 2013-04-10 David S. Miller <davem@davemloft.net>
235 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
238 2013-04-05 Eric Botcazou <ebotcazou@adacore.com>
242 2013-04-01 Andrey Belevantsev <abel@ispras.ru>
244 Backport from mainline
245 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
246 Alexander Monakov <amonakov@ispras.ru>
249 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
250 flush pending lists also on non-jumps. Adjust comment.
252 2013-04-03 Richard Biener <rguenther@suse.de>
254 PR tree-optimization/56501
255 * tree-switch-conversion.c (check_process_case): Properly
256 handle !single_succ_p case.
258 2013-04-03 Jakub Jelinek <jakub@redhat.com>
260 Backported from mainline
261 2013-03-06 Jakub Jelinek <jakub@redhat.com>
263 PR tree-optimization/56539
264 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
265 instead of GSI_CONTINUE_LINKING as last argument to
266 force_gimple_operand_gsi. Adjust function comment.
268 2013-03-05 Jakub Jelinek <jakub@redhat.com>
271 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
272 (avoid_complex_debug_insns): New function.
273 (expand_debug_locations): Call it.
275 2013-04-02 Wei Mi <wmi@google.com>
277 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
278 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
279 *<rotate_insn><mode>3_mask in i386.md.
281 2013-04-02 Richard Biener <rguenther@suse.de>
284 Backport from mainline
285 2012-05-16 Richard Guenther <rguenther@suse.de>
287 * tree-inline.c (declare_return_variable): Properly handle
288 DECL_BY_REFERENCE return vars in SSA form.
290 2013-04-01 Wei Mi <wmi@google.com>
292 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
293 Truncate operand 2 using %b asm operand modifier.
294 (*<shift_insn><mode>3_mask): Ditto.
295 (*<rotate_insn><mode>3_mask): Ditto.
297 2013-04-01 Uros Bizjak <ubizjak@gmail.com>
299 * config/i386/i386.md (*movsf_internal): Change type of
300 alternatives 3,4 to imov.
302 2013-04-01 Andrey Belevantsev <abel@ispras.ru>
304 Backport from mainline
305 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
308 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
309 when the may_trap_p bit of the exprs being merged differs.
310 Reorder tests for speculativeness in the logical and operator.
312 Backport from mainline
313 2013-03-05 Jakub Jelinek <jakub@redhat.com>
316 * sel-sched-ir.c (free_sched_pools): Release
317 succs_info_pool.stack[succs_info_pool.max_top] vectors too
318 if succs_info_pool.max_top isn't -1.
320 2013-04-01 Andrey Belevantsev <abel@ispras.ru>
322 Backport from mainline
323 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
326 * sel-sched.c: Include ira.h.
327 (implicit_clobber_conflict_p): New function.
328 (moveup_expr): Use it.
329 * Makefile.in (sel-sched.o): Depend on ira.h.
331 2013-04-01 Andrey Belevantsev <abel@ispras.ru>
333 Backport from mainline
334 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
335 Alexander Monakov <amonakov@ispras.ru>
338 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
339 flush pending lists also on non-jumps. Adjust comment.
341 2013-03-30 Gerald Pfeifer <gerald@pfeifer.com>
343 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
344 * doc/extend.texi (Named Address Spaces): Ditto.
345 (Variable Attributes): Ditto.
347 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
349 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
350 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
353 2013-03-27 Walter Lee <walt@tilera.com>
355 Backport from mainline:
356 2013-03-27 Walter Lee <walt@tilera.com>
358 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
359 double-decrement of next_scratch_regno.
361 2013-03-27 Walter Lee <walt@tilera.com>
363 Backport from mainline:
364 2013-03-27 Walter Lee <walt@tilera.com>
366 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
368 (insn_v1mulus): Ditto.
369 (insn_v2muls): Ditto.
371 2013-03-27 Walter Lee <walt@tilera.com>
373 Backport from mainline:
374 2013-03-27 Walter Lee <walt@tilera.com>
376 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
378 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
380 2013-03-27 Walter Lee <walt@tilera.com>
382 Backport from mainline:
383 2013-03-27 Walter Lee <walt@tilera.com>
385 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
387 (*sibcall_value): Ditto.
389 2013-03-27 Walter Lee <walt@tilera.com>
391 Backport from mainline:
392 2013-03-27 Walter Lee <walt@tilera.com>
394 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
395 (insn_mnz_v8qi): ... this ...
396 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
398 (insn_v<n>mnz): Replaced by ...
399 (insn_v1mnz): ... this ...
400 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
402 (insn_mz_<mode>): Replaced by ...
403 (insn_mz_v8qi): ... this ...
404 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
406 (insn_v<n>mz): Replaced by ...
407 (insn_v1mz): ... this ...
408 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
411 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
413 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
415 2013-03-26 Richard Biener <rguenther@suse.de>
417 Backport from mainline:
418 2013-03-13 Richard Biener <rguenther@suse.de>
420 PR tree-optimization/56608
421 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
422 calls when vectorizing basic-blocks.
424 2013-03-05 Richard Biener <rguenther@suse.de>
426 PR tree-optimization/56270
427 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
428 of loads after scheduling an SLP instance.
430 2013-03-26 Walter Lee <walt@tilera.com>
432 Backport from mainline:
433 2013-03-26 Walter Lee <walt@tilera.com>
435 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
436 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
438 2013-03-26 Walter Lee <walt@tilera.com>
440 Backport from mainline:
441 2013-03-25 Walter Lee <walt@tilera.com>
443 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
444 TILEGX_INSN_SHUFFLEBYTES1.
445 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
447 (tilegx_builtins): Ditto.
448 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
450 2013-03-26 Walter Lee <walt@tilera.com>
452 Backport from mainline:
453 2013-03-25 Walter Lee <walt@tilera.com>
455 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
456 tests for constraint J, K, N, P.
458 2013-03-26 Walter Lee <walt@tilera.com>
460 Backport from mainline:
461 2013-03-25 Walter Lee <walt@tilera.com>
463 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
464 Use indirect/pcrel encoding.
465 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
468 2013-03-25 Oleg Endo <olegendo@gcc.gnu.org>
470 Backport from mainline:
471 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
472 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
475 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
476 (musermode): Convert to Var(TARGET_USERMODE).
477 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
478 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
479 * config/sh/sh.c (sh_option_override): Use
480 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
481 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
483 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
485 (udivsi3_i4_single, divsi3_i4_single): Use
486 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
487 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
488 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
489 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
490 (SUBTARGET_OVERRIDE_OPTIONS): New.
492 2013-03-25 Oleg Endo <olegendo@gcc.gnu.org>
494 Backport from mainline:
495 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
497 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
498 to m2a-single instead of m2e.
500 2013-03-22 H.J. Lu <hongjiu.lu@intel.com>
503 * config/i386/i386.h (ix86_args): Define only if USED_FOR_TARGET
506 2013-03-22 H.J. Lu <hongjiu.lu@intel.com>
509 * config/i386/i386.c (init_cumulative_args): Also set
510 cum->callee_return_avx256_p.
511 (ix86_function_arg): Set cum->callee_pass_avx256_p. Set
512 cfun->machine->callee_pass_avx256_p only when MODE == VOIDmode.
514 * config/i386/i386.h (ix86_args): Add callee_pass_avx256_p and
515 callee_return_avx256_p.
517 2013-03-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
519 Backport from mainline:
520 2012-12-04 Ian Lance Taylor <iant@google.com>
522 * godump.c (find_dummy_types): Output a dummy type if we couldn't
523 output the real type.
525 2013-03-20 Jack Howarth <howarth@bromo.med.uc.edu>
528 * doc/generic.texi (POINTER_PLUS_EXPR): Use @item instead of @itemx.
529 (PLUS_EXPR): Likewise.
530 * doc/cppopts.texi (--help): Likewise.
531 * doc/invoke.texi (-fenable-@var{kind}-@var{pass}): Likewise.
532 (-fdump-rtl-cprop_hardreg): Likewise.
533 (-fdump-rtl-csa): Likewise.
534 (-fdump-rtl-dce): Likewise.
535 (-fdump-rtl-dbr): Likewise.
536 (-fdump-rtl-into_cfglayout): Likewise.
537 (-fdump-rtl-outof_cfglayout): Likewise.
539 2013-03-18 Richard Earnshaw <rearnsha@arm.com>
542 * config/arm/arm.c (shift_op): Validate RTL pattern on the fly.
543 (arm_print_operand, case 'S'): Don't use shift_operator to validate
546 2013-03-14 Seth LaForge <sethml@google.com>
549 Backport from mainline
550 2012-10-22 Julian Brown <julian@codesourcery.com>
552 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
553 VFP D registers in big-endian mode.
555 2013-03-08 Joey Ye <joey.ye@arm.com>
557 Backport from mainline
558 2013-03-06 Joey Ye <joey.ye@arm.com>
561 * gcc.c (convert_white_space): New function.
562 (main): Handles white space in function name.
564 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
566 Backport from mainline
567 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
570 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
571 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
572 to SH_DIV_CALL_TABLE for TARGET_SH2.
573 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
575 * doc/invoke.texi (SH options): Use table for mdiv= option. Document
576 mdiv= call-div1, call-fp, call-table options.
578 2013-03-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
580 * config.gcc (arm*-*-rtemself*): New.
581 (arm*-*-rtems*): Removed.
582 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
583 "arm*-*-rtemseabi*" to "arm*-*-rtems*".
585 2013-03-01 Richard Biener <rguenther@suse.de>
587 Backport from mainline
588 2012-12-12 Zdenek Dvorak <ook@ucw.cz>
590 PR tree-optimization/55481
591 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall
592 back to general rewriting if we cannot leave an original biv
595 2013-03-01 Richard Biener <rguenther@suse.de>
597 Backport from mainline
598 2012-04-10 Richard Guenther <rguenther@suse.de>
601 * gimple-low.c (gimple_check_call_args): Properly account for
602 compatible aggregate types.
604 2013-02-26 Nick Clifton <nickc@redhat.com>
607 Import this patch from the mainline:
609 2012-08-17 Nick Clifton <nickc@redhat.com>
611 * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
612 (branch_true): Likewise.
613 (branch_false): Likewise.
615 2013-02-26 Jakub Jelinek <jakub@redhat.com>
617 PR tree-optimization/56443
618 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
619 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
620 to type_for_mode langhook.
622 2013-02-21 Jakub Jelinek <jakub@redhat.com>
625 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
628 2013-02-19 Jakub Jelinek <jakub@redhat.com>
630 Backported from mainline
631 2013-02-19 Jakub Jelinek <jakub@redhat.com>
633 PR tree-optimization/56350
634 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
635 if haven't found reduction or nested cycle operand, rather than
636 asserting we must find it.
638 PR tree-optimization/56381
639 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
642 2013-02-08 Jakub Jelinek <jakub@redhat.com>
644 PR tree-optimization/56250
645 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
646 if type is unsigned and code isn't MULT_EXPR.
648 2013-02-06 Jakub Jelinek <jakub@redhat.com>
651 * omp-low.c (use_pointer_for_field): Return false if
652 lower_send_shared_vars doesn't generate any copy-out code.
654 2012-11-27 Jakub Jelinek <jakub@redhat.com>
656 PR tree-optimization/55110
657 * tree-vect-loop.c (vectorizable_reduction): Don't assert
658 that STMT_VINFO_RELATED_STMT of orig_stmt is stmt.
660 2013-02-18 Richard Biener <rguenther@suse.de>
663 2013-02-04 Richard Biener <rguenther@suse.de>
665 Backport from mainline
666 2012-07-04 Richard Guenther <rguenther@suse.de>
668 PR tree-optimization/53844
669 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
670 the loop virtual PHI.
672 2013-02-13 David S. Miller <davem@davemloft.net>
674 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
676 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
678 Backport from mainline
679 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
681 PR rtl-optimization/56275
682 * simplify-rtx.c (avoid_constant_pool_reference): Check that
683 offset is non-negative and less than cmode size before
684 calling simplify_subreg.
686 2013-02-09 Uros Bizjak <ubizjak@gmail.com>
688 Backport from mainline
689 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
691 * config/i386/sse.md (FMAMODEM): New mode iterator.
692 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
693 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
695 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
697 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
698 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
699 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
701 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
703 Backport from mainline
704 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
707 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
708 If there is no implicit builtin declaration, just return NULL.
710 2013-02-08 David Edelsohn <dje.gcc@gmail.com>
711 Michael Meissner <meissner@linux.vnet.ibm.com>
713 Backport from mainline
714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Clear
715 MASK_VSX from set_masks if OS_MISSING_ALTIVEC.
717 2013-02-07 David S. Miller <davem@davemloft.net>
719 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
721 * var-tracking.c (vt_add_function_parameter): Test the presence of
722 HAVE_window_save properly and do not remap argument registers when
723 we have a leaf function.
725 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
727 Backport from mainline
728 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
731 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
733 * config/i386/i386.c (ix86_print_operand): Ditto.
735 2013-02-07 Alan Modra <amodra@gmail.com>
738 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
739 static chain, set REST_INLINE_FPRS too.
741 2013-02-06 David Edelsohn <dje.gcc@gmail.com>
743 Backport from mainline
744 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
746 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
747 * configure: Regenerate.
749 2013-02-05 David Edelsohn <dje.gcc@gmail.com>
751 Backport from mainline
752 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
753 Andrew Dixie <andrewd@gentrack.com>
755 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
758 2013-02-05 Richard Biener <rguenther@suse.de>
760 Backport from mainline
761 2012-12-10 Richard Biener <rguenther@suse.de>
763 PR tree-optimization/55107
764 * tree-ssa-pre.c (struct pre_stats): Remove constified field.
765 (bitmap_set_replace_value): Add gcc_unreachable.
766 (do_regular_insertion): Re-write all_same handling. Insert
767 an assignment instead of a PHI in this case.
768 (execute_pre): Do not record constified events.
770 2013-02-05 Richard Biener <rguenther@suse.de>
772 PR tree-optimization/54767
773 * tree-vrp.c (vrp_visit_phi_node): For PHI arguments coming via
774 backedges drop all symbolical range information.
775 (execute_vrp): Compute backedges.
777 2013-02-04 Richard Biener <rguenther@suse.de>
779 Backport from mainline
780 2012-01-11 Richard Guenther <rguenther@suse.de>
782 PR tree-optimization/44061
783 * tree-vrp.c (extract_range_basic): Compute zero as
784 value-range for __builtin_constant_p of function parameters.
786 2013-01-08 Jakub Jelinek <jakub@redhat.com>
789 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_class_p.
791 2013-02-04 Richard Biener <rguenther@suse.de>
793 Backport from mainline
794 2012-07-04 Richard Guenther <rguenther@suse.de>
796 PR tree-optimization/53844
797 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
798 the loop virtual PHI.
800 2012-12-13 Richard Biener <rguenther@suse.de>
803 * tree-streamer.c (record_common_node): Check that we are not
804 recursively pre-loading nodes we want to skip. Handle
805 char_type_node appearing as part of va_list_type_node.
807 2013-02-04 Richard Biener <rguenther@suse.de>
810 * gimple.h (gimple_call_builtin_class_p): New function.
811 * gimple.c (validate_call): New function.
812 (gimple_call_builtin_class_p): Likewise.
813 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
814 Use gimple_call_builtin_class_p.
815 (find_func_clobbers): Likewise.
816 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
817 (strlen_optimize_stmt): Likewise.
819 2013-02-01 Jakub Jelinek <jakub@redhat.com>
821 Backported from mainline
822 2013-01-28 Jakub Jelinek <jakub@redhat.com>
824 PR tree-optimization/56125
825 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
826 pow(x,c) into sqrt(x) * powi(x, n/2) or
827 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
829 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
830 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
833 2013-01-25 Jakub Jelinek <jakub@redhat.com>
835 PR tree-optimization/56098
836 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
837 for stmts with volatile ops.
838 (cond_store_replacement): Don't optimize if assign has volatile ops.
839 (cond_if_else_store_replacement_1): Don't optimize if either
840 then_assign or else_assign have volatile ops.
842 2013-01-23 Jakub Jelinek <jakub@redhat.com>
845 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
846 instead of cmpdi_operand for first comparison operand.
847 Don't assert that comparison operands aren't both constants.
849 2013-01-21 Jakub Jelinek <jakub@redhat.com>
851 PR tree-optimization/56051
852 * fold-const.c (fold_binary_loc): Don't fold
853 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
854 a narrowing conversion, or widening conversion from signed
857 2013-01-18 Jakub Jelinek <jakub@redhat.com>
860 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
861 the case where writing real complex part of target modifies
864 2013-01-15 Jakub Jelinek <jakub@redhat.com>
867 * function.c (thread_prologue_and_epilogue_insns): Always
868 add crtl->drap_reg to set_up_by_prologue.set, even if
869 stack_realign_drap is false.
871 2013-01-10 Jakub Jelinek <jakub@redhat.com>
873 PR tree-optimization/55921
874 * tree-complex.c (expand_complex_asm): New function.
875 (expand_complex_operations_1): Call it for GIMPLE_ASM.
877 2013-01-03 Jakub Jelinek <jakub@redhat.com>
879 PR rtl-optimization/55838
880 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
881 iv0.step, iv1.step and step.
883 2012-11-23 Jakub Jelinek <jakub@redhat.com>
886 * Makefile.in (gimple-low.o): Depend on langhooks.h.
887 * gimple-low.c: Include langhooks.c.
888 (block_may_fallthru): Handle TARGET_EXPR and ERROR_MARK,
889 by default call lang_hooks.block_may_fallthru.
890 * langhooks.h (struct lang_hooks): Add block_may_fallthru
892 * langhooks-def.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define.
893 (LANG_HOOKS_INITIALIZER): Use it.
895 2012-11-20 Jakub Jelinek <jakub@redhat.com>
898 * builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note
899 on the trap insn for !ACCUMULATE_OUTGOING_ARGS.
900 * cfgcleanup.c (outgoing_edges_match): Don't look at debug insns
901 on the first old_insns_match_p call. For !ACCUMULATE_OUTGOING_ARGS
902 fail if the last real insn doesn't have REG_ARGS_SIZE note.
904 2012-11-17 Jakub Jelinek <jakub@redhat.com>
906 PR tree-optimization/55236
907 * fold-const.c (make_range_step) <case NEGATE_EXPR>: For -fwrapv
908 and signed ARG0_TYPE, force low and high to be non-NULL.
910 2012-11-13 Jakub Jelinek <jakub@redhat.com>
912 PR rtl-optimization/54127
913 * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting
914 asm goto labels from BB_HEAD (e->dest) to target bb, decrement
915 LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of
916 BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or
917 REG_LABEL_TARGET and REG_LABEL_OPERAND.
919 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
921 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
922 range isn't testing for zero.
924 2013-01-29 Richard Biener <rguenther@suse.de>
926 PR tree-optimization/56113
927 * tree-ssa-structalias.c (equiv_class_lookup): Also return
929 (label_visit): Free duplicate bitmaps and record the leader instead.
930 (perform_var_substitution): Adjust.
932 2013-01-28 Serowk <serowk@yandex.ru>
935 * config/arm/arm.c (arm_expand_binop_builtin): Add new parameter.
936 Fix mode checks to allow for the passing of constants in the
938 (arm_expand_builtin): Adjust calls to arm_expand_binop_builtin.
939 Add entries in the switch statement for builtin iwmmxt vector
940 shift and rotate builtins.
942 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
944 Backport from mainline
945 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
948 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
949 operand 0 in movabs insn template for -masm=intel asm alternative.
950 (*movabs<mode>_2): Ditto for operand 1.
952 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
954 Backport from mainline
955 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
958 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
959 alternative to (o,r).
960 (*movdi_internal_rex64): Remove (!o,n) alternative.
961 (DImode immediate->memory splitter): Remove.
962 (DImode immediate->memory peephole2): Remove.
963 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
964 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
965 alternative to (!o,*r).
966 (*movtf_internal_sse): New pattern.
967 (*movxf_internal_rex64): New pattern.
968 (*movxf_internal): Disable for TARGET_64BIT.
969 (*movdf_internal_rex64): Remove (!o,F) alternative.
971 2013-01-23 Uros Bizjak <ubizjak@gmail.com>
973 * config/i386/i386.md (*movdf_internal_rex64): Disparage alternatives
974 involving stack registers slightly.
976 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
978 * config/i386/constraints.md (Yf): New constraint.
979 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
980 of f constraint to conditionaly disable x87 register preferences.
981 (*movdf_internal): Ditto.
982 (*movsf_internal): Ditto.
984 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
986 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
987 (*movtf_internal_rex64): Add (!o,C) alternative
988 (*movxf_internal_rex64): Ditto.
989 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
991 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
993 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
995 2013-01-24 Martin Jambor <mjambor@suse.cz>
997 Backport from mainline
998 2013-01-04 Martin Jambor <mjambor@suse.cz>
1000 PR tree-optimization/55755
1001 * tree-sra.c (sra_modify_assign): Do not check that an access has no
1002 children when trying to avoid producing a VIEW_CONVERT_EXPR.
1004 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
1006 Backport from mainline
1007 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
1009 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
1011 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
1013 PR rtl-optimization/56023
1014 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
1015 dependent on debug instruction.
1017 2013-01-21 Martin Jambor <mjambor@suse.cz>
1019 Backport from mainline
1020 2013-01-17 Martin Jambor <mjambor@suse.cz>
1022 PR tree-optimizations/55264
1023 * cgraph.c (cgraph_create_virtual_clone): Mark clones as non-virtual.
1024 * cgraph.h (cgraph_only_called_directly_p_or_aliased_p): Return false
1025 for virtual functions.
1026 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
1027 for virtual methods.
1028 * ipa.c (cgraph_remove_unreachable_nodes): Never return true for
1029 virtual methods before inlining is over.
1031 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
1033 Backport from mainline
1034 2012-01-17 Uros Bizjak <ubizjak@gmail.com>
1037 * config/i386/sync.md (atomic_store<mode>): Generate SWImode
1038 store through atomic_store<mode>_1.
1039 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
1041 2013-01-16 Richard Biener <rguenther@suse.de>
1044 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
1045 account for bitpos when computing alignment.
1047 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
1049 Backport from 2013-01-14 trunk r195169.
1052 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
1053 etc. to 1 and not to __flash.
1054 Use LL suffix for __INT24_MAX__ with -mint8.
1055 Use ULL suffix for __UINT24_MAX__ with -mint8.
1057 2013-01-14 Matthias Klose <doko@ubuntu.com>
1059 * doc/invoke.texi: Document -print-multiarch.
1060 * doc/install.texi: Document --enable-multiarch.
1061 * doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME.
1062 * configure.ac: Add --enable-multiarch option.
1063 Substitute with_cpu, with_float.
1064 * configure: Regenerate.
1065 * Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib.
1066 enable_multiarch, with_cpu, with_float: New macros.
1067 if_multiarch: New macro, define in terms of enable_multiarch.
1068 * genmultilib: Add new argument for the multiarch name.
1069 * gcc.c (multiarch_dir): Define.
1070 (for_each_path): Search for multiarch suffixes.
1071 (driver_handle_option): Handle multiarch option.
1072 (do_spec_1): Pass -imultiarch if defined.
1073 (main): Print multiarch.
1074 (set_multilib_dir): Separate multilib and multiarch names
1075 from multilib_select.
1076 (print_multilib_info): Ignore multiarch names in multilib_select.
1077 * incpath.c (add_standard_paths): Search the multiarch include dirs.
1078 * cppdefault.h (default_include): Document multiarch in multilib
1080 * cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an
1081 include directory for multiarch directories.
1082 * common.opt: New options --print-multiarch and -imultilib.
1084 * config.gcc <i[34567]86-*-linux* | x86_64-*-linux*> (tmake_file):
1085 Include i386/t-linux.
1086 <i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu> (tmake_file):
1087 Include i386/t-kfreebsd.
1088 <i[34567]86-*-gnu*> (tmake_file): Include i386/t-gnu.
1089 * config/i386/t-linux64: Add multiarch names in
1090 MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME.
1091 * config/i386/t-gnu: New file.
1092 * config/i386/t-kfreebsd: Likewise.
1093 * config/i386/t-linux: Likewise.
1095 * config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1096 * config/sparc/t-linux: New file; define MULTIARCH_DIRNAME.
1097 * config.gcc <sparc-*-linux*> (tmake_file): Include sparc/t-linux
1098 for 32bit non-biarch configurations.
1100 * config/pa/t-linux: New file; define MULTIARCH_DIRNAME.
1101 * config.gcc <hppa*64*-*-linux*, hppa*-*-linux*> (tmake_file):
1104 * config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1106 * config/arm/t-linux-eabi: Define MULTIARCH_DIRNAME for linux target.
1108 * config/rs6000/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1109 * config/rs6000/t-linux: New file; define MULTIARCH_DIRNAME.
1110 * config/rs6000/t-fprules (SOFT_FLOAT_CPUS): New macro. Add e300c2
1112 (MULTILIB_MATCHES_FLOAT): Define in terms of SOFT_FLOAT_CPUS.
1113 * config.gcc <powerpc-*-linux* | powerpc64-*-linux*> (tmake_file):
1114 Include rs6000/t-linux for 32bit non-biarch configurations.
1116 * config/s390/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1118 * config/m68k/t-linux: Define MULTIARCH_DIRNAME.
1120 * config/ia64/t-linux: New file; define MULTIARCH_DIRNAME.
1121 * config.gcc <ia64*-*-linux*> (tmake_file): Include ia64/t-linux.
1123 * config/alpha/t-linux: New file; define MULTIARCH_DIRNAME.
1124 * config.gcc <alpha*-*-linux*> (tmake_file): Include alpha/t-linux.
1126 2013-01-14 Eric Botcazou <ebotcazou@adacore.com>
1128 * tree-vectorizer.h (vect_get_single_scalar_iteraion_cost): Fix typo.
1129 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Likewise.
1130 (vect_estimate_min_profitable_iter): Adjust to above fix.
1131 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1133 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1135 Backport from mainline
1136 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1138 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
1139 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
1140 documentation. Add missing '__' in front of
1141 __builtin_ia32_packssdw256.
1143 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
1145 Backport from mainline
1146 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
1148 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
1149 attribute of movddup insn to DF.
1150 (*vec_interleave_lowv2df): Ditto.
1151 (vec_dupv2df): Ditto.
1153 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1155 Backport from 2013-01-07 trunk r194991, r194992.
1158 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1161 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1162 (avr_addrspace_t): Add .section_name field.
1163 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1165 (avr_addrspace): Same. Initialize .section_name. Remove last
1166 NULL entry. Put __memx into .progmemx.data.
1167 (progmem_section_prefix): Remove.
1168 (avr_asm_init_sections): No need to initialize progmem_section.
1169 (avr_asm_named_section): Use avr_addrspace[].section_name to get
1170 section name prefix.
1171 (avr_asm_select_section): Ditto. And use get_unnamed_section to
1172 retrieve the progmem section.
1173 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
1174 boundary to run over avr_addrspace[].
1175 (avr_register_target_pragmas): Ditto.
1177 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1179 Backport from 2013-01-07 trunk r194978.
1182 * doc/install.texi (Cross-Compiler-Specific Options): Document
1185 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1187 Backport from 2013-01-07 trunk r194968.
1190 * config/avr/t-avr: Don't automatically rebuild
1191 $(srcdir)/config/avr/t-multilib
1192 $(srcdir)/config/avr/avr-tables.opt
1193 (avr-mcus): New phony target to build them on request.
1194 (s-avr-mlib): Remove.
1195 * avr/avr-mcus.def: Adjust comments.
1197 2013-01-07 Terry Guo <terry.guo@arm.com>
1199 Backport from mainline
1200 2012-12-19 Terry Guo <terry.guo@arm.com>
1202 * config/arm/arm.c (thumb_find_work_register): Check argument
1203 register number based on current PCS.
1205 2013-01-06 Uros Bizjak <ubizjak@gmail.com>
1207 Backport from mainline
1208 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
1211 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
1212 selected code model, define __code_mode_small__, __code_model_medium__,
1213 __code_model_large__, __code_model_32__ or __code_model_kernel__.
1214 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
1215 xchg temporary register with %k. Declare temporary register as
1217 [__x86_64__]: For medium and large code models, preserve %rbx register.
1219 2013-01-03 Richard Henderson <rth@redhat.com>
1221 * config/i386/i386.c (ix86_expand_move): Always assign to op1
1222 after eliminating TLS symbols.
1224 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1227 * config/pa/pa.md (movsi): Revert previous change.
1228 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
1231 2013-01-02 Rainer Emrich <rainer@emrich-ebersheim.de>
1234 * graphite-dependences.c (hash_poly_ddr_p): Cast from pointer via
1237 2013-01-02 Jason Merrill <jason@redhat.com>
1240 * tree.c (build_array_type_1): Revert earlier change.
1242 2012-12-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1245 * config/pa/pa.md (movsi): Reject expansion of TLS symbol references
1246 after reload starts.
1248 2012-12-21 Martin Jambor <mjambor@suse.cz>
1250 PR tree-optimization/55355
1251 * tree-sra.c (type_internals_preclude_sra_p): Also check that
1252 bit_position is small enough to fit a single HOST_WIDE_INT.
1254 2012-12-21 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1256 * config.gcc: Match arm*-*-uclinux*eabi* for EABI uCLinux.
1258 2012-12-18 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1260 Backport from mainline
1261 2012-10-15 Matthias Klose <doko@ubuntu.com>
1263 * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
1264 * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.
1266 2012-12-16 Eric Botcazou <ebotcazou@adacore.com>
1267 Tomash Brechko <tomash.brechko@gmail.com>
1270 * config/sparc/sparc.c (sparc_emit_membar_for_model): Fix reversed
1271 handling of before and after cases.
1272 * config/sparc/sync.md (atomic_store): Fix pasto.
1274 2012-12-14 Yvan Roux <yvan.roux@linaro.org>
1276 * optabs.c (expand_atomic_store): Elide redundant model test.
1278 2012-12-13 Richard Henderson <rth@redhat.com>
1281 * optabs.c (expand_atomic_load): Emit acquire barrier after the load.
1283 2012-12-11 Eric Botcazou <ebotcazou@adacore.com>
1286 * config/sparc/sparc.md (tldo_stb_sp32): Fix pasto.
1287 (tldo_stb_sp64): Likewise.
1288 (tldo_sth_sp32): Likewise.
1289 (tldo_sth_sp64): Likewise.
1290 (tldo_stw_sp32): Likewise.
1291 (tldo_stw_sp64): Likewise.
1292 (tldo_stx_sp64): Likewise.
1294 2012-12-10 Kai Tietz <ktietz@redhat.com>
1297 * print-tree.c (print_node): Cast from pointer via uintptr_t.
1299 2012-12-07 Uros Bizjak <ubizjak@gmail.com>
1301 Backport from mainline
1302 2012-12-06 Uros Bizjak <ubizjak@gmail.com>
1303 H.J. Lu <hongjiu.lu@intel.com>
1306 * config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode,
1307 before using it as insn or call equivalent.
1309 2012-12-06 Jason Merrill <jason@redhat.com>
1312 * tree.c (build_array_type_1): Re-layout if we found it in the
1315 2012-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1317 * config/pa/pa.md: Use "const_int 0" instead of match_test to simplify
1318 opaque cond in all call insns.
1320 2012-12-03 Eric Botcazou <ebotcazou@adacore.com>
1322 * config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch
1323 area if the function allocates dynamic stack space.
1324 (ia64_initial_elimination_offset): Adjust offsets to above change.
1326 2012-12-03 Richard Biener <rguenther@suse.de>
1328 Backport from mainline
1329 2012-09-24 Richard Guenther <rguenther@suse.de>
1331 PR tree-optimization/53663
1332 * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
1333 native encode/interpret translation on VN_WALKREWRITE.
1335 2012-12-03 Kai Tietz <ktietz@redhat.com>
1338 * ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.
1341 * tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.
1344 * pointer-set.c (hash1): Cast from pointer via uintptr_t.
1346 2012-12-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1348 Backport from mainline:
1349 2012-11-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1352 * config/pa/pa.md (type): Add sibcall and sh_func_adrs insn types.
1353 (in_branch_delay): Don't allow sibcall or sh_func_adrs insns.
1354 (in_nullified_branch_delay): Likewise.
1355 (in_call_delay): Likewise.
1356 Define delay for sibcall insns. Adjust Z3 and Z4 insn reservations for
1357 new types. Add opaque cond to mark all calls, sibcalls, dyncalls and
1358 the $$sh_func_adrs call as variable. Update type of sibcalls and
1359 $$sh_func_adrs call.
1360 * config/pa/pa.c (pa_adjust_insn_length): Revise to return updated
1361 length instead of adjustment. Handle negative and undefined call
1362 adjustments for insn_default_length. Remove adjustment for millicode
1363 insn with unfilled delay slot.
1364 (pa_output_millicode_call): Update for revised millicode length.
1365 * config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH.
1367 2012-11-29 Kai Tietz <ktietz@redhat.com>
1370 * prefix.c (lookup_key): Replace xmalloc/xrealloc
1371 use by XNEWVEC/XRESIZEVEC.
1373 * i386.c (get_scratch_register_on_entry): Handle
1374 thiscall-convention.
1375 (split_stack_prologue_scratch_regno): Likewise.
1376 (ix86_static_chain): Likewise.
1377 (x86_output_mi_thunk): Likewise.
1379 2012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1381 Backported from mainline
1382 2012-11-27 H.J. Lu <hongjiu.lu@intel.com>
1383 Markus Trippelsdorf <markus@trippelsdorf.de>
1386 * lto-opts.c (lto_write_options): Also handle
1387 OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and
1388 OPT_SPECIAL_program_name.
1391 * lto-wrapper.c (merge_and_complain): Handle
1392 OPT_SPECIAL_unknown, OPT_SPECIAL_ignore,
1393 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
1395 2012-11-27 Paolo Bonzini <pbonzini@redhat.com>
1397 PR rtl-optimization/55489
1398 * gcse.c (compute_transp): Precompute a canonical version
1399 of XEXP (x, 0), and pass it to canon_true_dependence.
1401 2012-11-27 Richard Biener <rguenther@suse.de>
1404 * gimple-fold.c (gimplify_and_update_call_from_tree): Replace
1405 stmt with a NOP instead of removing it.
1407 2012-11-26 Richard Biener <rguenther@suse.de>
1409 Backport from mainline
1410 2012-10-19 Richard Biener <rguenther@suse.de>
1412 PR tree-optimization/54976
1413 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1414 Robustify against odd inner_mode inputs.
1416 2012-10-12 Richard Biener <rguenther@suse.de>
1418 PR tree-optimization/54894
1419 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1420 Handle over-aligned scalar types properly.
1422 2012-10-02 Richard Guenther <rguenther@suse.de>
1425 * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
1426 cleaning up the CFG.
1428 2012-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1430 Backport from mainline
1431 2012-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1433 * config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment
1434 explaining the register ordering preferences.
1436 2012-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
1437 * config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move
1438 constraints so that the traditional floating point loads, stores,
1439 and moves are done first, then the VSX loads, stores, and moves,
1440 and finally the GPR loads, stores, and moves so that reload
1441 chooses FPRs over GPRs, and uses the traditional load/store
1442 instructions which provide an offset.
1443 (movdf_hardfloat64): Likewise.
1445 2012-11-19 H.J. Lu <hongjiu.lu@intel.com>
1447 Backported from mainline
1448 2012-11-13 Eric Botcazou <ebotcazou@adacore.com>
1449 H.J. Lu <hongjiu.lu@intel.com>
1452 * config/i386/i386.c (legitimize_pic_address): Properly handle
1454 (ix86_print_operand_address): Set code to 'k' when forcing
1455 addr32 prefix. For x32, zero-extend negative displacement if
1458 2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
1460 * common.opt (fvar-tracking-uninit): Document.
1461 * toplev.c (process_options): Fix handling of flag_var_tracking_uninit.
1462 * config/darwin.c (darwin_override_options): Likewise.
1464 2012-11-11 Eric Botcazou <ebotcazou@adacore.com>
1466 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak.
1467 * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto.
1469 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
1471 * doc/install.texi (sparc64-x-solaris2): Mention MPC as well.
1473 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
1475 * config/i386/i386.c (release_scratch_register_on_entry): Also adjust
1478 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
1480 Backport from mainline
1481 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
1483 * config/i386/i386.c (ix86_init_machine_status): Do not
1484 explicitly clear tls_descriptor_call_expanded_p again.
1486 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
1488 * config/i386/sse.md
1489 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
1490 as read and written by the instruction.
1492 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
1494 * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
1495 (ix86_instantiate_decls): New function.
1496 (ix86_expand_builtin) <case IX86_BUILTIN_LDMXCSR>: Use SLOT_TEMP
1497 stack slot instead of SLOT_VIRTUAL.
1498 <case IX86_BUILTIN_STMXCSR>: Ditto.
1499 (assign_386_stack_local): Do not assert when virtual slot is valid.
1500 * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL.
1501 * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot.
1502 (truncxf<mode>2): Ditto.
1503 (floatunssi<mode>2): Ditto.
1504 (isinf<mode>2): Ditto.
1505 * config/i386/sync.md (atomic_load<mode>): Ditto.
1506 (atomic_store<mode>): Ditto.
1508 2012-11-07 Eric Botcazou <ebotcazou@adacore.com>
1511 * fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if
1512 the argument is itself a conditional expression.
1514 2012-11-05 H.J. Lu <hongjiu.lu@intel.com>
1516 * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with
1519 2012-11-05 Eric Botcazou <ebotcazou@adacore.com>
1521 PR tree-optimization/54986
1522 * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op
1523 conversions on entry but add them back on exit if needed.
1525 2012-11-05 Richard Sandiford <rdsandiford@googlemail.com>
1528 * config/i386/i386.c (ix86_address_subreg_operand): Remove stack
1530 (print_reg): Use true_regnum rather than REGNO.
1531 (ix86_print_operand_address): Remove SUBREG handling.
1533 2012-11-05 Jakub Jelinek <jakub@redhat.com>
1535 Backported from mainline
1536 2012-10-24 Jakub Jelinek <jakub@redhat.com>
1539 * gimple.h (is_gimple_sizepos): New inline function.
1540 * gimplify.c (gimplify_one_sizepos): Use it. Remove useless
1541 final assignment to expr variable.
1542 * tree.c (RETURN_TRUE_IF_VAR): Return true also if
1543 !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
1544 into a local temporary.
1546 2012-10-10 Jakub Jelinek <jakub@redhat.com>
1548 PR tree-optimization/54877
1549 * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
1550 use make_ssa_name instead of copy_ssa_name.
1552 2012-11-03 Peter Bergner <bergner@vnet.ibm.com>
1554 Backport from mainline
1555 2012-10-31 Jakub Jelinek <jakub@redhat.com>
1557 PR tree-optimization/53708
1558 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
1559 user-supplied alignment when used with an explicit section name.
1561 2012-11-02 Jeff Law <law@redhat.com>
1563 PR tree-optimization/54985
1564 * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
1565 from thread_across_edge.
1566 (thread_across_edge): Use it in all cases where we might thread
1569 2012-10-31 Eric Botcazou <ebotcazou@adacore.com>
1571 * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
1572 special register pushes before frame probing and allocation.
1574 2012-10-31 Ralf Corsépius <ralf.corsepius@rtems.org>,
1575 Joel Sherrill <joel.sherrill@oarcorp.com>
1577 * config/sparc/t-rtems: New (Custom multilibs).
1578 * config/sparc/t-rtems-64: New (Custom multilibs).
1579 * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
1580 (sparc-*-rtems*): Add sparc/t-rtems.
1582 2012-10-30 Eric Botcazou <ebotcazou@adacore.com>
1584 * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
1586 (hash_rtx): Likewise.
1588 2012-10-29 Terry Guo <terry.guo@arm.com>
1590 Backport from mainline
1591 2012-10-11 Terry Guo <terry.guo@arm.com>
1593 * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
1595 * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
1598 2012-10-26 Gunther Nikl <gnikl@users.sourceforge.net>
1600 * common/config/m68k/m68k-common.c (m68k_handle_option): Set
1601 gcc_options fields of opts_set for -m68020-40 and -m68020-60.
1603 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
1605 * config/avr/t-rtems: Revert previous commit.
1607 2012-10-26 Terry Guo <terry.guo@arm.com>
1609 Backport from mainline
1610 2012-10-23 Terry Guo <terry.guo@arm.com>
1613 * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
1616 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
1618 * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
1620 * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
1622 2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1624 * config.gcc (microblaze*-*-rtems*): New target.
1625 * config/microblaze/rtems.h: New.
1626 * config/microblaze/t-rtems: New.
1628 2012-10-25 Richard Biener <rguenther@suse.de>
1630 PR tree-optimization/54902
1631 * tree-ssa-pre.c (fini_pre): Return TODO.
1632 (execute_pre): Adjust.
1633 * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
1634 blocks before computing dominators.
1636 2012-10-24 Uros Bizjak <ubizjak@gmail.com>
1638 Backport from mainline
1639 2012-10-22 Uros Bizjak <ubizjak@gmail.com>
1641 * config/i386/i386.c (memory_address_length): Assert that non-null
1642 base or index RTXes are registers. Do not check for REG RTXes.
1643 Determine addr32 prefix using SImode_address_operand or
1644 from original base and index RTXes. Simplify code.
1646 2012-10-21 Uros Bizjak <ubizjak@gmail.com>
1648 * config/i386/i386-protos.h (memory_address_length): Add new bool
1649 argument. Update all uses.
1650 * config/i386/i386.c (memory_address_length): If not LEA insn, then
1651 add length of addr32 prefix based on mode of base or index register.
1652 (ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
1653 addresses here. Update call to memory_address_length.
1654 (ix86_print_address_operand): Use SImode_address_operand predicate.
1655 * config/i386/predicates.md (SImode_address_operand): New.
1656 * config/i386/i386.md (lea<mode>): Use SImode_address_operand
1657 to calculate "mode" attribute. Use SImode_address_operand predicate
1658 instead of open-coding accepted RTX codes.
1660 2012-10-22 Georg-Johann Lay <avr@gjlay.de>
1662 Backport from 2012-10-22 trunk r192685.
1663 * doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
1664 Note __AVR_<device>__ is not defined for cores.
1665 Don't point to --help=target.
1666 Order --mcu= documentation according to trunk:/gcc/doc/avr-mmcu.texi.
1668 2012-10-19 Marek Polacek <polacek@redhat.com>
1670 Backported from mainline
1671 2012-10-19 Marek Polacek <polacek@redhat.com>
1674 * fold-const.c (fold_sign_changed_comparison): Punt if folding
1675 pointer/non-pointer comparison.
1677 2012-10-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1679 Backported from mainline
1680 2012-10-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1683 * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
1684 sure the mode is correct when falling through from above cases.
1686 2012-10-19 Alan Modra <amodra@gmail.com>
1688 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
1689 (HAVE_LD_LARGE_TOC): Likewise.
1690 * configure: Regenerate.
1692 2012-10-19 Alan Modra <amodra@gmail.com>
1694 * config/rs6000/predicates.md (splat_input_operand): Don't call
1695 input_operand for MEMs. Instead check for volatile and call
1696 memory_address_addr_space_p with modified mode.
1698 2012-10-17 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1700 Backported from mainline
1701 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
1703 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
1705 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1707 PR rtl-optimization/54870
1708 * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
1709 * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
1710 SSA_NAME pointer that points to a partition if there is at least
1711 one variable with it set in the partition.
1712 * dse.c (local_variable_can_escape): New predicate.
1713 (can_escape): Call it.
1714 * gimplify.c (mark_addressable): If this is a partitioned decl, also
1715 mark the SSA_NAME pointer that points to a partition.
1717 2012-10-16 Andrey Belevantsev <abel@ispras.ru>
1719 Backport from mainline
1720 2012-08-09 Andrey Belevantsev <abel@ispras.ru>
1722 PR rtl-optimization/53701
1723 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
1724 rocess not only expr's vinsns but all old vinsns from expr's
1727 2012-10-16 Andrey Belevantsev <abel@ispras.ru>
1729 Backport from mainline
1730 2012-07-31 Andrey Belevantsev <abel@ispras.ru>
1733 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
1735 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
1736 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
1737 only if producer writes to the register given by regno.
1739 2012-09-15 Uros Bizjak <ubizjak@gmail.com>
1741 Backport from mainline
1742 2012-10-15 Uros Bizjak <ubizjak@gmail.com>
1744 * config/i386/sse.md (UNSPEC_MOVU): Remove.
1745 (UNSPEC_LOADU): New.
1746 (UNSPEC_STOREU): Ditto.
1747 (<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
1748 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
1749 (<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
1750 (<sse2>_movdqu<avxsizesuffix>): Split to ...
1751 (<sse2>_loaddqu<avxsizesuffix>): ... this and ...
1752 (<sse2>_storedqu<avxsizesuffix>): ... this.
1753 (*sse4_2_pcmpestr_unaligned): Update.
1754 (*sse4_2_pcmpistr_unaligned): Ditto.
1756 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
1757 gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
1758 gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
1759 (ix86_expand_vector_move_misalign): Use gen_sse_loadups or
1760 gen_sse2_load{dqu,upd} to load from unaligned memory and
1761 gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
1763 (struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
1764 Use CODE_FOR_sse_loadups.
1765 <IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
1766 <IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
1767 <IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
1768 <IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
1769 <IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
1770 <IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
1771 <IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
1772 <IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
1773 <IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
1774 <IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
1775 <IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.
1777 2012-10-15 Steven Bosscher <steven@gcc.gnu.org>
1779 Backport from trunk (r190222):
1781 PR tree-optimization/54146
1782 * ifcvt.c: Include pointer-set.h.
1783 (cond_move_process_if_block): Change type of then_regs and
1784 else_regs from alloca'd array to pointer_sets.
1785 (check_cond_move_block): Update for this change.
1786 (cond_move_convert_if_block): Likewise.
1787 * Makefile.in: Fix dependencies for ifcvt.o.
1789 2012-10-15 Richard Guenther <rguenther@suse.de>
1791 PR tree-optimization/54920
1792 * tree-ssa-pre.c (create_expression_by_pieces): Properly
1793 allocate temporary storage for all NARY elements.
1795 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
1798 * doc/invoke.texi (AVR Options): Deprecate -mshort-calls.
1800 2012-10-05 Mark Kettenis <kettenis@openbsd.org>
1802 * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
1803 default_use_cxa_atexit to yes.
1805 2012-10-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1807 * config/pa/pa.md: Adjust unamed HImode add insn pattern.
1809 2012-10-05 Jan Hubicka <jh@suse.cz>
1810 Jakub Jelinek <jakub@redhat.com>
1812 PR tree-optimization/33763
1813 * tree-inline.c (expand_call_inline): Silently ignore always_inline
1814 attribute for redefined extern inline functions.
1816 2012-10-03 H.J. Lu <hongjiu.lu@intel.com>
1818 Backported from mainline
1819 2012-10-03 Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
1821 * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
1822 in SSE and YMM state support check for -march=native.
1824 2012-10-03 Alexandre Oliva <aoliva@redhat.com>
1827 * dwarf2out.c (value_format): Use block4 for dw_val_class_loc
1830 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
1832 Backported from mainline
1833 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
1836 * doc/invoke.texi: Document -mprefer-avx128.
1838 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
1840 Backported from mainline
1841 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
1844 * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
1845 (XSTATE_FP): Likewise.
1846 (XSTATE_SSE): Likewise.
1847 (XSTATE_YMM): Likewise.
1848 (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
1849 SSE and YMM states aren't supported.
1851 2012-10-01 Tom de Vries <tom@codesourcery.com>
1853 * var-tracking.c (set_dv_changed): Add an 'inline' function specifier to
1856 2012-10-01 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1859 * config/s390/s390.c (s390_option_override): Add missing break.
1861 2012-09-29 Andreas Tobler <andreast@fgznet.ch>
1863 Backport from mainline
1864 2012-09-29 Andreas Tobler <andreast@fgznet.ch>
1866 * config.gcc: Replace 'host' with 'target' when configuring for
1867 powerpc64*-*-freebsd.
1869 2012-09-28 Meador Inge <meadori@codesourcery.com>
1871 Backport from mainline
1872 2012-09-27 Meador Inge <meadori@codesourcery.com>
1874 * gcc-ar.c (main): Handle the returning of the sub-process error
1877 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
1879 Backport from 2012-09-28 trunk r191821.
1880 * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
1882 2012-09-27 Jakub Jelinek <jakub@redhat.com>
1885 * simplify-rtx.c (simplify_binary_operation_1): Perform
1886 (x - (x & y)) -> (x & ~y) optimization only for integral modes.
1888 2012-09-24 Eric Botcazou <ebotcazou@adacore.com>
1890 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
1891 TYPE_NONALIASED_COMPONENT flag.
1892 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
1893 TYPE_NONALIASED_COMPONENT flag.
1895 2012-09-21 Richard Guenther <rguenther@suse.de>
1898 Backport from mainline
1899 2012-04-19 Richard Guenther <rguenther@suse.de>
1901 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
1904 2012-09-20 Joseph Myers <joseph@codesourcery.com>
1907 * c-typeck.c (c_cast_expr): When casting to a type requiring
1908 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
1911 2012-09-20 Joseph Myers <joseph@codesourcery.com>
1914 * c-typeck.c (build_unary_op): Pass original argument of
1915 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
1916 any C_MAYBE_CONST_EXPR, if it has integer operands.
1917 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
1918 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
1919 to c_objc_common_truthvalue_conversion, then remove any
1920 C_MAYBE_CONST_EXPR, if they have integer operands. Use
1921 c_objc_common_truthvalue_conversion not
1922 c_common_truthvalue_conversion.
1923 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
1924 call note_integer_operands for arguments with integer operands
1925 that are not integer constants.
1927 2012-09-20 Jakub Jelinek <jakub@redhat.com>
1929 Backported from mainline
1930 2012-09-17 Jakub Jelinek <jakub@redhat.com>
1932 PR tree-optimization/54563
1933 * tree-ssa-math-opts.c (execute_cse_sincos): Call
1934 gimple_purge_dead_eh_edges if last call has been changed.
1936 2012-09-14 Jakub Jelinek <jakub@redhat.com>
1939 * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
1940 instead of (match_dup 0) as second argument to vec_merge.
1941 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
1942 Remove third alternative.
1943 (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise. Negate
1944 operand 2 instead of operand 1, but put it as first argument
1946 * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
1947 _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
1950 2012-09-20 Jakub Jelinek <jakub@redhat.com>
1952 * BASE-VER: Set to 4.7.3.
1953 * DEV-PHASE: Set to prerelease.
1955 2012-09-20 Release Manager
1957 * GCC 4.7.2 released.
1959 2012-09-15 Andi Kleen <ak@linux.intel.com>
1961 Backport from mainline
1962 2012-09-07 Andi Kleen <ak@linux.intel.com>
1964 * gcc/lto-streamer.h (res_pair): Add.
1965 (lto_file_decl_data): Replace resolutions with respairs.
1967 * gcc/lto/lto.c (lto_resolution_read): Remove max_index. Add rp.
1968 Initialize respairs.
1969 (lto_file_finalize): Set up resolutions vector lazily from respairs.
1971 2012-09-14 Walter Lee <walt@tilera.com>
1973 Backport from mainline.
1974 2012-09-14 Walter Lee <walt@tilera.com>
1976 * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
1977 option for TILEPro and TILE-Gx.
1979 2012-09-13 Uros Bizjak <ubizjak@gmail.com>
1981 * config/i386/i386.h (x86_prefetchw): New global variable.
1982 (TARGET_PREFETCHW): New macro.
1983 * config/i386/i386.c (PTA_PREFETCHW): Ditto.
1984 (processor_alias_table): Add PTA_PREFETCHW to
1985 bdver1, bdver2 and btver1.
1986 (ix86_option_override_internal): Set x86_prefetchw for
1987 PTA_PREFETCHW targets.
1988 * config/i386/i386.md (prefetch): Expand to prefetchw
1989 for TARGET_PREFETCHW.
1990 (*prefetch_3dnow_<mode>): Also enable for TARGET_PREFETCHW.
1992 Backport from mainline
1993 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
1995 * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
1996 (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
1998 (*prefetch_sse): ... this.
1999 (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
2001 (*prefetch_3dnow): ... this.
2003 2012-09-13 Jakub Jelinek <jakub@redhat.com>
2006 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
2007 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
2009 2012-09-12 Teresa Johnson <tejohnson@google.com>
2011 Backport from mainline.
2012 2012-09-12 Teresa Johnson <tejohnson@google.com>
2014 PR gcov-profile/54487
2015 * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
2016 test using F_SETLKW with fcntl.
2017 * configure, config.in: Regenerate.
2019 2012-09-12 Uros Bizjak <ubizjak@gmail.com>
2021 Backport from mainline
2022 2012-09-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2024 * config/i386/i386.md : Comments on fma4 instruction selection
2025 reflect requirement on register pressure based cost model.
2027 * config/i386/driver-i386.c (host_detect_local_cpu): fma4
2028 flag is set-reset as informed by the cpuid flag.
2030 * config/i386/i386.c (processor_alias_table): fma4
2031 flag is enabled for bdver2.
2033 2012-09-12 Christian Bruel <christian.bruel@st.com>
2035 * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
2037 2012-09-12 Jakub Jelinek <jakub@redhat.com>
2039 * config.gcc: Obsolete picochip-*.
2041 2012-09-11 Richard Guenther <rguenther@suse.de>
2044 * cgraph.h (varpool_can_remove_if_no_refs): Restore dependence
2045 on flag_toplevel_reorder.
2047 2012-09-10 Richard Henderson <rth@redhat.com>
2049 * config/alpha/predicates.md (small_symbolic_operand): Disallow
2052 2012-09-10 Georg-Johann Lay <avr@gjlay.de>
2054 Backport from 2012-09-10 mainline r191132.
2057 * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
2059 2012-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
2062 * tree-sra.c (disqualify_base_of_expr): Check for possible
2063 NULL_TREE returned by get_base_address()
2065 2012-09-07 Richard Guenther <rguenther@suse.de>
2067 Backport from mainline
2068 2012-06-26 Jan Hubicka <jh@suse.cz>
2071 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
2074 2012-09-07 Richard Guenther <rguenther@suse.de>
2076 Backport from mainline
2077 2012-07-13 Richard Guenther <rguenther@suse.de>
2079 PR tree-optimization/53922
2080 * tree-vrp.c (value_inside_range): Change prototype to take
2081 min/max instead of value-range.
2082 (range_includes_zero_p): Likewise. Return the result from
2084 (extract_range_from_binary_expr_1): Adjust to handle dont-know
2085 return value from range_includes_zero_p.
2086 (extract_range_from_unary_expr_1): Likewise.
2087 (compare_range_with_value): Likewise.
2088 (vrp_meet_1): Likewise.
2090 2012-09-07 Richard Guenther <rguenther@suse.de>
2093 * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
2094 EAF_NOESCAPED arguments. Transitively close non-EAF_DIRECT
2095 arguments separately.
2097 2012-09-07 Jakub Jelinek <jakub@redhat.com>
2099 Backported from mainline
2100 2012-09-06 Jakub Jelinek <jakub@redhat.com>
2102 PR rtl-optimization/54455
2103 * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
2104 bb ends up with asm goto referencing bb's label.
2106 2012-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2108 Backport from mainline.
2109 2012-08-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2110 Richard Earnshaw <richard.earnshaw@arm.com>
2113 * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
2114 element size. Use elem_type from the formal parameter. New parameter
2116 (neon_expand_args): Adjust call to neon_dereference_pointer.
2118 2012-09-06 Uros Bizjak <ubizjak@gmail.com>
2120 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Use
2121 reg_not_xmm0_operand_maybe_avx as operand 0 constraint.
2123 2012-09-06 Uros Bizjak <ubizjak@gmail.com>
2125 Backport from mainline
2126 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
2128 * config/i386/i386.md (isa): Add fma and fma4.
2129 (enabled): Handle fma and fma4.
2130 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
2131 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
2132 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
2133 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
2134 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
2135 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
2137 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
2139 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
2140 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
2141 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
2143 2012-09-06 Richard Guenther <rguenther@suse.de>
2145 PR tree-optimization/54498
2146 * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
2147 abort when reaching an already visited region.
2148 * tree-ssa-alias.c (maybe_skip_until): Likewise. And do it.
2149 (get_continuation_for_phi_1): Likewise.
2150 (walk_non_aliased_vuses): When we translated the reference,
2151 abort when we re-visit a region.
2152 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
2154 2012-09-06 Andrew Pinski <apinski@cavium.com>
2157 * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
2159 2012-09-05 Jakub Jelinek <jakub@redhat.com>
2162 * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
2163 build_int_cst with size_type_node instead of size_int.
2165 2012-09-05 Georg-Johann Lay <avr@gjlay.de>
2167 Backport from 2012-09-05 mainline r190697.
2170 * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
2171 configured --with-avrlibc.
2172 (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if configured
2174 * config/avr/avrlibc.h: New file.
2175 * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
2176 configured --with-avrlibc.
2177 * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
2179 2012-09-05 Bin Cheng <bin.cheng@arm.com>
2181 Backport from 2012-09-04 mainline r190919
2184 * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
2185 of size less than 4 bytes by using macro ARM_NUM_INTS.
2186 (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
2188 2012-09-04 Richard Henderson <rth@redhat.com>
2190 * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
2192 2012-09-04 Georg-Johann Lay <avr@gjlay.de>
2194 Backport from 2012-09-04 mainline r190920
2197 * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with SImode.
2199 2012-09-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2201 Backport from 2012-09-04 mainline r190914
2204 * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
2206 (avr_allocate_stack_slots_for_args): ...this new static function.
2208 2012-09-03 H.J. Lu <hongjiu.lu@intel.com>
2210 Backported from mainline
2211 2012-08-23 H.J. Lu <hongjiu.lu@intel.com>
2214 * doc/invoke.texi: Add -da and remove -dm.
2216 2012-09-03 Jakub Jelinek <jakub@redhat.com>
2218 Backported from mainline
2219 2012-09-01 Jakub Jelinek <jakub@redhat.com>
2222 * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
2223 operands[1] is CONST_INT_P, convert it to QImode before printing.
2225 2012-08-31 Jakub Jelinek <jakub@redhat.com>
2228 * c-convert.c (convert): Don't call fold_convert_loc if
2229 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
2230 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
2231 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
2233 2012-08-24 Jakub Jelinek <jakub@redhat.com>
2236 * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
2237 if init is a CONSTRUCTOR.
2239 2012-09-02 Eric Botcazou <ebotcazou@adacore.com>
2241 PR rtl-optimization/54369
2242 * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
2243 calling dbr_schedule.
2244 * config/sparc/sparc.c (sparc_reorg): Likewise.
2246 2012-08-31 Kirill Yukhin <kirill.yukhin@intel.com>
2248 Backport from mainline
2249 2012-08-23 Yuri Rumyantsev <ysrumyan@gmail.com>
2251 * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
2252 case for Atom processor.
2254 2012-08-28 Uros Bizjak <ubizjak@gmail.com>
2256 Backport from mainline
2257 2012-08-27 Uros Bizjak <ubizjak@gmail.com>
2260 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
2261 true for TARGET_64BIT or !flag_pic.
2262 * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
2263 (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
2264 to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator.
2265 Add insn constraint. Conditionally emit xchg asm insns.
2266 (atomic_compare_and_swap<mode>): Update calls. Check only
2267 cmpxchg8b_pic_memory_operand in memory address fixup.
2269 (CASHMODE): Rename from DCASHMODE.
2270 (doublemodesuffix): Update modes.
2271 (regprefix): New mode attribute.
2273 (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
2274 <UNSPECV_CMPXCHG>: New constant.
2275 (atomic_compare_and_swap<mode>_1): Rename from
2276 atomic_compare_and_swap_single<mode>. Update calls and
2277 unspec_volatile constants.
2278 (atomic_compare_and_swap<mode>_doubleword): Rename from
2279 atomic_compare_and_swap_double<mode>. Update calls and
2280 unspec_volatile constants.
2282 2012-08-28 Walter Lee <walt@tilera.com>
2284 Backport from mainline
2285 2012-08-28 Walter Lee <walt@tilera.com>
2287 * confg/tilegx/tilegx.md: Fix code style.
2288 (*zero_extendsidi_truncdisi): Fix typo.
2289 * config/tilegx/tilegx.c: Fix code style.
2290 (tilegx_function_profiler): Fix typo.
2292 2012-08-27 Walter Lee <walt@tilera.com>
2294 Backport from mainline
2295 2012-08-27 Walter Lee <walt@tilera.com>
2297 * doc/md.texi (TILE-Gx): Fix typo.
2299 2012-08-27 Walter Lee <walt@tilera.com>
2301 Backport from mainline
2302 2012-08-27 Walter Lee <walt@tilera.com>
2304 * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
2305 * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
2307 2012-08-27 Walter Lee <walt@tilera.com>
2309 Backport from mainline
2310 2012-08-27 Walter Lee <walt@tilera.com>
2312 * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
2313 (insn_bfins): Delete.
2315 2012-08-27 Walter Lee <walt@tilera.com>
2317 Backport from mainline
2318 2012-08-27 Walter Lee <walt@tilera.com>
2320 * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
2321 atomic_exchange_bare<mode>,
2322 atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
2323 * config/tilegx/tilegx-generic.md (X1_remote): New insn_reservation.
2324 * config/tilegx/tilegx.md (type): Add X1_remove.
2325 (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
2326 insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
2327 insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
2330 2012-08-25 Eric Botcazou <ebotcazou@adacore.com>
2332 PR rtl-optimization/54088
2333 * jump.c (delete_related_insns): Robustify latest change.
2335 2012-08-21 Richard Guenther <rguenther@suse.de>
2337 Backport from mainline
2338 2012-08-16 Richard Guenther <rguenther@suse.de>
2341 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
2343 * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
2344 * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
2345 * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
2346 * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
2347 (tree_ssa_lim_finalize): Free all mem_refs.
2348 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
2349 scc when bailing out.
2350 * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
2351 * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
2352 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
2353 FOR_EACH_LOOP_BREAK.
2355 2012-08-17 Richard Guenther <rguenther@suse.de>
2357 * tree-sra.c (modify_function): Free redirect_callers vector.
2358 * ipa-split.c (split_function): Free args_to_pass vector.
2359 * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
2361 (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
2362 * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
2363 (vect_analyze_slp_instance): Free everything.
2364 (destroy_bb_vec_info): Free the SLP instances.
2366 2012-08-17 Richard Guenther <rguenther@suse.de>
2368 * params.def (integer-share-limit): Decrease from 256 to 251,
2371 2012-08-21 Richard Guenther <rguenther@suse.de>
2373 * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
2374 the affine expansion cache.
2376 2012-08-20 Patrick Marlier <patrick.marlier@gmail.com>
2378 Backported from trunk
2379 2012-08-20 Patrick Marlier <patrick.marlier@gmail.com>
2382 * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
2384 2012-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2386 Backport from mainline.
2387 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2390 * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
2391 mark as predicable. Adjust asm template.
2392 (vec_setv2di_internal): Likewise.
2393 (vec_extract<mode> VD, VQ): Likewise.
2394 (vec_extractv2di): Likewise.
2395 (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
2396 (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
2397 (neon_vdup_n<mode> VX, V32): Likewise.
2398 (neon_vdup_nv2di): Likewise.
2400 2012-08-17 Walter Lee <walt@tilera.com>
2402 Backport from mainline
2403 2012-08-17 Walter Lee <walt@tilera.com>
2405 * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
2406 (FEEDBACK_ENTER): Define.
2407 (FEEDBACK_REENTER): Define.
2408 (FEEDBACK_ENTRY): Define.
2409 * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
2410 (FEEDBACK_ENTER): Define.
2411 (FEEDBACK_REENTER): Define.
2412 (FEEDBACK_ENTRY): Define.
2414 2012-08-16 Walter Lee <walt@tilera.com>
2416 Backport from mainline
2417 2012-08-16 Walter Lee <walt@tilera.com>
2419 * config.gcc (tilegx-*-linux*): Add feedback.h.
2420 (tilepro-*-linux*): Likewise.
2421 * config/tilegx/feedback.h: New file.
2422 * config/tilepro/feedback.h: New file.
2424 2012-08-08 Pavel Chupin <pavel.v.chupin@intel.com>
2426 Backport from mainline r189840 and r187586:
2427 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
2429 * config/i386/i386.md (stack_protect_set): Disable the pattern
2430 for Android since Android libc (bionic) does not provide random
2431 value for stack protection guard at gs:0x14. Guard value
2432 will be provided from external symbol (default implementation).
2433 (stack_protect_set_<mode>): Likewise.
2434 (stack_protect_test): Likewise.
2435 (stack_protect_test_<mode>): Likewise.
2436 * gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
2437 not have Bionic by default
2438 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
2439 Macro OPTION_BIONIC is defined in this file and provides Bionic
2440 accessibility status
2442 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
2444 * configure.ac: Stack protector enabling for Android targets.
2445 * configure: Regenerate.
2447 2012-08-13 Jakub Jelinek <jakub@redhat.com>
2449 Backported from trunk
2450 2012-07-19 Jakub Jelinek <jakub@redhat.com>
2452 PR rtl-optimization/53942
2453 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
2454 directly from likely spilled non-fixed hard registers, move them
2457 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
2459 * config/i386/sse.md (xop_phaddbq): Fix vec_select selectors.
2460 (xop_phaddubq): Ditto.
2462 2012-08-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2464 Backport from mainline
2465 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2466 Richard Earnshaw <rearnsha@arm.com>
2468 * target.def (vector_alignment): New target hook.
2469 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
2470 * doc/tm.texi: Regenerate.
2471 * targhooks.c (default_vector_alignment): New function.
2472 * targhooks.h (default_vector_alignment): Add prototype.
2473 * stor-layout.c (layout_type): Use targetm.vector_alignment.
2474 * config/arm/arm.c (arm_vector_alignment): New function.
2475 (TARGET_VECTOR_ALIGNMENT): Define.
2477 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
2478 vector type alignment instead of size.
2479 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
2480 element type size directly instead of computing it from alignment.
2481 Fix variable naming and comment.
2483 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
2485 Backport from mainline
2486 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
2488 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
2489 (alpha_pad_function_end): ... this. Also insert NOP between
2490 sibling call and GP load.
2491 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
2493 2012-08-09 H.J. Lu <hongjiu.lu@intel.com>
2495 Backport from mainline
2496 2012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
2497 H.J. Lu <hongjiu.lu@intel.com>
2499 PR rtl-optimization/54157
2500 * combine.c (gen_lowpart_for_combine): Don't return identity
2501 for CONST or symbolic reference.
2503 2012-08-06 Uros Bizjak <ubizjak@gmail.com>
2505 Backport from mainline
2506 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
2508 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
2509 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
2510 split_cost argument signed.
2511 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
2512 (ix86_avoid_lea_for_addr): Ditto.
2514 2012-07-27 Uros Bizjak <ubizjak@gmail.com>
2516 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false if
2517 the address has less than two components.
2519 2012-08-02 Steve Ellcey <sellcey@mips.com>
2521 Backport from mainline
2522 2012-07-19 Steve Ellcey <sellcey@mips.com>
2524 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
2527 2012-08-02 Uros Bizjak <ubizjak@gmail.com>
2529 Backport from mainline
2530 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
2533 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
2534 negative constant address for TARGET_X32 ...
2535 (ix86_decompose_address): ... here. Reject constant addresses
2536 that don't satisfy x86_64_immediate_operand predicate.
2538 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
2541 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
2542 * config/i386/i386.c (ix86_print_operand_address): Ditto.
2543 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
2544 addresses. Prevent zero extensions of CONST_INT operands.
2546 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
2549 * config/i386/i386.md (*lea): New insn pattern.
2551 (*lea<mode>_2): Ditto.
2552 (*lea_{3,4,5,6}_zext): Ditto.
2553 * config/i386/predicates.md (lea_address_operand): Do not reject
2554 zero-extended address operands.
2555 * config/i386/constraints.md (j): Remove address constraint.
2556 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
2558 (ix86_print_operand_address): Handle SImode subreg of an address.
2559 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
2561 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
2563 Backport from mainline
2564 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
2567 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
2568 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
2570 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
2571 (*movdi_internal_rex64): Use %E operand modifier for lea.
2572 (*movsi_internal): Ditto.
2574 (*lea<mode>_2): Ditto.
2575 (*lea_{3,4,5,6}_zext): Ditto.
2576 (*tls_global_dynamic_32_gnu): Ditto.
2577 (*tls_global_dynamic_64): Ditto.
2578 (*tls_dynamic_gnu2_lea_32): Ditto.
2579 (*tls_dynamic_gnu2_lea_64): Ditto.
2580 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
2582 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
2584 Backport from mainline
2585 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
2587 * config/i386/i386.c (ix86_address_subreg_operand): Reject
2589 (ix86_print_operand_address): Assert that parts.base and parts.index
2590 are non-NULL after call to simplify_subreg.
2592 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
2595 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
2597 * config/sh/sh.c (sh_option_override): Do not change
2598 flag_finite_math_only. Set TARGET_IEEE to complement of
2599 flag_finite_math_only.
2600 * doc/invoke.texi (SH options): Add mno-ieee. Correct
2601 description of mieee and mno-ieee behavior.
2603 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
2606 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
2607 (_lzcnt_u64): Ditto.
2609 2012-07-20 Andrey Belevantsev <abel@ispras.ru>
2611 Backport from mainline
2612 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
2614 PR rtl-optimization/52250
2615 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
2616 to put note list into. Unconditionally call move_bb_info.
2617 (move_bb_info): Do not assert the blocks being in the same region,
2618 just drop the note list if they are not.
2620 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
2622 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
2624 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
2626 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
2627 defining statement is a SSA name that occurs in abnormal PHIs.
2629 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
2631 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
2634 2012-07-19 Richard Guenther <rguenther@suse.de>
2635 Eric Botcazou <ebotcazou@adacore.com>
2637 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
2638 about transition from invariant to known bits.
2639 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
2641 2012-07-19 Jakub Jelinek <jakub@redhat.com>
2644 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
2645 (cleanup_tree_cfg_bb): Don't call it.
2646 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
2649 2012-07-19 Christian Bruel <christian.bruel@st.com>
2652 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
2654 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
2656 * config.gcc (v850-*-rtems*): New target.
2657 * config/v850/rtems.h: New.
2658 * config/v850/t-rtems: New.
2660 2012-07-18 Nick Clifton <nickc@redhat.com>
2662 * doc/invoke.texi (ARM Options): Document -munaligned-access.
2664 2012-07-15 Uros Bizjak <ubizjak@gmail.com>
2668 Backport from mainline
2669 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2672 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
2673 instead expand it as zero extension.
2675 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
2677 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
2678 QImode and HImode splitters. Use ix86_comparison_operator.
2679 Explicitly match FLAGS_REG.
2680 (DFmode cmove splitter): Explicitly match FLAGS_REG.
2682 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
2683 Steven Bosscher <steven@gcc.gnu.org>
2684 Bernd Schmidt <bernds@codesourcery.com>
2686 PR rtl-optimization/53908
2687 * df-problems.c (can_move_insns_across): When doing
2688 memory-reference book-keeping, handle call insns.
2690 2012-07-10 Uros Bizjak <ubizjak@gmail.com>
2692 Backport from mainline
2693 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2696 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
2697 sibcall_insn_operand. Move it to a temporary register if not.
2699 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
2702 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
2703 emit PIC sequence for fnaddr symbol reference in advance.
2705 2012-07-09 Jason Merrill <jason@redhat.com>
2708 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
2709 (type_hash_eq): Likewise.
2712 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
2714 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2716 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
2717 due to negative shift amount.
2719 2012-07-06 Kai Tietz <ktietz@redhat.com>
2721 Backport from mainline.
2723 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
2724 as "/mingw/include".
2726 2012-07-06 Nick Clifton <nickc@redhat.com>
2728 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
2729 default_encode_section_info.
2731 2012-07-06 Richard Guenther <rguenther@suse.de>
2733 Backport from mainline
2734 2012-03-30 Richard Guenther <rguenther@suse.de>
2737 * double-int.c (rshift_double): Remove not needed cast.
2739 2012-03-28 Richard Guenther <rguenther@suse.de>
2742 * double-int.h (rshift_double): Remove.
2743 * double-int.c (lshift_double): Use absu_hwi to make count
2745 (rshift_double): Make static, take unsigned count argument,
2746 remove handling of negative count argument.
2747 (double_int_rshift): Dispatch to lshift_double.
2749 2012-07-06 Richard Guenther <rguenther@suse.de>
2751 Backport from mainline
2752 2012-06-18 Richard Guenther <rguenther@suse.de>
2754 PR tree-optimization/53693
2755 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
2756 Reject operands with more than one use.
2758 2012-07-06 Richard Guenther <rguenther@suse.de>
2760 Backport from mainline
2761 2012-04-11 Richard Guenther <rguenther@suse.de>
2764 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
2765 consider loop nesting.
2766 (evolution_function_is_univariate_p): Properly check the remainder
2769 2012-07-05 Pat Haugen <pthaugen@us.ibm.com>
2771 Backport from mainline
2772 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
2774 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
2775 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
2776 (adjacent_mem_locations): Move some code to and call...
2777 (get_memref_parts): ...new function.
2778 (mem_locations_overlap): New function.
2779 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
2780 (is_mem_ref): Rename to...
2781 (find_mem_ref): ...this. Return MEM rtx.
2782 (get_store_dest): Remove function.
2783 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
2784 new parameter and adjust calls.
2785 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
2786 mem refs overlap for true_store_to_load_dep_costly.
2787 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
2788 passed to adjacent_mem_locations.
2789 (is_costly_group): Walk resolved dependency list.
2790 (force_new_group): Emit group ending nop for Power6/Power7.
2791 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
2792 (group_ending_nop): New define_insn.
2794 2012-07-04 Richard Guenther <rguenther@suse.de>
2797 * gimple-fold.c (get_base_constructor): Do not return an
2798 error_mark_node DECL_INITIAL.
2800 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
2802 Backport from mainline
2803 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2805 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
2806 code model string in the error message.
2808 2012-07-04 Tristan Gingold <gingold@adacore.com>
2810 Backport from mainline.
2811 2012-06-25 Tristan Gingold <gingold@adacore.com>
2813 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
2814 (seh_cfa_adjust_cfa): ... that function.
2815 (seh_emit_stackalloc): Do not emit out of range values.
2816 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
2817 UNSPEC_DEF_CFA constants.
2818 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
2819 * config/i386/i386.c (ix86_frame_pointer_required): Required
2820 for very large frames on SEH target.
2821 (ix86_compute_frame_layout): Save area is before frame pointer
2822 on SEH target. Handle very large frames.
2823 (ix86_expand_prologue): Likewise.
2825 2012-07-04 Richard Guenther <rguenther@suse.de>
2827 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
2828 as in free_lang_data_in_type.
2830 2012-07-02 Martin Jambor <mjambor@suse.cz>
2832 Backport from mainline.
2833 2012-07-02 Martin Jambor <mjambor@suse.cz>
2836 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
2837 dynamic type change check.
2839 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
2841 * tree-eh.c (lower_try_finally_switch): Really put the location of the
2842 last statement of the finally block onto the switch.
2844 2012-06-29 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2846 * configure: Regenerate.
2848 Backport from mainline.
2849 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2851 * config.gcc (target_type_format_char): New. Document it. Set it for
2853 * configure.ac (gnu_unique_option): Use target_type_format_char
2854 in test. Comment rationale.
2856 2012-06-29 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2858 Backport from mainline.
2859 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2861 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
2863 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
2865 Backport from 2012-06-28 mainline r189049
2868 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
2869 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
2870 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
2871 avr_hard_regno_call_part_clobbered.
2873 2012-06-28 Richard Guenther <rguenther@suse.de>
2876 * expr.c (expand_expr_real_1): Verify if the type is complete
2877 before inspecting its size.
2879 2012-06-27 Nick Clifton <nickc@redhat.com>
2881 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
2884 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
2887 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
2889 2012-06-26 Nick Clifton <nickc@redhat.com>
2891 * config/rx/rx.md (simple_return): Use the simple_return rtx.
2893 2012-06-25 Jakub Jelinek <jakub@redhat.com>
2896 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
2897 of x x x in the vmovlps load alternative.
2899 2012-06-22 Richard Guenther <rguenther@suse.de>
2901 * gcov-iov.c: Include bconfig.h and system.h.
2903 2012-06-22 Richard Guenther <rguenther@suse.de>
2905 PR gcov-profile/53744
2906 * gcov-iov.c (main): Treat "" and "prerelease" the same.
2908 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
2910 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
2911 DECL_IGNORED_P non-reg vars even if they are used.
2913 2012-06-19 Jason Merrill <jason@redhat.com>
2916 * dwarf2out.c (modified_type_die): Use scope_die_for.
2917 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
2918 (uses_local_type_r, uses_local_type): New.
2919 (scope_die_for): Keep a type that uses a local type in local scope.
2920 Use get_context_die for namespace and type scope.
2922 2012-06-19 Richard Guenther <rguenther@suse.de>
2925 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
2926 replace it with the first non-BLOCK context.
2928 2012-06-18 Vladimir Makarov <vmakarov@redhat.com>
2930 PR rtl-optimization/53700
2932 Backport from mainline
2933 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
2935 * ira-color.c (setup_left_conflict_sizes_p): Process all
2936 conflicting objects.
2938 2012-06-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2940 Backport from mainline
2941 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
2944 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
2945 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
2946 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
2947 instead of xop_mulv2div2di3_low.
2948 (xop_p<macs>dql): Fix vec_select selector.
2949 (xop_p<macs>dqh): Ditto.
2950 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
2951 (xop_mulv2div2di3_high): Ditto.
2953 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
2955 Backport from mainline:
2956 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
2958 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
2960 2012-06-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2962 Backport from mainline:
2963 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2965 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
2966 * config/pa/pa.c (pa_attr_length_millicode_call): Use
2967 MAX_PCREL17F_OFFSET instead of fixed offset.
2968 (pa_attr_length_call): Likewise.
2969 (pa_attr_length_indirect_call): Likewise.
2971 2012-06-15 Walter Lee <walt@tilera.com>
2973 Backport from mainline:
2974 2012-06-15 Walter Lee <walt@tilera.com>
2976 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
2978 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
2980 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
2982 2012-06-15 Aldy Hernandez <aldyh@redhat.com>
2984 Backport from mainline:
2986 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
2987 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
2988 * gimple.h (block_in_transaction): Check for flag_tm.
2990 2012-06-14 Aldy Hernandez <aldyh@redhat.com>
2992 PR tree-optimization/52558
2994 Backport from mainline:
2995 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
2996 * gimple.h (gimple_set_in_transaction): Remove.
2997 (gimple_in_transaction): Look in BB instead.
2998 (gimple_statement_base): Remove in_transaction field.
2999 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
3000 * trans-mem.c (compute_transaction_bits): Place transaction bit
3001 information into basic blocks.
3003 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
3005 PR tree-optimization/52558
3006 * cfg.c (alloc_aux_for_edge): Fix comment.
3007 (alloc_aux_for_edge): Remove static.
3008 * basic-block.h (alloc_aux_for_edge): Protoize.
3009 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
3010 (execute_sm_if_changed_flag): New.
3011 (execute_sm_if_changed_flag_set): New.
3012 (execute_sm): Do not generate data races unless requested.
3013 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
3014 (tree_ssa_lim_finalize): Call free_aux_for_edges.
3015 * gimple.h (block_in_transaction): New.
3016 (gimple_in_transaction): Use block_in_transaction.
3018 2012-06-14 Jakub Jelinek <jakub@redhat.com>
3020 Backported from mainline
3021 2012-06-12 Jakub Jelinek <jakub@redhat.com>
3023 PR rtl-optimization/53589
3024 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
3025 discovery even when e->dest != target. If any LABEL_REF points
3026 to e->dest label, redirect it to target's label.
3028 2012-06-07 Jakub Jelinek <jakub@redhat.com>
3031 * omp-low.c (scan_omp_1_stmt): If check_omp_nesting_restrictions
3032 returns false, replace stmt with GIMPLE_NOP.
3033 (check_omp_nesting_restrictions): Instead of issuing warnings,
3034 issue errors and return false if any errors were reported.
3036 2012-06-14 Richard Guenther <rguenther@suse.de>
3038 * BASE-VER: Set to 4.7.2.
3039 * DEV-PHASE: Set to prerelease.
3041 2012-06-12 Christian Bruel <christian.bruel@st.com>
3044 * config/sh/sh.c (sh_option_override): Don't force
3045 flag_omit_frame_pointer and maccumulate_outgoing_args.
3046 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
3048 2012-06-14 Release Manager
3050 * GCC 4.7.1 released.
3052 2012-06-13 Uros Bizjak <ubizjak@gmail.com>
3054 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
3056 2012-06-13 Richard Henderson <rth@redhat.com>
3058 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
3059 iterator instead of INT.
3061 2012-06-08 Richard Henderson <rth@redhat.com>
3064 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
3065 note to a clobber insn when no other insn is available.
3067 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
3070 * doc/invoke.texi (Wenum-compare): Update documentation.
3072 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
3075 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
3077 (altivec_stvlxl): Ditto.
3078 (altivec_stvrx): Ditto.
3079 (altivec_stvrxl): Ditto.
3081 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
3084 * trans-mem.c (expand_block_edges): Do not skip the first
3085 statement when resetting the BB.
3087 2012-06-04 Richard Guenther <rguenther@suse.de>
3090 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
3091 create new assembler names.
3093 2012-06-04 Richard Guenther <rguenther@suse.de>
3095 Backport from mainline
3096 2012-04-25 Jakub Jelinek <jakub@redhat.com>
3099 * stor-layout.c (get_best_mode): Don't return mode with bitsize
3100 larger than maxbits. Don't compute maxbits modulo align.
3101 Also check that unit bytes long store at bitpos / unit * unit
3102 doesn't affect bits beyond bitregion_end.
3103 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
3104 would not fit into bitregion_start ... bitregion_end + 1 bit
3106 (store_split_bit_field): Decrease unit close to end of bitregion_end
3107 if access is restricted in order to avoid mutual recursion.
3109 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
3111 Backport from 2012-06-04 mainline r188172
3114 * config/avr/avr-stdint.h: New file.
3115 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
3118 2012-06-04 Jakub Jelinek <jakub@redhat.com>
3120 PR tree-optimization/53550
3121 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
3122 is POINTER_TYPE_P, use sizetype as step type instead of type.
3124 2012-06-04 Richard Guenther <rguenther@suse.de>
3125 Eric Botcazou <ebotcazou@adacore.com>
3127 Backport from mainline
3128 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
3130 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
3131 Change type of BITOFFSET to signed. Make sure the lower bound of
3132 the computed range is non-negative by adjusting OFFSET and BITPOS.
3133 (expand_assignment): Adjust call to get_bit_range.
3135 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
3137 * expr.c (get_bit_range): Return the null range if the enclosing record
3138 is part of a larger bit field.
3140 2012-03-20 Richard Guenther <rguenther@suse.de>
3142 * stor-layout.c (finish_bitfield_representative): Fallback
3143 to conservative maximum size if the padding up to the next
3144 field cannot be computed as a constant.
3145 (finish_bitfield_layout): If we cannot compute the distance
3146 between the start of the bitfield representative and the
3147 bitfield member start a new representative.
3148 * expr.c (get_bit_range): The distance between the start of
3149 the bitfield representative and the bitfield member is zero
3150 if the field offsets are not constants.
3152 2012-03-16 Richard Guenther <rguenther@suse.de>
3154 * stor-layout.c (finish_bitfield_representative): Fall back
3155 to the conservative maximum size if we cannot compute the
3156 size of the tail padding.
3158 2012-03-14 Richard Guenther <rguenther@suse.de>
3160 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
3161 * stor-layout.c (start_bitfield_representative): New function.
3162 (finish_bitfield_representative): Likewise.
3163 (finish_bitfield_layout): Likewise.
3164 (finish_record_layout): Call finish_bitfield_layout.
3165 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
3166 for QUAL_UNION_TYPE fields.
3167 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
3168 Stream DECL_BIT_FIELD_REPRESENTATIVE.
3169 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
3174 * expr.c (get_bit_range): Unconditionally extract bitrange
3175 from DECL_BIT_FIELD_REPRESENTATIVE.
3176 (expand_assignment): Adjust call to get_bit_range.
3178 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
3181 * fold-const.c (fold_binary_loc): Refine previous change.
3183 2012-06-01 Oleg Endo <olegendo@gcc.gnu.org>
3185 Backport from mainline
3186 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
3189 * config/sh/sh.c (find_barrier): Add equality check of last_got to
3190 avoid going above orig insn. Update comments.
3192 2012-06-01 Oleg Endo <olegendo@gcc.gnu.org>
3194 Backport from mainline
3195 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
3198 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
3199 prologue for unwinder and profiler.
3201 2012-06-01 Oleg Endo <olegendo@gcc.gnu.org>
3203 Backport from mainline
3204 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
3206 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
3208 2012-06-01 Oleg Endo <olegendo@gcc.gnu.org>
3210 Backport from mainline
3211 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
3213 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
3214 DBX_REGISTER_NUMBER.
3216 2012-06-01 Oleg Endo <olegendo@gcc.gnu.org>
3218 Backport from mainline
3219 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
3221 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
3222 operand is CONST_INT. Take COSTS_N_INSNS into account.
3223 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value of
3226 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
3228 * config/avr/avr.opt (-msp8): Document it.
3229 * doc/invoke.texi (AVR Options): Copy from trunk docu.
3231 2012-05-31 Richard Guenther <rguenther@suse.de>
3234 * expr.c (expand_assignment): Do not use movmisalign on
3237 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3240 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
3241 (pa_section_type_flags): New.
3242 (pa_legitimate_constant_p): Revert previous change.
3244 2012-05-30 Aldy Hernandez <aldyh@redhat.com>
3246 Backport from mainline
3247 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
3250 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
3251 accessed indirectly.
3252 (ipa_tm_create_version): Same.
3254 2012-05-30 Jason Merrill <jason@redhat.com>
3257 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
3258 about array compound literals.
3260 2012-05-30 Richard Guenther <rguenther@suse.de>
3263 * fold-const.c (fold_binary_loc): Make sure to call
3264 fold_plusminus_mult_expr with the original sign of operands.
3266 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
3268 * explow.c (probe_stack_range): Restore simple control flow and stop
3269 again when the probe cannot be generated if HAVE_check_stack.
3271 2012-05-30 Jakub Jelinek <jakub@redhat.com>
3273 PR rtl-optimization/53519
3274 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
3275 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
3277 2012-05-29 Richard Guenther <rguenther@suse.de>
3279 PR tree-optimization/53516
3280 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
3282 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3284 2012-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
3286 Backport from mainline
3287 2012-05-28 Richard Guenther <rguenther@suse.de>
3289 PR tree-optimization/53438
3290 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
3292 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
3294 Backport from mainline
3295 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
3297 PR rtl-optimization/52528
3298 * combine.c (can_combine_p): Add setting of subst_low_luid
3299 before call to expand_field_assignment().
3301 2012-05-26 Martin Jambor <mjambor@suse.cz>
3303 Backport from mainline
3304 2012-05-23 Martin Jambor <mjambor@suse.cz>
3306 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
3308 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
3311 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
3312 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
3314 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3317 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
3318 (ix86_expand_vec_perm): Use int mode instead of float.
3320 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
3323 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
3324 gnu_ld variables to yes.
3325 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
3326 (HAVE_GNU_AS): Likewise.
3327 * config.in: Regenerate.
3328 * configure: Likewise.
3330 2012-05-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3332 Backport from mainline
3333 2012-03-12 Richard Guenther <rguenther@suse.de>
3334 * config/arm/arm.c (neon_dereference_pointer): Do not call
3335 covert during RTL expansion.
3337 2012-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3339 Backport from mainline
3340 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3343 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
3344 relied on signed overflow behavior.
3346 2012-05-24 Richard Guenther <rguenther@suse.de>
3349 * tree-profile.c (tree_profiling): Cleanup the CFG if
3350 execute_fixup_cfg requests it.
3352 2012-05-24 Jakub Jelinek <jakub@redhat.com>
3354 PR tree-optimization/53465
3355 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
3356 vr0 into *vr, then vrp_meet that.
3357 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
3358 have any equivalences.
3359 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
3362 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
3364 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
3366 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
3367 (iterative_hash_gimple_type): Adjust comment.
3368 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
3369 domain for an array type instead of the domain type itself.
3371 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
3373 Backport from 2012-05-23 mainline r187803
3376 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
3377 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
3380 2012-05-23 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3382 Backport from 2012-05-03 mainline r187075
3384 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
3385 has_fma4 for AMD processors with both fma3 and fma4 support.
3387 2012-05-22 Richard Guenther <rguenther@suse.de>
3389 PR tree-optimization/53408
3390 * tree-vect-loop.c (vectorizable_induction): Properly check
3391 the restriction that we cannot handle induction results from
3392 the inner loop outside of the outer loop.
3394 2012-05-21 Jakub Jelinek <jakub@redhat.com>
3396 PR tree-optimization/53436
3397 * omp-low.c (omp_build_component_ref): New function.
3398 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
3400 PR tree-optimization/53366
3401 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
3402 tests if complex_numbers == 2, but there are non-complex number loads
3405 PR tree-optimization/53409
3406 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
3407 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
3409 PR tree-optimization/53410
3410 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
3411 instead of build_int_cst (type, 0) where vector types might be
3414 2012-05-21 Joseph Myers <joseph@codesourcery.com>
3417 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
3418 from folded operands before wrapping another around the
3419 conditional expression.
3421 2012-05-21 Dave Boutcher <daveboutcher@gmail.com>
3422 Patrick Marlier <patrick.marlier@gmail.com>
3424 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
3427 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
3429 Backport from mainline
3430 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
3433 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
3434 (UNSPECV_RDRAND): This.
3435 (rdrand<mode>_1): Updated.
3437 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
3439 Backport from mainline
3440 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
3442 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3443 RDRND, F16C and FSGSBASE.
3445 2012-05-19 Eric Botcazou <ebotcazou@adacore.com>
3447 Backport from mainline
3448 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
3450 * tree-ssa-pre.c (can_value_number_call): Delete.
3451 (compute_avail): Skip all statements with side effects.
3452 <GIMPLE_CALL>: Skip calls to internal functions.
3454 2012-05-18 David S. Miller <davem@davemloft.net>
3456 Backport r185385 from mainline
3457 2012-03-14 Richard Guenther <rguenther@suse.de>
3460 * tree-vect-generic.c (type_for_widest_vector_mode): Take
3461 element type instead of mode, use build_vector_type_for_mode
3462 instead of the langhook, build a vector of proper signedness.
3463 (expand_vector_operations_1): Adjust.
3465 2012-05-18 Olivier Hainque <hainque@adacore.com>
3467 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
3468 $(libsubdir) as libexecsubdir.
3470 2012-05-16 Andrew Pinski <apinski@cavium.com>
3472 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
3475 2012-05-16 David S. Miller <davem@davemloft.net>
3477 * jump.c (delete_related_insns): If we remove a CALL, make sure
3478 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
3480 2012-05-16 Richard Henderson <rth@redhat.com>
3483 * combine-stack-adj.c (prev_active_insn_bb): New.
3484 (next_active_insn_bb): New.
3485 (force_move_args_size_note): New.
3486 (combine_stack_adjustments_for_block): Use it.
3488 2012-05-16 Olivier Hainque <hainque@adacore.com>
3490 * Makefile.in (install-no-fixedincludes): New target, former toplevel
3491 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
3492 Add comments and improve stamp preservation across the whole sequence.
3493 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
3495 2012-05-16 Richard Guenther <rguenther@suse.de>
3497 PR tree-optimization/53364
3498 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3499 detect a view-conversion of the decl.
3501 2012-05-15 Jakub Jelinek <jakub@redhat.com>
3504 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
3505 that operands[2] is either immediate, or q_regs_operand.
3507 2012-05-15 Bin Cheng <bin.cheng@arm.com>
3509 Backport r187139 from mainline.
3510 2012-05-04 Bin Cheng <bin.cheng@arm.com>
3512 PR rtl-optimization/52804
3513 * reload1.c (reload_reg_reaches_end_p): Check whether successor
3514 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
3515 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
3516 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
3517 RELOAD_FOR_OUTADDR_ADDRESS.
3519 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
3522 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
3523 generate target register for "load" class builtins.
3526 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
3529 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3530 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3531 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3532 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3533 (<sse>_movu<ssemodesuffix>): New expander.
3534 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3535 (avx_movdqu<avxmodesuffix>): New expander.
3536 (*sse2_movdqu): Rename from sse2_movdqu.
3537 (sse2_movdqu): New expander.
3539 2012-05-14 Jakub Jelinek <jakub@redhat.com>
3541 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
3542 lineno 1 the same as lineno 0 before first start file directive.
3543 (optimize_macinfo_range): Likewise.
3545 * dwarf2out.c (have_macinfo): Define.
3546 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
3547 attribute, don't force empty