OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2013-11-10  Karlson2k  <k2k@narod.ru>
2             Kai Tietz  <ktietz@redhat.com>
3
4         Merged from trunk
5         PR plugins/52872
6         * configure.ac: Adding for exported symbols check
7         and for rdynamic-check executable-extension.
8         * configure: Regenerated.
9
10 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
11
12         PR target/59034
13         * config/i386/i386.md (push peepholer/splitter): Use Pmode
14         with stack_pointer_rtx.
15
16 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
17
18         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
19
20 2013-10-26  Uros Bizjak  <ubizjak@gmail.com>
21
22         Backport from mainline
23         2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
24
25         PR target/58779
26         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
27         Remove CCCmode handling.
28         <case LTU>: Return 'c' suffix for CCCmode.
29         <case GEU>: Return 'nc' suffix for CCCmode.
30         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
31         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
32         (*sub<mode>3_cc_overflow): Ditto.
33         (*subsi3_zext_cc_overflow): Ditto.
34
35 2013-10-26  Uros Bizjak  <ubizjak@gmail.com>
36
37         Backport from mainline
38         2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
39
40         PR target/58792
41         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
42         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
43         and SI_REG for 64bit SYSV ABI targets.
44
45 2013-10-25  Richard Henderson  <rth@twiddle.net>
46
47         PR rtl/58542
48         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
49         instead of create_convert_operand_to.
50         (maybe_emit_sync_lock_test_and_set): Likewise.
51         (expand_atomic_compare_and_swap): Likewise.
52         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
53
54 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
55
56         PR rtl-optimization/58831
57         * alias.c (init_alias_analysis): At the beginning of each iteration,
58         set the reg_seen[N] flag if static_reg_base_value[N] is non-null.
59
60 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
61
62         * recog.c (search_ofs): New static variable moved from...
63         (peep2_find_free_register): ...here.
64         (peephole2_optimize): Initialize it.
65
66 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
67
68         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
69
70 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
71
72         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
73         assignment statements.
74
75 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
76
77         * config/pa/pa.md: In "scc" insn patterns, change output template to
78         handle const0_rtx in reg_or_0_operand operands.
79
80 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
81             Paolo Carlini  <paolo.carlini@oracle.com>
82
83         PR c++/58458
84         * doc/implement-cxx.texi: Fix references to the C++ standards.
85
86 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
87
88         PR target/58382
89         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
90         calls to word_mode.
91
92 2013-09-12  Terry Guo  <terry.guo@arm.com>
93
94         Backport from mainline
95         2012-09-17  Richard Guenther  <rguenther@suse.de>
96
97         PR lto/54598
98         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
99         FIXED_VALUE_TYPE instead of struct fixed_value.
100
101 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
102
103         PR target/58361
104         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
105         support conditional execution.
106         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
107
108 2013-09-01  Uros Bizjak  <ubizjak@gmail.com>
109
110         Backport from mainline
111         2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
112
113         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
114         "cmp" RTX before signed_comparison_operator check to account
115         for "code" changes.
116
117 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
118
119         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
120
121 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
122
123         Backported from 4.8
124         2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
125
126         * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
127         TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
128         (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
129         Remove.
130         * doc/tm.texi: Regenerate.
131         * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
132         .objc_class_name_*.
133         * config/darwin-c.c: Include target.h.
134         (darwin_objc_declare_unresolved_class_reference): New function.
135         (darwin_objc_declare_class_definition): New function.
136         (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
137         (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
138
139 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
140
141         Backport from mainline:
142         2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
143
144         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
145         it is not needed after split.
146
147         2013-07-20  Iain Sandoe  <iain@codesourcery.com>
148
149         PR target/51784
150         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
151         second label for nonlocal goto receivers. Don't output pic base labels
152         unless we're producing PIC; mark that action unreachable().
153         (ix86_save_reg): If the function contains a nonlocal label, save the
154         PIC base reg.
155         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
156         * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
157         (update_pic_label_number_if_needed): New.
158         (machopic_output_function_base_name): Adjust for nonlocal receiver
159         case.
160         (machopic_should_output_picbase_label): New.
161         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
162         (nonlocal_goto_receiver): New insn and split.
163
164 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
165
166         Backport from mainline
167         2013-08-27  Christian Widmer  <shadow@umbrox.de>
168
169         PR target/57927
170         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
171         of Ivy Bridge processors.
172
173 2013-08-21  Richard Earnshaw  <rearnsha@arm.com>
174
175         PR target/56979
176         * arm.c (aapcs_vfp_allocate): Decompose the argument if the
177         suggested mode for the assignment isn't compatible with the
178         registers required.
179
180 2013-08-17  Uros Bizjak  <ubizjak@gmail.com>
181
182         Backport from mainline
183         2013-08-12  Perez Read  <netfirewall@gmail.com>
184
185         PR target/58132
186         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
187         operand 0 for intel asm alternative.
188         (*movabs<mode>_2): Ditto for operand 1.
189
190 2013-08-13  Marek Polacek  <polacek@redhat.com>
191
192         Backport from 4.8:
193         2013-0813  Marek Polacek  <polacek@redhat.com>
194                    Jakub Jelinek  <jakub@redhat.com>
195
196         PR tree-optimization/57980
197         * tree-tailcall.c (process_assignment): Return false
198         when not dealing with integers or floats.
199
200 2013-08-12  David Edelsohn  <dje.gcc@gmail.com>
201
202         Backport from mainline
203         2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
204
205         * collect2-aix.h: Define F_LOADONLY.
206
207 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
208
209         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
210         the implied StoreLoad barrier for atomic operations if before.
211
212 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
213
214         Backport from 2013-07-11 trunk r200901.
215
216         PR target/57631
217         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
218         name seen by assembler/linker if available.
219
220 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
221
222         Backport from 2013-07-10 trunk r200872.
223
224         PR target/57844
225         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
226         of my_fp.
227
228 2013-07-10  Uros Bizjak  <ubizjak@gmail.com>
229
230         Backport from mainline
231         2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
232
233         * config/i386/sse.md (sse_movlhps): Change alternative 3
234         of operand 2 to "m".
235
236 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
237
238         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
239         adjust register size for TDmode and TFmode for VSX registers.
240
241 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
242
243         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
244
245 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
246
247         PR rtl-optimization/57829
248         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
249         mask bits outside of mode are just sign-extension from mode to HWI.
250
251 2013-07-05  Uros Bizjak  <ubizjak@gmail.com>
252
253         Backport from mainline
254         2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
255
256         PR target/57655
257         * config/i386/i386.c (construct_container): Report error if
258         long double is used with disabled x87 float returns.
259
260 2013-06-21  David Edelsohn  <dje.gcc@gmail.com>
261
262         Backport from mainline
263         2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
264
265         PR driver/57652
266         * collect2.c (collect_atexit): New.
267         (collect_exit): Delete.
268         (main): Register collect_atexit with atexit.
269         (collect_wait): Change collect_exit to exit.
270         (do_wait): Same.
271         * collect2.h (collect_exit): Delete.
272         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
273
274 2013-06-07  Uros Bizjak  <ubizjak@gmail.com>
275
276         Backport from mainline
277         2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
278
279         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
280         cmp_code to construct REG_EQUAL note.
281
282         Backport from mainline
283         2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
284
285         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
286         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
287
288         Backport from mainline
289         2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
290
291         PR target/57379
292         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
293         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
294         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
295
296 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
297
298         PR target/57568
299         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
300         that operands[2] doesn't overlap with operands[0].
301
302 2013-05-22  Uros Bizjak  <ubizjak@gmail.com>
303
304         PR target/57356
305         * config/i386/i386.md (*movti_internal_rex64): Emit movaps/movups
306         for non-sse2 targets.  Simplify mode attribute calculation.
307
308 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
309
310         Backport from mainline
311         2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
312
313         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
314         cache parameters using detect_caches_amd also for CYRIX,
315         NSC and TM2 signatures.
316
317         2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
318                     Dzianis Kahanovich  <mahatma@eu.by>
319
320         PR target/45359
321         PR target/46396
322         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
323         VIA/Centaur processors and determine their cache parameters
324         using detect_caches_amd.
325
326         2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
327
328         * config/i386/i386.c (ix86_option_override_internal): Add
329         PTA_POPCNT to corei7 entry.
330
331 2013-05-14  Richard Biener  <rguenther@suse.de>
332
333         PR gcov-profile/57269
334         Backport from mainline
335         2012-06-30  Nathan Sidwell  <nathan@acm.org>
336
337         * coverage.c (coverage_init): Read counts file before writing
338         graph header.
339
340 2013-05-13  Uros Bizjak  <ubizjak@gmail.com>
341
342         PR target/57264
343         Backport from mainline
344         2013-01-22  Jakub Jelinek  <jakub@redhat.com>
345
346         PR target/55686
347         * config/i386/i386.md (UNSPEC_STOS): New.
348         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
349         *strsetqi_1): Add UNSPEC_STOS.
350
351 2013-05-10  Joey Ye  <joey.ye@arm.com>
352
353         Backport from mainline
354         2012-11-29  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
355
356         PR target/54974
357         * config/arm/arm.md (thumb2_pool_range, pool_range): Add comment on
358         Thumb pool ranges.
359         (thumb1_extendhisi2): Reduce Thumb pool range.
360         (arm_movdi): Likewise.
361         (thumb1_movdi_insn): Likewise.
362         (thumb1_movsi_insn): Likewise.
363         (pic_load_addr_unified): Likewise.
364         (pic_load_addr_32bit): Likewise.
365         (pic_load_addr_thumb1): Likewise.
366         (thumb1_movhf): Likewise.
367         (arm_movsf_soft_insn): Likewise.
368         (thumb1_movsf_soft_insn): Likewise.
369         (movdf_soft_insn): Likewise.
370         (thumb1_movdf_soft_insn): Likewise.
371         * config/arm/neon.md (*neon_mov<mode>): Likewise.
372         (*neon_mov<mode>): Likwise.
373         * config/arm/thumb2.md: (*thumb2_movsi_insn): Likewise.
374         (*thumb2_movhi_insn): Likewise.
375         (*thumb2_extendqisi_v6): Likewise.
376         (*thumb2_zero_extendqisi_v6): Likewise.
377         (*thumb2_zero_extendqisi2_v6): Likewise.
378         * config/arm/vfp.md: (*thumb2_movsi_vfp): Likewise.
379         (*movdi_vfp): Likewise.
380         (*movdi_vfp_cortexa8): Likewise.
381         (*thumb2_movsf_vfp): Likewise.
382         (*thumb2_movdf_vfp): Likewise.
383
384 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
385
386         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
387         Add mthumb/march=armv7-a multilib.
388         Add mthumb/march=armv7-r multilib.
389         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
390
391 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
392
393         PR target/57237
394         * config/v850/t-rtems: Add more multilibs.
395
396 2013-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
397
398         Backport from trunk
399         2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
400
401         PR target/57150
402         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
403         to save TFmode registers and DImode to save TImode registers for
404         caller save operations.
405         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
406         mark being partially clobbered since they only use the first
407         double word.
408
409         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
410         and TDmode only use the upper 64-bits of each VSX register.
411
412 2013-05-03  Marek Polacek  <polacek@redhat.com>
413
414         Backport from mainline
415         2013-04-25  Marek Polacek  <polacek@redhat.com>
416
417         PR tree-optimization/57066
418         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
419
420 2013-04-30  Uros Bizjak  <ubizjak@gmail.com>
421
422         Backport from mainline
423         2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
424
425         PR target/44578
426         * config/i386/i386.md (*zero_extendsidi2_rex64): Add "!" to m->?*y
427         alternative.
428         (*zero_extendsidi2): Ditto.
429
430         Backport from mainline
431         2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
432
433         PR target/57098
434         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
435
436 2013-04-29  Christian Bruel  <christian.bruel@st.com>
437
438         PR target/57108
439         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
440
441 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
442
443         PR target/56866
444         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
445         the immediate rotate count.
446
447 2013-04-21  Eric Botcazou  <ebotcazou@adacore.com>
448
449         * cfgexpand.c (avoid_complex_debug_insns): Fix C++ism.
450
451 2013-04-19  Matthias Klose  <doko@ubuntu.com>
452
453         PR middle-end/56848
454         Re-apply
455         2013-04-01  Andrey Belevantsev  <abel@ispras.ru>
456
457         Backport from mainline
458         2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
459         Alexander Monakov  <amonakov@ispras.ru>
460
461         PR middle-end/56077
462         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
463         flush pending lists also on non-jumps.  Adjust comment.
464
465         Backport from 4.8:
466         2012-08-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
467
468         * sched-deps.c (add_dependence_list_and_free): Simplify.
469         (flush_pending_list_and_free): Fix a hack that was fixing a hack.  Free
470         lists when add_dependence_list_and_free doesn't free them.
471
472 2013-04-19  Marek Polacek  <polacek@redhat.com>
473
474         Backport from mainline
475         2013-01-08  Steven Bosscher  <steven@gcc.gnu.org>
476                     Jakub Jelinek  <jakub@redhat.com>
477
478         PR tree-optimization/48189
479         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
480         If nitercst is 0, don't predict the exit edge.
481
482 2013-04-16  Jack Howarth  <howarth@bromo.med.uc.edu>
483
484         Backport from mainline
485         2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
486         * config/darwin.h (STARTFILE_SPEC): Use -no_new_main with -lgcrt1.o
487         on Darwin >= 12.
488         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10 and < 12.
489
490
491         2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
492         PR debug/53453
493         * doc/tm.texi: Update.
494         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
495         * target.def (force_at_comp_dir): New hook.
496         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
497         * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
498
499 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
500
501         PR target/56890
502         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
503         (S_MODES): Set H_MODE bit.
504         (SF_MODES): Set only S_MODE and SF_MODE bits.
505         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
506         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
507         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
508         <MODE_FLOAT>: Likewise.
509
510 2013-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
511
512         Backport from mainline:
513         2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
514
515         PR target/55487
516         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
517         nuses, make sure we have a label.
518
519 2013-04-11  Richard Biener  <rguenther@suse.de>
520
521         * BASE-VER: Set to 4.7.4.
522         * DEV-PHASE: Set to prerelease.
523
524 2013-04-11  Release Manager
525
526         * GCC 4.7.3 released.
527
528 2013-04-10  David S. Miller  <davem@davemloft.net>
529
530         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
531         or -mcpu=hypersparc.
532
533 2013-04-05  Eric Botcazou  <ebotcazou@adacore.com>
534
535         PR middle-end/56848
536         Revert
537         2013-04-01  Andrey Belevantsev  <abel@ispras.ru>
538
539         Backport from mainline
540         2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
541         Alexander Monakov  <amonakov@ispras.ru>
542
543         PR middle-end/56077
544         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
545         flush pending lists also on non-jumps.  Adjust comment.
546
547 2013-04-03  Richard Biener  <rguenther@suse.de>
548
549         PR tree-optimization/56501
550         * tree-switch-conversion.c (check_process_case): Properly
551         handle !single_succ_p case.
552
553 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
554
555         Backported from mainline
556         2013-03-06  Jakub Jelinek  <jakub@redhat.com>
557
558         PR tree-optimization/56539
559         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
560         instead of GSI_CONTINUE_LINKING as last argument to
561         force_gimple_operand_gsi.  Adjust function comment.
562
563         2013-03-05  Jakub Jelinek  <jakub@redhat.com>
564
565         PR debug/56510
566         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
567         (avoid_complex_debug_insns): New function.
568         (expand_debug_locations): Call it.
569
570 2013-04-02  Wei Mi  <wmi@google.com>
571
572         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
573         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
574         *<rotate_insn><mode>3_mask in i386.md.
575
576 2013-04-02  Richard Biener  <rguenther@suse.de>
577
578         PR middle-end/56768
579         Backport from mainline
580         2012-05-16  Richard Guenther  <rguenther@suse.de>
581
582         * tree-inline.c (declare_return_variable): Properly handle
583         DECL_BY_REFERENCE return vars in SSA form.
584
585 2013-04-01  Wei Mi  <wmi@google.com>
586
587         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
588         Truncate operand 2 using %b asm operand modifier.
589         (*<shift_insn><mode>3_mask): Ditto.
590         (*<rotate_insn><mode>3_mask): Ditto.
591
592 2013-04-01  Uros Bizjak  <ubizjak@gmail.com>
593
594         * config/i386/i386.md (*movsf_internal): Change type of
595         alternatives 3,4 to imov.
596
597 2013-04-01  Andrey Belevantsev  <abel@ispras.ru>
598
599         Backport from mainline
600         2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
601
602         PR middle-end/45472
603         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
604         when the may_trap_p bit of the exprs being merged differs.
605         Reorder tests for speculativeness in the logical and operator.
606
607         Backport from mainline
608          2013-03-05  Jakub Jelinek  <jakub@redhat.com>
609
610         PR middle-end/56461
611         * sel-sched-ir.c (free_sched_pools): Release
612         succs_info_pool.stack[succs_info_pool.max_top] vectors too
613         if succs_info_pool.max_top isn't -1.
614
615 2013-04-01  Andrey Belevantsev  <abel@ispras.ru>
616
617         Backport from mainline
618         2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
619
620         PR middle-end/55889
621         * sel-sched.c: Include ira.h.
622         (implicit_clobber_conflict_p): New function.
623         (moveup_expr): Use it.
624         * Makefile.in (sel-sched.o): Depend on ira.h.
625
626 2013-04-01  Andrey Belevantsev  <abel@ispras.ru>
627
628         Backport from mainline
629         2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
630         Alexander Monakov  <amonakov@ispras.ru>
631
632         PR middle-end/56077
633         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
634         flush pending lists also on non-jumps.  Adjust comment.
635
636 2013-03-30  Gerald Pfeifer  <gerald@pfeifer.com>
637
638         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
639         * doc/extend.texi (Named Address Spaces): Ditto.
640         (Variable Attributes): Ditto.
641
642 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
643
644         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
645         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
646         is not enabled.
647
648 2013-03-27  Walter Lee  <walt@tilera.com>
649
650         Backport from mainline:
651         2013-03-27  Walter Lee  <walt@tilera.com>
652
653         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
654         double-decrement of next_scratch_regno.
655
656 2013-03-27  Walter Lee  <walt@tilera.com>
657
658         Backport from mainline:
659         2013-03-27  Walter Lee  <walt@tilera.com>
660
661         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
662         input operands.
663         (insn_v1mulus): Ditto.
664         (insn_v2muls): Ditto.
665
666 2013-03-27  Walter Lee  <walt@tilera.com>
667
668         Backport from mainline:
669         2013-03-27  Walter Lee  <walt@tilera.com>
670
671         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
672         extra tab.
673         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
674
675 2013-03-27  Walter Lee  <walt@tilera.com>
676
677         Backport from mainline:
678         2013-03-27  Walter Lee  <walt@tilera.com>
679
680         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
681         for jr.
682         (*sibcall_value): Ditto.
683
684 2013-03-27  Walter Lee  <walt@tilera.com>
685
686         Backport from mainline:
687         2013-03-27  Walter Lee  <walt@tilera.com>
688
689         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
690         (insn_mnz_v8qi): ... this ...
691         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
692         vector equivalent.
693         (insn_v<n>mnz): Replaced by ...
694         (insn_v1mnz): ... this ...
695         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
696         equivalent.
697         (insn_mz_<mode>): Replaced by ...
698         (insn_mz_v8qi): ... this ...
699         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
700         vector equivalent.
701         (insn_v<n>mz): Replaced by ...
702         (insn_v1mz): ... this ...
703         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
704         equivalent.
705
706 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
707
708         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
709
710 2013-03-26  Richard Biener  <rguenther@suse.de>
711
712         Backport from mainline:
713         2013-03-13  Richard Biener  <rguenther@suse.de>
714
715         PR tree-optimization/56608
716         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
717         calls when vectorizing basic-blocks.
718
719         2013-03-05  Richard Biener  <rguenther@suse.de>
720
721         PR tree-optimization/56270
722         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
723         of loads after scheduling an SLP instance.
724
725 2013-03-26  Walter Lee  <walt@tilera.com>
726
727         Backport from mainline:
728         2013-03-26  Walter Lee  <walt@tilera.com>
729
730         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
731         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
732
733 2013-03-26  Walter Lee  <walt@tilera.com>
734
735         Backport from mainline:
736         2013-03-25  Walter Lee  <walt@tilera.com>
737
738         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
739         TILEGX_INSN_SHUFFLEBYTES1.
740         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
741         shufflebytes1.
742         (tilegx_builtins): Ditto.
743         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
744
745 2013-03-26  Walter Lee  <walt@tilera.com>
746
747         Backport from mainline:
748         2013-03-25  Walter Lee  <walt@tilera.com>
749
750         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
751         tests for constraint J, K, N, P.
752
753 2013-03-26  Walter Lee  <walt@tilera.com>
754
755         Backport from mainline:
756         2013-03-25  Walter Lee  <walt@tilera.com>
757
758         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
759         Use indirect/pcrel encoding.
760         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
761         Ditto.
762
763 2013-03-25  Oleg Endo  <olegendo@gcc.gnu.org>
764
765         Backport from mainline:
766         2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
767         2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
768
769         PR target/49880
770         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
771         (musermode): Convert to Var(TARGET_USERMODE).
772         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
773         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
774         * config/sh/sh.c (sh_option_override): Use
775         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
776         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
777         condition.
778         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
779         TARGET_SH4.
780         (udivsi3_i4_single, divsi3_i4_single): Use
781         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
782         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
783         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
784         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
785         (SUBTARGET_OVERRIDE_OPTIONS): New.
786
787 2013-03-25  Oleg Endo  <olegendo@gcc.gnu.org>
788
789         Backport from mainline:
790         2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
791
792         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
793         to m2a-single instead of m2e.
794
795 2013-03-22  H.J. Lu  <hongjiu.lu@intel.com>
796
797         PR target/56560
798         * config/i386/i386.h (ix86_args): Define only if USED_FOR_TARGET
799         isn't defined.
800
801 2013-03-22  H.J. Lu  <hongjiu.lu@intel.com>
802
803         PR target/56560
804         * config/i386/i386.c (init_cumulative_args): Also set
805         cum->callee_return_avx256_p.
806         (ix86_function_arg): Set cum->callee_pass_avx256_p.  Set
807         cfun->machine->callee_pass_avx256_p only when MODE == VOIDmode.
808
809         * config/i386/i386.h (ix86_args): Add callee_pass_avx256_p and
810         callee_return_avx256_p.
811
812 2013-03-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
813
814         Backport from mainline:
815         2012-12-04  Ian Lance Taylor  <iant@google.com>
816
817         * godump.c (find_dummy_types): Output a dummy type if we couldn't
818         output the real type.
819
820 2013-03-20  Jack Howarth  <howarth@bromo.med.uc.edu>
821
822         PR bootstrap/56258
823         * doc/generic.texi (POINTER_PLUS_EXPR): Use @item instead of @itemx.
824         (PLUS_EXPR): Likewise.
825         * doc/cppopts.texi (--help): Likewise.
826         * doc/invoke.texi (-fenable-@var{kind}-@var{pass}): Likewise.
827         (-fdump-rtl-cprop_hardreg): Likewise.
828         (-fdump-rtl-csa): Likewise.
829         (-fdump-rtl-dce): Likewise.
830         (-fdump-rtl-dbr): Likewise.
831         (-fdump-rtl-into_cfglayout): Likewise.
832         (-fdump-rtl-outof_cfglayout): Likewise.
833
834 2013-03-18  Richard Earnshaw  <rearnsha@arm.com>
835
836         PR target/56470
837         * config/arm/arm.c (shift_op): Validate RTL pattern on the fly.
838         (arm_print_operand, case 'S'): Don't use shift_operator to validate
839         the RTL.
840
841 2013-03-14  Seth LaForge  <sethml@google.com>
842
843         PR target/56351
844         Backport from mainline
845         2012-10-22  Julian Brown  <julian@codesourcery.com>
846
847         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
848         VFP D registers in big-endian mode.
849
850 2013-03-08  Joey Ye  <joey.ye@arm.com>
851
852         Backport from mainline
853         2013-03-06  Joey Ye  <joey.ye@arm.com>
854
855         PR lto/50293
856         * gcc.c (convert_white_space): New function.
857         (main): Handles white space in function name.
858
859 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
860
861         Backport from mainline
862         2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
863
864         PR target/56529
865         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
866         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
867         to SH_DIV_CALL_TABLE for TARGET_SH2.
868         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
869         list.
870         * doc/invoke.texi (SH options): Use table for mdiv= option.  Document
871         mdiv= call-div1, call-fp, call-table options.
872
873 2013-03-06  Sebastian Huber <sebastian.huber@embedded-brains.de>
874
875         * config.gcc (arm*-*-rtemself*): New.
876         (arm*-*-rtems*): Removed.
877         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
878         "arm*-*-rtemseabi*" to "arm*-*-rtems*".
879
880 2013-03-01  Richard Biener  <rguenther@suse.de>
881
882         Backport from mainline
883         2012-12-12  Zdenek Dvorak  <ook@ucw.cz>
884
885         PR tree-optimization/55481
886         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall
887         back to general rewriting if we cannot leave an original biv
888         definition alone.
889
890 2013-03-01  Richard Biener  <rguenther@suse.de>
891
892         Backport from mainline
893         2012-04-10  Richard Guenther  <rguenther@suse.de>
894
895         PR middle-end/52888
896         * gimple-low.c (gimple_check_call_args): Properly account for
897         compatible aggregate types.
898
899 2013-02-26  Nick Clifton  <nickc@redhat.com>
900
901         PR target/56453
902         Import this patch from the mainline:
903
904         2012-08-17  Nick Clifton  <nickc@redhat.com>
905
906         * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
907         (branch_true): Likewise.
908         (branch_false): Likewise.
909
910 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
911
912         PR tree-optimization/56443
913         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
914         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
915         to type_for_mode langhook.
916
917 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
918
919         PR bootstrap/56258
920         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
921         instead of @itemx.
922
923 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
924
925         Backported from mainline
926         2013-02-19  Jakub Jelinek  <jakub@redhat.com>
927
928         PR tree-optimization/56350
929         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
930         if haven't found reduction or nested cycle operand, rather than
931         asserting we must find it.
932
933         PR tree-optimization/56381
934         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
935         to fold_build3.
936
937         2013-02-08  Jakub Jelinek  <jakub@redhat.com>
938
939         PR tree-optimization/56250
940         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
941         if type is unsigned and code isn't MULT_EXPR.
942
943         2013-02-06  Jakub Jelinek  <jakub@redhat.com>
944
945         PR middle-end/56217
946         * omp-low.c (use_pointer_for_field): Return false if
947         lower_send_shared_vars doesn't generate any copy-out code.
948
949         2012-11-27  Jakub Jelinek  <jakub@redhat.com>
950
951         PR tree-optimization/55110
952         * tree-vect-loop.c (vectorizable_reduction): Don't assert
953         that STMT_VINFO_RELATED_STMT of orig_stmt is stmt.
954
955 2013-02-18  Richard Biener  <rguenther@suse.de>
956
957         Revert
958         2013-02-04  Richard Biener  <rguenther@suse.de>
959
960         Backport from mainline
961         2012-07-04  Richard Guenther  <rguenther@suse.de>
962
963         PR tree-optimization/53844
964         * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
965         the loop virtual PHI.
966
967 2013-02-13  David S. Miller  <davem@davemloft.net>
968
969         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
970
971 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
972
973         Backport from mainline
974         2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
975
976         PR rtl-optimization/56275
977         * simplify-rtx.c (avoid_constant_pool_reference): Check that
978         offset is non-negative and less than cmode size before
979         calling simplify_subreg.
980
981 2013-02-09  Uros Bizjak  <ubizjak@gmail.com>
982
983         Backport from mainline
984         2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
985
986         * config/i386/sse.md (FMAMODEM): New mode iterator.
987         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
988         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
989
990         2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
991
992         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
993         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
994         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
995
996 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
997
998         Backport from mainline
999         2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1000
1001         PR target/56043
1002         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
1003         If there is no implicit builtin declaration, just return NULL.
1004
1005 2013-02-08  David Edelsohn  <dje.gcc@gmail.com>
1006             Michael Meissner  <meissner@linux.vnet.ibm.com>
1007
1008         Backport from mainline
1009         * config/rs6000/rs6000.c (rs6000_option_override_internal): Clear
1010         MASK_VSX from set_masks if OS_MISSING_ALTIVEC.
1011
1012 2013-02-07  David S. Miller  <davem@davemloft.net>
1013
1014         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
1015         on 'reg'.
1016         * var-tracking.c (vt_add_function_parameter): Test the presence of
1017         HAVE_window_save properly and do not remap argument registers when
1018         we have a leaf function.
1019
1020 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
1021
1022         Backport from mainline
1023         2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
1024
1025         PR bootstrap/56227
1026         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
1027         instead of "ll".
1028         * config/i386/i386.c (ix86_print_operand): Ditto.
1029
1030 2013-02-07  Alan Modra  <amodra@gmail.com>
1031
1032         PR target/53040
1033         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
1034         static chain, set REST_INLINE_FPRS too.
1035
1036 2013-02-06  David Edelsohn  <dje.gcc@gmail.com>
1037
1038         Backport from mainline
1039         2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1040
1041         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
1042         * configure: Regenerate.
1043
1044 2013-02-05  David Edelsohn  <dje.gcc@gmail.com>
1045
1046         Backport from mainline
1047         2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
1048                     Andrew Dixie  <andrewd@gentrack.com>
1049
1050         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
1051         flag set.
1052
1053 2013-02-05  Richard Biener  <rguenther@suse.de>
1054
1055         Backport from mainline
1056         2012-12-10  Richard Biener  <rguenther@suse.de>
1057
1058         PR tree-optimization/55107
1059         * tree-ssa-pre.c (struct pre_stats): Remove constified field.
1060         (bitmap_set_replace_value): Add gcc_unreachable.
1061         (do_regular_insertion): Re-write all_same handling.  Insert
1062         an assignment instead of a PHI in this case.
1063         (execute_pre): Do not record constified events.
1064
1065 2013-02-05  Richard Biener  <rguenther@suse.de>
1066
1067         PR tree-optimization/54767
1068         * tree-vrp.c (vrp_visit_phi_node): For PHI arguments coming via
1069         backedges drop all symbolical range information.
1070         (execute_vrp): Compute backedges.
1071
1072 2013-02-04  Richard Biener  <rguenther@suse.de>
1073
1074         Backport from mainline
1075         2012-01-11  Richard Guenther  <rguenther@suse.de>
1076
1077         PR tree-optimization/44061
1078         * tree-vrp.c (extract_range_basic): Compute zero as
1079         value-range for __builtin_constant_p of function parameters.
1080
1081         2013-01-08  Jakub Jelinek  <jakub@redhat.com>
1082
1083         PR middle-end/55890
1084         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_class_p.
1085
1086 2013-02-04  Richard Biener  <rguenther@suse.de>
1087
1088         Backport from mainline
1089         2012-07-04  Richard Guenther  <rguenther@suse.de>
1090
1091         PR tree-optimization/53844
1092         * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
1093         the loop virtual PHI.
1094
1095         2012-12-13  Richard Biener  <rguenther@suse.de>
1096
1097         PR lto/55660
1098         * tree-streamer.c (record_common_node): Check that we are not
1099         recursively pre-loading nodes we want to skip.  Handle
1100         char_type_node appearing as part of va_list_type_node.
1101
1102 2013-02-04  Richard Biener  <rguenther@suse.de>
1103
1104         PR middle-end/55890
1105         * gimple.h (gimple_call_builtin_class_p): New function.
1106         * gimple.c (validate_call): New function.
1107         (gimple_call_builtin_class_p): Likewise.
1108         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1109         Use gimple_call_builtin_class_p.
1110         (find_func_clobbers): Likewise.
1111         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
1112         (strlen_optimize_stmt): Likewise.
1113
1114 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
1115
1116         Backported from mainline
1117         2013-01-28  Jakub Jelinek  <jakub@redhat.com>
1118
1119         PR tree-optimization/56125
1120         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
1121         pow(x,c) into sqrt(x) * powi(x, n/2) or
1122         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
1123         optimizing for size.
1124         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
1125         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
1126         integer.
1127
1128         2013-01-25  Jakub Jelinek  <jakub@redhat.com>
1129
1130         PR tree-optimization/56098
1131         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
1132         for stmts with volatile ops.
1133         (cond_store_replacement): Don't optimize if assign has volatile ops.
1134         (cond_if_else_store_replacement_1): Don't optimize if either
1135         then_assign or else_assign have volatile ops.
1136
1137         2013-01-23  Jakub Jelinek  <jakub@redhat.com>
1138
1139         PR target/49069
1140         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
1141         instead of cmpdi_operand for first comparison operand.
1142         Don't assert that comparison operands aren't both constants.
1143
1144         2013-01-21  Jakub Jelinek  <jakub@redhat.com>
1145
1146         PR tree-optimization/56051
1147         * fold-const.c (fold_binary_loc): Don't fold
1148         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
1149         a narrowing conversion, or widening conversion from signed
1150         to unsigned.
1151
1152         2013-01-18  Jakub Jelinek  <jakub@redhat.com>
1153
1154         PR middle-end/56015
1155         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1156         the case where writing real complex part of target modifies
1157         op1.
1158
1159         2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1160
1161         PR target/55940
1162         * function.c (thread_prologue_and_epilogue_insns): Always
1163         add crtl->drap_reg to set_up_by_prologue.set, even if
1164         stack_realign_drap is false.
1165
1166         2013-01-10  Jakub Jelinek  <jakub@redhat.com>
1167
1168         PR tree-optimization/55921
1169         * tree-complex.c (expand_complex_asm): New function.
1170         (expand_complex_operations_1): Call it for GIMPLE_ASM.
1171
1172         2013-01-03  Jakub Jelinek  <jakub@redhat.com>
1173
1174         PR rtl-optimization/55838
1175         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
1176         iv0.step, iv1.step and step.
1177
1178         2012-11-23  Jakub Jelinek  <jakub@redhat.com>
1179
1180         PR c++/54046
1181         * Makefile.in (gimple-low.o): Depend on langhooks.h.
1182         * gimple-low.c: Include langhooks.c.
1183         (block_may_fallthru): Handle TARGET_EXPR and ERROR_MARK,
1184         by default call lang_hooks.block_may_fallthru.
1185         * langhooks.h (struct lang_hooks): Add block_may_fallthru
1186         langhook.
1187         * langhooks-def.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define.
1188         (LANG_HOOKS_INITIALIZER): Use it.
1189
1190         2012-11-20  Jakub Jelinek  <jakub@redhat.com>
1191
1192         PR middle-end/55094
1193         * builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note
1194         on the trap insn for !ACCUMULATE_OUTGOING_ARGS.
1195         * cfgcleanup.c (outgoing_edges_match): Don't look at debug insns
1196         on the first old_insns_match_p call.  For !ACCUMULATE_OUTGOING_ARGS
1197         fail if the last real insn doesn't have REG_ARGS_SIZE note.
1198
1199         2012-11-17  Jakub Jelinek  <jakub@redhat.com>
1200
1201         PR tree-optimization/55236
1202         * fold-const.c (make_range_step) <case NEGATE_EXPR>: For -fwrapv
1203         and signed ARG0_TYPE, force low and high to be non-NULL.
1204
1205         2012-11-13  Jakub Jelinek  <jakub@redhat.com>
1206
1207         PR rtl-optimization/54127
1208         * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting
1209         asm goto labels from BB_HEAD (e->dest) to target bb, decrement
1210         LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of
1211         BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or
1212         REG_LABEL_TARGET and REG_LABEL_OPERAND.
1213
1214 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
1215
1216         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
1217         range isn't testing for zero.
1218
1219 2013-01-29  Richard Biener  <rguenther@suse.de>
1220
1221         PR tree-optimization/56113
1222         * tree-ssa-structalias.c (equiv_class_lookup): Also return
1223         the bitmap leader.
1224         (label_visit): Free duplicate bitmaps and record the leader instead.
1225         (perform_var_substitution): Adjust.
1226
1227 2013-01-28  Serowk  <serowk@yandex.ru>
1228
1229         PR target/35294
1230         * config/arm/arm.c (arm_expand_binop_builtin): Add new parameter.
1231         Fix mode checks to allow for the passing of constants in the
1232         second parameter.
1233         (arm_expand_builtin): Adjust calls to arm_expand_binop_builtin.
1234         Add entries in the switch statement for builtin iwmmxt vector
1235         shift and rotate builtins.
1236
1237 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
1238
1239         Backport from mainline
1240         2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
1241
1242         PR target/56114
1243         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
1244         operand 0 in movabs insn template for -masm=intel asm alternative.
1245         (*movabs<mode>_2): Ditto for operand 1.
1246
1247 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
1248
1249         Backport from mainline
1250         2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
1251
1252         PR target/56028
1253         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
1254         alternative to (o,r).
1255         (*movdi_internal_rex64): Remove (!o,n) alternative.
1256         (DImode immediate->memory splitter): Remove.
1257         (DImode immediate->memory peephole2): Remove.
1258         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
1259         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
1260         alternative to (!o,*r).
1261         (*movtf_internal_sse): New pattern.
1262         (*movxf_internal_rex64): New pattern.
1263         (*movxf_internal): Disable for TARGET_64BIT.
1264         (*movdf_internal_rex64): Remove (!o,F) alternative.
1265
1266         2013-01-23  Uros Bizjak  <ubizjak@gmail.com>
1267
1268         * config/i386/i386.md (*movdf_internal_rex64): Disparage alternatives
1269         involving stack registers slightly.
1270
1271         2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
1272
1273         * config/i386/constraints.md (Yf): New constraint.
1274         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
1275         of f constraint to conditionaly disable x87 register preferences.
1276         (*movdf_internal): Ditto.
1277         (*movsf_internal): Ditto.
1278
1279         2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1280
1281         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
1282         (*movtf_internal_rex64): Add (!o,C) alternative
1283         (*movxf_internal_rex64): Ditto.
1284         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
1285
1286 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
1287
1288         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
1289
1290 2013-01-24  Martin Jambor  <mjambor@suse.cz>
1291
1292         Backport from mainline
1293         2013-01-04  Martin Jambor  <mjambor@suse.cz>
1294
1295         PR tree-optimization/55755
1296         * tree-sra.c (sra_modify_assign): Do not check that an access has no
1297         children when trying to avoid producing a VIEW_CONVERT_EXPR.
1298
1299 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
1300
1301         Backport from mainline
1302         2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
1303
1304         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
1305
1306 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
1307
1308         PR rtl-optimization/56023
1309         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
1310         dependent on debug instruction.
1311
1312 2013-01-21  Martin Jambor  <mjambor@suse.cz>
1313
1314         Backport from mainline
1315         2013-01-17  Martin Jambor  <mjambor@suse.cz>
1316
1317         PR tree-optimizations/55264
1318         * cgraph.c (cgraph_create_virtual_clone): Mark clones as non-virtual.
1319         * cgraph.h (cgraph_only_called_directly_p_or_aliased_p): Return false
1320         for virtual functions.
1321         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
1322         for virtual methods.
1323         * ipa.c (cgraph_remove_unreachable_nodes): Never return true for
1324         virtual methods before inlining is over.
1325
1326 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
1327
1328         Backport from mainline
1329         2012-01-17  Uros Bizjak  <ubizjak@gmail.com>
1330
1331         PR target/55981
1332         * config/i386/sync.md (atomic_store<mode>): Generate SWImode
1333         store through atomic_store<mode>_1.
1334         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
1335
1336 2013-01-16  Richard Biener  <rguenther@suse.de>
1337
1338         PR middle-end/55882
1339         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
1340         account for bitpos when computing alignment.
1341
1342 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1343
1344         Backport from 2013-01-14 trunk r195169.
1345
1346         PR target/55974
1347         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
1348         etc. to 1 and not to __flash.
1349         Use LL suffix for __INT24_MAX__ with -mint8.
1350         Use ULL suffix for __UINT24_MAX__ with -mint8.
1351
1352 2013-01-14  Matthias Klose  <doko@ubuntu.com>
1353
1354         * doc/invoke.texi: Document -print-multiarch.
1355         * doc/install.texi: Document --enable-multiarch.
1356         * doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME.
1357         * configure.ac: Add --enable-multiarch option.
1358         Substitute with_cpu, with_float.
1359         * configure: Regenerate.
1360         * Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib.
1361         enable_multiarch, with_cpu, with_float: New macros.
1362         if_multiarch: New macro, define in terms of enable_multiarch.
1363         * genmultilib: Add new argument for the multiarch name.
1364         * gcc.c (multiarch_dir): Define.
1365         (for_each_path): Search for multiarch suffixes.
1366         (driver_handle_option): Handle multiarch option.
1367         (do_spec_1): Pass -imultiarch if defined.
1368         (main): Print multiarch.
1369         (set_multilib_dir): Separate multilib and multiarch names
1370         from multilib_select.
1371         (print_multilib_info): Ignore multiarch names in multilib_select.
1372         * incpath.c (add_standard_paths): Search the multiarch include dirs.
1373         * cppdefault.h (default_include): Document multiarch in multilib
1374         member.
1375         * cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an
1376         include directory for multiarch directories.
1377         * common.opt: New options --print-multiarch and -imultilib.
1378
1379         * config.gcc <i[34567]86-*-linux* | x86_64-*-linux*> (tmake_file):
1380         Include i386/t-linux.
1381         <i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu> (tmake_file):
1382         Include i386/t-kfreebsd.
1383         <i[34567]86-*-gnu*> (tmake_file): Include i386/t-gnu.
1384         * config/i386/t-linux64: Add multiarch names in
1385         MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME.
1386         * config/i386/t-gnu: New file.
1387         * config/i386/t-kfreebsd: Likewise.
1388         * config/i386/t-linux: Likewise.
1389
1390         * config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1391         * config/sparc/t-linux: New file; define MULTIARCH_DIRNAME.
1392         * config.gcc <sparc-*-linux*> (tmake_file): Include sparc/t-linux
1393         for 32bit non-biarch configurations.
1394
1395         * config/pa/t-linux: New file; define MULTIARCH_DIRNAME.
1396         * config.gcc <hppa*64*-*-linux*, hppa*-*-linux*> (tmake_file):
1397         Include pa/t-linux.
1398
1399         * config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1400
1401         * config/arm/t-linux-eabi: Define MULTIARCH_DIRNAME for linux target.
1402
1403         * config/rs6000/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1404         * config/rs6000/t-linux: New file; define MULTIARCH_DIRNAME.
1405         * config/rs6000/t-fprules (SOFT_FLOAT_CPUS): New macro. Add e300c2
1406         to the list.
1407         (MULTILIB_MATCHES_FLOAT): Define in terms of SOFT_FLOAT_CPUS.
1408         * config.gcc <powerpc-*-linux* | powerpc64-*-linux*> (tmake_file):
1409         Include rs6000/t-linux for 32bit non-biarch configurations.
1410
1411         * config/s390/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1412
1413         * config/m68k/t-linux: Define MULTIARCH_DIRNAME.
1414
1415         * config/ia64/t-linux: New file; define MULTIARCH_DIRNAME.
1416         * config.gcc <ia64*-*-linux*> (tmake_file): Include ia64/t-linux.
1417
1418         * config/alpha/t-linux: New file; define MULTIARCH_DIRNAME.
1419         * config.gcc <alpha*-*-linux*> (tmake_file): Include alpha/t-linux.
1420
1421 2013-01-14  Eric Botcazou  <ebotcazou@adacore.com>
1422
1423         * tree-vectorizer.h (vect_get_single_scalar_iteraion_cost): Fix typo.
1424         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Likewise.
1425         (vect_estimate_min_profitable_iter): Adjust to above fix.
1426         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1427
1428 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1429
1430         Backport from mainline
1431         2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1432
1433         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
1434         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
1435         documentation.  Add missing '__' in front of
1436         __builtin_ia32_packssdw256.
1437
1438 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
1439
1440         Backport from mainline
1441         2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
1442
1443         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
1444         attribute of movddup insn to DF.
1445         (*vec_interleave_lowv2df): Ditto.
1446         (vec_dupv2df): Ditto.
1447
1448 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1449
1450         Backport from 2013-01-07 trunk r194991, r194992.
1451
1452         PR target/55897
1453         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1454         .progmemx.data now.
1455
1456         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1457         (avr_addrspace_t): Add .section_name field.
1458         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1459         array size.
1460         (avr_addrspace): Same.  Initialize .section_name.  Remove last
1461         NULL entry.  Put __memx into .progmemx.data.
1462         (progmem_section_prefix): Remove.
1463         (avr_asm_init_sections): No need to initialize progmem_section.
1464         (avr_asm_named_section): Use avr_addrspace[].section_name to get
1465         section name prefix.
1466         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
1467         retrieve the progmem section.
1468         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
1469         boundary to run over avr_addrspace[].
1470         (avr_register_target_pragmas): Ditto.
1471
1472 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1473
1474         Backport from 2013-01-07 trunk r194978.
1475
1476         PR target/54461
1477         * doc/install.texi (Cross-Compiler-Specific Options): Document
1478         --with-avrlibc.
1479
1480 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
1481
1482         Backport from 2013-01-07 trunk r194968.
1483
1484         PR other/55243
1485         * config/avr/t-avr: Don't automatically rebuild
1486         $(srcdir)/config/avr/t-multilib
1487         $(srcdir)/config/avr/avr-tables.opt
1488         (avr-mcus): New phony target to build them on request.
1489         (s-avr-mlib): Remove.
1490         * avr/avr-mcus.def: Adjust comments.
1491
1492 2013-01-07  Terry Guo  <terry.guo@arm.com>
1493
1494         Backport from mainline
1495         2012-12-19  Terry Guo  <terry.guo@arm.com>
1496
1497         * config/arm/arm.c (thumb_find_work_register): Check argument
1498         register number based on current PCS.
1499
1500 2013-01-06  Uros Bizjak  <ubizjak@gmail.com>
1501
1502         Backport from mainline
1503         2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
1504
1505         PR target/55712
1506         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
1507         selected code model, define __code_mode_small__, __code_model_medium__,
1508         __code_model_large__, __code_model_32__ or __code_model_kernel__.
1509         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
1510         xchg temporary register with %k.  Declare temporary register as
1511         early clobbered.
1512         [__x86_64__]: For medium and large code models, preserve %rbx register.
1513
1514 2013-01-03  Richard Henderson  <rth@redhat.com>
1515
1516         * config/i386/i386.c (ix86_expand_move): Always assign to op1
1517         after eliminating TLS symbols.
1518
1519 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1520
1521         PR target/53789
1522         * config/pa/pa.md (movsi): Revert previous change.
1523         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
1524         references.
1525
1526 2013-01-02  Rainer Emrich  <rainer@emrich-ebersheim.de>
1527
1528         PR bootstrap/55707
1529         * graphite-dependences.c (hash_poly_ddr_p): Cast from pointer via
1530         intptr_t.
1531
1532 2013-01-02  Jason Merrill  <jason@redhat.com>
1533
1534         PR c++/55804
1535         * tree.c (build_array_type_1): Revert earlier change.
1536
1537 2012-12-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1538
1539         PR target/53789
1540         * config/pa/pa.md (movsi): Reject expansion of TLS symbol references
1541         after reload starts.
1542
1543 2012-12-21  Martin Jambor  <mjambor@suse.cz>
1544
1545         PR tree-optimization/55355
1546         * tree-sra.c (type_internals_preclude_sra_p): Also check that
1547         bit_position is small enough to fit a single HOST_WIDE_INT.
1548
1549 2012-12-21  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
1550
1551         * config.gcc: Match arm*-*-uclinux*eabi* for EABI uCLinux.
1552
1553 2012-12-18  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
1554
1555         Backport from mainline
1556         2012-10-15  Matthias Klose  <doko@ubuntu.com>
1557
1558         * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
1559         * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.
1560
1561 2012-12-16  Eric Botcazou  <ebotcazou@adacore.com>
1562             Tomash Brechko  <tomash.brechko@gmail.com>
1563
1564         PR target/55673
1565         * config/sparc/sparc.c (sparc_emit_membar_for_model): Fix reversed
1566         handling of before and after cases.
1567         * config/sparc/sync.md (atomic_store): Fix pasto.
1568
1569 2012-12-14  Yvan Roux  <yvan.roux@linaro.org>
1570
1571         * optabs.c (expand_atomic_store): Elide redundant model test.
1572
1573 2012-12-13  Richard Henderson  <rth@redhat.com>
1574
1575         PR middle-end/55492
1576         * optabs.c (expand_atomic_load): Emit acquire barrier after the load.
1577
1578 2012-12-11  Eric Botcazou  <ebotcazou@adacore.com>
1579
1580         PR target/54121
1581         * config/sparc/sparc.md (tldo_stb_sp32): Fix pasto.
1582         (tldo_stb_sp64): Likewise.
1583         (tldo_sth_sp32): Likewise.
1584         (tldo_sth_sp64): Likewise.
1585         (tldo_stw_sp32): Likewise.
1586         (tldo_stw_sp64): Likewise.
1587         (tldo_stx_sp64): Likewise.
1588
1589 2012-12-10 Kai Tietz  <ktietz@redhat.com>
1590
1591         PR target/53912
1592         * print-tree.c (print_node): Cast from pointer via uintptr_t.
1593
1594 2012-12-07  Uros Bizjak  <ubizjak@gmail.com>
1595
1596         Backport from mainline
1597         2012-12-06  Uros Bizjak  <ubizjak@gmail.com>
1598                     H.J. Lu  <hongjiu.lu@intel.com>
1599
1600         PR target/55597
1601         * config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode,
1602         before using it as insn or call equivalent.
1603
1604 2012-12-06  Jason Merrill  <jason@redhat.com>
1605
1606         PR c++/55032
1607         * tree.c (build_array_type_1): Re-layout if we found it in the
1608         hash table.
1609
1610 2012-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1611
1612         * config/pa/pa.md: Use "const_int 0" instead of match_test to simplify
1613         opaque cond in all call insns.
1614
1615 2012-12-03  Eric Botcazou  <ebotcazou@adacore.com>
1616
1617         * config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch
1618         area if the function allocates dynamic stack space.
1619         (ia64_initial_elimination_offset): Adjust offsets to above change.
1620
1621 2012-12-03  Richard Biener  <rguenther@suse.de>
1622
1623         Backport from mainline
1624         2012-09-24  Richard Guenther  <rguenther@suse.de>
1625
1626         PR tree-optimization/53663
1627         * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
1628         native encode/interpret translation on VN_WALKREWRITE.
1629
1630 2012-12-03 Kai Tietz  <ktietz@redhat.com>
1631
1632         PR target/53912
1633         * ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.
1634
1635         PR target/53912
1636         * tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.
1637
1638         PR target/53912
1639         * pointer-set.c (hash1): Cast from pointer via uintptr_t.
1640
1641 2012-12-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1642
1643         Backport from mainline:
1644         2012-11-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1645
1646         PR target/55195
1647         * config/pa/pa.md (type): Add sibcall and sh_func_adrs insn types.
1648         (in_branch_delay): Don't allow sibcall or sh_func_adrs insns.
1649         (in_nullified_branch_delay): Likewise.
1650         (in_call_delay): Likewise.
1651         Define delay for sibcall insns.  Adjust Z3 and Z4 insn reservations for
1652         new types.  Add opaque cond to mark all calls, sibcalls, dyncalls and
1653         the $$sh_func_adrs call as variable.  Update type of sibcalls and
1654         $$sh_func_adrs call.
1655         * config/pa/pa.c (pa_adjust_insn_length): Revise to return updated
1656         length instead of adjustment.  Handle negative and undefined call
1657         adjustments for insn_default_length.  Remove adjustment for millicode
1658         insn with unfilled delay slot.
1659         (pa_output_millicode_call): Update for revised millicode length.
1660         * config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH.
1661
1662 2012-11-29  Kai Tietz  <ktietz@redhat.com>
1663
1664         PR target/55171
1665         * prefix.c (lookup_key): Replace xmalloc/xrealloc
1666         use by XNEWVEC/XRESIZEVEC.
1667
1668         * i386.c (get_scratch_register_on_entry): Handle
1669         thiscall-convention.
1670         (split_stack_prologue_scratch_regno): Likewise.
1671         (ix86_static_chain): Likewise.
1672         (x86_output_mi_thunk): Likewise.
1673
1674 2012-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1675
1676         Backported from mainline
1677         2012-11-27  H.J. Lu  <hongjiu.lu@intel.com>
1678                     Markus Trippelsdorf  <markus@trippelsdorf.de>
1679
1680         PR lto/54795
1681         * lto-opts.c (lto_write_options): Also handle
1682         OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and
1683         OPT_SPECIAL_program_name.
1684
1685         PR lto/55474
1686         * lto-wrapper.c (merge_and_complain): Handle
1687         OPT_SPECIAL_unknown, OPT_SPECIAL_ignore,
1688         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
1689
1690 2012-11-27  Paolo Bonzini  <pbonzini@redhat.com>
1691
1692         PR rtl-optimization/55489
1693         * gcse.c (compute_transp): Precompute a canonical version
1694         of XEXP (x, 0), and pass it to canon_true_dependence.
1695
1696 2012-11-27  Richard Biener  <rguenther@suse.de>
1697
1698         PR middle-end/55331
1699         * gimple-fold.c (gimplify_and_update_call_from_tree): Replace
1700         stmt with a NOP instead of removing it.
1701
1702 2012-11-26  Richard Biener  <rguenther@suse.de>
1703
1704         Backport from mainline
1705         2012-10-19  Richard Biener  <rguenther@suse.de>
1706
1707         PR tree-optimization/54976
1708         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1709         Robustify against odd inner_mode inputs.
1710
1711         2012-10-12  Richard Biener  <rguenther@suse.de>
1712
1713         PR tree-optimization/54894
1714         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1715         Handle over-aligned scalar types properly.
1716
1717         2012-10-02  Richard Guenther  <rguenther@suse.de>
1718
1719         PR middle-end/54735
1720         * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
1721         cleaning up the CFG.
1722
1723 2012-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1724
1725         Backport from mainline
1726         2012-11-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1727
1728         * config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment
1729         explaining the register ordering preferences.
1730
1731         2012-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1732         * config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move
1733         constraints so that the traditional floating point loads, stores,
1734         and moves are done first, then the VSX loads, stores, and moves,
1735         and finally the GPR loads, stores, and moves so that reload
1736         chooses FPRs over GPRs, and uses the traditional load/store
1737         instructions which provide an offset.
1738         (movdf_hardfloat64): Likewise.
1739
1740 2012-11-19  H.J. Lu  <hongjiu.lu@intel.com>
1741
1742         Backported from mainline
1743         2012-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1744                     H.J. Lu  <hongjiu.lu@intel.com>
1745
1746         PR middle-end/55142
1747         * config/i386/i386.c (legitimize_pic_address): Properly handle
1748         REG + CONST.
1749         (ix86_print_operand_address): Set code to 'k' when forcing
1750         addr32 prefix.  For x32, zero-extend negative displacement if
1751         it < -16*1024*1024.
1752
1753 2012-11-12  Eric Botcazou  <ebotcazou@adacore.com>
1754
1755         * common.opt (fvar-tracking-uninit): Document.
1756         * toplev.c (process_options): Fix handling of flag_var_tracking_uninit.
1757         * config/darwin.c (darwin_override_options): Likewise.
1758
1759 2012-11-11  Eric Botcazou  <ebotcazou@adacore.com>
1760
1761         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak.
1762         * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto.
1763
1764 2012-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1765
1766         * doc/install.texi (sparc64-x-solaris2): Mention MPC as well.
1767
1768 2012-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1769
1770         * config/i386/i386.c (release_scratch_register_on_entry): Also adjust
1771         sp_offset manually.
1772
1773 2012-11-07  Uros Bizjak  <ubizjak@gmail.com>
1774
1775         Backport from mainline
1776         2012-11-06  Uros Bizjak  <ubizjak@gmail.com>
1777
1778         * config/i386/i386.c (ix86_init_machine_status): Do not
1779         explicitly clear tls_descriptor_call_expanded_p again.
1780
1781         2012-11-06  Uros Bizjak  <ubizjak@gmail.com>
1782
1783         * config/i386/sse.md
1784         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
1785         as read and written by the instruction.
1786
1787         2012-11-06  Uros Bizjak  <ubizjak@gmail.com>
1788
1789         * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
1790         (ix86_instantiate_decls): New function.
1791         (ix86_expand_builtin) <case IX86_BUILTIN_LDMXCSR>: Use SLOT_TEMP
1792         stack slot instead of SLOT_VIRTUAL.
1793         <case IX86_BUILTIN_STMXCSR>: Ditto.
1794         (assign_386_stack_local): Do not assert when virtual slot is valid.
1795         * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL.
1796         * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot.
1797         (truncxf<mode>2): Ditto.
1798         (floatunssi<mode>2): Ditto.
1799         (isinf<mode>2): Ditto.
1800         * config/i386/sync.md (atomic_load<mode>): Ditto.
1801         (atomic_store<mode>): Ditto.
1802
1803 2012-11-07  Eric Botcazou  <ebotcazou@adacore.com>
1804
1805         PR middle-end/55219
1806         * fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if
1807         the argument is itself a conditional expression.
1808
1809 2012-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1810
1811         * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with
1812         REX_INT_REGNO_P.
1813
1814 2012-11-05  Eric Botcazou  <ebotcazou@adacore.com>
1815
1816         PR tree-optimization/54986
1817         * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op
1818         conversions on entry but add them back on exit if needed.
1819
1820 2012-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
1821
1822         PR target/55204
1823         * config/i386/i386.c (ix86_address_subreg_operand): Remove stack
1824         pointer check.
1825         (print_reg): Use true_regnum rather than REGNO.
1826         (ix86_print_operand_address): Remove SUBREG handling.
1827
1828 2012-11-05  Jakub Jelinek  <jakub@redhat.com>
1829
1830         Backported from mainline
1831         2012-10-24  Jakub Jelinek  <jakub@redhat.com>
1832
1833         PR debug/54828
1834         * gimple.h (is_gimple_sizepos): New inline function.
1835         * gimplify.c (gimplify_one_sizepos): Use it.  Remove useless
1836         final assignment to expr variable.
1837         * tree.c (RETURN_TRUE_IF_VAR): Return true also if
1838         !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
1839         into a local temporary.
1840
1841         2012-10-10  Jakub Jelinek  <jakub@redhat.com>
1842
1843         PR tree-optimization/54877
1844         * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
1845         use make_ssa_name instead of copy_ssa_name.
1846
1847 2012-11-03  Peter Bergner  <bergner@vnet.ibm.com>
1848
1849         Backport from mainline
1850         2012-10-31  Jakub Jelinek  <jakub@redhat.com>
1851
1852         PR tree-optimization/53708
1853         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
1854         user-supplied alignment when used with an explicit section name.
1855
1856 2012-11-02  Jeff Law  <law@redhat.com>
1857
1858         PR tree-optimization/54985
1859         * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
1860         from thread_across_edge.
1861         (thread_across_edge): Use it in all cases where we might thread
1862         across a back edge.
1863
1864 2012-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1865
1866         * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
1867         special register pushes before frame probing and allocation.
1868
1869 2012-10-31  Ralf Corsépius  <ralf.corsepius@rtems.org>,
1870             Joel Sherrill  <joel.sherrill@oarcorp.com>
1871
1872         * config/sparc/t-rtems: New (Custom multilibs).
1873         * config/sparc/t-rtems-64: New (Custom multilibs).
1874         * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
1875         (sparc-*-rtems*): Add sparc/t-rtems.
1876
1877 2012-10-30  Eric Botcazou  <ebotcazou@adacore.com>
1878
1879         * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
1880         head comment.
1881         (hash_rtx): Likewise.
1882
1883 2012-10-29  Terry Guo  <terry.guo@arm.com>
1884
1885         Backport from mainline
1886         2012-10-11  Terry Guo  <terry.guo@arm.com>
1887
1888         * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
1889         architecture.
1890         * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
1891         instruction.
1892
1893 2012-10-26  Gunther Nikl  <gnikl@users.sourceforge.net>
1894
1895         * common/config/m68k/m68k-common.c (m68k_handle_option): Set
1896         gcc_options fields of opts_set for -m68020-40 and -m68020-60.
1897
1898 2012-10-26  Ralf Corsépius  <ralf.corsepius@rtems.org>
1899
1900         * config/avr/t-rtems: Revert previous commit.
1901
1902 2012-10-26  Terry Guo  <terry.guo@arm.com>
1903
1904         Backport from mainline
1905         2012-10-23  Terry Guo  <terry.guo@arm.com>
1906
1907         PR target/55019
1908         * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
1909         live argument regs.
1910
1911 2012-10-26  Ralf Corsépius  <ralf.corsepius@rtems.org>
1912
1913         * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
1914         __USE_INIT_FINI__.
1915         * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
1916
1917 2012-10-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
1918
1919         * config.gcc (microblaze*-*-rtems*): New target.
1920         * config/microblaze/rtems.h: New.
1921         * config/microblaze/t-rtems: New.
1922
1923 2012-10-25  Richard Biener  <rguenther@suse.de>
1924
1925         PR tree-optimization/54902
1926         * tree-ssa-pre.c (fini_pre): Return TODO.
1927         (execute_pre): Adjust.
1928         * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
1929         blocks before computing dominators.
1930
1931 2012-10-24  Uros Bizjak  <ubizjak@gmail.com>
1932
1933         Backport from mainline
1934         2012-10-22  Uros Bizjak  <ubizjak@gmail.com>
1935
1936         * config/i386/i386.c (memory_address_length): Assert that non-null
1937         base or index RTXes are registers.  Do not check for REG RTXes.
1938         Determine addr32 prefix using SImode_address_operand or
1939         from original base and index RTXes.  Simplify code.
1940
1941         2012-10-21  Uros Bizjak  <ubizjak@gmail.com>
1942
1943         * config/i386/i386-protos.h (memory_address_length): Add new bool
1944         argument.  Update all uses.
1945         * config/i386/i386.c (memory_address_length): If not LEA insn, then
1946         add length of addr32 prefix based on mode of base or index register.
1947         (ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
1948         addresses here.  Update call to memory_address_length.
1949         (ix86_print_address_operand): Use SImode_address_operand predicate.
1950         * config/i386/predicates.md (SImode_address_operand): New.
1951         * config/i386/i386.md (lea<mode>): Use SImode_address_operand
1952         to calculate "mode" attribute.  Use SImode_address_operand predicate
1953         instead of open-coding accepted RTX codes.
1954
1955 2012-10-22  Georg-Johann Lay  <avr@gjlay.de>
1956
1957         Backport from 2012-10-22 trunk r192685.
1958         * doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
1959         Note __AVR_<device>__ is not defined for cores.
1960         Don't point to --help=target.
1961         Order --mcu= documentation according to trunk:/gcc/doc/avr-mmcu.texi.
1962
1963 2012-10-19  Marek Polacek  <polacek@redhat.com>
1964
1965         Backported from mainline
1966         2012-10-19  Marek Polacek  <polacek@redhat.com>
1967
1968         PR middle-end/54945
1969         * fold-const.c (fold_sign_changed_comparison):  Punt if folding
1970         pointer/non-pointer comparison.
1971
1972 2012-10-19  Zhenqiang Chen <zhenqiang.chen@linaro.org>
1973
1974         Backported from mainline
1975         2012-10-19  Zhenqiang Chen <zhenqiang.chen@linaro.org>
1976
1977         PR target/54892
1978         * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
1979         sure the mode is correct when falling through from above cases.
1980
1981 2012-10-19  Alan Modra  <amodra@gmail.com>
1982
1983         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
1984         (HAVE_LD_LARGE_TOC): Likewise.
1985         * configure: Regenerate.
1986
1987 2012-10-19  Alan Modra  <amodra@gmail.com>
1988
1989         * config/rs6000/predicates.md (splat_input_operand): Don't call
1990         input_operand for MEMs.  Instead check for volatile and call
1991         memory_address_addr_space_p with modified mode.
1992
1993 2012-10-17  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
1994
1995         Backported from mainline
1996         2012-07-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
1997
1998         * config/arm/arm.c (arm_reorg): Ensure all insns are split.
1999
2000 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2001
2002         PR rtl-optimization/54870
2003         * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
2004         * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
2005         SSA_NAME pointer that points to a partition if there is at least
2006         one variable with it set in the partition.
2007         * dse.c (local_variable_can_escape): New predicate.
2008         (can_escape): Call it.
2009         * gimplify.c (mark_addressable): If this is a partitioned decl, also
2010         mark the SSA_NAME pointer that points to a partition.
2011
2012 2012-10-16  Andrey Belevantsev  <abel@ispras.ru>
2013
2014         Backport from mainline
2015         2012-08-09  Andrey Belevantsev  <abel@ispras.ru>
2016
2017         PR rtl-optimization/53701
2018         * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
2019         rocess not only expr's vinsns but all old vinsns from expr's
2020         istory of changes.
2021
2022 2012-10-16  Andrey Belevantsev  <abel@ispras.ru>
2023
2024         Backport from mainline
2025         2012-07-31  Andrey Belevantsev  <abel@ispras.ru>
2026         PR target/53975
2027
2028         * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
2029         Revert
2030         2011-08-04  Sergey Grechanik  <mouseentity@ispras.ru>
2031         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
2032         only if producer writes to the register given by regno.
2033
2034 2012-09-15  Uros Bizjak  <ubizjak@gmail.com>
2035
2036         Backport from mainline
2037         2012-10-15  Uros Bizjak  <ubizjak@gmail.com>
2038
2039         * config/i386/sse.md (UNSPEC_MOVU): Remove.
2040         (UNSPEC_LOADU): New.
2041         (UNSPEC_STOREU): Ditto.
2042         (<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
2043         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
2044         (<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
2045         (<sse2>_movdqu<avxsizesuffix>): Split to ...
2046         (<sse2>_loaddqu<avxsizesuffix>): ... this and ...
2047         (<sse2>_storedqu<avxsizesuffix>): ... this.
2048         (*sse4_2_pcmpestr_unaligned): Update.
2049         (*sse4_2_pcmpistr_unaligned): Ditto.
2050
2051         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
2052         gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
2053         gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
2054         (ix86_expand_vector_move_misalign): Use gen_sse_loadups or
2055         gen_sse2_load{dqu,upd} to load from unaligned memory and
2056         gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
2057         unaligned memory.
2058         (struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
2059         Use CODE_FOR_sse_loadups.
2060         <IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
2061         <IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
2062         <IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
2063         <IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
2064         <IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
2065         <IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
2066         <IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
2067         <IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
2068         <IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
2069         <IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
2070         <IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.
2071
2072 2012-10-15  Steven Bosscher  <steven@gcc.gnu.org>
2073
2074         Backport from trunk (r190222):
2075
2076         PR tree-optimization/54146
2077         * ifcvt.c: Include pointer-set.h.
2078         (cond_move_process_if_block): Change type of then_regs and
2079         else_regs from alloca'd array to pointer_sets.
2080         (check_cond_move_block): Update for this change.
2081         (cond_move_convert_if_block): Likewise.
2082         * Makefile.in: Fix dependencies for ifcvt.o.
2083
2084 2012-10-15  Richard Guenther  <rguenther@suse.de>
2085
2086         PR tree-optimization/54920
2087         * tree-ssa-pre.c (create_expression_by_pieces): Properly
2088         allocate temporary storage for all NARY elements.
2089
2090 2012-10-08  Georg-Johann Lay  <avr@gjlay.de>
2091
2092         PR target/54854
2093         * doc/invoke.texi (AVR Options): Deprecate -mshort-calls.
2094
2095 2012-10-05  Mark Kettenis  <kettenis@openbsd.org>
2096
2097         * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
2098         default_use_cxa_atexit to yes.
2099
2100 2012-10-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2101
2102         * config/pa/pa.md: Adjust unamed HImode add insn pattern.
2103
2104 2012-10-05  Jan Hubicka  <jh@suse.cz>
2105             Jakub Jelinek  <jakub@redhat.com>
2106
2107         PR tree-optimization/33763
2108         * tree-inline.c (expand_call_inline): Silently ignore always_inline
2109         attribute for redefined extern inline functions.
2110
2111 2012-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2112
2113         Backported from mainline
2114         2012-10-03  Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
2115
2116         * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
2117         in SSE and YMM state support check for -march=native.
2118
2119 2012-10-03  Alexandre Oliva <aoliva@redhat.com>
2120
2121         PR debug/53135
2122         * dwarf2out.c (value_format): Use block4 for dw_val_class_loc
2123         when needed.
2124
2125 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2126
2127         Backported from mainline
2128         2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2129
2130         PR target/54785
2131         * doc/invoke.texi: Document -mprefer-avx128.
2132
2133 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2134
2135         Backported from mainline
2136         2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2137
2138         PR target/54741
2139         *  config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
2140         (XSTATE_FP): Likewise.
2141         (XSTATE_SSE): Likewise.
2142         (XSTATE_YMM): Likewise.
2143         (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
2144         SSE and YMM states aren't supported.
2145
2146 2012-10-01  Tom de Vries  <tom@codesourcery.com>
2147
2148         * var-tracking.c (set_dv_changed): Add an 'inline' function specifier to
2149         the prototype.
2150
2151 2012-10-01  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2152
2153         PR target/54746
2154         * config/s390/s390.c (s390_option_override): Add missing break.
2155
2156 2012-09-29  Andreas Tobler  <andreast@fgznet.ch>
2157
2158         Backport from mainline
2159         2012-09-29  Andreas Tobler  <andreast@fgznet.ch>
2160
2161         * config.gcc: Replace 'host' with 'target' when configuring for
2162         powerpc64*-*-freebsd.
2163
2164 2012-09-28  Meador Inge  <meadori@codesourcery.com>
2165
2166         Backport from mainline
2167         2012-09-27  Meador Inge  <meadori@codesourcery.com>
2168
2169         * gcc-ar.c (main): Handle the returning of the sub-process error
2170         code correctly.
2171
2172 2012-09-28  Georg-Johann Lay  <avr@gjlay.de>
2173
2174         Backport from 2012-09-28 trunk r191821.
2175         * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
2176
2177 2012-09-27  Jakub Jelinek  <jakub@redhat.com>
2178
2179         PR target/54703
2180         * simplify-rtx.c (simplify_binary_operation_1): Perform
2181         (x - (x & y)) -> (x & ~y) optimization only for integral modes.
2182
2183 2012-09-24  Eric Botcazou  <ebotcazou@adacore.com>
2184
2185         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
2186         TYPE_NONALIASED_COMPONENT flag.
2187         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
2188         TYPE_NONALIASED_COMPONENT flag.
2189
2190 2012-09-21  Richard Guenther  <rguenther@suse.de>
2191
2192         PR middle-end/54638
2193         Backport from mainline
2194         2012-04-19  Richard Guenther  <rguenther@suse.de>
2195
2196         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
2197         array access.
2198
2199 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2200
2201         PR c/54552
2202         * c-typeck.c (c_cast_expr): When casting to a type requiring
2203         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
2204         c_fully_fold first.
2205
2206 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2207
2208         PR c/54103
2209         * c-typeck.c (build_unary_op): Pass original argument of
2210         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
2211         any C_MAYBE_CONST_EXPR, if it has integer operands.
2212         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
2213         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
2214         to c_objc_common_truthvalue_conversion, then remove any
2215         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
2216         c_objc_common_truthvalue_conversion not
2217         c_common_truthvalue_conversion.
2218         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
2219         call note_integer_operands for arguments with integer operands
2220         that are not integer constants.
2221
2222 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
2223
2224         Backported from mainline
2225         2012-09-17  Jakub Jelinek  <jakub@redhat.com>
2226
2227         PR tree-optimization/54563
2228         * tree-ssa-math-opts.c (execute_cse_sincos): Call
2229         gimple_purge_dead_eh_edges if last call has been changed.
2230
2231         2012-09-14  Jakub Jelinek  <jakub@redhat.com>
2232
2233         PR target/54564
2234         * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
2235         instead of (match_dup 0) as second argument to vec_merge.
2236         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
2237         Remove third alternative.
2238         (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise.  Negate
2239         operand 2 instead of operand 1, but put it as first argument
2240         of fma.
2241         * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
2242         _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
2243         of the first.
2244
2245 2012-09-20  Jakub Jelinek  <jakub@redhat.com>
2246
2247         * BASE-VER: Set to 4.7.3.
2248         * DEV-PHASE: Set to prerelease.
2249
2250 2012-09-20  Release Manager
2251
2252         * GCC 4.7.2 released.
2253
2254 2012-09-15  Andi Kleen  <ak@linux.intel.com>
2255
2256         Backport from mainline
2257         2012-09-07  Andi Kleen  <ak@linux.intel.com>
2258
2259         * gcc/lto-streamer.h (res_pair): Add.
2260         (lto_file_decl_data): Replace resolutions with respairs.
2261         Add max_index.
2262         * gcc/lto/lto.c (lto_resolution_read): Remove max_index.  Add rp.
2263         Initialize respairs.
2264         (lto_file_finalize): Set up resolutions vector lazily from respairs.
2265
2266 2012-09-14  Walter Lee  <walt@tilera.com>
2267
2268         Backport from mainline.
2269         2012-09-14  Walter Lee  <walt@tilera.com>
2270
2271         * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
2272         option for TILEPro and TILE-Gx.
2273
2274 2012-09-13  Uros Bizjak  <ubizjak@gmail.com>
2275
2276         * config/i386/i386.h (x86_prefetchw): New global variable.
2277         (TARGET_PREFETCHW): New macro.
2278         * config/i386/i386.c (PTA_PREFETCHW): Ditto.
2279         (processor_alias_table): Add PTA_PREFETCHW to
2280         bdver1, bdver2 and btver1.
2281         (ix86_option_override_internal): Set x86_prefetchw for
2282         PTA_PREFETCHW targets.
2283         * config/i386/i386.md (prefetch): Expand to prefetchw
2284         for TARGET_PREFETCHW.
2285         (*prefetch_3dnow_<mode>): Also enable for TARGET_PREFETCHW.
2286
2287         Backport from mainline
2288         2012-08-13  Uros Bizjak  <ubizjak@gmail.com>
2289
2290         * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
2291         (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
2292         Rename to ...
2293         (*prefetch_sse): ... this.
2294         (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
2295         Rename to ...
2296         (*prefetch_3dnow): ... this.
2297
2298 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
2299
2300         PR c/54559
2301         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
2302         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
2303
2304 2012-09-12  Teresa Johnson  <tejohnson@google.com>
2305
2306         Backport from mainline.
2307         2012-09-12  Teresa Johnson  <tejohnson@google.com>
2308
2309         PR gcov-profile/54487
2310         * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
2311         test using F_SETLKW with fcntl.
2312         * configure, config.in: Regenerate.
2313
2314 2012-09-12  Uros Bizjak  <ubizjak@gmail.com>
2315
2316         Backport from mainline
2317         2012-09-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2318
2319         * config/i386/i386.md : Comments on fma4 instruction selection
2320         reflect requirement on register pressure based cost model.
2321
2322         * config/i386/driver-i386.c (host_detect_local_cpu): fma4
2323         flag is set-reset as informed by the cpuid flag.
2324
2325         * config/i386/i386.c (processor_alias_table): fma4
2326         flag is enabled for bdver2.
2327
2328 2012-09-12  Christian Bruel  <christian.bruel@st.com>
2329
2330         * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
2331
2332 2012-09-12  Jakub Jelinek  <jakub@redhat.com>
2333
2334         * config.gcc: Obsolete picochip-*.
2335
2336 2012-09-11  Richard Guenther  <rguenther@suse.de>
2337
2338         PR debug/54534
2339         * cgraph.h (varpool_can_remove_if_no_refs): Restore dependence
2340         on flag_toplevel_reorder.
2341
2342 2012-09-10  Richard Henderson  <rth@redhat.com>
2343
2344         * config/alpha/predicates.md (small_symbolic_operand): Disallow
2345         large offsets.
2346
2347 2012-09-10  Georg-Johann Lay  <avr@gjlay.de>
2348
2349         Backport from 2012-09-10 mainline r191132.
2350
2351         PR target/54536
2352         * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
2353
2354 2012-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
2355
2356         PR middle-end/54515
2357         * tree-sra.c (disqualify_base_of_expr): Check for possible
2358         NULL_TREE returned by get_base_address()
2359
2360 2012-09-07  Richard Guenther  <rguenther@suse.de>
2361
2362         Backport from mainline
2363         2012-06-26  Jan Hubicka  <jh@suse.cz>
2364
2365         PR lto/53572
2366         * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
2367         used symbols.
2368
2369 2012-09-07  Richard Guenther  <rguenther@suse.de>
2370
2371         Backport from mainline
2372         2012-07-13  Richard Guenther  <rguenther@suse.de>
2373
2374         PR tree-optimization/53922
2375         * tree-vrp.c (value_inside_range): Change prototype to take
2376         min/max instead of value-range.
2377         (range_includes_zero_p): Likewise.  Return the result from
2378         value_inside_range.
2379         (extract_range_from_binary_expr_1): Adjust to handle dont-know
2380         return value from range_includes_zero_p.
2381         (extract_range_from_unary_expr_1): Likewise.
2382         (compare_range_with_value): Likewise.
2383         (vrp_meet_1): Likewise.
2384
2385 2012-09-07  Richard Guenther  <rguenther@suse.de>
2386
2387         PR middle-end/53667
2388         * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
2389         EAF_NOESCAPED arguments.  Transitively close non-EAF_DIRECT
2390         arguments separately.
2391
2392 2012-09-07  Jakub Jelinek  <jakub@redhat.com>
2393
2394         Backported from mainline
2395         2012-09-06  Jakub Jelinek  <jakub@redhat.com>
2396
2397         PR rtl-optimization/54455
2398         * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
2399         bb ends up with asm goto referencing bb's label.
2400
2401 2012-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2402
2403         Backport from mainline.
2404         2012-08-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2405                     Richard Earnshaw  <richard.earnshaw@arm.com>
2406
2407         PR target/54252
2408         * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
2409         element size. Use elem_type from the formal parameter. New parameter
2410         fcode.
2411         (neon_expand_args): Adjust call to neon_dereference_pointer.
2412
2413 2012-09-06  Uros Bizjak  <ubizjak@gmail.com>
2414
2415         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Use
2416         reg_not_xmm0_operand_maybe_avx as operand 0 constraint.
2417
2418 2012-09-06  Uros Bizjak  <ubizjak@gmail.com>
2419
2420         Backport from mainline
2421         2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
2422
2423         * config/i386/i386.md (isa): Add fma and fma4.
2424         (enabled): Handle fma and fma4.
2425         * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
2426         (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
2427         (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
2428         (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
2429         (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
2430         (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
2431
2432         2012-08-10  Uros Bizjak  <ubizjak@gmail.com>
2433
2434         * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
2435         *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
2436         *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
2437
2438 2012-09-06  Richard Guenther  <rguenther@suse.de>
2439
2440         PR tree-optimization/54498
2441         * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
2442         abort when reaching an already visited region.
2443         * tree-ssa-alias.c (maybe_skip_until): Likewise.  And do it.
2444         (get_continuation_for_phi_1): Likewise.
2445         (walk_non_aliased_vuses): When we translated the reference,
2446         abort when we re-visit a region.
2447         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
2448
2449 2012-09-06  Andrew Pinski  <apinski@cavium.com>
2450
2451         PR tree-opt/54494
2452         * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
2453
2454 2012-09-05  Jakub Jelinek  <jakub@redhat.com>
2455
2456         PR middle-end/54486
2457         * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
2458         build_int_cst with size_type_node instead of size_int.
2459
2460 2012-09-05  Georg-Johann Lay  <avr@gjlay.de>
2461
2462         Backport from 2012-09-05 mainline r190697.
2463
2464         PR target/54461
2465         * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
2466         configured --with-avrlibc.
2467         (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if configured
2468         --with-avrlibc.
2469         * config/avr/avrlibc.h: New file.
2470         * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
2471         configured --with-avrlibc.
2472         * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
2473
2474 2012-09-05  Bin Cheng  <bin.cheng@arm.com>
2475
2476         Backport from 2012-09-04 mainline r190919
2477
2478         PR target/45070
2479         * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
2480         of size less than 4 bytes by using macro ARM_NUM_INTS.
2481         (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
2482
2483 2012-09-04  Richard Henderson  <rth@redhat.com>
2484
2485         * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
2486
2487 2012-09-04  Georg-Johann Lay  <avr@gjlay.de>
2488
2489         Backport from 2012-09-04 mainline r190920
2490
2491         PR target/54476
2492         * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with SImode.
2493
2494 2012-09-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2495
2496         Backport from 2012-09-04 mainline r190914
2497
2498         PR target/54220
2499         * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
2500         define to...
2501         (avr_allocate_stack_slots_for_args): ...this new static function.
2502
2503 2012-09-03  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         Backported from mainline
2506         2012-08-23  H.J. Lu  <hongjiu.lu@intel.com>
2507
2508         PR driver/54335
2509         * doc/invoke.texi: Add -da and remove -dm.
2510
2511 2012-09-03  Jakub Jelinek  <jakub@redhat.com>
2512
2513         Backported from mainline
2514         2012-09-01  Jakub Jelinek  <jakub@redhat.com>
2515
2516         PR target/54436
2517         * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
2518         operands[1] is CONST_INT_P, convert it to QImode before printing.
2519
2520         2012-08-31  Jakub Jelinek  <jakub@redhat.com>
2521
2522         PR c/54428
2523         * c-convert.c (convert): Don't call fold_convert_loc if
2524         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
2525         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
2526         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
2527
2528         2012-08-24  Jakub Jelinek  <jakub@redhat.com>
2529
2530         PR c/54363
2531         * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
2532         if init is a CONSTRUCTOR.
2533
2534 2012-09-02  Eric Botcazou  <ebotcazou@adacore.com>
2535
2536         PR rtl-optimization/54369
2537         * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
2538         calling dbr_schedule.
2539         * config/sparc/sparc.c (sparc_reorg): Likewise.
2540
2541 2012-08-31  Kirill Yukhin  <kirill.yukhin@intel.com>
2542
2543         Backport from mainline
2544         2012-08-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
2545
2546         * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
2547         case for Atom processor.
2548
2549 2012-08-28  Uros Bizjak  <ubizjak@gmail.com>
2550
2551         Backport from mainline
2552         2012-08-27  Uros Bizjak  <ubizjak@gmail.com>
2553
2554         PR target/46254
2555         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
2556         true for TARGET_64BIT or !flag_pic.
2557         * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
2558         (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
2559         to cmpxchg8b_pic_memory_operand.  Use DWIH mode iterator.
2560         Add insn constraint.  Conditionally emit xchg asm insns.
2561         (atomic_compare_and_swap<mode>): Update calls.  Check only
2562         cmpxchg8b_pic_memory_operand in memory address fixup.
2563         (DCASMODE): Remove.
2564         (CASHMODE): Rename from DCASHMODE.
2565         (doublemodesuffix): Update modes.
2566         (regprefix): New mode attribute.
2567
2568         (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
2569         <UNSPECV_CMPXCHG>: New constant.
2570         (atomic_compare_and_swap<mode>_1): Rename from
2571         atomic_compare_and_swap_single<mode>.  Update calls and
2572         unspec_volatile constants.
2573         (atomic_compare_and_swap<mode>_doubleword): Rename from
2574         atomic_compare_and_swap_double<mode>.  Update calls and
2575         unspec_volatile constants.
2576
2577 2012-08-28  Walter Lee  <walt@tilera.com>
2578
2579         Backport from mainline
2580         2012-08-28  Walter Lee  <walt@tilera.com>
2581
2582         * confg/tilegx/tilegx.md: Fix code style.
2583         (*zero_extendsidi_truncdisi): Fix typo.
2584         * config/tilegx/tilegx.c: Fix code style.
2585         (tilegx_function_profiler): Fix typo.
2586
2587 2012-08-27  Walter Lee  <walt@tilera.com>
2588
2589         Backport from mainline
2590         2012-08-27  Walter Lee  <walt@tilera.com>
2591
2592         * doc/md.texi (TILE-Gx): Fix typo.
2593
2594 2012-08-27  Walter Lee  <walt@tilera.com>
2595
2596         Backport from mainline
2597         2012-08-27  Walter Lee  <walt@tilera.com>
2598
2599         * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
2600         * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
2601
2602 2012-08-27  Walter Lee  <walt@tilera.com>
2603
2604         Backport from mainline
2605         2012-08-27  Walter Lee  <walt@tilera.com>
2606
2607         * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
2608         (insn_bfins): Delete.
2609
2610 2012-08-27  Walter Lee  <walt@tilera.com>
2611
2612         Backport from mainline
2613         2012-08-27  Walter Lee  <walt@tilera.com>
2614
2615         * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
2616         atomic_exchange_bare<mode>,
2617         atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
2618         * config/tilegx/tilegx-generic.md (X1_remote): New insn_reservation.
2619         * config/tilegx/tilegx.md (type): Add X1_remove.
2620         (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
2621         insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
2622         insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
2623         X1_remote.
2624
2625 2012-08-25  Eric Botcazou  <ebotcazou@adacore.com>
2626
2627         PR rtl-optimization/54088
2628         * jump.c (delete_related_insns): Robustify latest change.
2629
2630 2012-08-21  Richard Guenther  <rguenther@suse.de>
2631
2632         Backport from mainline
2633         2012-08-16  Richard Guenther  <rguenther@suse.de>
2634
2635         PR middle-end/54146
2636         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
2637         exit vector.
2638         * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
2639         * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
2640         * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
2641         * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
2642         (tree_ssa_lim_finalize): Free all mem_refs.
2643         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
2644         scc when bailing out.
2645         * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
2646         * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
2647         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
2648         FOR_EACH_LOOP_BREAK.
2649
2650         2012-08-17  Richard Guenther  <rguenther@suse.de>
2651
2652         * tree-sra.c (modify_function): Free redirect_callers vector.
2653         * ipa-split.c (split_function): Free args_to_pass vector.
2654         * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
2655         vec_oprnds.
2656         (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
2657         * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
2658         (vect_analyze_slp_instance): Free everything.
2659         (destroy_bb_vec_info): Free the SLP instances.
2660
2661         2012-08-17  Richard Guenther  <rguenther@suse.de>
2662
2663         * params.def (integer-share-limit): Decrease from 256 to 251,
2664         add rationale.
2665
2666         2012-08-21  Richard Guenther  <rguenther@suse.de>
2667
2668         * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
2669         the affine expansion cache.
2670
2671 2012-08-20  Patrick Marlier  <patrick.marlier@gmail.com>
2672
2673         Backported from trunk
2674         2012-08-20  Patrick Marlier  <patrick.marlier@gmail.com>
2675
2676         PR middle-end/53992
2677         * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
2678
2679 2012-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2680
2681         Backport from mainline.
2682         2012-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2683
2684         PR target/54212
2685         * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
2686         mark as predicable. Adjust asm template.
2687         (vec_setv2di_internal): Likewise.
2688         (vec_extract<mode> VD, VQ): Likewise.
2689         (vec_extractv2di): Likewise.
2690         (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
2691         (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
2692         (neon_vdup_n<mode> VX, V32): Likewise.
2693         (neon_vdup_nv2di): Likewise.
2694
2695 2012-08-17  Walter Lee  <walt@tilera.com>
2696
2697         Backport from mainline
2698         2012-08-17  Walter Lee  <walt@tilera.com>
2699
2700         * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
2701         (FEEDBACK_ENTER): Define.
2702         (FEEDBACK_REENTER): Define.
2703         (FEEDBACK_ENTRY): Define.
2704         * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
2705         (FEEDBACK_ENTER): Define.
2706         (FEEDBACK_REENTER): Define.
2707         (FEEDBACK_ENTRY): Define.
2708
2709 2012-08-16  Walter Lee  <walt@tilera.com>
2710
2711         Backport from mainline
2712         2012-08-16  Walter Lee  <walt@tilera.com>
2713
2714         * config.gcc (tilegx-*-linux*): Add feedback.h.
2715         (tilepro-*-linux*): Likewise.
2716         * config/tilegx/feedback.h: New file.
2717         * config/tilepro/feedback.h: New file.
2718
2719 2012-08-08  Pavel Chupin  <pavel.v.chupin@intel.com>
2720
2721         Backport from mainline r189840 and r187586:
2722         2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
2723
2724         * config/i386/i386.md (stack_protect_set): Disable the pattern
2725         for Android since Android libc (bionic) does not provide random
2726         value for stack protection guard at gs:0x14. Guard value
2727         will be provided from external symbol (default implementation).
2728         (stack_protect_set_<mode>): Likewise.
2729         (stack_protect_test): Likewise.
2730         (stack_protect_test_<mode>): Likewise.
2731         * gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
2732         not have Bionic by default
2733         * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
2734         Macro OPTION_BIONIC is defined in this file and provides Bionic
2735         accessibility status
2736
2737         2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
2738
2739         * configure.ac: Stack protector enabling for Android targets.
2740         * configure: Regenerate.
2741
2742 2012-08-13  Jakub Jelinek  <jakub@redhat.com>
2743
2744         Backported from trunk
2745         2012-07-19  Jakub Jelinek  <jakub@redhat.com>
2746
2747         PR rtl-optimization/53942
2748         * function.c (assign_parm_setup_reg): Avoid zero/sign extension
2749         directly from likely spilled non-fixed hard registers, move them
2750         to pseudo first.
2751
2752 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
2753
2754         * config/i386/sse.md (xop_phaddbq):  Fix vec_select selectors.
2755         (xop_phaddubq): Ditto.
2756
2757 2012-08-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
2758
2759         Backport from mainline
2760         2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2761                     Richard Earnshaw  <rearnsha@arm.com>
2762
2763         * target.def (vector_alignment): New target hook.
2764         * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
2765         * doc/tm.texi: Regenerate.
2766         * targhooks.c (default_vector_alignment): New function.
2767         * targhooks.h (default_vector_alignment): Add prototype.
2768         * stor-layout.c (layout_type): Use targetm.vector_alignment.
2769         * config/arm/arm.c (arm_vector_alignment): New function.
2770         (TARGET_VECTOR_ALIGNMENT): Define.
2771
2772         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
2773         vector type alignment instead of size.
2774         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
2775         element type size directly instead of computing it from alignment.
2776         Fix variable naming and comment.
2777
2778 2012-08-09  Uros Bizjak  <ubizjak@gmail.com>
2779
2780         Backport from mainline
2781         2012-08-09  Uros Bizjak  <ubizjak@gmail.com>
2782
2783         * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
2784         (alpha_pad_function_end): ... this.  Also insert NOP between
2785         sibling call and GP load.
2786         (alpha_reorg): Update call to alpha_pad_function_end.  Expand comment.
2787
2788 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2789
2790         Backport from mainline
2791         2012-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
2792                     H.J. Lu  <hongjiu.lu@intel.com>
2793
2794         PR rtl-optimization/54157
2795         * combine.c (gen_lowpart_for_combine): Don't return identity
2796         for CONST or symbolic reference.
2797
2798 2012-08-06  Uros Bizjak  <ubizjak@gmail.com>
2799
2800         Backport from mainline
2801         2012-07-23  Uros Bizjak  <ubizjak@gmail.com>
2802
2803         * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
2804         * config/i386/i386.c (ix86_lea_outperforms): Make static.  Make
2805         split_cost argument signed.
2806         (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
2807         (ix86_avoid_lea_for_addr): Ditto.
2808
2809         2012-07-27  Uros Bizjak  <ubizjak@gmail.com>
2810
2811         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false if
2812         the address has less than two components.
2813
2814 2012-08-02  Steve Ellcey  <sellcey@mips.com>
2815
2816         Backport from mainline
2817         2012-07-19  Steve Ellcey  <sellcey@mips.com>
2818
2819         * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
2820         MIPS16 mode.
2821
2822 2012-08-02  Uros Bizjak  <ubizjak@gmail.com>
2823
2824         Backport from mainline
2825         2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
2826
2827         PR target/53961
2828         * config/i386/i386.c (ix86_legitimate_address_p): Move check for
2829         negative constant address for TARGET_X32 ...
2830         (ix86_decompose_address): ... here.  Reject constant addresses
2831         that don't satisfy x86_64_immediate_operand predicate.
2832
2833         2012-07-23  Uros Bizjak  <ubizjak@gmail.com>
2834
2835         PR target/53961
2836         * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
2837         * config/i386/i386.c (ix86_print_operand_address): Ditto.
2838         (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
2839         addresses.  Prevent zero extensions of CONST_INT operands.
2840
2841         2012-07-22  Uros Bizjak  <ubizjak@gmail.com>
2842
2843         PR target/53961
2844         * config/i386/i386.md (*lea): New insn pattern.
2845         (*lea_1): Remove.
2846         (*lea<mode>_2): Ditto.
2847         (*lea_{3,4,5,6}_zext): Ditto.
2848         * config/i386/predicates.md (lea_address_operand): Do not reject
2849         zero-extended address operands.
2850         * config/i386/constraints.md (j): Remove address constraint.
2851         * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
2852         of an address.
2853         (ix86_print_operand_address): Handle SImode subreg of an address.
2854         (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
2855
2856 2012-08-01  Uros Bizjak  <ubizjak@gmail.com>
2857
2858         Backport from mainline
2859         2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
2860
2861         PR target/52530
2862         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
2863         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
2864         to set code to 'q'.
2865         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
2866         (*movdi_internal_rex64): Use %E operand modifier for lea.
2867         (*movsi_internal): Ditto.
2868         (*lea_1): Ditto.
2869         (*lea<mode>_2): Ditto.
2870         (*lea_{3,4,5,6}_zext): Ditto.
2871         (*tls_global_dynamic_32_gnu): Ditto.
2872         (*tls_global_dynamic_64): Ditto.
2873         (*tls_dynamic_gnu2_lea_32): Ditto.
2874         (*tls_dynamic_gnu2_lea_64): Ditto.
2875         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
2876
2877 2012-08-01  Uros Bizjak  <ubizjak@gmail.com>
2878
2879         Backport from mainline
2880         2012-08-01  Uros Bizjak  <ubizjak@gmail.com>
2881
2882         * config/i386/i386.c (ix86_address_subreg_operand): Reject
2883         stack pointer.
2884         (ix86_print_operand_address): Assert that parts.base and parts.index
2885         are non-NULL after call to simplify_subreg.
2886
2887 2012-07-22  Oleg Endo  <olegendo@gcc.gnu.org>
2888
2889         PR target/33135
2890         * config/sh/sh.opt (mieee): Use Var instead of Mask.  Correct
2891         description.
2892         * config/sh/sh.c (sh_option_override): Do not change
2893         flag_finite_math_only.  Set TARGET_IEEE to complement of
2894         flag_finite_math_only.
2895         * doc/invoke.texi (SH options): Add mno-ieee.  Correct
2896         description of mieee and mno-ieee behavior.
2897
2898 2012-07-20  Kirill Yukhin  <kirill.yukhin@intel.com>
2899
2900         PR target/53877
2901         * config/i386/lzcntintrin.h (_lzcnt_u32): New.
2902         (_lzcnt_u64): Ditto.
2903
2904 2012-07-20  Andrey Belevantsev  <abel@ispras.ru>
2905
2906         Backport from mainline
2907         2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
2908
2909         PR rtl-optimization/52250
2910         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
2911         to put note list into.  Unconditionally call move_bb_info.
2912         (move_bb_info): Do not assert the blocks being in the same region,
2913         just drop the note list if they are not.
2914
2915 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
2916
2917         * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
2918
2919 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
2920
2921         * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
2922         defining statement is a SSA name that occurs in abnormal PHIs.
2923
2924 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
2925
2926         * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
2927         conversions.
2928
2929 2012-07-19  Richard Guenther  <rguenther@suse.de>
2930             Eric Botcazou  <ebotcazou@adacore.com>
2931
2932         * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
2933         about transition from invariant to known bits.
2934         (likely_value): Addresses with UNDEFINED components are UNDEFINED.
2935
2936 2012-07-19  Jakub Jelinek  <jakub@redhat.com>
2937
2938         PR middle-end/54017
2939         * tree-cfgcleanup.c (cleanup_omp_return): Remove.
2940         (cleanup_tree_cfg_bb): Don't call it.
2941         * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
2942         handling.
2943
2944 2012-07-19  Christian Bruel  <christian.bruel@st.com>
2945
2946         PR target/54029
2947         * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
2948
2949 2012-07-18  Ralf Corsépius  <ralf.corsepius@rtems.org>
2950
2951         * config.gcc (v850-*-rtems*): New target.
2952         * config/v850/rtems.h: New.
2953         * config/v850/t-rtems: New.
2954
2955 2012-07-18  Nick Clifton  <nickc@redhat.com>
2956
2957         * doc/invoke.texi (ARM Options): Document -munaligned-access.
2958
2959 2012-07-15  Uros Bizjak  <ubizjak@gmail.com>
2960
2961         PR target/53961
2962
2963         Backport from mainline
2964         2012-04-25  Jakub Jelinek  <jakub@redhat.com>
2965
2966         PR target/53110
2967         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
2968         instead expand it as zero extension.
2969
2970 2012-07-14  Uros Bizjak  <ubizjak@gmail.com>
2971
2972         * config/i386/i386.md (QImode and HImode cmove splitters): Merge
2973         QImode and HImode splitters.  Use ix86_comparison_operator.
2974         Explicitly match FLAGS_REG.
2975         (DFmode cmove splitter): Explicitly match FLAGS_REG.
2976
2977 2012-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
2978             Steven Bosscher  <steven@gcc.gnu.org>
2979             Bernd Schmidt  <bernds@codesourcery.com>
2980
2981         PR rtl-optimization/53908
2982         * df-problems.c (can_move_insns_across): When doing
2983         memory-reference book-keeping, handle call insns.
2984
2985 2012-07-10  Uros Bizjak  <ubizjak@gmail.com>
2986
2987         Backport from mainline
2988         2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
2989
2990         PR target/53811
2991         * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
2992         sibcall_insn_operand.  Move it to a temporary register if not.
2993
2994         2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
2995
2996         PR target/53853
2997         * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
2998         emit PIC sequence for fnaddr symbol reference in advance.
2999
3000 2012-07-09  Jason Merrill  <jason@redhat.com>
3001
3002         PR c++/53882
3003         * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
3004         (type_hash_eq): Likewise.
3005
3006         PR c++/53826
3007         * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
3008
3009 2012-07-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
3010
3011         * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
3012         due to negative shift amount.
3013
3014 2012-07-06  Kai Tietz  <ktietz@redhat.com>
3015
3016         Backport from mainline.
3017         PR bootstrap/52947
3018         * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
3019         as "/mingw/include".
3020
3021 2012-07-06  Nick Clifton  <nickc@redhat.com>
3022
3023         * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
3024         default_encode_section_info.
3025
3026 2012-07-06  Richard Guenther  <rguenther@suse.de>
3027
3028         Backport from mainline
3029         2012-03-30  Richard Guenther  <rguenther@suse.de>
3030
3031         PR middle-end/52786
3032         * double-int.c (rshift_double): Remove not needed cast.
3033
3034         2012-03-28  Richard Guenther  <rguenther@suse.de>
3035
3036         PR middle-end/50708
3037         * double-int.h (rshift_double): Remove.
3038         * double-int.c (lshift_double): Use absu_hwi to make count
3039         positive.
3040         (rshift_double): Make static, take unsigned count argument,
3041         remove handling of negative count argument.
3042         (double_int_rshift): Dispatch to lshift_double.
3043
3044 2012-07-06  Richard Guenther  <rguenther@suse.de>
3045
3046         Backport from mainline
3047         2012-06-18  Richard Guenther  <rguenther@suse.de>
3048
3049         PR tree-optimization/53693
3050         * tree-vect-patterns.c (vect_operation_fits_smaller_type):
3051         Reject operands with more than one use.
3052
3053 2012-07-06  Richard Guenther  <rguenther@suse.de>
3054
3055         Backport from mainline
3056         2012-04-11  Richard Guenther  <rguenther@suse.de>
3057
3058         PR middle-end/52621
3059         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
3060         consider loop nesting.
3061         (evolution_function_is_univariate_p): Properly check the remainder
3062         for chrecs.
3063
3064 2012-07-05  Pat Haugen <pthaugen@us.ibm.com>
3065
3066         Backport from mainline
3067         2012-05-24  Pat Haugen <pthaugen@us.ibm.com>
3068
3069         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
3070         rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
3071         (adjacent_mem_locations): Move some code to and call...
3072         (get_memref_parts): ...new function.
3073         (mem_locations_overlap): New function.
3074         (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
3075         (is_mem_ref): Rename to...
3076         (find_mem_ref): ...this. Return MEM rtx.
3077         (get_store_dest): Remove function.
3078         (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
3079         new parameter and adjust calls.
3080         (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
3081         mem refs overlap for true_store_to_load_dep_costly.
3082         (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
3083         passed to adjacent_mem_locations.
3084         (is_costly_group): Walk resolved dependency list.
3085         (force_new_group): Emit group ending nop for Power6/Power7.
3086         * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
3087         (group_ending_nop): New define_insn.
3088
3089 2012-07-04  Richard Guenther  <rguenther@suse.de>
3090
3091         PR middle-end/53433
3092         * gimple-fold.c (get_base_constructor): Do not return an
3093         error_mark_node DECL_INITIAL.
3094
3095 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
3096
3097         Backport from mainline
3098         2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
3099
3100         * config/i386/i386.c (ix86_option_override_internal): Fix wrong
3101         code model string in the error message.
3102
3103 2012-07-04  Tristan Gingold  <gingold@adacore.com>
3104
3105         Backport from mainline.
3106         2012-06-25  Tristan Gingold  <gingold@adacore.com>
3107
3108         * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
3109         (seh_cfa_adjust_cfa): ... that function.
3110         (seh_emit_stackalloc): Do not emit out of range values.
3111         * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
3112         UNSPEC_DEF_CFA constants.
3113         * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
3114         * config/i386/i386.c (ix86_frame_pointer_required): Required
3115         for very large frames on SEH target.
3116         (ix86_compute_frame_layout): Save area is before frame pointer
3117         on SEH target.  Handle very large frames.
3118         (ix86_expand_prologue): Likewise.
3119
3120 2012-07-04  Richard Guenther  <rguenther@suse.de>
3121
3122         * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
3123         as in free_lang_data_in_type.
3124
3125 2012-07-02  Martin Jambor  <mjambor@suse.cz>
3126
3127         Backport from mainline.
3128         2012-07-02  Martin Jambor  <mjambor@suse.cz>
3129
3130         PR middle-end/38474
3131         * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
3132         dynamic type change check.
3133
3134 2012-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3135
3136         * tree-eh.c (lower_try_finally_switch): Really put the location of the
3137         last statement of the finally block onto the switch.
3138
3139 2012-06-29  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3140
3141         * configure: Regenerate.
3142
3143         Backport from mainline.
3144         2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3145
3146         * config.gcc (target_type_format_char): New. Document it. Set it for
3147         arm*-*-* .
3148         * configure.ac (gnu_unique_option): Use target_type_format_char
3149         in test.  Comment rationale.
3150
3151 2012-06-29  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3152
3153         Backport from mainline.
3154         2012-05-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3155
3156         * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
3157
3158 2012-06-28  Georg-Johann Lay  <avr@gjlay.de>
3159
3160         Backport from 2012-06-28 mainline r189049
3161
3162         PR 53595
3163         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
3164         * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
3165         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
3166         avr_hard_regno_call_part_clobbered.
3167
3168 2012-06-28  Richard Guenther  <rguenther@suse.de>
3169
3170         PR middle-end/53790
3171         * expr.c (expand_expr_real_1): Verify if the type is complete
3172         before inspecting its size.
3173
3174 2012-06-27  Nick Clifton  <nickc@redhat.com>
3175
3176         * config/rx/rx.md (comparesi3_extend): Remove = modifier from
3177         input operand.
3178
3179 2012-06-26  Alexandre Oliva  <aoliva@redhat.com>
3180
3181         PR debug/53682
3182         * cselib.c (promote_debug_loc): Don't crash on NULL argument.
3183
3184 2012-06-26  Nick Clifton  <nickc@redhat.com>
3185
3186         * config/rx/rx.md (simple_return): Use the simple_return rtx.
3187
3188 2012-06-25  Jakub Jelinek  <jakub@redhat.com>
3189
3190         PR target/53759
3191         * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
3192         of x x x in the vmovlps load alternative.
3193
3194 2012-06-22  Richard Guenther  <rguenther@suse.de>
3195
3196         * gcov-iov.c: Include bconfig.h and system.h.
3197
3198 2012-06-22  Richard Guenther  <rguenther@suse.de>
3199
3200         PR gcov-profile/53744
3201         * gcov-iov.c (main): Treat "" and "prerelease" the same.
3202
3203 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3204
3205         * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
3206         DECL_IGNORED_P non-reg vars even if they are used.
3207
3208 2012-06-19  Jason Merrill  <jason@redhat.com>
3209
3210         PR c++/52637
3211         * dwarf2out.c (modified_type_die): Use scope_die_for.
3212         (gen_type_die_with_usage, dwarf2out_finish): Likewise.
3213         (uses_local_type_r, uses_local_type): New.
3214         (scope_die_for): Keep a type that uses a local type in local scope.
3215         Use get_context_die for namespace and type scope.
3216
3217 2012-06-19  Richard Guenther  <rguenther@suse.de>
3218
3219         PR middle-end/53470
3220         * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
3221         replace it with the first non-BLOCK context.
3222
3223 2012-06-18  Vladimir Makarov  <vmakarov@redhat.com>
3224
3225         PR rtl-optimization/53700
3226
3227         Backport from mainline
3228         2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3229
3230         * ira-color.c (setup_left_conflict_sizes_p): Process all
3231         conflicting objects.
3232
3233 2012-06-18  Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3234
3235         Backport from mainline
3236         2012-05-09 Uros Bizjak  <ubizjak@gmail.com>
3237
3238         PR target/52908
3239         * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
3240         xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
3241         (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
3242         instead of xop_mulv2div2di3_low.
3243         (xop_p<macs>dql): Fix vec_select selector.
3244         (xop_p<macs>dqh): Ditto.
3245         (xop_mulv2div2di3_low): Remove insn_and_split pattern.
3246         (xop_mulv2div2di3_high): Ditto.
3247
3248 2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
3249
3250         Backport from mainline:
3251         2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
3252
3253         * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
3254
3255 2012-06-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3256
3257         Backport from mainline:
3258         2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3259
3260         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
3261         * config/pa/pa.c (pa_attr_length_millicode_call): Use
3262         MAX_PCREL17F_OFFSET instead of fixed offset.
3263         (pa_attr_length_call): Likewise.
3264         (pa_attr_length_indirect_call): Likewise.
3265
3266 2012-06-15  Walter Lee  <walt@tilera.com>
3267
3268         Backport from mainline:
3269         2012-06-15  Walter Lee  <walt@tilera.com>
3270
3271         * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
3272
3273         2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
3274
3275         * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
3276
3277 2012-06-15  Aldy Hernandez  <aldyh@redhat.com>
3278
3279         Backport from mainline:
3280
3281         2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
3282         * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
3283         * gimple.h (block_in_transaction): Check for flag_tm.
3284
3285 2012-06-14  Aldy Hernandez  <aldyh@redhat.com>
3286
3287         PR tree-optimization/52558
3288
3289         Backport from mainline:
3290         2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
3291         * gimple.h (gimple_set_in_transaction): Remove.
3292         (gimple_in_transaction): Look in BB instead.
3293         (gimple_statement_base): Remove in_transaction field.
3294         * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
3295         * trans-mem.c (compute_transaction_bits): Place transaction bit
3296         information into basic blocks.
3297
3298         2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
3299
3300         PR tree-optimization/52558
3301         * cfg.c (alloc_aux_for_edge): Fix comment.
3302         (alloc_aux_for_edge): Remove static.
3303         * basic-block.h (alloc_aux_for_edge): Protoize.
3304         * tree-ssa-loop-im.c (execute_sm_if_changed): New.
3305         (execute_sm_if_changed_flag): New.
3306         (execute_sm_if_changed_flag_set): New.
3307         (execute_sm): Do not generate data races unless requested.
3308         (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
3309         (tree_ssa_lim_finalize): Call free_aux_for_edges.
3310         * gimple.h (block_in_transaction): New.
3311         (gimple_in_transaction): Use block_in_transaction.
3312
3313 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
3314
3315         Backported from mainline
3316         2012-06-12  Jakub Jelinek  <jakub@redhat.com>
3317
3318         PR rtl-optimization/53589
3319         * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
3320         discovery even when e->dest != target.  If any LABEL_REF points
3321         to e->dest label, redirect it to target's label.
3322
3323         2012-06-07  Jakub Jelinek  <jakub@redhat.com>
3324
3325         PR middle-end/53580
3326         * omp-low.c (scan_omp_1_stmt): If check_omp_nesting_restrictions
3327         returns false, replace stmt with GIMPLE_NOP.
3328         (check_omp_nesting_restrictions): Instead of issuing warnings,
3329         issue errors and return false if any errors were reported.
3330
3331 2012-06-14  Richard Guenther  <rguenther@suse.de>
3332
3333         * BASE-VER: Set to 4.7.2.
3334         * DEV-PHASE: Set to prerelease.
3335
3336 2012-06-12  Christian Bruel  <christian.bruel@st.com>
3337
3338         PR target/53621
3339         * config/sh/sh.c (sh_option_override): Don't force
3340          flag_omit_frame_pointer and maccumulate_outgoing_args.
3341         * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
3342
3343 2012-06-14  Release Manager
3344
3345         * GCC 4.7.1 released.
3346
3347 2012-06-13  Uros Bizjak  <ubizjak@gmail.com>
3348
3349         * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
3350
3351 2012-06-13  Richard Henderson  <rth@redhat.com>
3352
3353         * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
3354         iterator instead of INT.
3355
3356 2012-06-08  Richard Henderson  <rth@redhat.com>
3357
3358         PR c++/53602
3359         * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
3360         note to a clobber insn when no other insn is available.
3361
3362 2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>
3363
3364         PR c++/53524
3365         * doc/invoke.texi (Wenum-compare): Update documentation.
3366
3367 2012-06-04  Edmar Wienskoski  <edmar@freescale.com>
3368
3369         PR target/53559
3370         * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
3371         operands.
3372         (altivec_stvlxl): Ditto.
3373         (altivec_stvrx): Ditto.
3374         (altivec_stvrxl): Ditto.
3375
3376 2012-06-04  Aldy Hernandez  <aldyh@redhat.com>
3377
3378         PR middle-end/47530
3379         * trans-mem.c (expand_block_edges): Do not skip the first
3380         statement when resetting the BB.
3381
3382 2012-06-04  Richard Guenther  <rguenther@suse.de>
3383
3384         PR middle-end/53471
3385         * dwarf2out.c (dwarf2out_finish): If generating LTO do not
3386         create new assembler names.
3387
3388 2012-06-04  Richard Guenther  <rguenther@suse.de>
3389
3390         Backport from mainline
3391         2012-04-25  Jakub Jelinek  <jakub@redhat.com>
3392
3393         PR middle-end/52979
3394         * stor-layout.c (get_best_mode): Don't return mode with bitsize
3395         larger than maxbits.  Don't compute maxbits modulo align.
3396         Also check that unit bytes long store at bitpos / unit * unit
3397         doesn't affect bits beyond bitregion_end.
3398         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
3399         would not fit into bitregion_start ... bitregion_end + 1 bit
3400         region.
3401         (store_split_bit_field): Decrease unit close to end of bitregion_end
3402         if access is restricted in order to avoid mutual recursion.
3403
3404 2012-06-04  Georg-Johann Lay  <avr@gjlay.de>
3405
3406         Backport from 2012-06-04 mainline r188172
3407
3408         PR target/46261
3409         * config/avr/avr-stdint.h: New file.
3410         * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
3411         newlib-stdint.h
3412
3413 2012-06-04  Jakub Jelinek  <jakub@redhat.com>
3414
3415         PR tree-optimization/53550
3416         * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
3417         is POINTER_TYPE_P, use sizetype as step type instead of type.
3418
3419 2012-06-04  Richard Guenther  <rguenther@suse.de>
3420             Eric Botcazou  <ebotcazou@adacore.com>
3421
3422         Backport from mainline
3423         2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3424
3425         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
3426         Change type of BITOFFSET to signed.  Make sure the lower bound of
3427         the computed range is non-negative by adjusting OFFSET and BITPOS.
3428         (expand_assignment): Adjust call to get_bit_range.
3429
3430         2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
3431
3432         * expr.c (get_bit_range): Return the null range if the enclosing record
3433         is part of a larger bit field.
3434
3435         2012-03-20  Richard Guenther  <rguenther@suse.de>
3436
3437         * stor-layout.c (finish_bitfield_representative): Fallback
3438         to conservative maximum size if the padding up to the next
3439         field cannot be computed as a constant.
3440         (finish_bitfield_layout): If we cannot compute the distance
3441         between the start of the bitfield representative and the
3442         bitfield member start a new representative.
3443         * expr.c (get_bit_range): The distance between the start of
3444         the bitfield representative and the bitfield member is zero
3445         if the field offsets are not constants.
3446
3447         2012-03-16  Richard Guenther  <rguenther@suse.de>
3448
3449         * stor-layout.c (finish_bitfield_representative): Fall back
3450         to the conservative maximum size if we cannot compute the
3451         size of the tail padding.
3452
3453         2012-03-14  Richard Guenther  <rguenther@suse.de>
3454
3455         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
3456         * stor-layout.c (start_bitfield_representative): New function.
3457         (finish_bitfield_representative): Likewise.
3458         (finish_bitfield_layout): Likewise.
3459         (finish_record_layout): Call finish_bitfield_layout.
3460         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
3461         for QUAL_UNION_TYPE fields.
3462         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
3463         Stream DECL_BIT_FIELD_REPRESENTATIVE.
3464         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
3465
3466         PR middle-end/52080
3467         PR middle-end/52097
3468         PR middle-end/48124
3469         * expr.c (get_bit_range): Unconditionally extract bitrange
3470         from DECL_BIT_FIELD_REPRESENTATIVE.
3471         (expand_assignment): Adjust call to get_bit_range.
3472
3473 2012-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3474
3475         PR middle-end/53501
3476         * fold-const.c (fold_binary_loc): Refine previous change.
3477
3478 2012-06-01  Oleg Endo  <olegendo@gcc.gnu.org>
3479
3480         Backport from mainline
3481         2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
3482
3483         PR target/52667
3484         * config/sh/sh.c (find_barrier): Add equality check of last_got to
3485         avoid going above orig insn.  Update comments.
3486
3487 2012-06-01  Oleg Endo  <olegendo@gcc.gnu.org>
3488
3489         Backport from mainline
3490         2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
3491
3492         PR target/52642
3493         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
3494         prologue for unwinder and profiler.
3495
3496 2012-06-01  Oleg Endo  <olegendo@gcc.gnu.org>
3497
3498         Backport from mainline
3499         2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3500
3501         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
3502
3503 2012-06-01  Oleg Endo  <olegendo@gcc.gnu.org>
3504
3505         Backport from mainline
3506         2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3507
3508         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
3509         DBX_REGISTER_NUMBER.
3510
3511 2012-06-01  Oleg Endo  <olegendo@gcc.gnu.org>
3512
3513         Backport from mainline
3514         2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3515
3516         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
3517         operand is CONST_INT.  Take COSTS_N_INSNS into account.
3518         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value of
3519         shiftcosts.     
3520
3521 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
3522
3523         * config/avr/avr.opt (-msp8): Document it.
3524         * doc/invoke.texi (AVR Options): Copy from trunk docu.
3525
3526 2012-05-31  Richard Guenther  <rguenther@suse.de>
3527
3528         PR middle-end/48493
3529         * expr.c (expand_assignment): Do not use movmisalign on
3530         non-memory.
3531
3532 2012-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3533
3534         PR target/52999
3535         * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
3536         (pa_section_type_flags): New.
3537         (pa_legitimate_constant_p): Revert previous change.
3538
3539 2012-05-30  Aldy Hernandez  <aldyh@redhat.com>
3540
3541         Backport from mainline
3542         2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
3543
3544         PR middle-end/53008
3545         * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
3546         accessed indirectly.
3547         (ipa_tm_create_version): Same.
3548
3549 2012-05-30  Jason Merrill  <jason@redhat.com>
3550
3551         PR c++/53220
3552         * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
3553         about array compound literals.
3554
3555 2012-05-30  Richard Guenther  <rguenther@suse.de>
3556
3557         PR middle-end/53501
3558         * fold-const.c (fold_binary_loc): Make sure to call
3559         fold_plusminus_mult_expr with the original sign of operands.
3560
3561 2012-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3562
3563         * explow.c (probe_stack_range): Restore simple control flow and stop
3564         again when the probe cannot be generated if HAVE_check_stack.
3565
3566 2012-05-30  Jakub Jelinek  <jakub@redhat.com>
3567
3568         PR rtl-optimization/53519
3569         * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
3570         instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
3571
3572 2012-05-29  Richard Guenther  <rguenther@suse.de>
3573
3574         PR tree-optimization/53516
3575         * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
3576         bitfield accesses.
3577         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3578
3579 2012-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
3580
3581         Backport from mainline
3582         2012-05-28  Richard Guenther  <rguenther@suse.de>
3583
3584         PR tree-optimization/53438
3585         * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
3586
3587 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3588
3589         Backport from mainline
3590         2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
3591
3592         PR rtl-optimization/52528
3593         * combine.c (can_combine_p): Add setting of subst_low_luid
3594         before call to expand_field_assignment().
3595
3596 2012-05-26  Martin Jambor  <mjambor@suse.cz>
3597
3598         Backport from mainline
3599         2012-05-23  Martin Jambor  <mjambor@suse.cz>
3600
3601         * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
3602
3603 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3604
3605         PR lto/52178
3606         * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
3607         * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
3608
3609 2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3610
3611         PR target/53435
3612         * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
3613         (ix86_expand_vec_perm): Use int mode instead of float.
3614
3615 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3616
3617         PR ada/52362
3618         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
3619         gnu_ld variables to yes.
3620         * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
3621         (HAVE_GNU_AS): Likewise.
3622         * config.in: Regenerate.
3623         * configure: Likewise.
3624
3625 2012-05-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3626
3627         Backport from mainline
3628         2012-03-12  Richard Guenther  <rguenther@suse.de>
3629         * config/arm/arm.c (neon_dereference_pointer): Do not call
3630         covert during RTL expansion.
3631
3632 2012-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3633
3634         Backport from mainline
3635         2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3636
3637         PR target/53385
3638         * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
3639         relied on signed overflow behavior.
3640
3641 2012-05-24  Richard Guenther  <rguenther@suse.de>
3642
3643         PR middle-end/53460
3644         * tree-profile.c (tree_profiling): Cleanup the CFG if
3645         execute_fixup_cfg requests it.
3646
3647 2012-05-24  Jakub Jelinek  <jakub@redhat.com>
3648
3649         PR tree-optimization/53465
3650         * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
3651         vr0 into *vr, then vrp_meet that.
3652         (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
3653         have any equivalences.
3654         (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
3655         first time.
3656
3657 2012-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3658
3659         * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
3660         size handling.
3661         (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
3662         (iterative_hash_gimple_type): Adjust comment.
3663         (iterative_hash_canonical_type): Likewise.  Hash the bounds of the
3664         domain for an array type instead of the domain type itself.
3665
3666 2012-05-23  Georg-Johann Lay  <avr@gjlay.de>
3667
3668         Backport from 2012-05-23 mainline r187803
3669
3670         PR target/53448
3671         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
3672         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
3673         ASM_OUTPUT_ALIGN.
3674
3675 2012-05-23  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3676
3677         Backport from 2012-05-03 mainline r187075
3678
3679         * config/i386/driver-i386.c (host_detect_local_cpu): Reset
3680         has_fma4 for AMD processors with both fma3 and fma4 support.
3681
3682 2012-05-22  Richard Guenther  <rguenther@suse.de>
3683
3684         PR tree-optimization/53408
3685         * tree-vect-loop.c (vectorizable_induction): Properly check
3686         the restriction that we cannot handle induction results from
3687         the inner loop outside of the outer loop.
3688
3689 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
3690
3691         PR tree-optimization/53436
3692         * omp-low.c (omp_build_component_ref): New function.
3693         (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
3694
3695         PR tree-optimization/53366
3696         * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
3697         tests if complex_numbers == 2, but there are non-complex number loads
3698         too.
3699
3700         PR tree-optimization/53409
3701         * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
3702         vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
3703
3704         PR tree-optimization/53410
3705         * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
3706         instead of build_int_cst (type, 0) where vector types might be
3707         involved.
3708
3709 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
3710
3711         PR c/53418
3712         * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
3713         from folded operands before wrapping another around the
3714         conditional expression.
3715
3716 2012-05-21  Dave Boutcher  <daveboutcher@gmail.com>
3717             Patrick Marlier  <patrick.marlier@gmail.com>
3718
3719         * trans-mem.c (ipa_tm_transform_clone): Transform functions with
3720         indirect calls.
3721
3722 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3723
3724         Backport from mainline
3725         2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3726
3727         PR target/53416
3728         * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
3729         (UNSPECV_RDRAND): This.
3730         (rdrand<mode>_1): Updated.
3731
3732 2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3733
3734         Backport from mainline
3735         2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3736
3737         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3738         RDRND, F16C and FSGSBASE.
3739
3740 2012-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3741
3742         Backport from mainline
3743         2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3744
3745         * tree-ssa-pre.c (can_value_number_call): Delete.
3746         (compute_avail): Skip all statements with side effects.
3747         <GIMPLE_CALL>: Skip calls to internal functions.
3748
3749 2012-05-18  David S. Miller  <davem@davemloft.net>
3750
3751         Backport r185385 from mainline
3752         2012-03-14  Richard Guenther  <rguenther@suse.de>
3753
3754         PR middle-end/52584
3755         * tree-vect-generic.c (type_for_widest_vector_mode): Take
3756         element type instead of mode, use build_vector_type_for_mode
3757         instead of the langhook, build a vector of proper signedness.
3758         (expand_vector_operations_1): Adjust.
3759
3760 2012-05-18  Olivier Hainque  <hainque@adacore.com>
3761
3762         * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
3763         $(libsubdir) as libexecsubdir.
3764
3765 2012-05-16  Andrew Pinski  <apinski@cavium.com>
3766
3767         * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
3768         GIMPLE_ASSIGN.
3769
3770 2012-05-16  David S. Miller  <davem@davemloft.net>
3771
3772         * jump.c (delete_related_insns): If we remove a CALL, make sure
3773         we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
3774
3775 2012-05-16  Richard Henderson  <rth@redhat.com>
3776
3777         PR debug/52727
3778         * combine-stack-adj.c (prev_active_insn_bb): New.
3779         (next_active_insn_bb): New.
3780         (force_move_args_size_note): New.
3781         (combine_stack_adjustments_for_block): Use it.
3782
3783 2012-05-16  Olivier Hainque  <hainque@adacore.com>
3784
3785         * Makefile.in (install-no-fixedincludes): New target, former toplevel
3786         gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
3787         Add comments and improve stamp preservation across the whole sequence.
3788         (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
3789
3790 2012-05-16  Richard Guenther  <rguenther@suse.de>
3791
3792         PR tree-optimization/53364
3793         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3794         detect a view-conversion of the decl.
3795
3796 2012-05-15  Jakub Jelinek  <jakub@redhat.com>
3797
3798         PR target/53358
3799         * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
3800         that operands[2] is either immediate, or q_regs_operand.
3801
3802 2012-05-15  Bin Cheng  <bin.cheng@arm.com>
3803
3804         Backport r187139 from mainline.
3805         2012-05-04  Bin Cheng  <bin.cheng@arm.com>
3806
3807         PR rtl-optimization/52804
3808         * reload1.c (reload_reg_reaches_end_p): Check whether successor
3809         reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
3810         of current one with type RELOAD_FOR_INPADDR_ADDRESS.
3811         Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
3812         RELOAD_FOR_OUTADDR_ADDRESS.
3813
3814 2012-05-14  Uros Bizjak  <ubizjak@gmail.com>
3815
3816         PR target/46098
3817         * config/i386/i386.c (ix86_expand_special_args_builtin): Always
3818         generate target register for "load" class builtins.
3819
3820         Revert:
3821         2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
3822
3823         PR target/46098
3824         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3825         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3826         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3827         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3828         (<sse>_movu<ssemodesuffix>): New expander.
3829         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3830         (avx_movdqu<avxmodesuffix>): New expander.
3831         (*sse2_movdqu): Rename from sse2_movdqu.
3832         (sse2_movdqu): New expander.
3833
3834 2012-05-14  Jakub Jelinek  <jakub@redhat.com>
3835
3836         * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
3837         lineno 1 the same as lineno 0 before first start file directive.
3838         (optimize_macinfo_range): Likewise.
3839
3840         * dwarf2out.c (have_macinfo): Define.
3841         (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
3842         attribute, don't force empty compilation unit and don't emit any
3843         .debug_macinfo/.debug_macro section if macinfo_table is empty.
3844
3845 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
3846
3847         Backport from mainline
3848         2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
3849
3850         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
3851         ORDERED and UNORDERED conditions.
3852
3853 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
3854
3855         * function.c (requires_stack_frame_p): If the function can throw
3856         non-call exceptions, return true if the insn can throw internally.
3857
3858 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3859
3860         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
3861         DECL_ORIGINAL_TYPE if it is present.
3862
3863 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
3864
3865         Backport from 2012-05-12 mainline r187342.
3866
3867         PR target/53256
3868         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
3869         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
3870         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
3871         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
3872         (expand_prologue): Move initialization of cfun->machine->is_naked,
3873         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
3874         (avr_set_current_function): ...this new static function.
3875         (TARGET_SET_CURRENT_FUNCTION): New define.
3876         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
3877         checking attributes of current_function_decl.
3878         (avr_regs_to_save): Ditto.
3879         (signal_function_p): Rename to avr_signal_function_p.
3880         (interrupt_function_p): Rename to avr_interrupt_function_p.
3881
3882         * doc/extend.texi (Function Attributes): Better explanation of
3883         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
3884         alphabetical order.
3885
3886 2012-05-09  Matthias Klose  <doko@ubuntu.com>
3887
3888         * gcc-ar.c (main): Don't check for execute bits for the plugin.
3889
3890 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
3891
3892         PR target/53272
3893         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
3894         when a constant source operand matches an "I" constraint, the "no
3895         CC0 change" applies to a register-destination only, not a
3896         strict_low_part-destination.
3897
3898 2012-05-07  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3899
3900         Backport from mainline:
3901         2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3902
3903         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
3904
3905 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
3906
3907         PR tree-optimization/53239
3908         * tree-vrp.c (get_value_range): Set VR of
3909         SSA_NAME_IS_DEFAULT_DEF of DECL_BY_REFERENCE RESULT_DECL
3910         to nonnull.
3911
3912 2012-05-07  Richard Guenther  <rguenther@suse.de>
3913
3914         PR tree-optimization/53195
3915         * tree-inline.c (setup_one_parameter): Properly add referenced
3916         vars from the parameters new known value.
3917
3918 2012-05-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3919
3920         Backport from mainline:
3921         2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3922
3923         PR target/52999
3924         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
3925         in constant pool.
3926
3927 2012-05-04  Ian Lance Taylor  <iant@google.com>
3928
3929         * tree-vect-patterns.c (vect_single_imm_use): Correct return
3930         values from false to NULL.
3931
3932 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
3933
3934         Backport from mainline
3935         2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
3936
3937         PR target/53228
3938         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
3939         (TARGET_CMOV): Rename from TARGET_CMOVE.
3940         (TARGET_CMOVE): New define.
3941         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
3942         Do not set TARGET_CMOVE here.
3943
3944 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
3945
3946         Backport from mainline:
3947
3948         2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
3949
3950         PR tree-optimization/52633
3951         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
3952         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
3953         (vect_recog_over_widening_pattern): Remove handling of code that was
3954         already detected as over-widening pattern.  Remove special handling
3955         of "unsigned" cases.  Instead, support general case of conversion
3956         of the shift result to another type.
3957
3958         2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
3959
3960         * tree-vect-patterns.c (vect_single_imm_use): New function.
3961         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
3962         (vect_recog_over_widening_pattern): Likewise.
3963         (vect_recog_widen_shift_pattern): Likewise.
3964
3965         2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
3966
3967         PR tree-optimization/52870
3968         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
3969         presumed pattern statement is within the same loop or basic block.
3970
3971 2012-05-04  Richard Guenther  <rguenther@suse.de>
3972
3973         * common.opt (flto-report): Do not mark as Optimization.
3974
3975 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
3976
3977         PR target/48496
3978         * recog.c (constrain_operands): If extra constraints are present, also
3979         accept pseudo-registers with equivalent memory locations during reload.
3980
3981 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3982
3983         Backport from the mainline
3984         2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3985
3986         PR target/53199
3987         * config/rs6000/rs6000.md (bswapdi splitters): If
3988         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
3989         default) is used, generate an alternate sequence that does not
3990         depend on using indexed addressing.
3991
3992 2012-05-03  David S. Miller  <davem@davemloft.net>
3993
3994         PR target/52684
3995         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
3996         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
3997         (sparc_emit_float_lib_cmp): Likewise.
3998
3999 2012-05-04  Martin Jambor  <mjambor@suse.cz>
4000
4001         Backport from mainline
4002         2012-05-02  Martin Jambor  <mjambor@suse.cz>
4003
4004         PR lto/52605
4005         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
4006         of a variable when the contect is a function.
4007
4008 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
4009
4010         PR plugins/53126
4011         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
4012         append program name to it and pass that as first argument
4013         to make_relative_prefix.  Always pass standard_libexec_prefix
4014         as last argument to make_relative_prefix.  If
4015         make_relative_prefix returns NULL, fall back to
4016         standard_libexec_prefix.
4017
4018         PR debug/53174
4019         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
4020         removed.
4021
4022         PR target/53187
4023         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
4024         mode, return that mode.
4025
4026 2012-05-03  Richard Guenther  <rguenther@suse.de>
4027
4028         PR tree-optimization/53144
4029         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
4030         Rename to ...
4031         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
4032         with SSA name values.
4033         (vn_reference_lookup_3): Adjust callers.
4034
4035 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
4036
4037         PR tree-optimization/53163
4038         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
4039         return value from compute_all_dependences.
4040
4041         PR rtl-optimization/53160
4042         * ree.c (combine_reaching_defs): Handle the case where cand->insn
4043         has been modified by ree pass already.
4044
4045 2012-05-01  Uros Bizjak  <ubizjak@gmail.com>
4046
4047         Backport from mainline
4048         2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
4049
4050         PR middle-end/53136
4051         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
4052         calls to cgraph_node_name in xstrdup.
4053         (ipa_make_edge_direct_to_target): Ditto.
4054         * tree-sra.c (convert_callers_for_node): Ditto.
4055         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
4056         * ipa-cp.c (perhaps_add_new_callers): Ditto.
4057         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
4058         (cgraph_materialize_all_clones): Ditto.
4059         * ipa-inline.c (report_inline_failed_reason): Ditto.
4060         (want_early_inline_function_p): Ditto.
4061         (edge_badness): Ditto.
4062         (update_edge_key): Ditto.
4063         (flatten_function): Ditto.
4064         (ipa_inline): Ditto.
4065         (inline_always_inline_functions): Ditto.
4066         (early_inline_small_functions): Ditto.
4067
4068 2012-04-30  Andreas Tobler  <andreast@fgznet.ch>
4069
4070         Backport from mainline
4071         2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
4072
4073         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
4074         Introduce emul_name to select the right linker emulation for
4075         powerpc64-*-freebsd*.
4076         * configure: Regenerate.
4077         * config.gcc: Add bits to support powerpc64-*-freebsd*.
4078         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
4079         * config/rs6000/freebsd64.h: New file.
4080         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
4081         POWERPC_FREEBSD.
4082         (rs6000_savres_strategy): Likewise.
4083         (rs6000_savres_routine_name): Likewise.
4084         (rs6000_elf_file_end): Likewise.
4085         * config/rs6000/t-freebsd64: New file.
4086         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
4087         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
4088
4089 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
4090
4091         Backport from mainline
4092         2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
4093
4094         PR target/53138
4095         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
4096
4097 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
4098
4099         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
4100         predicate to discriminate types.
4101
4102 2012-04-27  Richard Guenther  <rguenther@suse.de>
4103
4104         PR c/51527
4105         * convert.c (convert_to_integer): Avoid infinite recursion for
4106         target-defined built-in types.
4107
4108 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
4109
4110         PR target/53120
4111         * config/cris/cris.md ("*andhi_lowpart_v32")
4112         ("*andqi_lowpart_v32"): Change first input-only operand from
4113         a (match_operand ...) to (match_dup 0).  Drop alternatives with
4114         const_int-matching constraints for redundancy.
4115         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
4116         three-operand alternative.
4117
4118 2012-04-26  Uros Bizjak  <ubizjak@gmail.com>
4119
4120         Backport from mainline
4121         2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
4122
4123         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
4124         (*addsi_2_zext): Ditto.
4125         (*add<mode>_3): Ditto.
4126         (*addsi_3_zext): Ditto.
4127         (*add<mode>_5): Ditto.
4128
4129 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
4130
4131         PR c/52880
4132         * c-typeck.c (set_nonincremental_init,
4133         set_nonincremental_init_from_string): Pass true instead of false
4134         as IMPLICIT to add_pending_init.
4135
4136 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
4137
4138         Backport from 2012-04-24 mainline r186768.
4139
4140         PR target/53065
4141         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
4142
4143 2012-04-24  Richard Guenther  <rguenther@suse.de>
4144
4145         PR tree-optimization/53085
4146         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
4147         stores.
4148
4149 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
4150
4151         PR middle-end/53084
4152         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR
4153         of MEM_REF.
4154         (output_addressed_constants): Likewise.
4155
4156         PR middle-end/52999
4157         * varasm.c (get_section): Don't ICE for section conflicts with
4158         built-in section kinds.
4159
4160 2012-04-23  David Edelsohn  <dje.gcc@gmail.com>
4161
4162         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
4163
4164 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
4165
4166         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
4167
4168 2012-04-23  Richard Guenther  <rguenther@suse.de>
4169
4170         PR c/53060
4171         * c-typeck.c (build_binary_op): Fix typo.
4172
4173 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
4174
4175         PR tree-optimizations/52891
4176         * tree-vect-patterns.c (adjust_bool_pattern): Use
4177         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
4178         but with non-standard precision.
4179
4180 2012-04-22  Ian Lance Taylor  <iant@google.com>
4181
4182         * godump.c (go_output_typedef): Dump size of structs.
4183
4184 2012-04-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4185
4186         Backport from mainline:
4187
4188         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
4189         hints for 'A' operand types.
4190
4191 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
4192
4193         Backport from 2012-04-19 mainline r186588.
4194
4195         PR target/53033
4196         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
4197         the case *(X+const).
4198
4199 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
4200
4201         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
4202
4203 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
4204
4205         PR target/53020
4206         * config/i386/sync.md (atomic_<code><mode>): Rename to
4207         atomic_<logic><mode>.
4208
4209 2012-04-16  Uros Bizjak  <ubizjak@gmail.com>
4210
4211         Backport from mainline
4212         2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
4213
4214         PR target/52932
4215         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
4216         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
4217         * config/i386/sse.md (avx2_permvarv8sf): Change operand 1 to V8SI.
4218         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
4219         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
4220         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
4221         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
4222         gen_avx2_permvarv8sf.
4223
4224 2012-04-16  Martin Jambor  <mjambor@suse.cz>
4225
4226         Backported from mainline
4227
4228         2012-04-13  Martin Jambor  <mjambor@suse.cz>
4229         PR middle-end/52939
4230
4231         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
4232         fold_ctor_reference returns a zero constant.
4233
4234 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4235
4236         Backported from mainline
4237         2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4238
4239         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
4240         and __ILP32__ for x32.
4241
4242 2012-04-13  Tom de Vries  <tom@codesourcery.com>
4243
4244         Backport from mainline r186418.
4245
4246         2012-04-13  Tom de Vries  <tom@codesourcery.com>
4247
4248         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
4249         parameters vuse and vuse_escaped.
4250         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
4251         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
4252         vuse1 != vuse2.
4253
4254 2012-04-13  Richard Guenther  <rguenther@suse.de>
4255
4256         PR tree-optimization/52969
4257         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
4258         the condition for the COND_EXPR and handle predicate negation
4259         by swapping the COND_EXPR arms.
4260
4261 2012-04-13  Richard Guenther  <rguenther@suse.de>
4262
4263         PR c/52862
4264         * convert.c (convert_to_pointer): Remove special-casing of
4265         zero.
4266
4267 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4268
4269         Backport from mainline
4270         2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4271
4272         PR target/52775
4273         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
4274         the list of options to enable the FCFID instruction.
4275         (TARGET_EXTRA_BUILTINS): Adjust comment.
4276
4277 2012-04-12  Richard Guenther  <rguenther@suse.de>
4278
4279         PR tree-optimization/52943
4280         * tree-chrec.h (chrec_is_positive): Remove.
4281         * tree-scalar-evolution.c (chrec_is_positive): Move ...
4282         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
4283         Return false for a constant zero instead of negative.
4284         (analyze_siv_subscript_cst_affine): Handle zero difference
4285         in the initial condition explicitely.
4286
4287 2012-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4288
4289         PR middle-end/52894
4290         * varasm.c (process_pending_assemble_externals): Set
4291         pending_assemble_externals_processed true.
4292         (assemble_external): Call assemble_external_real if the pending
4293         assemble externals have been processed.
4294
4295 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
4296
4297         PR target/52717
4298         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
4299         the DECL generated for the special GOT helper.
4300
4301 2012-04-06  Walter Lee  <walt@tilera.com>
4302
4303         Backport from mainline
4304         2012-03-07  Walter Lee  <walt@tilera.com>
4305
4306         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
4307         REG_CFA_* notes for the stack pointer.
4308         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
4309         EH_RETURN_STACKADJ_RTX.
4310         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
4311         generate REG_CFA_* notes for the stack pointer.
4312         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
4313         by EH_RETURN_STACKADJ_RTX.
4314
4315 2012-04-06  Matt Turner  <mattst88@gmail.com>
4316
4317         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
4318
4319 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4320
4321         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
4322         of the destination isn't also a FP_REGS register.
4323
4324 2012-04-03  Richard Guenther  <rguenther@suse.de>
4325
4326         Backport from mainline
4327         2012-03-02  Richard Guenther  <rguenther@suse.de>
4328
4329         PR tree-optimization/52406
4330         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
4331         (struct indices): Add unconstrained_base member.
4332         (struct dr_alias): Remove unused vops member.
4333         (DR_UNCONSTRAINED_BASE): New define.
4334         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
4335         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
4336         be an artificial access that covers the whole indexed object,
4337         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
4338         plain decl base-objects to their MEM_REF variant.
4339         (dr_may_alias_p): When the base-object of either data reference
4340         has unknown size use only points-to information.
4341         (compute_affine_dependence): Make dumps easier to read and
4342         more verbose.
4343         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
4344         DR_REF when looking for packed references.
4345         (vect_supportable_dr_alignment): Likewise.
4346
4347 2012-04-03  Richard Guenther  <rguenther@suse.de>
4348
4349         Backport from mainline
4350         2012-03-15  Richard Guenther  <rguenther@suse.de>
4351
4352         PR middle-end/52580
4353         * tree-data-ref.c (subscript_dependence_tester_1): Check
4354         all dimensions for non-conflicting access functions.
4355
4356 2012-04-03  Richard Guenther  <rguenther@suse.de>
4357
4358         Backport from mainline
4359         2012-03-06  Richard Guenther  <rguenther@suse.de>
4360
4361         PR middle-end/52493
4362         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
4363
4364         2012-03-23  Richard Guenther  <rguenther@suse.de>
4365
4366         PR tree-optimization/52678
4367         * tree-vectorizer.h (struct _stmt_vec_info): Add
4368         loop_phi_evolution_part member.
4369         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
4370         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
4371         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
4372         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4373         Use the cached evolution part and the PHI nodes value from
4374         the loop preheader edge instead of re-analyzing the evolution.
4375
4376         2012-03-26  Richard Guenther  <rguenther@suse.de>
4377
4378         PR tree-optimization/52701
4379         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
4380         compute and set the evolution part of PHI nodes.
4381
4382         2012-03-30  Richard Guenther  <rguenther@suse.de>
4383
4384         PR tree-optimization/52754
4385         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4386         propagate arbitrary addresses into really plain dereferences.
4387
4388 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
4389
4390         PR tree-optimization/52835
4391         * tree-data-ref.c (build_rdg): Return NULL if
4392         compute_data_dependences_for_loop failed.
4393
4394 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
4395
4396         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
4397         (stmt_can_make_abnormal_goto): Use it.
4398         (is_ctrl_altering_stmt): Likewise.
4399
4400 2012-03-31  Martin Jambor  <mjambor@suse.cz>
4401
4402         Backported from mainline
4403         2012-03-30  Martin Jambor  <mjambor@suse.cz>
4404
4405         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
4406         is a builtin_stack_save in a dominating BB.
4407
4408 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
4409
4410         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
4411         crossing 128bit lane boundary.
4412
4413 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
4414
4415         Backported from mainline
4416         2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
4417
4418         PR target/52698
4419         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
4420         New prototype.
4421         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
4422         * config/i386/i386.c: Include reload.h.
4423         (ix86_legitimize_reload_address): New function.
4424
4425 2012-03-28  Martin Jambor  <mjambor@suse.cz>
4426
4427         Backported from mainline
4428         2012-03-27  Martin Jambor  <mjambor@suse.cz>
4429
4430         PR middle-end/52693
4431         * tree-sra.c (sra_modify_assign): Do not call
4432         load_assign_lhs_subreplacements when working with an unscalarizable
4433         region.
4434
4435 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
4436
4437         PR middle-end/52691
4438         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
4439         __builtin_va_start to __builtin_next_arg if the latter is
4440         builtin_decl_explicit_p rather than when it is not.
4441
4442         PR middle-end/52750
4443         * tree-vect-generic.c (vector_element): Perform multiplication
4444         for pos in bitsizetype type instead of idx type.
4445
4446 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
4447
4448         Backport from 2012-03-28 mainline r185910.
4449
4450         PR target/52692
4451         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
4452         (avr_builtin_decl): New static function.
4453         (struct avr_builtin_description, avr_bdesc): Move up.
4454         Add GTY marker. Add field fndecl. Remove redundant field id.
4455         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
4456         (avr_expand_builtin): Code cleanup because .id is removed.
4457
4458 2012-03-28  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
4459
4460         PR middle-end/51893
4461         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
4462         targets.
4463
4464 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
4465
4466         Backport from 2012-03-28 mainline r185907.
4467
4468         PR target/52737
4469         * config.gcc (tm_file): Remove avr/multilib.h.
4470
4471         * doc/invoke.texi (AVR Options): Adjust
4472         documentation of -mtiny-stack.
4473
4474         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
4475         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
4476         * config/avr/t-avr: Remove generation of multilib.h.
4477         * config/avr/t-multilib: Regenerate.
4478         * config/avr/multilib.h: Remove.
4479         * config/avr/avr.opt (-msp8): New option.
4480         (avr_sp8): New variable.
4481         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
4482         * config/avr/avr.h (AVR_HAVE_SPH): New define.
4483         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
4484         (avr_device_to_sp8): New prototype.
4485         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
4486         (DRIVER_SELF_SPECS): New define.
4487         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
4488         __AVR_SP8__, __AVR_HAVE_SPH__.
4489         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
4490         AVR_HAVE_8BIT_SP to decide if SP_H is present.
4491         (avr_file_start): Ditto.
4492
4493 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
4494
4495         PR target/52736
4496         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
4497         instead of 8 in adjust_address.
4498
4499 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
4500
4501         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
4502         of a unit before computing the offset in units.
4503
4504 2012-03-27  Richard Guenther  <rguenther@suse.de>
4505
4506         PR middle-end/52720
4507         * fold-const.c (try_move_mult_to_index): Handle &x.array more
4508         explicitely.
4509
4510 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4511
4512         PR target/52610
4513         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
4514
4515 2012-03-24  Steven Bosscher  <steven@gcc.gnu.org>
4516
4517         PR middle-end/52640
4518         * varasm.c: Include pointer-set.h.
4519         (pending_assemble_externals_set): New pointer set.
4520         (process_pending_assemble_externals): Destroy the pointer set.
4521         (assemble_external): See if decl is in pending_assemble_externals_set,
4522         and add it to pending_assemble_externals if necessary.
4523         (init_varasm_once): Allocate pending_assemble_externals_set.
4524
4525 2012-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4526
4527         Backported from mainline
4528         2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4529
4530         PR target/50310
4531         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
4532         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
4533         (vector_ltgt<mode>): Likewise.
4534         (vector_ordered<mode>): Likewise.
4535         (vector_unordered<mode>): Likewise.
4536         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4537
4538 2012-03-23  Joern Rennecke  <joern.rennecke@embecosm.com>
4539
4540         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
4541         Make static.
4542
4543 2012-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
4544
4545         Backported from mainline
4546         2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
4547
4548         PR target/48596
4549         PR target/48806
4550         * config/sh/sh.c (sh_register_move_cost): Increase cost between
4551         GENERAL_REGS and FP_REGS for SImode.
4552
4553 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
4554
4555         PR middle-end/52547
4556         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
4557         on any new_local_var_chain vars declared during recursing on
4558         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
4559
4560 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
4561
4562         Backport from 2012-03-22 mainline r185692.
4563
4564         PR target/52496
4565         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
4566         (unspecv): Add UNSPECV_MEMORY_BARRIER.
4567         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
4568         (delay_cycles_1, delay_cycles_2): Ditto.
4569         (delay_cycles_3, delay_cycles_4): Ditto.
4570         (nopv, *nopv): Ditto.
4571         (sleep, *sleep): Ditto.
4572         (wdr, *wdr): Ditto.
4573
4574         Backport from 2012-03-21 mainline r185605.
4575
4576         PR rtl-optimization/52543
4577         PR target/52461
4578         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
4579         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
4580         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
4581         (avr_load_libgcc_p): Restrict to __flash loads.
4582         (avr_out_lpm): Only handle 1-byte loads from __flash.
4583         (avr_load_lpm): New function.
4584         (avr_find_unused_d_reg): Remove.
4585         (avr_out_lpm_no_lpmx): Remove.
4586         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
4587         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
4588         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
4589         (load_<mode>, load_<mode>_clobber): New insns.
4590         (mov<mode>): For multi-byte move from non-generic
4591         16-bit address spaces: Expand to load_<mode> resp.
4592         load_<mode>_clobber.
4593         (load<mode>_libgcc): Remove expander.
4594         (split-lpmx): Remove split.
4595
4596         Backport from 2012-03-13 mainline r185329.
4597
4598         PR target/52488
4599         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
4600         offset (size) to a value the insns can deal with.
4601         (expand_epilogue): Ditto.
4602
4603         Backport from 2012-03-12 mainline r185256.
4604
4605         PR target/52499
4606         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
4607         type from reg_class_t to enum reg_class.
4608         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
4609
4610         Backport from 2012-03-12 mainline r185253.
4611
4612         PR target/52148
4613         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
4614         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
4615         r184615 from 2012-02-28.
4616
4617         Backport from 2012-03-08 mainline r185105.
4618
4619         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
4620         for constants in [-63,63].
4621
4622         Backport from 2012-03-08 mainline r185100.
4623
4624         PR target/52496
4625         * config/avr/avr.c (avr_mem_clobber): New static function.
4626         (avr_expand_delay_cycles): Add memory clobber operand to
4627         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
4628         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
4629         (enable_interrupt, disable_interrupt): New expander.
4630         (nopv, sleep, wdr): New expanders.
4631         (delay_cycles_1): Add memory clobber.
4632         (delay_cycles_2): Add memory clobber.
4633         (delay_cycles_3): Add memory clobber.
4634         (delay_cycles_4): Add memory clobber.
4635         (cli_sei): New insn from former "enable_interrupt",
4636         "disable_interrupt" with memory clobber.
4637         (*wdt): New insn from former "wdt" with memory clobber.
4638         (*nopv): Similar, but for "nopv".
4639         (*sleep): Similar, but for "sleep".
4640
4641         Backport from 2012-03-07 mainline r185043.
4642
4643         PR target/52484
4644         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
4645
4646         Backport from 2012-03-07 mainline r185032.
4647
4648         PR target/52506
4649         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
4650         to: RAMPZ, RAMPY, RAMPX, RAMPD.
4651         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
4652
4653         Backport from 2012-03-07 mainline r185031.
4654
4655         PR target/52505
4656         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
4657         from RAM.
4658         * config/avr/avr.md (xload_8): Adjust insn length.
4659
4660         Backport from 2012-03-07 mainline r185030.
4661
4662         PR target/52461
4663         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
4664         if RAMPZ affects reading from RAM.
4665
4666         Backport from 2012-03-05 mainline r184919.
4667
4668         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
4669
4670 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
4671
4672         Backport from mainline r185259.
4673
4674         PR other/52545
4675         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
4676         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
4677
4678 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
4679
4680         Backported from mainline
4681         2012-03-13  Jakub Jelinek  <jakub@redhat.com>
4682
4683         PR c/52577
4684         * c-parser.c (c_parser_postfix_expression)
4685         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
4686
4687         * config/i386/smmintrin.h: Avoid /* within a comment.
4688         * config/i386/nmmintrin.h: Likewise.
4689
4690 2012-03-22  Richard Guenther  <rguenther@suse.de>
4691
4692         * BASE-VER: Set to 4.7.1.
4693         * DEV-PHASE: Set to prerelease.
4694
4695 2012-03-22  Release Manager
4696
4697         * GCC 4.7.0 released.
4698
4699 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4700
4701         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
4702
4703 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
4704             Andrew Pinski  <apinski@cavium.com>
4705
4706         PR middle-end/52592
4707         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
4708         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
4709         calls instead of __builtin_ir{int,ound}*.
4710
4711 2012-03-14  Jakub Jelinek  <jakub@redhat.com>
4712
4713         PR c++/52582
4714         * config/rs6000/rs6000.c (call_ABI_of_interest): Return true
4715         if c_node is NULL.
4716
4717 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
4718
4719         * doc/invoke.texi (-std=c99), doc/standards.texi (C language):
4720         Refer to GCC 4.7 version of c99status.html.
4721
4722 2012-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4723
4724         Backport from mainline
4725         2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4726
4727         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
4728         redefine to be NULL if the current bit-size is different from the
4729         configured bit-size.
4730
4731         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
4732         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
4733         set the default tuning.  Add asserts to make sure the cpu and tune
4734         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
4735         test whether the index is set, instead of > 0.
4736         (rs6000_file_start): Do not reset the default cpu if the current
4737         bit-size is different from the configured bit-size.
4738
4739 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4740
4741         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
4742         binutils reference.
4743         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
4744         Update binutils references.
4745         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
4746         Update binutils reference.
4747         Update Sun as/GNU ld caveat.
4748         Document binutils largefile requirement for LTO plugin.
4749         Remove reference to alternate libpthread.
4750
4751 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4752
4753         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update binutils
4754         reference.
4755         (Specific, mips-sgi-irix6): Likewise.
4756
4757 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4758
4759         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
4760         * configure: Regenerate.
4761
4762 2012-03-07  Richard Henderson  <rth@redhat.com>
4763
4764         * config/m68k/m68k.h (ISA_HAS_TAS): New.
4765         * config/m68k/sync.md (atomic_test_and_set): Use it.
4766         (atomic_test_and_set_1): Likewise.
4767
4768 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
4769
4770         PR target/51417
4771         * Makefile.in: Let install-gcc-ar depend on installdirs,
4772         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
4773         Don't double canonicalize if cross-compiling.
4774
4775 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
4776
4777         * trans-mem.c: New typedef for tm_region_p.
4778         Define vector types for tm_region_p.
4779         (tm_region_init): Replace region_worklist to a vector called
4780         bb_regions.
4781
4782 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
4783
4784         PR middle-end/52463
4785         * trans-mem.c (tm_region_init): Use last_basic_block.
4786
4787 2012-03-05  Richard Henderson  <rth@redhat.com>
4788
4789         PR tree-opt/52242
4790         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
4791         * omp-low.c (expand_omp_atomic): Assume anything aligned to
4792         BIGGEST_ALIGNMENT is aligned.
4793
4794 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
4795
4796         * config/sh/sh.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
4797
4798 2012-03-05  Richard Henderson  <rth@redhat.com>
4799
4800         PR target/52481
4801         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
4802         instead of calling negqi2 directly.
4803
4804 2012-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4805
4806         * config/mips/iris6.h [!USED_FOR_TARGET] (long_intmax): Declare.
4807         (INTMAX_TYPE): Use it.
4808         (UINTMAX_TYPE): Likewise.
4809         (SUBTARGET_OVERRIDE_OPTIONS): Define.
4810         (irix6_c_common_override_options): Declare.
4811         (C_COMMON_OVERRIDE_OPTIONS): Define.
4812         * config/mips/mips.c [TARGET_IRIX6] (long_intmax): Define.
4813         * config/mips/irix6-c.c: New file.
4814         * config/mips/t-irix6 (irix6-c.o): New target.
4815         * config.gcc (mips-sgi-irix6.5): Set c_target_objs,
4816         cxx_target_objs.
4817
4818 2012-03-02  Richard Henderson  <rth@redhat.com>
4819
4820         * optabs.c (expand_atomic_test_and_set): Honor
4821         atomic_test_and_set_trueval even when atomic_test_and_set
4822         optab is not in use.
4823
4824 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
4825
4826         Backport from mainline
4827         2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
4828
4829         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
4830
4831 2012-03-02  Richard Guenther  <rguenther@suse.de>
4832
4833         * DEV-PHASE: Set to prerelease.
4834
4835 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
4836
4837         * config.gcc (obsolete): Add all ARM targets using the FPA.
4838         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
4839         * doc/install.texi: Avoid references to obsolete ARM ports.
4840
4841 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
4842
4843         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
4844
4845 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
4846             Joern Rennecke  <joern.rennecke@embecosm.com>
4847
4848         * doc/extend.texi: Expand and update information on interrupt
4849         attribute for Epiphany.
4850
4851 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
4852
4853         * config/sh/sh-protos.h: Update copyright notice dates.
4854         * config/sh/sh.h: Likewise.
4855         * config/sh/sh.md: Likewise.
4856         * config/sh/constraints.md: Likewise.
4857         * config/sh/predicates.md: Likewise.
4858
4859 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
4860
4861         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
4862         * config/sh/sh.c (tertiary_reload_operand): Likewise.
4863
4864 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
4865
4866         * config/sh/constraints.md: Fix comment typo.
4867
4868 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4869
4870         PR target/52408
4871         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
4872         unsigned HOST_WIDE_INT.
4873         (zvdep_imm64): Likewise.
4874         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
4875         (vdepi_and): Likewise.
4876         Likewise for unamed 64-bit patterns.
4877         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
4878
4879 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
4880
4881         PR debug/52001
4882         PR rtl-optimization/52417
4883         * cselib.c (cselib_any_perm_equivs): New variable.
4884         (cselib_reset_table): Check that it's not set when not
4885         preserving constants.
4886         (cselib_add_permanent_equiv): Set it.
4887         (cselib_have_permanent_equivalences): New.
4888         (cselib_init, cselib_finish): Reset it.
4889         * cselib.h (cselib_have_permanent_equivalences): Declare.
4890         * alias.c (get_addr): Restore earlier behavior when there
4891         aren't permanent equivalences.
4892
4893 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
4894
4895         * config/mn10300/mn10300-modes.def: Fix copyright notice.
4896         * config/v850/v850-modes.def: Fix copyright notice.
4897
4898 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
4899
4900         * doc/extend.texi (AVR Built-in Functions): Document
4901         __builtin_avr_flash_segment.
4902
4903         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
4904         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
4905         (*split.flash_segment): New insn-and-split.
4906         * config/avr/avr.c (avr_init_builtins): Add local variables:
4907         const_memx_void_node, const_memx_ptr_type_node,
4908         char_ftype_const_memx_ptr.
4909
4910 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
4911
4912         PR tree-optimization/52445
4913         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
4914         add ssa_name_ver, offset and size fields and change store field
4915         to bool.
4916         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
4917         (add_or_mark_expr): Likewise.  Only consider previous stores
4918         with the same size and offset.
4919         (nt_init_block): Only look at gimple_assign_single_p stmts,
4920         doesn't look at rhs2.
4921
4922 2012-03-01  Richard Guenther  <rguenther@suse.de>
4923
4924         PR middle-end/52443
4925         * tree-cfg.c (verify_gimple_assign_unary): Allow any
4926         conversions from integral types to pointer types.
4927
4928 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
4929
4930         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
4931         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
4932         unintentionally removed in r184616.
4933
4934 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4935
4936         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
4937         3DNow from bdver1.
4938
4939 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
4940             Uros Bizjak  <ubizjak@gmail.com>
4941
4942         PR target/52437
4943         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
4944         alternatives, add "e" constraint to the new last alternative
4945         and ! to last 3 alternatives.
4946
4947 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
4948
4949         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
4950         DW_AT_artificial attributes at the end of the processing.
4951         (gen_array_type_die): Likewise.
4952         (gen_enumeration_type_die): Likewise.
4953         (gen_struct_or_union_type_die): Likewise.
4954         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
4955         the parent type.
4956
4957 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
4958
4959         PR middle-end/52419
4960         * expr.c (expand_assignment): If doing misaligned store that doesn't
4961         cover all mode bits, perform a RMW cycle.
4962
4963         PR tree-optimization/52429
4964         * tree-parloops.c (separate_decls_in_region_debug): Return early
4965         if var is LABEL_DECL.
4966
4967 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4968
4969         PR tree-optimization/52424
4970         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
4971         calling dom_thread_across_edge.
4972
4973 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
4974
4975         * config/avr/avr.c: Move definition of TARGET macros to end of file.
4976
4977 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
4978
4979         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
4980         * config/avr/avr.c (avr_output_bld): Remove unused function.
4981         (avr_out_sbxx_branch): Use "%T" to print bit position.
4982
4983 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
4984
4985         * config/avr/avr.md: Untabify.
4986
4987 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
4988
4989         * config/avr/avr.md (eqne): New code iterator.
4990         (*dec-and-branchsi): Use it in text peephole's condition.
4991         (*dec-and-branchhi): Ditto.
4992         (*dec-and-branchqi): Ditto.
4993
4994 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
4995
4996         PR target/49939
4997         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
4998         the device does not have the skip-bug.
4999
5000 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
5001
5002         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
5003         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
5004         -mpretend-cmove): New.
5005
5006 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
5007
5008         PR bootstrap/52397
5009         * df.h (struct df_d): Adjust comment that hard_regs_live_count
5010         doesn't count DEBUG_INSN refs.
5011         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
5012         for DEBUG_INSN refs.
5013
5014 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5015
5016         Partially revert:
5017
5018         2012-02-20  Richard Guenther  <rguenther@suse.de>
5019         PR tree-optimization/52298
5020         * tree-vect-stmts.c (vectorizable_load): Properly use
5021         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
5022         outer loops.
5023
5024 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
5025
5026         PR middle-end/51752
5027         * gimple.h (gimple_in_transaction): New.
5028         (gimple_set_in_transaction): New.
5029         (struct gimple_statement_base): Add in_transaction field.
5030         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
5031         transaction loads.
5032         (tree_ssa_lim_initialize): Compute transaction bits.
5033         * tree.h (compute_transaction_bits): Protoize.
5034         * trans-mem.c (tm_region_init): Use the heap to store BB
5035         auxilliary data.
5036         (compute_transaction_bits): New.
5037
5038 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5039
5040         * gcc.c (display_help): Document --help=common and sort entries
5041         alphabetically.
5042
5043 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5044
5045         * doc/install.texi: Document check-$LANG specific shortcuts
5046
5047 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5048
5049         PR target/51534
5050         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
5051         and vcgtu.
5052         * config/arm/arm_neon.h: Regenerate.
5053         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
5054         (neon_vcgeu): New insn.
5055         (neon_vcgtu): Likewise.
5056         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
5057         (ops): Unsigned comparison intrinsics call a different
5058         builtin.
5059
5060 2012-02-28  Richard Guenther  <rguenther@suse.de>
5061
5062         PR target/52407
5063         * config/i386/i386.c (ix86_expand_vector_set): Fix element
5064         ordering for the VEC_CONCAT for two element vectors for
5065         V2SFmode, V2SImode and V2DImode.
5066
5067 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
5068
5069         PR target/49448
5070         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
5071         detecting big-endian triplets.
5072
5073 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
5074
5075         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
5076         mode if there is no type information available.
5077
5078 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
5079
5080         PR tree-optimization/53207
5081         * doc/invoke.texi: Document as experimental and relying on graphite.
5082
5083 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
5084
5085         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
5086         of initializer to changes from r184614.
5087
5088 2012-02-28  Richard Guenther  <rguenther@suse.de>
5089
5090         PR tree-optimization/52395
5091         * tree-sra.c (build_ref_for_offset): Also look at the base
5092         TYPE_ALIGN when figuring out the alignment of the replacement.
5093
5094 2012-02-28  Richard Guenther  <rguenther@suse.de>
5095
5096         PR tree-optimization/52402
5097         * ipa-prop.c (ipa_modify_call_arguments): Properly use
5098         mis-aligned types when creating the accesses at the call site.
5099
5100 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
5101
5102         * config/avr/builtins.def: New file.
5103         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
5104         * config/avr/avr.c (enum avr_builtin_id): Use it.
5105         (avr_init_builtins): Use it. And use avr_bdesc.
5106         (bdesc_1arg): Remove.
5107         (bdesc_2arg): Remove.
5108         (bdesc_3arg): Remove.
5109         (struct avr_builtin_description): Add field n_args.
5110         (avr_bdesc): New static variable using builtins.def.
5111         (avr_expand_builtin): Use it.
5112         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
5113         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
5114         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
5115
5116 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
5117
5118         PR target/52148
5119         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
5120         match only one single hard register with respective hard reg rtx.
5121         (movmemx_<mode>): Ditto.
5122         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
5123         insn anatomy of movmem[x]_<mode>.
5124         (avr_out_movmem): Same for printing assembler and operand usage.
5125
5126 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
5127
5128         PR target/49868
5129         PR target/52261
5130         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
5131         address spaces located outside of device flash.
5132
5133         * config/avr/avr.h (base_arch_s): Remove field n_segments.
5134         (mcu_type_s): Add field n_flash.
5135         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
5136         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
5137         (AVR_MCU): Add N_FLASH argument.
5138         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
5139         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
5140         macro __FLASH<n> if that address space makes sense for the device.
5141         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
5142         outside of target flash.
5143         (avr_asm_named_section): Ditto.
5144         (avr_asm_select_section): Ditto.
5145         (avr_addr_space_convert): Ditto.
5146         (avr_emit_movmemhi): Ditto.
5147         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
5148         address space is outside of device flash.
5149         (avr_insert_attributes): Ditto.
5150         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
5151         avr_current_arch->n_segments.
5152
5153 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
5154
5155         PR target/52352
5156         * config/i386/i386.md (*movabs<mode>_1): Enable only for
5157         TARGET_LP64.
5158         (*movabs<mode>_2): Likewise.
5159
5160 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
5161
5162         PR target/52375
5163         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
5164         s_register_operand in the test instead of REG_P.  Don't call
5165         gen_reg_rtx if it won't be used.
5166
5167         PR tree-optimization/52376
5168         * ipa-split.c (split_function): Ignore CLOBBER stmts.
5169
5170 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
5171
5172         * ifcvt.c (noce_get_condition): Check condition variable is not
5173         small_register_classes_for_mode_p before accepting.
5174
5175 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
5176
5177         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
5178
5179 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5180
5181         Revert:
5182         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5183         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
5184         tuning parameters.
5185         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
5186
5187 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
5188
5189         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
5190
5191 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
5192
5193         * config/sh/predicates.md: Remove blank lines.
5194         * config/sh/sh.c: Fix typos in comments.
5195         * config/sh/constraints.md: Likewise.
5196         * config/sh/sh.md: Remove blank lines.
5197         Fix typos in comments.  Use ;; as comment characters.
5198
5199 2012-02-26  Walter Lee  <walt@tilera.com>
5200
5201         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
5202         (replace_mov_pcrel_step2): Ditto.
5203
5204 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
5205
5206         PR debug/52001
5207         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
5208         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
5209         and locs that reference values newer than the non-canonical value
5210         at hand.  Return the canonical value as a worst case.
5211         (memrefs_conflict_p): Walk canonical value's locs.
5212
5213         PR debug/52001
5214         * cselib.c (preserve_only_constants): Rename to...
5215         (preserve_constants_and_equivs): ... this.  Split out...
5216         (invariant_or_equiv_p): ... this.  Preserve plus expressions
5217         of other preserved expressions too.
5218         (cselib_reset_table): Adjust.
5219         * var-tracking.c (reverse_op): Use canonical value to build
5220         reverse operation.
5221
5222 2012-02-23  Kai Tietz  <ktietz@redhat.com>
5223
5224         * config/i386/i386.c (ix86_delegitimize_address): Handle
5225         UNSPEC_PCREL plus displacement.
5226
5227 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
5228
5229         PR target/52261
5230         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
5231         to test for unusedness in st X addressing.
5232
5233 2012-02-24  Richard Guenther  <rguenther@suse.de>
5234
5235         PR middle-end/52361
5236         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
5237         (is_gimple_reg_type): Move inline ...
5238         * gimple.h (is_gimple_reg_type): ... here.
5239
5240 2012-02-24  Richard Guenther  <rguenther@suse.de>
5241
5242         PR middle-end/52361
5243         * passes.c (execute_function_todo): When verifying SSA form
5244         verify gimple form first.
5245         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
5246
5247 2012-02-24  Richard Guenther  <rguenther@suse.de>
5248
5249         PR middle-end/52355
5250         * fold-const.c (fold_addr_of_array_ref_difference): New function.
5251         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
5252
5253 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5254
5255         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
5256
5257 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5258
5259         * tree-phinodes.c (make_phi_node): Mark static.
5260         * tree-flow.h (make_phi_node): Remove extern decl.
5261         * doc/gimple.texi (make_phi_node): Remove documentation.
5262
5263 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5264
5265         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
5266         * tree-ssa-sccvn.c (print_scc): Ditto.
5267
5268 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5269
5270         * doc/passes.texi (Full redundancy elimination): Fix typo.
5271
5272 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5273
5274         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
5275
5276 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
5277
5278         PR bootstrap/52287
5279         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
5280
5281 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
5282
5283         PR c/52290
5284         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
5285
5286 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
5287
5288         * config/avr/avr.md (code_stdname): Add ior, xor.
5289         (xior): New code iterator.
5290         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
5291         (*<code_stdname><mode>qi.byte1-3): Ditto.
5292
5293 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
5294
5295         PR tree-optimization/52019
5296         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
5297         CLOBBER stmts.
5298
5299 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5300
5301         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
5302         HAVE_INITFINI_ARRAY to work around namespace pollution in
5303         certain versions of newlib system headers.
5304         * config.in: Regenerate.
5305         * configure: Regenerate.
5306         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
5307         instead of HAVE_INITFINI_ARRAY.
5308
5309 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
5310
5311         PR target/52330
5312         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
5313         is not offsettable memory reference.
5314
5315 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
5316
5317         PR target/18145
5318         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
5319         setting avr_need_clear_bss_p for __gnu_lto* symbols.
5320
5321 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
5322
5323         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
5324         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
5325
5326 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5327
5328         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
5329         library on Solaris 8 even without TLS support.
5330         * configure: Regenerate.
5331
5332 2012-02-22  Richard Guenther  <rguenther@suse.de>
5333
5334         PR middle-end/52329
5335         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
5336         for GIMPLE_DEBUG stmts.
5337
5338 2012-02-22  Martin Jambor  <mjambor@suse.cz>
5339
5340         PR middle-end/51782
5341         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
5342         according to the base object.
5343
5344 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
5345
5346         PR rtl-optimization/50063
5347         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
5348         and 2 (8-bit SP) in operand 2.
5349         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
5350         setup to use movhi_sp_r instead of vanilla move to write SP.
5351         Adjust REG_CFA notes to superseed unspec.
5352         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
5353         of vanilla move.
5354         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
5355         known to be off) only with TARGET_NO_INTERRUPTS. Never use
5356         irq_state 1 (IRQ known to be on) here.
5357
5358 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
5359
5360         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
5361         WORDS_BIG_ENDIAN.
5362         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
5363         assign_hard_reg): Likewise.
5364
5365 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
5366
5367         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
5368
5369 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
5370
5371         * config/avr/avr.md
5372         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
5373         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
5374
5375 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
5376
5377         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
5378         prototype from here to...
5379         * config/avr/avr.h: ...here.
5380
5381 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
5382
5383         PR target/52294
5384         * thumb2.md (thumb2_shiftsi3_short): Split register and
5385         immediate shifts.  For register shifts tie operands 0 and 1.
5386         (peephole2 for above): Check that register-controlled shifts
5387         have suitably tied operands.
5388
5389 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
5390
5391         PR target/52137
5392         * config/i386/bdver1.md (bdver1_call, bdver1_push,
5393         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
5394         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
5395         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
5396         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
5397         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
5398         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
5399         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
5400         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
5401         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
5402         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
5403         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
5404         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
5405         bdver1_ssevector_avx256_unaligned_load,
5406         bdver1_ssevector_sse128_unaligned_load,
5407         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
5408         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
5409         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
5410         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
5411         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
5412         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
5413         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
5414         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
5415         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
5416         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
5417         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
5418         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
5419         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
5420         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
5421         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
5422         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
5423         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
5424         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
5425         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
5426         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
5427         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
5428         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
5429         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
5430         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
5431         bdver1_ssediv_double_load, bdver1_ssediv_double,
5432         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
5433         Add "bdver2" attribute.
5434
5435 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5436
5437         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
5438         default if possible and not specified otherwise.
5439
5440 2012-02-21  Richard Guenther  <rguenther@suse.de>
5441
5442         PR middle-end/52314
5443         * gimplify.c (create_tmp_from_val): Use the main variant type
5444         for the type of the temporary we create.
5445
5446 2012-02-21  Richard Guenther  <rguenther@suse.de>
5447
5448         PR tree-optimization/52324
5449         * gimplify.c (gimplify_expr): When re-gimplifying expressions
5450         do not gimplify a MEM_REF address operand if it is already
5451         in suitable form.
5452
5453 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5454
5455         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
5456         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
5457
5458 2012-02-21  Richard Guenther  <rguenther@suse.de>
5459
5460         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
5461         nested_in_vect_loop.
5462
5463 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
5464
5465         PR tree-optimization/52318
5466         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
5467         vdef also to non-pure/const call stmts in the sequence.
5468
5469 2012-02-20  David S. Miller  <davem@davemloft.net>
5470
5471         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
5472         don't use the "rd %pc" instruction on v9 for PIC register loads.
5473
5474 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
5475
5476         PR middle-end/52141
5477         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
5478         in a transaction safe function.
5479
5480 2012-02-20  Kai Tietz  <ktietz@redhat.com>
5481
5482         PR target/52238
5483         * stor-layout.c (place_field): Handle desired_align for
5484         ms-bitfields, too.
5485
5486 2012-02-20  Richard Guenther  <rguenther@suse.de>
5487
5488         PR tree-optimization/52298
5489         * tree-vect-stmts.c (vectorizable_store): Properly use
5490         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
5491         outer loops.
5492         (vectorizable_load): Likewise.
5493         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5494         Access DR_STEP after ensuring it is not NULL.
5495
5496 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
5497
5498         PR tree-optimization/52286
5499         * fold-const.c (fold_binary_loc): For (X & C1) | C2
5500         optimization use double_int_to_tree instead of build_int_cst_wide,
5501         rewrite to use double_int vars.
5502
5503 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5504
5505         PR target/50166
5506         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
5507         Define _start.
5508         Remove -e 0 from $gcc_cv_ld invocation.
5509         Only use __GLIBC_PREREQ if defined.
5510         Enable on Solaris since Solaris 8 patch.
5511         (gcc_SUN_LD_VERSION): New macro.
5512         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
5513         gcc_SUN_LD_VERSION for version number format.
5514         * configure: Regenerate.
5515         * varasm.c (get_elf_initfini_array_priority_section): Set
5516         SECTION_NOTYPE for non-default priority.
5517         Use get_section instead of get_unnamed_section to emit
5518         .init_array/.fini_array with default priority.
5519
5520 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
5521
5522         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
5523         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
5524         (mips_start_unique_function, mips_output_mips16_rdhwr)
5525         (mips_code_end): New functions.
5526         (TARGET_ASM_CODE_END): Define.
5527
5528 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
5529
5530         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
5531         to stubs with non-sibling calls.
5532
5533 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
5534
5535         * doc/invoke.texi (-fira-* options): Copy-edit.
5536         (ira-* parameters): Copy-edit.
5537
5538 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
5539
5540         * doc/invoke.texi: Minor copy-edits to bring into conformance with
5541         GCC coding conventions.
5542
5543 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
5544
5545         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
5546         when used as adjectives.
5547
5548 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
5549
5550         * doc/invoke.texi: Clean up "that"/"which" confusion.
5551
5552 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
5553
5554         * system.h: Poison SMALL_REGISTER_CLASSES
5555         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
5556         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
5557
5558 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
5559
5560         PR tree-optimization/52285
5561         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
5562         when deciding if a call is a tail call or tail recursion.
5563
5564 2012-02-16  Kai Tietz  <ktietz@redhat.com>
5565
5566         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
5567         interger-constant displacement for UNSPEC_PCREL.
5568
5569 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
5570
5571         PR rtl-optimization/52208
5572         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
5573         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
5574
5575         PR tree-optimization/52255
5576         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
5577         loop->header has virtual PHI, but exit_e->dest doesn't, add
5578         virtual PHI to exit_e->dest and adjust all uses after the loop.
5579
5580         PR debug/52260
5581         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
5582         children with clone_tree_hash, not after it.
5583
5584 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
5585
5586         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
5587         extended identifiers.
5588
5589 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
5590
5591         PR middle-end/51929
5592         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
5593         a same_body_alias, also test whether e->callee isn't a former
5594         or current clone of the decl this is a same body alias of.
5595
5596         PR translation/52264
5597         * cgraphunit.c (verify_cgraph_node): Fix a typo.
5598
5599 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
5600
5601         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
5602
5603 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
5604
5605         PR target/52199
5606         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
5607         force_reg instead of copy_to_reg for better optimization.  Force
5608         non-register or memory operands into a register.
5609
5610 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
5611
5612         * extend.texi: Reserve upper bits of memory model for future use.
5613
5614 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
5615             Anatoly Sokolov <aesok@post.ru>
5616             Eric Weddington <eric.weddington@atmel.com>
5617
5618         PR target/52261
5619         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
5620         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
5621         Rewrite initializers for .macro.
5622         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
5623         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
5624         atxmega32d4, atxmega32x1.
5625         avrxmega4: atxmega64a3, atxmega64d3.
5626         avrxmega5: atxmega64a1, atxmega64a1u.
5627         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
5628         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
5629         avrxmega7: atxmega128a1, atxmega128a1u.
5630         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
5631         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
5632         (struct base_arch_s): Rename reserved to xmega_p.
5633         Rename reserved2 to have_rampd.
5634         (AVR_XMEGA): New define.
5635         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
5636         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
5637         * config/avr/predicates.md (io_address_operand): Take into
5638         account SFR offset.
5639         (low_io_address_operand): Ditto.
5640         (high_io_address_operand): Ditto.
5641         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
5642         (enabled, movhi_sp_r): Use them.
5643         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
5644         cpp_define_formatted to built-in define __AVR_ARCH__.
5645         (__AVR_XMEGA__): New built-in define.
5646         (__AVR_HAVE_RAMPD__): New built-in define.
5647         (__AVR_HAVE_RAMPX__): New built-in define.
5648         (__AVR_HAVE_RAMPY__): New built-in define.
5649         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
5650
5651         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
5652         (avr_option_override): Initialize them.
5653         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
5654         (avr_init_expanders): Initialize them. No more block several calls.
5655         (emit_push_sfr): New static function.
5656         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
5657         Handle AVR_XMEGA.
5658         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
5659         (avr_print_operand): Print addreeses as symbols for
5660         RAMPX, RAMPY, RAMPD, CCP.
5661         (output_movhi): Handle AVR_XMEGA when writing to SP.
5662         (avr_out_movhi_mr_r_xmega): New static function.
5663         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
5664         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
5665         __RAMPD__,  __CCP__ as needed.
5666
5667         * config/avr/multilib.h: Regenerate.
5668         * config/avr/t-multilib: Regenerate.
5669         * config/avr/avr-tables.opt: Regenerate.
5670
5671 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
5672
5673         PR tree-optimization/50561
5674         * graphite-flattening.c (lst_project_loop): Do not
5675         remove old scattering dimensions after flattening.
5676         (lst_do_flatten): Likewise.
5677
5678 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
5679
5680         * doc/extend.texi (AVR Built-in Functions): Remove doc for
5681         __builtin_avr_map8, __builtin_avr_map16.
5682         Document __builtin_avr_insert_bits.
5683
5684         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
5685         (insert_bits): New insn.
5686         (adjust_len.map_bits): Rename to insert_bits.
5687         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
5688         * avr-protos.h (avr_out_map_bits): Remove.
5689         (avr_out_insert_bits, avr_has_nibble_0xf): New.
5690         * config/avr/constraints.md (Cxf,C0f): New.
5691         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
5692         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
5693         New built-in define __BUILTIN_AVR_INSERT_BITS.
5694         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
5695         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
5696         (avr_move_bits): Rewrite.
5697         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
5698         functions.
5699         (avr_map_op_t): New typedef.
5700         (avr_map_op): New static variable.
5701         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
5702         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
5703         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
5704         (bdesc_3arg, avr_expand_triop_builtin): New.
5705         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
5706         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
5707         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
5708         (avr_map_equal_p, avr_map_sig_p): Remove.
5709         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
5710         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
5711         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
5712         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
5713         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
5714         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
5715
5716 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
5717
5718         * config/c6x/c6x.md (reserve_cycles): New attribute.
5719         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
5720         don't reserve functional units after the branch occurs.
5721
5722 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
5723
5724         PR middle-end/52142
5725         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
5726         functions into non-tm_pure functions.
5727
5728 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
5729
5730         PR lto/52178
5731         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
5732         (iterative_hash_canonical_type): Likewise.
5733         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
5734         the dead edges.
5735
5736 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
5737
5738         * haifa-sched.c (prune_ready_list): Ensure that if there is a
5739         sched-group insn, it either remains alone or the entire list is pruned.
5740
5741 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
5742
5743         * doc/install.texi (Prerequisites): Fix grammar.
5744         (Configuration): Likewise.
5745
5746 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
5747
5748         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
5749         MPC as part of GCC before describing configuring with --with-gmp etc.
5750         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
5751         sources are present.
5752
5753 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
5754
5755         PR debug/51950
5756         * dwarf2out.c (clone_tree_hash): New function.
5757         (copy_decls_walk): Use it instead of clone_tree.
5758
5759 2012-02-14  Richard Guenther  <rguenther@suse.de>
5760
5761         PR tree-optimization/52244
5762         PR tree-optimization/51528
5763         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
5764         replacements for integral types.
5765
5766 2012-02-14  Walter Lee  <walt@tilera.com>
5767
5768         * config.gcc: Handle tilegx and tilepro.
5769         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
5770         tilegx and tilepro.
5771         Add HAVE_AS_TLS check for tilegx and tilepro.
5772         * configure: Regenerate.
5773         * doc/contrib.texi: Add Mat Hostetter and self.
5774         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
5775         Document instruction intrinsics and network accessing intrinsics.
5776         (TILEPro Built-in Functions): New node.  Document instruction
5777         intrinsics and network accessing intrinsics.
5778         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
5779         (Specific, tilepro-*-linux*): Likewise.
5780         * doc/invoke.texi (TILE-Gx Options): New section.
5781         (TILEPro Options): New section.
5782         * doc/md.texi (TILE-Gx): New section.
5783         (TILEPro): New section.
5784         * common/config/tilegx/tilegx-common.c: New file.
5785         * common/config/tilepro/tilepro-common.c: New file.
5786         * config/tilegx/constraints.md: New file.
5787         * config/tilegx/linux.h: New file.
5788         * config/tilegx/mul-tables.c: New file.
5789         * config/tilegx/predicates.md: New file.
5790         * config/tilegx/sync.md: New file.
5791         * config/tilegx/t-tilegx: New file.
5792         * config/tilegx/tilegx-builtins.h: New file.
5793         * config/tilegx/tilegx-c.c: New file.
5794         * config/tilegx/tilegx-generic.md: New file.
5795         * config/tilegx/tilegx-modes.def: New file.
5796         * config/tilegx/tilegx-multiply.h: New file.
5797         * config/tilegx/tilegx-protos.h: New file.
5798         * config/tilegx/tilegx.c: New file.
5799         * config/tilegx/tilegx.h: New file.
5800         * config/tilegx/tilegx.md: New file.
5801         * config/tilegx/tilegx.opt: New file.
5802         * config/tilepro/constraints.md: New file.
5803         * config/tilepro/gen-mul-tables.cc: New file.
5804         * config/tilepro/linux.h: New file.
5805         * config/tilepro/mul-tables.c: New file.
5806         * config/tilepro/predicates.md: New file.
5807         * config/tilepro/t-tilepro: New file.
5808         * config/tilepro/tilepro-builtins.h: New file.
5809         * config/tilepro/tilepro-c.c: New file.
5810         * config/tilepro/tilepro-generic.md: New file.
5811         * config/tilepro/tilepro-modes.def: New file.
5812         * config/tilepro/tilepro-multiply.h: New file.
5813         * config/tilepro/tilepro-protos.h: New file.
5814         * config/tilepro/tilepro.c: New file.
5815         * config/tilepro/tilepro.h: New file.
5816         * config/tilepro/tilepro.md: New file.
5817         * config/tilepro/tilepro.opt: New file.
5818
5819 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
5820
5821         PR tree-optimization/52210
5822         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
5823         vect_model_simple_cost with two entry vect_def_type array instead
5824         of an address of dt.
5825
5826 2012-02-14  Richard Guenther  <rguenther@suse.de>
5827
5828         PR lto/52178
5829         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
5830         Do not stream DECL_QUALIFIER.
5831         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
5832         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
5833         (find_decls_types_r): Do not walk DECL_QUALIFIER.
5834
5835 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
5836
5837         PR c/52181
5838         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
5839         newdecl.
5840
5841 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
5842
5843         PR bootstrap/52172
5844         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
5845         * cselib.c (cselib_subst_to_values_from_insn): New function.
5846         * sched-deps.c (add_insn_mem_dependence,
5847         sched_analyze_1, sched_analyze_2): Use it.
5848
5849 2012-02-13  Jan Hubicka  <jh@suse.cz>
5850
5851         PR middle-end/52214
5852         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
5853
5854 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
5855
5856         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
5857         (GTM_SELF_SPECS): Define if not already defined.
5858         (driver_self_specs): Add GTM_SELF_SPECS.
5859         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
5860         (GTM_SELF_SPECS): Define.
5861         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
5862         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
5863
5864 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
5865
5866         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
5867         away if seen.
5868
5869         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
5870
5871         PR middle-end/52230
5872         * omp-low.c (expand_omp_for): If a static schedule without chunk size
5873         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
5874
5875 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
5876
5877         PR c/52190
5878         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
5879
5880 2012-02-13  Richard Guenther  <rguenther@suse.de>
5881
5882         PR translation/52211
5883         * passes.c (enable_disable_pass): Fix typo.
5884
5885 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
5886
5887         PR middle-end/52209
5888         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
5889         XOR for reduce_bit_field if type is unsigned.
5890
5891 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
5892
5893         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
5894         disallow changes from SFmode to mode with different size in FP regs.
5895
5896 2012-02-12  Robert Millan  <rmh@gnu.org>
5897             Gerald Pfeifer <gerald@pfeifer.com>
5898
5899         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
5900         Tweak comment.
5901
5902 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
5903
5904         PR rtl-optimization/52175
5905         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
5906         to frame-related instructions.
5907
5908 2012-02-10  Jason Merrill  <jason@redhat.com>
5909
5910         PR c++/51910
5911         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
5912         (demangle_new_symbols): Fill it.
5913         (scan_linker_output): Walk it.
5914         (start_tweaking): Split out from scan_linker_output.
5915         (maybe_tweak): Update sym->chosen.
5916         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
5917
5918 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
5919
5920         PR debug/52132
5921         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
5922
5923 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
5924
5925         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
5926         having the same mode as previous compare.
5927
5928 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
5929
5930         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
5931         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
5932         (nonlocal_goto_internal): Likewise.
5933         (nonlocal_goto): Emit a use and an indirect jump directly.
5934
5935 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
5936
5937         PR c/52190
5938         * doc/extend.texi : Update comments for __atomic_compare_exchange and
5939         __atomic_{is,always}_lock_free.
5940
5941 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
5942
5943         PR target/52146
5944         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
5945         negative constant address for x32.
5946
5947 2012-02-10  Richard Henderson  <rth@redhat.com>
5948
5949         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
5950         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
5951         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
5952
5953 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5954             Ira Rosen  <irar@il.ibm.com>
5955
5956         PR tree-optimization/50031
5957         * targhooks.c (default_builtin_vectorization_cost): Handle
5958         vec_promote_demote.
5959         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
5960         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
5961         all types of reduction and pattern statements.
5962         (vect_estimate_min_profitable_iters): Likewise.
5963         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
5964         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
5965         for explicit realigns.
5966         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
5967         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
5968         vec_promote_demote.
5969         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5970         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
5971         vec_perm for VSX and handle vec_promote_demote.
5972
5973 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
5974
5975         PR middle-end/52177
5976         * builtins.c (fold_builtin_atomic_always_lock_free,
5977         expand_builtin_atomic_always_lock_free,
5978         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
5979         Return and/or test boolean_true_node/boolean_false_node instead of
5980         integer_one_node/integer_zero_node.
5981
5982 2012-02-10  Jan Hubicka  <jh@suse.cz>
5983
5984         PR middle-end/48600
5985         * predict.c (predict_paths_for_bb): Prevent looping.
5986         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
5987
5988 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
5989
5990         * config/arm/arm.c (output_move_double): In one case properly
5991         count number of instructions that will be emitted.
5992
5993 2012-02-10  Richard Guenther  <rguenther@suse.de>
5994
5995         PR translation/52193
5996         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
5997
5998 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
5999
6000         PR middle-end/52140
6001         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
6002
6003 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
6004
6005         PR debug/52165
6006         * var-tracking.c (emit_note_insn_var_location): If
6007         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
6008         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
6009         non-NOTE_DURING_CALL_P insn.
6010
6011 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
6012
6013         PR middle-end/51867
6014         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
6015
6016 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
6017
6018         PR driver/48524
6019         * gcc.c (switch_matches) Support switches with separated form,
6020         -D and -U.
6021
6022 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
6023
6024         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
6025         (SP_ADDR): Ditto.
6026         (RAMPZ_ADDR): Ditto.
6027         * config/avr/avr.c (avr_addr_t): New typedef.
6028         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
6029         (avr_init_expanders): Initialize it.
6030         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
6031         SREG_ADDR.
6032         (expand_epilogue): Ditto.
6033         (avr_print_operand): Ditto.
6034         (avr_file_start): Ditto.
6035         (avr_emit_movmemhi): Ditto.
6036
6037 2012-02-08  Richard Guenther  <rguenther@suse.de>
6038
6039         PR tree-optimization/46886
6040         * tree-flow.h (do_while_loop_p): Declare.
6041         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
6042         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
6043
6044 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
6045
6046         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
6047         always succeed for integers larger than a native word.
6048
6049 2012-02-08  Richard Guenther  <rguenther@suse.de>
6050
6051         PR rtl-optimization/52170
6052         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
6053         properly handle integer vector modes.
6054
6055 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
6056
6057         PR gcov-profile/52150
6058         * coverage.c: Include target.h.
6059         (build_var): Call targetm.strip_name_encoding on the assembler name.
6060         Change one _ into . or $ if the target allows it.
6061         * Makefile.in (coverage.o): Depend on $(TARGET_H).
6062
6063         PR rtl-optimization/52139
6064         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
6065         is a BARRIER after emit_insn_after_noloc, move BB_END
6066         to the last non-BARRIER insn before it.
6067
6068 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
6069
6070         PR middle-end/24306
6071         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
6072         (mips_gimplify_va_arg_expr): Call it instead of
6073         std_gimplify_va_arg_expr.
6074
6075 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
6076
6077         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
6078         message for -mno-pointers-to-nested-function.
6079
6080 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
6081
6082         PR middle-end/51994
6083         * expr.c (get_inner_reference): If there is an offset, add a negative
6084         bit position to it (if any).
6085
6086 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
6087
6088         PR rtl-optimization/52060
6089         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
6090         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
6091         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
6092         and/or i0src_copy2 when needed.
6093
6094 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
6095
6096         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
6097         or LTOPLUGINSONAME if have_c.
6098
6099         * config/freebsd-spec.h: Add comment about what macros can be defined
6100         in this header.
6101         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
6102         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
6103         here instead.
6104
6105 2012-02-07  Richard Guenther  <rguenther@suse.de>
6106
6107         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
6108         newline in -alias dumps.
6109
6110 2012-02-07  Kai Tietz  <ktietz@redhat.com>
6111             Dave Korn  <dave.korn.cygwin@gmail.com>
6112
6113         PR target/40068
6114         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
6115         Take care that typinfo gets dllexport-attribute.
6116
6117 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
6118
6119         PR middle-end/52074
6120         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
6121         if modifier < EXPAND_SUM call force_operand on the result.
6122
6123 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6124
6125         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
6126         adding __forwarder_dst__ prefix if a forwarder_section attribute is
6127         present.
6128         (epiphany_function_type): Replace types for specific interrupts with
6129         EPIPHANY_FUNCTION_INTERRUPT.
6130         (EPIPHANY_INTERRUPT_P): Update.
6131         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
6132         New static function.
6133         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
6134         <disinterrupt>: Affects type identity.
6135         (epiphany_handle_interrupt_attribute): Handle variable number of
6136         arguments.
6137         (epiphany_compute_function_type): Update for new
6138         epiphany_function_type definition.
6139         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
6140         handlers with a longcall forwarder.
6141         (epiphany_start_function): Handle multiple interrupt arguments and/or
6142         forwarder_section attribute.
6143
6144         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
6145         libgloss.
6146
6147 2012-02-07  Alan Modra  <amodra@gmail.com>
6148
6149         PR target/52107
6150         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
6151         subregs of TFmode.
6152
6153 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6154
6155         PR tree-optimization/50969
6156         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
6157         use vec_perm rather than vector_stmt.
6158         (vect_model_load_cost): Likewise.
6159         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
6160         vec_perm to be the same as other vector statements.
6161         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
6162         cost of vec_perm for TARGET_VSX.
6163
6164 2012-02-06  Richard Guenther  <rguenther@suse.de>
6165
6166         PR tree-optimization/52115
6167         * tree-sra.c (access_has_replacements_p): New function.
6168         (sra_modify_assign): Use it to decide whether a use is uninitialized.
6169
6170 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
6171
6172         PR middle-end/52047
6173         * trans-mem.c (expand_call_tm): Add an assertion.
6174         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
6175         functions.
6176
6177 2012-02-06  Richard Guenther  <rguenther@suse.de>
6178
6179         PR tree-optimization/50955
6180         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
6181         raise cost of expressions that replace an address with an
6182         expression based on a different pointer.
6183
6184 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
6185
6186         PR target/52129
6187         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
6188         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
6189
6190 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6191
6192         PR c++/48680
6193         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
6194         -Weffc++ and specify guidelines come from second edition.
6195
6196 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
6197
6198         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
6199         (sibcall_value_multiple_internal, call_split, call_internal_direct)
6200         (call_direct_split, call_value_split, call_value_internal_direct)
6201         (call_value_direct_split, call_value_multiple_split): Use jal and
6202         jal_macro attributes.
6203
6204 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
6205
6206         * reload1.c (reload_regs_reach_end_p): Replace with...
6207         (reload_reg_rtx_reaches_end_p): ...this function.
6208         (new_spill_reg_store): Update commentary.
6209         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
6210         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
6211         before setting new_spill_reg_store.
6212         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
6213         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
6214         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
6215         for non-spill reload registers.
6216
6217 2012-02-05  Ira Rosen  <irar@il.ibm.com>
6218
6219         PR tree-optimization/52091
6220         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
6221         (vect_is_simple_use_1): Likewise.
6222         * tree-vect-loop.c (vectorizable_reduction): Update calls
6223         to vect_is_simple_use_1 and vect_is_simple_use.
6224         (vectorizable_live_operation): Likewise.
6225         * tree-vect-patterns.c (widened_name_p,
6226         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
6227         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
6228         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
6229         vectorizable_shift,vectorizable_operation, vectorizable_store,
6230         vectorizable_load): Likewise.
6231         (vect_is_simple_cond): Add an argument, pass it to
6232         vect_is_simple_use_1.
6233         (vectorizable_condition): Update calls to vect_is_simple_cond,
6234         vect_is_simple_use.
6235         (vect_is_simple_use): Add an argument, the statement in which
6236         OPERAND is used.  Check that if OPERAND's def stmt is a double
6237         reduction phi node, the use is a phi node too.
6238         (vect_is_simple_use_1): Add an argument, pass it to
6239         vect_is_simple_use.
6240         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
6241         to vect_is_simple_use.
6242
6243 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
6244
6245         PR rtl-optimization/52095
6246         * modulo-sched.c (dump_insn_locator): New function.
6247         (loop_canon_p, sms_schedule): Use it.
6248
6249         PR rtl-optimization/52113
6250         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
6251         even for decomposable shift/zext insns.
6252
6253 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
6254             Zdenek Dvorak  <ook@ucw.cz>
6255
6256         PR rtl-optimization/52092
6257         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
6258         on get_iv_value result.
6259
6260 2012-02-02  Andrew Pinski  <apinski@cavium.com>
6261
6262         PR middle-end/47982
6263         PR middle-end/43967
6264         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
6265
6266 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
6267
6268         PR middle-end/48071
6269         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
6270
6271 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
6272
6273         PR rtl-optimization/49800
6274         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
6275         (sched_finish): Call regstat_free_n_sets_and_refs.
6276
6277 2012-02-02  Jia Liu  <proljc@gmail.com>
6278
6279         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
6280         than operand 2.
6281
6282 2012-02-02  Jan Hubicka  <jh@suse.cz>
6283             Tom de Vries  <tom@codesourcery.com>
6284
6285         PR middle-end/51998
6286         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
6287         * varpool.c (varpool_analyze_pending_decls): Likewise.
6288
6289 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
6290             Jayant R Sonar <jayant.sonar@kpitcummins.com>
6291
6292         * config.gcc: Add cr16-* support.
6293
6294         * doc/extend.texi: Document cr16 extensions.
6295         * doc/install.texi: Document cr16 install.
6296         * doc/invoke.texi: Document cr16 options.
6297         * doc/md.texi: Document cr16 constraints.
6298
6299         * common/config/cr16/cr16-common.c: New file.
6300         * config/cr16/cr16.c: New file.
6301         * config/cr16/cr16.h: New file.
6302         * config/cr16/cr16.md: New file.
6303         * config/cr16/cr16.opt: New file.
6304         * config/cr16/cr16-protos.h: New file.
6305         * config/cr16/predicates.md: New file.
6306         * config/cr16/constraints.md: New file.
6307         * config/cr16/t-cr16: New file.
6308
6309 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
6310
6311         PR target/52086
6312         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
6313         that operands[2] is either immediate, or q_regs_operand.
6314
6315         PR tree-optimization/52073
6316         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
6317         a pattern stmt for pattern uses, ignore uses outside of the loop.
6318
6319 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
6320
6321         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
6322         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
6323         (OUT_AS1, OUT_AS2): Remove.
6324
6325 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
6326
6327         PR rtl-optimization/51374
6328         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
6329         to cross other volatile_refs_p insns.
6330
6331 2012-02-01  Richard Guenther  <rguenther@suse.de>
6332
6333         * doc/invoke.texi (fno-inline): Clarify documentation.
6334         (finline-small-functions): Likewise.
6335         (finline-functions): Likewise.
6336         * common.opt (finline): Adjust comment and documentation.
6337         (finline-small-functions): Clarify documentation.
6338         (finline-functions): Likewise.
6339         (finline-functions-called-once): Likewise.
6340
6341 2012-02-01  Tristan Gingold  <gingold@adacore.com>
6342
6343         * c-typeck.c (composite_type): Keep mode for pointers.
6344
6345 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
6346
6347         * function.h (regno_reg_rtx): Adjust comment.
6348         * reginfo.c (init_reg_modes_target): Only use the previous mode
6349         if it fits within one register.  Remove MIPS comment.
6350
6351 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
6352
6353         PR bootstrap/52058
6354         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
6355
6356 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6357
6358         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
6359         to srak instruction.
6360
6361 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6362
6363         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
6364
6365 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
6366
6367         PR bootstrap/52041
6368         PR bootstrap/52039
6369         PR target/51974
6370         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
6371
6372 2012-01-31  Richard Guenther  <rguenther@suse.de>
6373
6374         PR tree-optimization/51528
6375         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
6376         assigns.
6377
6378 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
6379
6380         PR bootstrap/52041
6381         PR bootstrap/52039
6382         PR target/51974
6383         * ree.c (add_removable_extension): Change def_map argument
6384         to unsigned *, store in def_map 1 + offset into *insn_list vector
6385         instead of pointers into the vector.
6386         (find_removable_extensions): Adjust caller.
6387
6388 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
6389
6390         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
6391         Transform all "* quoted-c-code" to { c-code }.
6392         Remove redundant test for "optimize" in combine patterns.
6393         Move (include "avr-dimode.md") to end of file.
6394
6395 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
6396
6397         PR target/51835
6398         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
6399         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
6400
6401 2012-01-30  Richard Guenther  <rguenther@suse.de>
6402
6403         PR tree-optimization/52028
6404         * tree-loop-distribution.c (ldist_gen): Properly update
6405         virtual SSA form.
6406
6407 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
6408
6409         PR debug/52027
6410         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
6411         set_cur_line_info_table if not emitting debug info.
6412
6413         PR tree-optimization/52046
6414         * tree-vect-patterns.c (check_bool_pattern): Give up if
6415         a comparison could throw.
6416
6417         PR debug/52048
6418         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
6419
6420 2012-01-30  Richard Guenther  <rguenther@suse.de>
6421
6422         PR tree-optimization/52045
6423         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
6424         SSA form if cfgcleanup did anything.
6425
6426 2012-01-30  Richard Guenther  <rguenther@suse.de>
6427
6428         PR tree-optimization/52045
6429         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
6430         before computing final todo.
6431
6432 2012-01-30  Richard Guenther  <rguenther@suse.de>
6433
6434         PR tree-optimization/51528
6435         * tree-sra.c (sra_modify_assign): Re-factor in preparation
6436         for PR51528 fix.
6437
6438 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
6439
6440         * df-problems.c (df_kill_notes): Check that the use refers
6441         to the note under examination.
6442
6443 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
6444
6445         PR target/51920
6446         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
6447         parameter and use short-lived pseudos.
6448         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
6449         (sparc_expand_vector_init): Const-ify local variables and adjust
6450         calls to above functions.
6451
6452 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
6453
6454         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
6455
6456 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
6457
6458         * doc/invoke.texi: Make usage of "compile time" and
6459         "run time"/"runtime" consistent throughout the file.
6460
6461 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
6462
6463         * config/alpha/alpha.c (alpha_option_override): Default to
6464         full IEEE compliance mode for Go language.
6465
6466 2011-01-29  Tijl Coosemans  <tijl@coosemans.org>
6467
6468         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
6469         (LINK_SSP_SPEC): Define.
6470
6471 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6472
6473         PR target/51871
6474         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
6475         stubs.
6476
6477 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
6478
6479         * doc/invoke.texi: Correct hyphenation of "floating point",
6480         "double precision", and related terminology throughout the file.
6481
6482 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
6483
6484         PR target/52006
6485         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
6486         arm_general_register_operand predicate for operand 2 instead of
6487         register_operand.
6488
6489 2012-01-27  Ian Lance Taylor  <iant@google.com>
6490
6491         PR go/47656
6492         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
6493         * builtins.c (expand_builtin_init_trampoline): Add onstack
6494         parameter.  Change caller.
6495         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
6496         * tree.c (build_common_builtin_nodes): Declare
6497         __builtin_init_heap_trampoline.
6498
6499 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
6500
6501         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
6502         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
6503         * config/avr/avr.c: Ditto.
6504         (avr_regnames): Remove because unused.
6505         * config/avr/avr.md (*cpse.ne): New peephole.
6506         (*cpse.eq): New peephole from former cpse peepholes.
6507
6508 2012-01-27  Michael Eager  <eager@eagercon.com>
6509
6510         * config/microblaze.c (microblaze_emit_compare): Correct
6511         test after pcmp instruction.
6512
6513 2012-01-27  Richard Guenther  <rguenther@suse.de>
6514
6515         PR tree-optimization/52020
6516         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
6517
6518 2012-01-27  Richard Guenther  <rguenther@suse.de>
6519
6520         * ipa-pure-const.c (check_stmt): Clobbers do not make a
6521         function non-const/pure.
6522
6523 2012-01-27  Richard Guenther  <rguenther@suse.de>
6524
6525         PR tree-optimization/50444
6526         * tree-sra.c (build_ref_for_offset): Properly adjust the
6527         MEM_REF type for unaligned accesses.
6528
6529 2012-01-27  Richard Guenther  <rguenther@suse.de>
6530
6531         PR tree-optimization/50444
6532         * expr.c (mem_ref_refers_to_non_mem_p): New function.
6533         (expand_assignment): Use it.  Properly handle misaligned
6534         bases when expanding stores to component references.
6535         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
6536         refactor that case.
6537
6538 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
6539
6540         PR middle-end/51389
6541         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
6542         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
6543         * tree-data-ref.c (find_data_references_in_loop): Make static.
6544         (compute_all_dependences): Change return type to bool.  Bail out
6545         for too many datarefs in a loop.  Move the hunk resetting the data
6546         dependences vector from ...
6547         (compute_data_dependences_for_loop): ... here.  Account for
6548         compute_all_dependences returning false.
6549         (compute_data_dependences_for_bb): Likewise.
6550         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
6551         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
6552
6553 2012-01-27  Richard Guenther  <rguenther@suse.de>
6554
6555         PR middle-end/51959
6556         * expr.c (store_field): Use the alias-set of the scratch memory
6557         for storing to it.
6558
6559 2012-01-27  Tom de Vries  <tom@codesourcery.com>
6560
6561         PR tree-optimization/51990
6562         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6563         WITH_SIZE_EXPR.
6564         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
6565
6566 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
6567
6568         PR debug/52001
6569         * var-tracking.c (reverse_op): Don't add any reverse operation
6570         if V already has any constant locations.
6571
6572 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
6573
6574         * doc/invoke.texi: Correct usage of "command line" (noun)
6575         vs "command-line" (adjective) throughout.
6576
6577 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
6578
6579         * doc/invoke.texi (Language Independent Options): Move
6580         -Wcoverage-mismatch blurb from here....
6581         (Warning Options): ...to here.
6582
6583 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
6584
6585         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6586         Set rs6000_always_hint to false for 476.
6587
6588 2012-01-27  Matthias Klose  <doko@ubuntu.com>
6589
6590         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
6591           system root.
6592         * incpath.c (add_standard_paths): Likewise.
6593
6594 2012-01-27  Richard Henderson  <rth@redhat.com>
6595
6596         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
6597         * config/m68k/sync.md (atomic_test_and_set): Rename from
6598         sync_test_and_setqi and adjust the operands.
6599         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
6600         and unconditionally enable.
6601
6602 2012-01-27  Richard Henderson  <rth@redhat.com>
6603
6604         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
6605         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
6606         (ldstub): Rename from ldstubqi.
6607         (ldstub<I24MODE>): Remove.
6608
6609 2012-01-27  Richard Henderson  <rth@redhat.com>
6610
6611         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
6612         * c-cppbuiltin.c (cpp_atomic_builtins): Define
6613         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
6614         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
6615         * doc/tm.texi: Rebuild.
6616
6617 2012-01-27  Richard Henderson  <rth@redhat.com>
6618
6619         * optabs.c (gen_atomic_test_and_set): Remove default.
6620         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
6621
6622 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
6623
6624         PR rtl-optimization/51978
6625         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
6626         (combine_reaching_defs): Likewise.
6627         (struct re_info): Remove.
6628         (add_removable_extension): Remove x and data arguments,
6629         add insn, insn_list and def_map.  Use the arguments directly
6630         instead of using struct re_info.
6631         (find_removable_extensions): Don't call add_removable_extension
6632         through note_stores, instead just call it with single_set
6633         result if non-NULL.
6634         (find_and_remove_re): Pass curr_cand->expr instead of
6635         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
6636
6637 2012-01-26  Michael Matz  <matz@suse.de>
6638
6639         PR tree-optimization/46590
6640         * cfgexpand.c: Revert last change (r183305).
6641         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
6642         regs.
6643         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
6644         checking for emptiness.
6645
6646 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
6647
6648         PR middle-end/51895
6649         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
6650         non-addressable non-BLKmode base correctly.
6651
6652 2012-01-26  Michael Matz  <matz@suse.de>
6653
6654         PR tree-optimization/48794
6655         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
6656         regions referenced from RESX/EH_DISPATCH.
6657
6658 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6659
6660         * config/s390/s390.h: Make BRANCH_COST an option.
6661         * config/s390/s390.opt: New option -mbranch-cost.
6662
6663 2012-01-26  Richard Henderson  <rth@redhat.com>
6664
6665         Revert 2012-01-24 change:
6666         * trans-mem.c (requires_barrier): Do not instrument thread local
6667         variables and emit save/restore for them.
6668
6669 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
6670
6671         PR middle-end/51986
6672         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
6673         for pat == 0.
6674
6675 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
6676
6677         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
6678         ASM_OPERANDS.
6679
6680 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
6681
6682         PR target/49868
6683         Rename __pgm to __flash.
6684         Rename __pgm1 to __flash1.
6685         Rename __pgm2 to __flash2.
6686         Rename __pgm3 to __flash3.
6687         Rename __pgm4 to __flash4.
6688         Rename __pgm5 to __flash5.
6689         Rename __pgmx to __memx.
6690         * doc/extend.texi (AVR Named Address Spaces)
6691         Rename address space names as indicated above.
6692         * config/avr/avr.c (avr_addrspace): Ditto.
6693
6694         * config/avr/avr-protos.h
6695         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
6696         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
6697         * config/avr/predicates.md: Ditto.
6698         * config/avr/avr.c Ditto, and
6699         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
6700         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
6701
6702         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
6703         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
6704         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
6705         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
6706         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
6707         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
6708         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
6709         * config/avr/avr.c: Ditto.
6710         * config/avr/avr.md: Ditto.
6711
6712 2012-01-25  Jason Merrill  <jason@redhat.com>
6713
6714         PR c++/51992
6715         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
6716
6717 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
6718
6719         PR tree-optimization/51987
6720         * tree-data-ref.c (get_references_in_stmt): Handle references in
6721         non-volatile GIMPLE_ASM.
6722
6723 2012-01-25  Richard Guenther  <rguenther@suse.de>
6724
6725         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
6726         bases are dereferenced.
6727
6728 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
6729
6730         PR rtl-optimization/48374
6731         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
6732
6733 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
6734
6735         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
6736         compute_data_dependences_for_loop returns false.
6737         * tree-parloops.c (loop_parallel_p): Likewise.
6738
6739 2012-01-25  Richard Guenther  <rguenther@suse.de>
6740
6741         * tree.h (get_pointer_alignment_1): Declare.
6742         * builtins.c (get_pointer_alignment_1): New function.
6743         (get_pointer_alignment): Use it.
6744
6745 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6746
6747         PR rtl-optimization/48308
6748         * combine.c (enum undo_kind): Add UNDO_LINKS.
6749         (struct undo): Add member l to other_contents and where.
6750         (do_SUBST_LINK): New.
6751         (SUBST_LINK): New.
6752         (try_combine): Handle LOG_LINKS for the dummy i1 case.
6753         (undo_all): Handle UNDO_LINKS.
6754
6755 2012-01-25  Richard Henderson  <rth@redhat.com>
6756
6757         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
6758         mem inputs.
6759
6760 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
6761
6762         * optabs.c (gen_atomic_test_and_set): Use each argument.
6763
6764 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
6765
6766         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
6767         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
6768         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
6769         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
6770         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
6771         TARGET_PAIRED_SINGLE_FLOAT.
6772
6773 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
6774
6775         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
6776         (in_struct, return_val): Remove MEM documentation.
6777         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
6778         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
6779         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
6780         and MEM_SCALAR.
6781         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6782         * cfgexpand.c (add_alias_set_conflicts): Likewise.
6783         * expr.c (store_field): Likewise.
6784         * function.c (assign_stack_temp_for_type): Likewise.
6785         * ifcvt.c (noce_try_cmove_arith): Likewise.
6786         * reload1.c (reload): Likewise.
6787         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
6788         (alpha_set_memflags): Likewise.
6789         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
6790
6791 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
6792
6793         * rtl.h (true_dependence, canon_true_dependence): Remove varies
6794         parameter.
6795         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
6796         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
6797         (true_dependence_1, true_dependence, canon_true_dependence): Remove
6798         varies parameter.
6799         * cselib.c (cselib_rtx_varies_p): Delete.
6800         (cselib_invalidate_mem): Update call to canon_true_dependence.
6801         * dse.c (record_store, check_mem_read_rtx): Likewise.
6802         (scan_reads_nospill): Likewise.
6803         * cse.c (check_dependence): Likewise.
6804         (cse_rtx_varies_p): Delete.
6805         * expr.c (safe_from_p): Update call to true_dependence.
6806         * ira.c (validate_equiv_mem_from_store): Likewise.
6807         (memref_referenced_p): Likewise.
6808         * postreload-gcse.c (find_mem_conflicts): Likewise.
6809         * sched-deps.c (sched_analyze_2): Likewise.
6810         * store-motion.c (load_kills_store): Likewise.
6811         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
6812         * gcse.c (mems_conflict_for_gcse_p): Likewise.
6813         (compute_transp): Update call to canon_true_dependence.
6814
6815 2012-01-25  Richard Henderson  <rth@redhat.com>
6816
6817         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
6818         (maybe_emit_atomic_test_and_set): New.
6819         (expand_sync_lock_test_and_set): Use it.
6820         (expand_atomic_test_and_set): Likewise.
6821         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
6822         the implementation; clarify implementation defined details.
6823         * doc/md.texi (atomic_test_and_set): Document.
6824
6825 2012-01-25  Richard Henderson  <rth@redhat.com>
6826
6827         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
6828
6829 2012-01-25  Richard Henderson  <rth@redhat.com>
6830
6831         PR target/51968
6832         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
6833         to effect no-op split.
6834
6835 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
6836
6837         PR lto/51698
6838         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
6839         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
6840         (BT_FN_VOID_PTR_INT_SIZE): New.
6841         (BT_FN_UINT_UINT_VAR): Remove.
6842         (BT_FN_UINT32_UINT32_VAR): New.
6843         (BT_FN_DOUBLE_VPTR): Remove.
6844         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
6845
6846         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
6847         (_ITM_changeTransactionMode): Same.
6848         (_ITM_memmoveRtWt): Change return type to void.
6849         (_ITM_memcpyRtWt): Same.
6850         (_ITM_memsetW): Same.
6851         (_ITM_RaRD): Change types to double.
6852         (_ITM_RD): Same.
6853         (_ITM_RaWD): Same.
6854         (_ITM_RfWD): Same.
6855
6856         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
6857
6858 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
6859             Patrick Marlier  <patrick.marlier@gmail.com>
6860
6861         * trans-mem.c (requires_barrier): Do not instrument thread local
6862         variables and emit save/restore for them.
6863
6864 2012-01-24  Jason Merrill  <jason@redhat.com>
6865
6866         PR c++/51812
6867         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
6868         output static aliases.
6869
6870 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
6871
6872         PR driver/47249
6873         * common.opt (-pie, -shared, pie, shared): Change from Common to
6874         Driver.
6875         * gcc.c (display_help): Display help for -pie and -shared.
6876
6877 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
6878
6879         PR target/49868
6880         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
6881         Remove note on size/offset limitation.
6882         (AVR Variable Attributes): Add example how to read data located
6883         with progmem.  Refer to named address spaces.
6884         * doc/invoke.texi (AVR Options): Fix typo.
6885
6886 2012-01-24  Richard Guenther  <rguenther@suse.de>
6887
6888         Forward-port to trunk
6889         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
6890
6891         PR middle-end/45678
6892         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
6893         op0 isn't sufficiently aligned and there is movmisalignM
6894         insn for mode, use it to load op0 into a temporary register.
6895
6896 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
6897
6898         PR target/51957
6899         * target.def (const_not_ok_for_debug_p): New hook.
6900         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
6901         documentation.
6902         * doc/tm.texi: Regenerated.
6903         * dwarf2out.c (const_ok_for_output_1): If
6904         targetm.const_not_ok_for_debug_p returns true, fail.
6905         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
6906         function.
6907         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
6908
6909 2012-01-23  Kai Tietz  <ktietz@redhat.com>
6910
6911         PR target/51900
6912         * config/i386/predicates.md (symbolic_operand): Allow
6913         UNSPEC_PCREL as PIC expression for lea.
6914         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
6915         * config/i386/i386.c (ix86_delegitimize_address): Handle
6916         UNSPEC_PCREL for none-MEM, too.
6917
6918 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
6919
6920         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
6921         (ipa_tm_create_version_alias): Same.
6922
6923 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
6924
6925         PR libitm/51830
6926         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
6927         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
6928
6929 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
6930             Patrick Marlier  <patrick.marlier@gmail.com>
6931             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
6932
6933         PR lto/51916
6934         * lto-wrapper.c (run_gcc): Pass the LTO section name to
6935         simple_object_start_read.
6936
6937 2012-01-23  Richard Guenther  <rguenther@suse.de>
6938
6939
6940         PR tree-optimization/51895
6941         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
6942         parameter decomposition into BLKmode components.
6943
6944 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
6945
6946         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
6947         fake variables for restrict-qualified pointers whose pointed-to type
6948         contains a placeholder.
6949
6950 2012-01-23  Richard Guenther  <rguenther@suse.de>
6951
6952         PR tree-optimization/51949
6953         * ipa-split.c (execute_split_functions): Do not split malloc functions.
6954
6955 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
6956
6957         PR rtl-optimization/51933
6958         * ree.c (transform_ifelse): Return true right away if dstreg is
6959         already wider or equal to cand->mode.
6960         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
6961         (make_defs_and_copies_lists): Remove defs_list and copies_list
6962         arguments, add state argument, just truncate state->work_list
6963         instead of always allocating and freeing the vector.  Assert that
6964         get_defs succeeds instead of returning 2.  Changed return type to bool.
6965         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
6966         have ext_src_mode, see if it has been modified already with the
6967         right kind of extension and has been extended before from the
6968         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
6969         just return true.  Remember the original mode in state->modified array.
6970         (combine_reaching_defs): Add state argument.  Don't allocate and
6971         free here def_list, copied_list and vec vectors, instead just
6972         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
6973         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
6974         Add state variable, clear vectors in it, initialize state.modified
6975         if needed.  Free all the vectors at the end and state.modified too.
6976         Don't skip a candidate if the extension expression has been modified.
6977
6978 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
6979
6980         PR target/47096
6981         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
6982          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
6983         (extra_options) interix.opt -> i386/interix.opt"
6984         (extra_objs):Add winnt-stubs.o
6985         * configure.ac: Add interix to target_os .comm on PE check.
6986         * configure: Regenerate.
6987         * config/interix3.h: Delete and move bits to..
6988         * config/interix.h: Delete and move bits to..
6989         * config/i386/i386-interix3.h: Delete and move bits to..
6990         * config/i386/i386-interix.h: ..here.
6991         (TARGET_CPU_DEFAULT): Remove redefinition.
6992         (TARGET_ASM_CONSTRUCTOR): Undefine.
6993         (SUBTARGET_SWITCHES): Define for ms-bitfields.
6994         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
6995         (PTRDIFF_TYPE): Define.
6996         (LONG_DOUBLE_TYPE_SIZE): Define.
6997         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
6998         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6999         (TARGET_SECTION_TYPE_FLAGS): Define.
7000         (ASM_DECLARE_FUNCTION_NAME): Define.
7001         (ASM_OUTPUT_EXTERNAL): Define.
7002         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
7003         (ASM_OUTPUT_ALIGNED_BSS): Define.
7004         (PCC_BITFIELD_TYPE_MATTERS): Define.
7005         (USE_CONST_SECTION): Define.
7006         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
7007         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
7008         (SUPPORTS_ONE_ONLY): Remove.
7009         (I386_PE_STRIP_ENCODING): Define.
7010         * config/interix.opt: Delete and move bits to..
7011         * config/i386/interix.opt: ..here. New.
7012         (mpe-aligned-commons): Add.
7013         * config/i386/t-interix: Add copyright header.
7014         (winnt-stubs.o): Add rule.
7015
7016 2012-01-22  Jason Merrill  <jason@redhat.com>
7017
7018         PR c++/51832
7019         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
7020         for extra name aliases.
7021
7022 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7023
7024         PR rtl-optimization/51924
7025         * ree.c (combine_set_extension): Improve debugging message.
7026         (combine_reaching_defs): Likewise.
7027         (get_defs): Rename confusingly named variable.
7028         (find_and_remove_re): Skip a candidate if the extension expression has
7029         been modified.
7030
7031 2012-01-21  Robert Millan  <rmh@gnu.org>
7032             Gerald Pfeifer  <gerald@pfeifer.com>
7033
7034         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
7035         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
7036
7037 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
7038
7039         PR tree-optimization/51914
7040         * tree-vect-stmts.c (vectorizable_conversion): For
7041         cvt_type && modifier == WIDEN, put temporary with cvt_type
7042         at the beginning of vec_dsts and set vec_dest to temporary
7043         with vectype_out.
7044
7045 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
7046
7047         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
7048
7049 2011-01-20  Tijl Coosemans  <tijl@coosemans.org>
7050
7051         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
7052         * config/rs6000/rs6000.c: Likewise.
7053
7054 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
7055
7056         PR target/51915
7057         * config/arm/arm.c (arm_count_output_move_double_insns): Call
7058         output_move_double on a copy of operands array.
7059
7060 2012-01-20  Cary Coutant  <ccoutant@google.com>
7061             Dodji Seketeli  <dodji@redhat.com>
7062
7063         PR debug/45682
7064         * dwarf2out.c (copy_declaration_context): Return ref to parent
7065         of declaration DIE, if necessary.
7066         (remove_child_or_replace_with_skeleton): Add new parameter; update
7067         caller.  Place skeleton DIE under parent DIE of original declaration.
7068         Move call to copy_declaration_context to here ...
7069         (break_out_comdat_types): ... from here.
7070
7071 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7072
7073         PR rtl-optimization/51856
7074         * reload.c (find_reloads_subreg_address): Set the address_reloaded
7075         flag to reloaded.
7076
7077 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7078
7079         PR target/51819
7080         * config/arm/arm.c (arm_print_operand): Correct output of alignment
7081         hints for neon loads and stores.
7082
7083 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
7084
7085         PR target/49868
7086         PR target/50887
7087         * doc/extend.texi (Named Address Spaces): Split into subsections.
7088         (AVR Named Address Spaces): New subsection.
7089         (M32C Named Address Spaces): New subsection.
7090         (RL78 Named Address Spaces): New subsection.
7091         (SPU Named Address Spaces): New subsection.
7092         (Variable Attributes): New anchor "AVR Variable Attributes".
7093         (AVR Variable Attributes): Rewrite and avoid wording
7094         "address space" in this context.
7095         * doc/invoke.texi (AVR Options): Rewrite and add documentation
7096         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
7097         (AVR Built-in Macros): New subsubsection therein.
7098         * doc/md.texi (AVR constraints): Remove "C04", "R".
7099
7100 2012-01-20  Richard Guenther  <rguenther@suse.de>
7101
7102         PR tree-optimization/51903
7103         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
7104         when removing stmts.
7105
7106 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7107
7108         PR target/50313
7109         * config/arm/arm.c (arm_load_pic_register): Use
7110         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
7111         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
7112         (arm_pic_static_addr): Likewise.
7113         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
7114         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
7115         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
7116         (pic_load_addr_unified): New.
7117
7118 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
7119
7120         PR target/51106
7121         * function.c (instantiate_virtual_regs_in_insn): Use
7122         delete_insn_and_edges when removing a wrong asm insn.
7123
7124 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
7125
7126         PR rtl-optimization/40761
7127         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
7128         Add new member loop_num.
7129         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
7130         (ira_build): Remove the parameter.
7131
7132         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
7133         (ira.c): Do not build CFG loops for one region allocation.  Remove
7134         argument from ira_build call.
7135
7136         * ira-build.c (init_loop_tree_node): New function.
7137         (create_loop_tree_nodes): Use it.  Separate the case when CFG
7138         loops are not built.
7139         (more_one_region_p): Check current_loops.
7140         (finish_loop_tree_nodes): Separate the case when CFG loops are not
7141         built.
7142         (add_loop_to_tree): Process loop equal to NULL too.
7143         (form_loop_tree): Separate the case when CFG loops are not built.
7144         Use explicitly number for the root.
7145         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
7146         an assertion.
7147         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
7148         instead of loop->num.
7149         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
7150         (mark_all_loops_for_removal): Ditto.
7151         (remove_unnecessary_regions): Separate the case when CFG loops
7152         are not built.
7153         (ira_build): Remove the parameter.  Use explicit number of regions
7154         when CFG loops are not built.
7155
7156         * ira-color.c (print_loop_title): Separate the case for the root node.
7157         Use loop_num instead of loop->num.
7158         (move_spill_restore): Use loop_num instead of loop->num.
7159
7160         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
7161         (change_loop): Ditto.
7162         (change_loop): Use loop_num instead of loop->num.
7163
7164         * ira-lives.c (process_bb_node_lives): Ditto.
7165
7166         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
7167
7168         * ira-conflicts.c (print_allocno_conflicts): Ditto.
7169
7170 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
7171
7172         PR libmudflap/40778
7173         * tree-mudflap.c (mf_artificial): New function.
7174         (execute_mudflap_function_ops, execute_mudflap_function_decls,
7175         mx_register_decls, mudflap_enqueue_decl): Use it.
7176
7177         PR target/51876
7178         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
7179         numbers in the insn pattern.
7180
7181 2012-01-19  Michael Matz  <matz@suse.de>
7182
7183         PR tree-optimization/46590
7184         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
7185         use it in remembering which conflicts we already created.
7186         (add_scope_conflicts): Adjust call to above, (de)allocate helper
7187         bitmap.
7188
7189 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
7190
7191         PR lto/51280
7192         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
7193         (merge_and_complain): Same.
7194
7195 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
7196
7197         PR bootstrap/50237
7198         * config/initfini-array.h: Guard content of the header
7199         with #ifdef HAVE_INITFINI_ARRAY.
7200         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
7201         Add initfini-array.h to tm_file here.
7202         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
7203         * config.gcc: Don't add initfini-array.h to tm_file here.
7204         * configure: Regenerated.
7205
7206 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
7207
7208         PR rtl-optimization/51505
7209         * df-problems.c (df_kill_notes): New parameter live. Update comment.
7210         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
7211         (df_note_bb_compute): Update the call to df_kill_notes.
7212
7213 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
7214
7215         * trans-mem.c (requires_barrier): Remove call to is_global_var.
7216
7217 2012-01-18  Richard Guenther  <rguenther@suse.de>
7218
7219         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
7220         of conversions to void *.
7221
7222 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7223             Richard Sandiford  <rdsandiford@googlemail.com>
7224
7225         PR middle-end/50325
7226         PR middle-end/51192
7227         * optabs.h (simplify_expand_binop): Declare.
7228         * optabs.c (simplify_expand_binop): Make global.
7229         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
7230         endian targets if the source cannot be exactly covered by word
7231         mode chunks.
7232
7233 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
7234
7235         PR bootstrap/51872
7236         * hard-reg-set.h (struct hard_reg_set_container): New type.
7237         * target.h (struct hard_reg_set_container): Forward declare.
7238         * target.def (set_up_by_prologue): New target hook.
7239         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
7240         * doc/tm.texi: Regenerated.
7241         * function.c (thread_prologue_and_epilogue_insns): Change
7242         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
7243         Call targetm.set_up_by_prologue on it.
7244         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
7245         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
7246
7247 2012-01-17  Nick Clifton  <nickc@redhat.com>
7248
7249         * config/rx/rx.c (rx_can_use_simple_return): New function.
7250         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
7251         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
7252
7253 2012-01-17  Richard Guenther  <rguenther@suse.de>
7254
7255         PR middle-end/51782
7256         * expr.c (expand_assignment): Take address-space information
7257         from the address operand of MEM_REF and TARGET_MEM_REF.
7258         (expand_expr_real_1): Likewise.
7259
7260 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7261
7262         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
7263         reload dump is requested.
7264
7265 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
7266
7267         PR other/51165
7268         * trans-mem.c (requires_barrier): Call may_be_aliased.
7269
7270 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
7271
7272         PR tree-optimization/51877
7273         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
7274         call arguments and fndecls compare equal, instead return false if they
7275         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
7276         both SSA_NAMEs that are valueized the same, or they satisfy
7277         operand_equal_p.
7278
7279 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7280
7281         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
7282         Solaris 11+.
7283         * configure: Regenerate.
7284
7285 2012-01-16  Jan Hubicka  <jh@suse.cz>
7286
7287         PR c/12245
7288         PR c++/14179
7289         * convert.c (convert_to_integer): Use fold_convert for
7290         converting an INTEGER_CST to integer type.
7291
7292 2012-01-16  Jason Merrill  <jason@redhat.com>
7293
7294         PR c++/14179
7295         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
7296
7297 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
7298
7299         PR bootstrap/51860
7300         * config/s390/s390.c (s390_chunkify_start): Don't skip
7301         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
7302         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
7303         If insn is followed by NOTE_INSN_VAR_LOCATION or
7304         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
7305         Don't use location of note insns.
7306
7307         PR tree-optimization/51865
7308         * tree-inline.c (tree_function_versioning): Call remap_decl
7309         on DECL_RESULT whenever it has VOID_TYPE_P type.
7310
7311 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
7312
7313         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
7314         for calls to locally-binding MIPS16 functions if only the return
7315         type uses float regs.
7316
7317 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
7318             Richard Sandiford  <rdsandiford@googlemail.com>
7319
7320         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
7321         (SYMBOL_32_HIGH): Likewise.
7322         (mips_output_tls_reloc_directive): Declare.
7323         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
7324         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
7325         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
7326         (mips_lo_relocs, mips_hi_relocs): Make extern.
7327         (mips16_stub_function): Move up file.
7328         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
7329         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
7330         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
7331         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
7332         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
7333         (mips_get_tp): Add MIPS16 support.
7334         (mips_legitimize_tls_address): Remove MIPS16 sorry().
7335         Generalize DTPREL and TPREL handling.
7336         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
7337         Add MIPS16 TLS support.
7338         (mips_output_tls_reloc_directive): New function.
7339         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
7340         * config/mips/predicates.md (symbolic_operand_with_high)
7341         (tls_reloc_operand): New predicates.
7342         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
7343         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
7344         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
7345         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
7346         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
7347         (*tls_get_tp_mips16_call_<mode>): Likewise.
7348
7349 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
7350
7351         PR rtl-optimization/51821
7352         * recog.c (peep2_find_free_register): Determine clobbered registers
7353         from insn pattern.
7354
7355 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
7356
7357         PR target/50925
7358         * config/avr/avr-protos.h: Revert change of 2012-01-09.
7359         * config/avr/avr.c: Likewise.
7360         * config/avr/avr.h: Likewise.
7361
7362 2012-01-13  Ian Lance Taylor  <iant@google.com>
7363
7364         PR c++/50012
7365         * tree.h (TYPE_QUALS): Add cast to int.
7366         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
7367
7368 2012-01-13  Ian Lance Taylor  <iant@google.com>
7369
7370         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
7371         comparing param_index to VEC_length result.
7372
7373 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
7374
7375         * c-decl.c: Do not include tree-mudflap.h
7376         * tree-optimize.c: Likewise.
7377         * Makefile.in: Update dependencies.
7378
7379 2012-01-13  Richard Guenther  <rguenther@suse.de>
7380
7381         PR middle-end/8081
7382         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
7383         variable-sized result always use RSO.
7384
7385 2012-01-12  DJ Delorie  <dj@redhat.com>
7386
7387         * cfgexpand.c (convert_debug_memory_address): Allow any valid
7388         pointer type, not just the default pointer type.
7389
7390 2012-01-09  Richard Henderson  <rth@redhat.com>
7391             Denis Chertykov  <chertykov@gmail.com>
7392
7393         PR target/50925
7394         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
7395         * config/avr/avr.c (avr_can_eliminate): Simplify.
7396         (avr_initial_elimination_offset): Likewise.
7397         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
7398         (expand_epilogue): Likewise.
7399         (avr_legitimize_address): Gut.
7400         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
7401         (avr_hard_regno_nregs): New.
7402         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
7403         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
7404         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
7405         add soft frame pointer.
7406         (CALL_USED_REGISTERS): Likewise.
7407         (REG_CLASS_CONTENTS): Likewise.
7408         (REGISTER_NAMES): Likewise.
7409         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
7410         (HARD_FRAME_POINTER_REGNUM): New.
7411         (FRAME_POINTER_REGNUM): Use soft frame pointer.
7412         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
7413         remove the HARD_FRAME_POINTER self-elimination.
7414
7415 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
7416
7417         PR target/51756
7418         * config/avr/avr.c (avr_encode_section_info): Test for absence of
7419         DECL_EXTERNAL when checking for initializers of progmem variables.
7420
7421 2012-01-12  Ira Rosen  <irar@il.ibm.com>
7422
7423         PR tree-optimization/51799
7424         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
7425         that the last operation is a type demotion.
7426
7427 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
7428
7429         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
7430         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
7431
7432 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
7433
7434         PR bootstrap/51796
7435         * combine.c (distribute_notes): If i3 is a noreturn call,
7436         allow old_size to be equal to args_size and make sure the
7437         noreturn call gets REG_ARGS_SIZE note.
7438         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
7439         on noreturn calls even when the delta is 0.
7440
7441 2012-01-11  Nathan Sidwell  <nathan@acm.org>
7442
7443         * gcov.c (STRING_SIZE): Remove.
7444         (generate_results): Erase annotations for source files with no
7445         coverage information.
7446         (read_line): New.
7447         (output_lines): Use it.
7448
7449 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
7450
7451         * gimple.h (gimplify_body): Remove first argument.
7452         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
7453         pointer set here, instead just pass DATA to walk_tree.
7454         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
7455         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
7456         (unvisit_body): Likewise, but with unmark_visited.
7457         (gimplify_body): Remove BODY_P argument and adjust.
7458         (gimplify_function_tree): Adjust call to gimplify_body.
7459         * omp-low.c (finalize_task_copyfn): Likewise.
7460
7461 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
7462
7463         * tree.h (build_function_decl_skip_args): Add boolean parameter.
7464         (build_function_type_skip_args): Delete.
7465         * tree.c (build_function_type_skip_args): Make static and add
7466         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
7467         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
7468         pass it to build_function_type_skip_args.
7469         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
7470         (tree_function_versioning): Likewise.
7471         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
7472         build_function_decl_skip_args.
7473         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
7474         and pass it to build_function_decl_skip_args/tree_function_versioning.
7475         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
7476         * ipa-inline-transform.c (save_inline_function_body): Likewise.
7477         * trans-mem.c (ipa_tm_create_version): Likewise.
7478         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
7479         * tree-inline.c (declare_return_variable): Remove always-true test.
7480         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
7481         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
7482         * ipa-split.c (split_function): Skip the return value for the split
7483         part if it doesn't return.
7484
7485 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7486
7487         PR tree-optimization/49642
7488         * ipa-split.c (forbidden_dominators): New variable.
7489         (check_forbidden_calls): New function.
7490         (dominated_by_forbidden): Likewise.
7491         (consider_split): Check for forbidden dominators.
7492         (execute_split_functions): Initialize and free forbidden
7493         dominators info; call check_forbidden_calls.
7494
7495 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
7496
7497         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
7498
7499 2012-01-11  Nick Clifton  <nickc@redhat.com>
7500
7501         * config/rx/rx.md (return): Define pattern.
7502
7503 2012-01-11  Richard Guenther  <rguenther@suse.de>
7504
7505         * doc/extend.texi (malloc attribute): Adjust according to
7506         implementation.
7507
7508 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
7509             Patrick Marlier  <patrick.marlier@gmail.com>
7510
7511         PR middle-end/51516
7512         * trans-mem.c (get_cg_data): Traverse aliases if requested.
7513         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
7514         (ipa_tm_note_irrevocable): Same.
7515         (ipa_tm_scan_irr_block): Same.
7516         (ipa_tm_decrement_clone_counts): Same.
7517         (ipa_tm_scan_irr_function): Same.
7518         (ipa_tm_create_version_alias): Same.
7519         (ipa_tm_create_version): Same.
7520         (ipa_tm_transform_calls_redirect): Same.
7521         (ipa_tm_transform_calls): Same.
7522         (ipa_tm_transform_transaction): Same.
7523         (ipa_tm_execute): Same.
7524
7525 2012-01-10  Richard Guenther  <rguenther@suse.de>
7526
7527         PR middle-end/51806
7528         * opts.c (common_handle_option): Handle -Werror.
7529
7530 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
7531
7532         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
7533         operand number.
7534
7535 2012-01-10  Jason Merrill  <jason@redhat.com>
7536
7537         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
7538         information.
7539
7540 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7541
7542         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
7543         supports R_386_TLS_GD_PLT reloc.
7544         (gcc_cv_as_ix86_tlsldmplt): Check if linker
7545         supports R_386_TLS_LDM_PLT reloc.
7546         * configure: Regenerate.
7547         * config.in: Regenerate.
7548
7549 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
7550
7551         PR target/49868
7552         Extend __pgmx semantics to linearize memory.
7553         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
7554         determine if code comes inline or from libgcc.
7555         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
7556         (movmem_qi, movmem_qi): Set constraint #2 to "n".
7557         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
7558         (movmemx_qi, movmemx_hi): New insns.
7559         (xload_<mode>_libgcc): Rewrite to new insn condition.
7560         (xload_<mode>): Remove insns.
7561         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
7562         cases that don't satisfy avr_xload_libgcc_p().
7563         (avr_addr_space_convert): Allow converting in any direction.
7564         (avr_addr_space_subset_p): Return always true.
7565         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
7566         (avr_emit_movmemhi): Ditto.
7567         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
7568         (avr_out_movmem): Ditto.
7569         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
7570         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
7571         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
7572         (avr_encode_section_info): Encode 'progmem' in symbol flags.
7573         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
7574
7575 2012-01-10  Richard Guenther  <rguenther@suse.de>
7576
7577         PR tree-optimization/50913
7578         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
7579         Require data-refs to be representable by Graphite with respect
7580         to any loop nest.
7581
7582 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
7583
7584         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
7585         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
7586
7587 2012-01-10  Tom de Vries  <tom@codesourcery.com>
7588
7589         PR rtl-optimization/51271
7590         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
7591         handling annulled branch.
7592
7593 2012-01-10  Richard Henderson  <rth@redhat.com>
7594
7595         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
7596         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
7597         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
7598         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
7599         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
7600         arm_expand_vec_perm_const): New.
7601         * config/arm/arm-protos.h: Update.
7602         * config/arm/neon.md (UNSPEC_VCONCAT): New.
7603         (*neon_vswp<VDQX>): New.
7604         (neon_vcombine<VDX>): Use neon_split_vcombine.
7605         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
7606         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
7607         (vec_perm<VE>): New.
7608
7609 2012-01-10  Richard Henderson  <rth@redhat.com>
7610
7611         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
7612         use it if reload_completed.
7613         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
7614         arm_output_asm_insn, arm_process_output_memory_barrier,
7615         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
7616         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
7617         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
7618         arm_process_output_sync_insn, arm_output_sync_insn,
7619         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
7620         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
7621         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
7622         (emit_unlikely_jump): New.
7623         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
7624         (arm_split_atomic_op): New.
7625         * config/arm/arm-protos.h: Update.
7626         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
7627         (struct arm_sync_generator): Remove.
7628         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
7629         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
7630         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
7631         (VUNSPEC_LL, VUNSPEC_SC): New.
7632         (sync_result, sync_memory, sync_required_value, sync_new_value,
7633         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
7634         (attr length): Don't use arm_sync_loop_insns.
7635         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
7636         (movsfcc, movdfcc): Likewise.
7637         * config/arm/constraints.md (Ua): New.
7638         * config/arm/prediates.md (mem_noofs_operand): New.
7639         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
7640         (sync_clobber, sync_t2_reqd): Remove.
7641         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
7642         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
7643         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
7644         (arm_sync_compare_and_swap<SIDI>): Remove.
7645         (arm_sync_compare_and_swap<NARROW>): Remove.
7646         (arm_sync_lock_test_and_set<SIDI>): Remove.
7647         (arm_sync_lock_test_and_set<NARROW>): Remove.
7648         (arm_sync_new_<syncop><SIDI>): Remove.
7649         (arm_sync_new_<syncop><NARROW>): Remove.
7650         (arm_sync_new_nand<SIDI>): Remove.
7651         (arm_sync_new_nand<NARROW>): Remove.
7652         (arm_sync_old_<syncop><SIDI>): Remove.
7653         (arm_sync_old_<syncop><NARROW>): Remove.
7654         (arm_sync_old_nand<SIDI>): Remove.
7655         (arm_sync_old_nand<NARROW>): Remove.
7656         (*memory_barrier): Merge arm_output_memory_barrier.
7657         (atomic_compare_and_swap<QHSD>): New.
7658         (atomic_compare_and_swap<NARROW>_1): New.
7659         (atomic_compare_and_swap<SIDI>_1): New.
7660         (atomic_exchange<QHSD>): New.
7661         (cas_cmp_operand, cas_cmp_str): New.
7662         (atomic_op_operand, atomic_op_str): New.
7663         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
7664         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
7665         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
7666         (arm_load_exclusive<NARROW>): New.
7667         (arm_load_exclusivesi, arm_load_exclusivedi): New.
7668         (arm_store_exclusive<QHSD>): New.
7669
7670 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
7671
7672         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
7673         reload patterns if -mvsx-scalar-memory.
7674
7675         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
7676         generated, even -mno-vsx-scalar-double was used.
7677         (vsx_xscvdpsp_scalar): Likewise.
7678         (vsx_xscvspdp_scalar2): Likewise.
7679
7680 2012-01-09  Tom de Vries  <tom@codesourcery.com>
7681             Andrew Pinski  <apinski@cavium.com>
7682
7683         PR debug/51471
7684         * reorg.c (fill_slots_from_thread): Don't speculate
7685         frame-related insns.
7686
7687 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
7688
7689         * sched-int.h (bb_note): Move to...
7690         * basic-block.h: ...here.
7691         * haifa-sched.c (bb_note): Move to...
7692         * cfgrtl.c: ...here.
7693         * function.c (next_block_for_reg): New function.
7694         (move_insn_for_shrink_wrap): Likewise.
7695         (prepare_shrink_wrap): Rewrite to use the above.
7696
7697 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
7698
7699         * gimple.c (is_gimple_non_addressable): Remove.
7700         * gimple.h: Remove is_gimple_non_addressable.
7701         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
7702         is_gimple_non_addressable.
7703         * trans-mem.c (expand_assign_tm): Same.
7704
7705 2012-01-09  Richard Guenther  <rguenther@suse.de>
7706
7707         PR tree-optimization/51775
7708         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
7709         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
7710
7711 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
7712
7713         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
7714         tuning parameters.
7715         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
7716
7717 2012-01-09  Richard Guenther  <rguenther@suse.de>
7718
7719         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
7720
7721 2012-01-08  Jan Hubicka  <jh@suse.cz>
7722
7723         PR tree-optimize/51680
7724         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
7725         on when known_vals needs to be computed; cleanup.
7726
7727 2012-01-08  Jan Hubicka  <jh@suse.cz>
7728
7729         PR tree-optimize/51694
7730         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
7731
7732 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
7733
7734         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
7735         for -std=c++98 and -std=c++11 too.
7736
7737 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
7738
7739         * cfgloop.c (cancel_loop): Add free() of bbs array.
7740
7741 2012-01-07  Jan Hubicka  <jh@suse.cz>
7742
7743         PR tree-optimization/51600
7744         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
7745         that benefits small functions.
7746
7747 2012-01-07  Jan Hubicka  <jh@suse.cz>
7748
7749         * ipa-inline.c (want_inline_small_function_p): Fix formating.
7750
7751 2012-01-07  Jan Hubicka  <jh@suse.cz>
7752
7753         PR tree-optimization/51680
7754         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
7755         whose inlining reduce unit size.
7756
7757 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
7758
7759         PR bootstrap/51725
7760         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
7761         Add canonical node to containing_mem chain after the non-canonical
7762         one, even if there weren't any locs to propagate.
7763         (remove_useless_values): Keep only canonical values.
7764         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
7765         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
7766         canonicalize mem_chain elements that are not discarded.
7767
7768 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
7769
7770         PR target/47333
7771         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
7772         before emitting functions.
7773
7774         PR gcov-profile/50127
7775         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
7776         clear_aux_for_blocks.
7777
7778 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
7779
7780         PR debug/51746
7781         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
7782
7783 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
7784
7785         * c-decl.c (ext_block): Moved up.
7786         (collect_all_refs, for_each_global_decl): Take ext_block into account.
7787
7788 2012-01-06  Han Shen  <shenhan@google.com>
7789
7790         Translate built-in include paths for sysroot.
7791         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
7792         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
7793
7794         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
7795         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
7796
7797         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
7798         control whether sysroot should be prepended to gxx include dir.
7799
7800         * configure: Regenerate.
7801
7802 2012-01-06  Torvald Riegel  <triegel@redhat.com>
7803
7804         PR rtl-optimization/51771
7805         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
7806         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
7807
7808 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7809
7810         PR tree-optimization/51315
7811         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
7812         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
7813
7814 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
7815
7816         PR target/51681
7817         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
7818         for shrp pattern.  Correctly handle and fixup shift variable.
7819         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
7820
7821 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
7822
7823         PR debug/51762
7824         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
7825         note when !ACCUMULATE_OUTGOING_ARGS.
7826
7827 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7828
7829         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
7830         condition.
7831         (extract_range_from_unary_expr_1): Avoid useless computations.
7832
7833 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
7834
7835         PR rtl-optimization/51767
7836         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
7837         of jump_block and add an extra edge for degenerated asm gotos.
7838
7839         PR middle-end/51768
7840         * stmt.c (check_unique_operand_names): Don't ICE during error
7841         reporting if i is from labels chain.
7842
7843         PR middle-end/44777
7844         * profile.c (branch_prob): Split bbs that have exit edge
7845         and need a fake entry edge too.
7846
7847 2012-01-05  Jan Hubicka  <jh@suse.cz>
7848
7849         PR middle-end/49710
7850         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
7851         unlooping loops.
7852
7853 2012-01-05  Richard Guenther  <rguenther@suse.de>
7854
7855         PR lto/50490
7856         * tree-streamer-out.c (write_ts_optimization): New function.
7857         (streamer_write_tree_body): Call it.
7858         * tree-streamer-in.c (lto_input_ts_optimization): New function.
7859         (streamer_read_tree_body): Call it.
7860         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
7861
7862 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
7863
7864         PR middle-end/51761
7865         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
7866         * gimplify.c (gimplify_cleanup_point_expr): Save and set
7867         in_cleanup_point_expr before gimplify_stmt call and restore it
7868         afterwards.
7869         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
7870         in_cleanup_point_expr is false.
7871
7872 2012-01-05  Richard Guenther  <rguenther@suse.de>
7873
7874         PR middle-end/51764
7875         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
7876         to c.opt.
7877         * toplev.c (process_options): Reject combining mudflap and LTO.
7878         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
7879
7880 2012-01-05  Richard Guenther  <rguenther@suse.de>
7881
7882         PR tree-optimization/51760
7883         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
7884         not VARYING.
7885         (bit_value_unop): Handle UNDEFINED operands.
7886         (bit_value_binop): Likewise.
7887
7888 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
7889
7890         * config/avr/avr.c (avr_replace_prefix): Remove.
7891         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
7892         (avr_asm_function_rodata_section): Ditto.
7893         (avr_asm_select_section): Ditto.
7894
7895 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7896
7897         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
7898         insertion.
7899
7900 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
7901
7902         PR bootstrap/51648
7903         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
7904         calls that have any non-fake successor edges.
7905
7906         PR debug/51746
7907         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
7908
7909 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7910
7911         PR tree-optimization/51624
7912         * tree-sra.c (build_ref_for_model): When replicating a chain of
7913         COMPONENT_REFs, stop as soon as the offset would become negative.
7914
7915 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
7916
7917         PR debug/51695
7918         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
7919         in .debug_loc on the floor.
7920
7921 2012-01-04  Andrew Pinski  <apinski@cavium.com>
7922
7923         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
7924
7925 2012-01-04  Andrew Pinski  <apinski@cavium.com>
7926             Adam Nemet  <anemet@caviumnetworks.com>
7927
7928         * config/mips/mips.md (size): Add SI and DI.
7929         (SIZE): New mode attribute.
7930         (U): New code attribute.
7931         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
7932         (mips_lbux_<mode>): Delete.
7933         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
7934         (mips_lhx): Use gen_mips_lhx_extsi.
7935         (mips_lhx_<mode>): Delete.
7936         (mips_lwx): Delete.
7937         (mips_l<size>x): New expand.
7938         (mips_lwx_<mode>): Delete.
7939         (mips_l<GPR:size>x_<P:mode>): New pattern.
7940         (*mips_lw<u>x_<P:mode>_ext): Likewise.
7941         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
7942         * config/mips/mips.c (mips_lx_address_p): New function.
7943         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
7944         (dsp64): New availability predicate.
7945         (mips_builtins): Add an entry for __builtin_mips_ldx.
7946         * config/mips/mips.h (ISA_HAS_LBX): New define.
7947         (ISA_HAS_LBUX): Likewise.
7948         (ISA_HAS_LHX): Likewise.
7949         (ISA_HAS_LHUX): Likewise.
7950         (ISA_HAS_LWX): Likewise.
7951         (ISA_HAS_LWUX): Likewise.
7952         (ISA_HAS_LDX): Likewise.
7953         * doc/extend.texi (__builtin_mips_ldx): Document.
7954
7955 2012-01-04  Tristan Gingold  <gingold@adacore.com>
7956
7957         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
7958         when long pointers are used.
7959         * config.build (*-*-*vms*): Handle all OpenVMS targets.
7960         (alpha64-dec-*vms*, alpha*-dec-*vms*)
7961         (ia64-hp-*vms*): Remove.
7962         * config/vms/xm-vms64.h: Delete.
7963
7964 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
7965
7966         PR middle-end/51472
7967         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
7968
7969 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
7970
7971         * opts.c (finish_options): Remove duplicate sorry.
7972
7973 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
7974
7975         PR middle-end/51696
7976         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
7977         correctly.
7978
7979 2012-01-04  Richard Guenther  <rguenther@suse.de>
7980
7981         PR middle-end/51750
7982         * tree.c (size_low_cst): New function.
7983         * tree.h (size_low_cst): Declare.
7984         * fold-const.c (fold_comparison): Use it to extract the low
7985         part of the POINTER_PLUS_EXPR offset.
7986
7987 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
7988
7989         Fix clearing ZERO_REG
7990         * config/avr/avr.md (cc): Add alternative "ldi".
7991         (movqi_insn): Use it in cc attribute.
7992         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
7993         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
7994         (output_reload_insisf): Use ZERO_REG to pre-clear register.
7995
7996 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7997
7998         * configure: Regenerate.
7999
8000 2012-01-04  Richard Guenther  <rguenther@suse.de>
8001
8002         PR tree-optimization/49651
8003         * tree-ssa-structalias.c (type_can_have_subvars): New function.
8004         (var_can_have_subvars): Use it.
8005         (get_constraint_for_1): Only consider subfields if there can be any.
8006
8007 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
8008
8009         PR bootstrap/51725
8010         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
8011         to its new canonical_cselib_val and the cselib_val was in
8012         first_containing_mem chain, but the canonical_cselib_val was not,
8013         add the latter into the chain.
8014         (cselib_invalidate_mem): Compare canonical_cselib_val of
8015         addr_list chain elt with v.
8016
8017         PR pch/51722
8018         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
8019         dwarf2out_undef): Allocate e.info using ggc_strdup instead
8020         of xstrdup.
8021         (output_macinfo_op): Don't ggc_strdup fd->filename.
8022         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
8023         then ggc_strdup it.  Don't free inc->info or cur->info.
8024         (output_macinfo): Don't free ref->info or file->info.
8025
8026 2012-01-03  Ira Rosen  <irar@il.ibm.com>
8027
8028         PR tree-optimization/51269
8029         * tree-vect-loop-manip.c (set_prologue_iterations): Make
8030         first_niters a pointer.
8031         (slpeel_tree_peel_loop_to_edge): Likewise.
8032         (vect_do_peeling_for_loop_bound): Update call to
8033         slpeel_tree_peel_loop_to_edge.
8034         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
8035         here.  Remove it from the parameters list.
8036         (vect_do_peeling_for_alignment): Update calls and compute
8037         wide_prolog_niters.
8038
8039 2012-01-03  Richard Guenther  <rguenther@suse.de>
8040
8041         PR tree-optimization/51070
8042         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
8043         Properly handle calls.
8044
8045 2012-01-03  Richard Guenther  <rguenther@suse.de>
8046
8047         PR tree-optimization/51692
8048         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
8049         the LHS of allocation stmts.
8050
8051 2012-01-03  Olivier Hainque  <hainque@adacore.com>
8052
8053         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
8054
8055 2012-01-03  Olivier Hainque  <hainque@adacore.com>
8056
8057         * collect2.c (main): In AIX specific computations for vector
8058         insertions, use CONST_CAST2 to cast from char ** to const char **.
8059
8060 2012-01-03  Richard Guenther  <rguenther@suse.de>
8061
8062         PR debug/51650
8063         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
8064         the context of a limbo DIE when it does not already exist.
8065
8066 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
8067
8068         PR tree-optimization/51719
8069         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
8070         but direct call is, clear direct call's lhs and don't add fallthrough
8071         edge from dcall_bb to join_bb and PHIs.
8072
8073 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8074
8075         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
8076         the instructions emitted by the pattern.
8077         ("*TDC_insn_<mode>"): Add comment.
8078
8079 2012-01-03  Richard Guenther  <rguenther@suse.de>
8080
8081         PR middle-end/51730
8082         * fold-const.c (fold_comparison): Properly canonicalize
8083         tree offset and HOST_WIDE_INT bit position.
8084
8085 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
8086
8087         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
8088         operands for extzv pattern.
8089
8090 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
8091
8092         PR bootstrap/51725
8093         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
8094         on mem_elt first.
8095
8096 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
8097
8098         * doc/invoke.texi (-flto and related options): Copy-edit.
8099
8100 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
8101
8102         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
8103
8104 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
8105
8106         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
8107         New patterns.
8108
8109 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
8110
8111         * expr.h (move_by_pieces_ninsns): Declare.
8112         * expr.c (move_by_pieces_ninsns): Make external.
8113         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
8114         (mips_store_by_pieces_p): Likewise.
8115         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
8116         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
8117         * config/mips/mips.c (mips_move_by_pieces_p): New function.
8118         (mips_store_by_pieces_p): Likewise.
8119
8120 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
8121
8122         * passes.c (register_one_dump_file): Free full_name.
8123
8124         * reload1.c (reload): Don't allocate reg_max_ref_width here.
8125         (calculate_elim_costs_all_insns): Free offsets_at and
8126         offsets_known_at at the end and clear the pointers.
8127
8128 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
8129
8130         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
8131         this option introduced in r180739.
8132
8133 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
8134
8135         PR target/51345
8136         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
8137         (tmake_file target=avr): Add avr/t-multilib.
8138
8139         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
8140         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
8141         * config/avr/genmultilib.awk: New file.
8142         * config/avr/t-multilib: New auto-generated file.
8143         * config/avr/multilib.h: New auto-generated file.
8144         * config/avr/t-avr (AVR_MCUS): New variable.
8145         (genopt.sh): Use it.
8146         (s-mlib): Depend on t-multilib.
8147         (t-multilib, multilib.h): New dependencies.
8148         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
8149         (MULTILIB_OPTIONS): Remove.
8150         (MULTILIB_MATCHES): Remove.
8151         (MULTILIB_DIRNAMES): Remove.
8152         (MULTILIB_EXCEPTIONS): Remove:
8153         * config/avr/genopt.sh: Don't use hard coded file name;
8154         pass AVR_MCUS from t-avr instead.
8155
8156 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
8157
8158         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
8159
8160 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
8161
8162         Implement light-weight DImode support.
8163         * config/avr/avr-dimode.md: New file.
8164         * config/avr/avr.md: Include it.
8165         (adjust_len): Add plus64, compare64.
8166         (HIDI): Remove code iterator.
8167         (code_stdname): New code attribute.
8168         (rotx, rotsmode): Remove DI.
8169         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
8170         as code iterator.
8171         * config/avr/avr-protos.h (avr_have_dimode): New.
8172         (avr_out_plus64, avr_out_compare64): New.
8173         * config/avr/avr.c (avr_out_compare): Handle DImode.
8174         (avr_have_dimode): New variable definition and initialization.
8175         (avr_out_compare64, avr_out_plus64): New functions.
8176         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
8177         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
8178         (avr_compare_pattern): Skip DImode comparisons.
8179
8180 2012-01-02  Revital Eres  <revital.eres@linaro.org>
8181
8182         * ddg.c (def_has_ccmode_p): New function.
8183         (add_cross_iteration_register_deps,
8184         create_ddg_dep_from_intra_loop_link): Call it.
8185
8186 2012-01-02  Richard Guenther  <rguenther@suse.de>
8187
8188         PR other/51679
8189         * invoke.texi (fassociative-math): Remove spurious paranthesis.
8190
8191 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
8192
8193         * gcc.c (process_command): Update copyright notice dates.
8194         * gcov.c (print_version): Likewise.
8195         * gcov-dump.c (print_version): Likewise.
8196         * mips-tfile.c (main): Likewise.
8197         * mips-tdump.c (main): Likewise.
8198
8199 2012-01-01  Ira Rosen  <irar@il.ibm.com>
8200
8201         PR tree-optimization/51704
8202         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
8203         a use is inside the basic block or loop before accessing its vect info.
8204
8205 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
8206
8207         PR rtl-optimization/51069
8208         * cfgloopmanip.c (remove_path): Removing path making irreducible
8209         region unconditional makes BB part of the region.
8210
8211 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
8212
8213         PR tree-optimization/51683
8214         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
8215         calls with side-effects.
8216         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8217 \f
8218 Copyright (C) 2012 Free Software Foundation, Inc.
8219
8220 Copying and distribution of this file, with or without modification,
8221 are permitted in any medium without royalty provided the copyright
8222 notice and this notice are preserved.