OSDN Git Service

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