OSDN Git Service

Backported from mainline
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
2
3         Backported from mainline
4         2012-01-28  Jakub Jelinek  <jakub@redhat.com>
5
6         PR target/52006
7         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
8         arm_general_register_operand predicate for operand 2 instead of
9         register_operand.
10
11         2012-01-19  Jakub Jelinek  <jakub@redhat.com>
12
13         PR libmudflap/40778
14         * tree-mudflap.c (mf_artificial): New function.
15         (execute_mudflap_function_ops, execute_mudflap_function_decls,
16         mx_register_decls, mudflap_enqueue_decl): Use it.
17
18         2012-01-05  Jakub Jelinek  <jakub@redhat.com>
19
20         PR rtl-optimization/51767
21         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
22         of jump_block and add an extra edge for degenerated asm gotos.
23
24         PR middle-end/51768
25         * stmt.c (check_unique_operand_names): Don't ICE during error
26         reporting if i is from labels chain.
27
28         PR middle-end/44777
29         * profile.c (branch_prob): Split bbs that have exit edge
30         and need a fake entry edge too.
31
32         2012-01-04  Jakub Jelinek  <jakub@redhat.com>
33
34         PR debug/51695
35         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
36         in .debug_loc on the floor.
37
38         2011-12-15  Jakub Jelinek  <jakub@redhat.com>
39
40         PR c/51360
41         * c-parser.c (c_parser_omp_clause_num_threads,
42         c_parser_omp_clause_schedule): Call mark_exp_read.
43
44         PR debug/51517
45         * tree-ssa-coalesce.c (coalesce_ssa_name): For !optimize, test
46         !DECL_IGNORED_P instead of !DECL_ARTIFICIAL.
47
48 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
49
50         Backport from mainline 
51         2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
52
53         PR middle-end/52140
54         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
55
56 2012-02-09  Andrey Belevantsev  <abel@ispras.ru>
57
58         Backport from mainline 
59         2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
60
61         PR target/51106
62         * function.c (instantiate_virtual_regs_in_insn): Use
63         delete_insn_and_edges when removing a wrong asm insn.
64
65 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
66
67         PR middle-end/51994
68         * expr.c (get_inner_reference): If there is an offset, add a negative
69         bit position to it (if any).
70
71 2012-02-07  Kai Tietz  <ktietz@redhat.com>
72             Dave Korn  <dave.korn.cygwin@gmail.com>
73
74         PR target/40068
75         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
76         Take care that typinfo gets dllexport-attribute.
77
78 2012-02-07  Alan Modra  <amodra@gmail.com>
79
80         PR target/52107
81         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
82         subregs of TFmode.
83
84 2012-02-02  Uros Bizjak  <ubizjak@gmail.com>
85
86         Backport from mainline:
87         2011-11-18  Uros Bizjak  <ubizjak@gmail.com>
88
89         PR tree-optimization/51118
90         * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
91         before using TREE_TYPE accessor on expr.
92
93 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
94
95         Backport from mainline r183796
96         PR rtl-optimization/51374
97         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
98         to cross other volatile_refs_p insns.
99
100 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
101
102         Backport from mainline.
103         2011-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
104
105         config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true
106         condition.
107
108 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
109
110         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
111         to srak instruction.
112
113 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
114
115         Backport from mainline.
116         2012-01-30  Bin Cheng  <bin.cheng@arm.com>
117
118         PR target/51835
119         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
120         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
121
122 2012-01-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
123
124         Backport from mainline.
125         2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
126
127         PR target/50313
128         * config/arm/arm.c (arm_load_pic_register): Use
129         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
130         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
131         (arm_pic_static_addr): Likewise.
132         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
133         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
134         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
135         (pic_load_addr_unified): New.
136
137 2012-01-25  Richard Guenther  <rguenther@suse.de>
138
139         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
140         bases are dereferenced.
141
142 2012-01-24  Richard Guenther  <rguenther@suse.de>
143
144         Forward-port to branch
145         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
146
147         PR middle-end/45678
148         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
149         op0 isn't sufficiently aligned and there is movmisalignM
150         insn for mode, use it to load op0 into a temporary register.
151
152 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
153
154         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
155
156 2012-01-19  Quentin Neill  <quentin.neill@amd.com>
157
158         PR target/48743
159         * config/i386/driver-i386.c (host_detect_local_cpu): Also check
160         family to distinguish PROCESSOR_ATHLON.
161
162 2012-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
163
164         PR tree-optimization/49642
165         * ipa-split.c (forbidden_dominators): New variable.
166         (check_forbidden_calls): New function.
167         (dominated_by_forbidden): Likewise.
168         (consider_split): Check for forbidden dominators.
169         (execute_split_functions): Initialize and free forbidden
170         dominators info; call check_forbidden_calls.
171
172 2012-01-18  David Edelsohn  <dje.gcc@gmail.com>
173
174         * config/rs6000/rs6000.md (call_value_indirect_aix32): Fix typo
175         in mode of operand[4].
176
177 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
178
179         PR rtl-optimization/51821
180         * recog.c (peep2_find_free_register): Determine clobbered registers
181         from insn pattern.
182
183 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
184
185         Backport from mainline r183129
186         PR target/51756
187         * config/avr/avr.c (avr_encode_section_info): Test for absence of
188         DECL_EXTERNAL when checking for initializers of progmem variables.
189
190 22012-01-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
191
192         Backport from mainline
193         2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
194
195         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
196
197 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
198
199         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
200         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
201
202 2012-01-10  Joseph Myers  <joseph@codesourcery.com>
203
204         Revert:
205
206         2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
207
208         PR rtl-opt/37451
209         * loop-doloop.c (doloop_modify): New argument zero_extend_p and
210         zero extend count after the correction to it is done.
211         (doloop_optimize): Update call to doloop_modify, don't zero extend
212         count before call.
213
214         2008-11-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
215
216         PR rtl-opt/37782
217         * loop-doloop.c (doloop_modify): Add from_mode argument that says what
218         mode count is in.
219         (doloop_optimize): Update call to doloop_modify.
220
221 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
222
223         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
224
225 2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
226
227         * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Check that the
228         purported sigacthandler address isn't null before dereferencing it.
229         (sparc_is_sighandler): Likewise.
230
231 2012-01-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
232
233         Backport from mainline
234         2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
235
236         PR rtl-optimization/38644
237         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
238         for epilogue having stack adjustment.
239
240 2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
241
242         PR ada/41929
243         * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Remove SAVPC and
244         add CFA.  Revert back to old code for Solaris 8+ multi-threaded.
245         (sparc_is_sighandler): Likewise.
246         (MD_FALLBACK_FRAME_STATE_FOR): Adjust call to IS_SIGHANDLER.
247
248 2012-01-06  Eric Botcazou  <ebotcazou@adacore.com>
249
250         Backport from mainline
251         2012-01-06  Arnaud Charlet  <charlet@adacore.com>
252
253         * c-decl.c (ext_block): Moved up.
254         (collect_all_refs, for_each_global_decl): Take ext_block into account.
255
256 2012-01-06  Richard Sandiford  <richard.sandiford@linaro.org>
257
258         PR middle-end/48660
259         * expr.h (copy_blkmode_to_reg): Declare.
260         * expr.c (copy_blkmode_to_reg): New function.
261         (expand_assignment): Don't expand register RESULT_DECLs before
262         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
263         RESULT_DECL register.
264         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
265
266 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
267
268         PR tree-optimization/51315
269         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
270         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
271
272 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
273
274         PR tree-optimization/51624
275         * tree-sra.c (build_ref_for_model): When replicating a chain of
276         COMPONENT_REFs, stop as soon as the offset would become negative.
277
278 2012-01-04  Richard Guenther  <rguenther@suse.de>
279
280         PR tree-optimization/49651
281         * tree-ssa-structalias.c (type_can_have_subvars): New function.
282         (var_can_have_subvars): Use it.
283         (get_constraint_for_1): Only consider subfields if there can be any.
284
285 2012-01-03  Sandra Loosemore  <sandra@codesourcery.com>
286
287         Backport from mainline:
288         2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
289
290         * doc/invoke.texi (-flto and related options): Copy-edit.
291
292 2012-01-03  Richard Guenther  <rguenther@suse.de>
293
294         Backport from mainline
295         2011-11-10  Richard Guenther  <rguenther@suse.de>
296
297         PR tree-optimization/51042
298         * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
299         self-referential expressions.  Refactor code to avoid duplication.
300
301 2012-01-03  Richard Guenther  <rguenther@suse.de>
302
303         PR tree-optimization/51070
304         * tree-loop-distribution.c (generate_builtin): Do not replace
305         the loop with a builtin if the partition contains statements which
306         results are used outside of the loop.
307         (stmt_has_scalar_dependences_outside_loop): Properly handle calls.
308
309 2011-12-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
310
311         Backport from the mainline
312         2011-12-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
313
314         * config/rs6000/rs6000.c (rs6000_inner_target_options): Fix thinko
315         in setting options via target #pragma or attribute.
316
317 2011-12-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
318
319         Backport from mainline
320         2011-12-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
321
322         PR target/51623
323         * config/rs6000/rs6000.c (rs6000_assemble_integer): Don't call
324         unlikely_text_section_p.  Instead check for being in a code section.
325
326 2011-12-23  Richard Guenther  <rguenther@suse.de>
327
328         PR rtl-optimization/50396
329         * simplify-rtx.c (simplify_binary_operation_1): Properly
330         guard code that only works for integers.
331
332 2011-12-22  Doug Kwan  <dougkwan@google.com>
333
334         Backport from mainline
335         2011-03-23  Julian Brown  <julian@codesourcery.com>
336
337         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
338         accesses which are not naturally aligned.
339
340         2011-11-20  Joey Ye  <joey.ye@arm.com>
341
342         * expr.c (expand_expr_real_1): Correctly handle strict volatile
343         bitfield loads smaller than mode size.
344
345 2011-12-21  Richard Earnshaw  <rearnsha@arm.com>
346
347         PR target/51643
348         * arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
349         change.
350
351 2011-12-21  Richard Earnshaw  <rearnsha@arm.com>
352
353         PR target/51643
354         * arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
355         weak function on bare-metal EABI targets.
356
357 2011-12-21  Uros Bizjak  <ubizjak@gmail.com>
358
359         Backport from mainline
360         2011-12-21  Richard Guenther  <rguenther@suse.de>
361
362         PR lto/41159
363         * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
364         mode of the pseudo as destination mode.  Only assert that
365         is equal to the promoted mode of the decl if it is a REG.
366
367 2011-12-21  Uros Bizjak  <ubizjak@gmail.com>
368
369         * config/alpha/linux-unwind.h: Update copyright years.
370         (MD_FROB_UPDATE_CONTEXT): New define.
371         (alpha_frob_update_context): New function.
372
373 2011-12-19  Martin Jambor  <mjambor@suse.cz>
374
375         PR tree-optimization/51583
376         * tree-sra.c (load_assign_lhs_subreplacements): Call
377         force_gimple_operand_gsi when necessary also in case of no
378         corresponding replacement on the RHS.
379
380 2011-12-16  Eric Botcazou  <ebotcazou@adacore.com>
381
382         * config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
383         (frame_blockage): New expander.
384         (frame_blockage<P:mode>): New instruction.
385         * config/sparc/sparc.c (sparc_expand_prologue): When the sequence of
386         instructions establishing the frame isn't atomic, emit frame blockage.
387
388 2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>
389
390         Backport from mainline.
391         2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
392
393         PR rtl-optimization/49720
394         * simplify-rtx.c (simplify_relational_operation_1): Detect
395         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
396         simplifies to (eq/ne x (cst2 - cst1))" case.
397
398 2011-12-15  Andreas Tobler  <andreast@fgznet.ch>
399
400         Backport from mainline.
401         2011-12-15  Andreas Tobler  <andreast@fgznet.ch>
402
403         * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.
404
405 2011-12-13  Eric Botcazou  <ebotcazou@adacore.com>
406
407         * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
408         * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
409         * lto-streamer-in.c (lto_read_body): Likewise.
410         (lto_input_toplevel_asms): Likewise.
411         * lto-section-in.c (lto_create_simple_input_block): Likewise.
412         * lto-opts.c (lto_read_file_options): Likewise.
413         * ipa-prop.c (ipa_prop_read_section): Likewise.
414
415         * df.h (DF_NOTE): Fix typo in comment.
416
417 2011-12-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
418
419         * regmove.c (fixup_match_2): Only access call_used_regs with hard
420         regs.
421
422 2011-12-12  Jakub Jelinek  <jakub@redhat.com>
423
424         PR middle-end/51510
425         * calls.c (internal_arg_pointer_based_exp_scan): Don't use
426         VEC_safe_grow_cleared if idx is smaller than VEC_length.
427
428         Backported from mainline
429         2011-12-11  Jakub Jelinek  <jakub@redhat.com>
430
431         PR tree-optimization/51485
432         * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
433         DRs in call stmts.
434
435 2011-12-12  Eric Botcazou  <ebotcazou@adacore.com>
436
437         PR tree-optimization/50569
438         * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
439         in the expression of MODEL instead of just the last one.
440
441 2011-12-09  Michael Meissner  <meissner@the-meissners.org>
442
443         Backport from mainline
444         2011-12-09  Michael Meissner  <meissner@the-meissners.org>
445
446         PR rtl-optimization/51469
447         * varasm.c (default_binds_local_p_1): If the symbol is a gnu
448         indirect function, mark the symbol as non-local.
449
450 2011-12-09  Jakub Jelinek  <jakub@redhat.com>
451
452         Backport from mainline
453         2011-12-08  Jakub Jelinek  <jakub@redhat.com>
454
455         PR tree-optimization/51466
456         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
457         TREE_SIDE_EFFECTS.
458
459         2011-11-28  Jakub Jelinek  <jakub@redhat.com>
460
461         PR tree-optimization/50078
462         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
463         TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
464
465 2011-12-09  Kazu Hirata  <kazu@codesourcery.com>
466
467         Backport from mainline:
468
469         2011-12-05  Kazu Hirata  <kazu@codesourcery.com>
470
471         PR target/51408
472         * config/arm/arm.md (*minmax_arithsi): Always require the else
473         clause in the MINUS case.
474
475 2011-12-08  Teresa Johnson  <tejohnson@google.com>
476
477         Backport from mainline:
478
479         2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
480
481         * config/i386/i386.md (*movdi_internal_rex64): Use "!o" constraint
482         instead of "!m" for operand 0, alternative 4.
483         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
484
485 2011-12-08  Jakub Jelinek  <jakub@redhat.com>
486
487         Backport from mainline
488         2011-12-05  Jakub Jelinek  <jakub@redhat.com>
489
490         PR debug/51410
491         * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
492         for debug info if scope is file_scope.
493
494         PR c/51339
495         * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
496         relayout_decl instead of layout_decl.
497
498         2011-12-05  Jakub Jelinek  <jakub@redhat.com>
499                     Eric Botcazou  <ebotcazou@adacore.com>
500
501         PR middle-end/51323
502         PR middle-end/50074
503         * calls.c (internal_arg_pointer_exp_state): New variable.
504         (internal_arg_pointer_based_exp_1,
505         internal_arg_pointer_exp_scan): New functions.
506         (internal_arg_pointer_based_exp): New function.
507         (mem_overlaps_already_clobbered_arg_p): Use it.
508         (expand_call): Free internal_arg_pointer_exp_state.cache vector
509         and clear internal_arg_pointer_exp_state.scan_start.
510
511         2011-11-30  Jakub Jelinek  <jakub@redhat.com>
512
513         PR rtl-optimization/48721
514         * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
515         reg_pending_barrier to TRUE_BARRIER.
516
517         2011-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
518
519         PR middle-end/50074
520         * calls.c (mem_overlaps_already_clobbered_arg_p):
521         Return false if no outgoing arguments have been stored so far.
522
523 2011-12-08  Eric Botcazou  <ebotcazou@adacore.com>
524
525         PR tree-optimization/51315
526         * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
527         (tree_non_aligned_mem_p): ...this.  Add ALIGN parameter.  Look into
528         MEM_REFs and use get_object_or_type_alignment for them.
529         (build_accesses_from_assign): Adjust for above change.
530         (access_precludes_ipa_sra_p): Likewise.
531
532 2011-12-06  Martin Jambor  <mjambor@suse.cz>
533
534         Backport from mainline:
535
536         2011-12-02  Martin Jambor  <mjambor@suse.cz>
537
538         PR tree-optimization/50622
539         * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
540         if both lacc and racc are grp_partial_lhs.
541
542 2011-12-06  Iain Sandoe  <iains@gcc.gnu.org>
543
544         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
545         rs6000_current_abi.
546
547 2011-12-06  Alan Modra  <amodra@gmail.com>
548
549         PR target/50906
550         * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
551         Do not mark r11 setup as frame-related.  Pass correct offset to
552         rs6000_emit_savres_rtx.  Correct out-of-line rs6000_frame_related
553         arguments.  Correct sp_offset.  Remove "offset" fudge from
554         in-line rs6000_frame_related call.  Rename misleading variable.
555         Fix comments and whitespace.  Tidy some expressions.
556         (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
557         to r11 in out-of-line case.  Correct sp_offset.  Pass correct
558         offset to rs6000_emit_savres_rtx.  Rename misleading variable.
559         Fix comments and whitespace.  Tidy some expressions.
560         (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
561         adjustment when !saving_GPRs_inline.  Correct register mode
562         used in address calcs.
563         (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
564         !restoring_GPRs_inline.
565
566 2011-12-04  Jérémie Detrey  <Jeremie.Detrey@loria.fr>
567
568         PR target/51393
569         * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
570         parameter as long long.
571
572 2011-12-02  Georg-Johann Lay  <avr@gjlay.de>
573
574         PR target/51002
575         PR target/51345
576         * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
577         Enclose parts using __SP_H__ in !defined (__AVR_HAVE_8BIT_SP__).
578         Add FIXME comments.
579         * config/avr/avr.md (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Set
580         insn condition to !AVR_HAVE_8BIT_SP.
581         * config/avr/avr.c (output_movhi): "clr%B0" instead of "in
582         %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
583         (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
584         * config/avr/avr-devices.c (avr_mcu_types): ATtiny4313 and
585         AT86RF401 have a 16-bit SP (their manual is bogus).
586
587 2011-11-25  Richard Sandiford  <richard.sandiford@linaro.org>
588
589         Backport from mainline:
590
591         2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
592
593         PR debug/48190
594         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
595         (cached_dw_loc_list_def): New structure.
596         (cached_dw_loc_list): New typedef.
597         (cached_dw_loc_list_table): New variable.
598         (cached_dw_loc_list_table_hash): New function.
599         (cached_dw_loc_list_table_eq): Likewise.
600         (add_location_or_const_value_attribute): Take a bool cache_p.
601         Cache the list when the parameter is true.
602         (gen_formal_parameter_die): Update caller.
603         (gen_variable_die): Likewise.
604         (dwarf2out_finish): Likewise.
605         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
606         while generating debug info for the decl.
607         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
608         (dwarf2out_init): Initialize cached_dw_loc_list_table.
609         (resolve_addr): Cache the result of resolving a chain of
610         location lists.
611
612 2011-11-24  Enkovich Ilya  <ilya.enkovich@intel.com>
613
614         PR target/51287
615         * i386.c (distance_non_agu_define): Fix insn attr check.
616
617 2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
618
619         * configure: Regenerate.
620
621 2011-11-19  Eric Botcazou  <ebotcazou@adacore.com>
622
623         PR rtl-optimization/51187
624         * reorg.c (relax_delay_slots): Do not consider a jump useless if there
625         is a barrier between the jump and its target label.
626
627 2011-11-19  Richard Earnshaw  <rearnsha@arm.com>
628
629         PR target/50493
630         * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
631         overlap of src and dest operands.
632
633 2011-11-18  Iain Sandoe  <iains@gcc.gnu.org>
634
635         PR target/49992
636         * configure.ac: Remove ranlib special-casing for Darwin.
637         * configure: Regenerate.
638
639 2011-11-16  Richard Earnshaw  <rearnsha@arm.com>
640             Bernd Schmidt <bernds@coudesourcery.com>
641             Sebastian Huber <sebastian.huber@embedded-brains.de>
642
643         PR target/49641
644         * config/arm/arm.c (store_multiple_sequence): Avoid cases where
645         the base reg is stored iff compiling for Thumb1.
646
647 2011-11-13  Iain Sandoe  <iains@gcc.gnu.org>
648
649         PR target/48108
650         Backport from mainline r180523
651         * config/darwin.c (top level): Amend comments concerning LTO output.
652         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
653         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
654         (LTO_NAMES_SECTION): Rename.
655         (darwin_asm_named_section): Record LTO section counts and switches
656         in a vec of darwin_lto_section_e.
657         (darwin_file_start): Remove unused code.
658         (darwin_file_end): Put an LTO section termination label.  Handle
659         output of the wrapped LTO sections, index and names table.
660
661 2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
662
663         PR target/45233
664         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
665         Only expand a symbol ref. into an access when the entity is defined
666         in the TU.
667
668 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
669
670         PR middle-end/51077
671         * tree-object-size.c (addr_object_size): Check TREE_CODE of
672         MEM_REF's operand rather than code of the MEM_REF itself.
673
674 2011-11-07  Alan Modra  <amodra@gmail.com>
675
676         PR target/30282
677         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
678         blockage for ABI_V4.
679
680 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
681
682         PR c++/50608
683         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
684         to fold_offsetof.
685         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
686
687 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
688
689         PR target/50979
690         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
691
692 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
693
694         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
695         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
696         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
697
698 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
699
700         PR target/50945
701         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
702         (movsf_insn_no_fpu): Likewise.
703         (movdf_insn_sp32): Likewise.
704         (movdf_insn_sp32_no_fpu): Likewise.
705         (movdf_insn_sp32_v9): Likewise.  Remove redundant GY constraint.
706         (movdf_insn_sp32_v9_no_fpu): Likewise.
707         (movdf_insn_sp64): Likewise.
708         (movdf_insn_sp64_no_fpu): Likewise.
709         (movtf_insn_sp32): Likewise.
710         (movtf_insn_sp32_no_fpu): Likewise.
711         (movtf_insn_sp64): Likewise.
712         (movtf_insn_sp64_hq): Likewise.
713         (movtf_insn_sp64_no_fpu): Likewise.
714
715 2011-11-02  Bernd Schmidt  <bernds@codesourcery.com>
716
717         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
718         NULL for a jump that is a cc0 insn, pick the previous insn for
719         move_before.
720
721 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
722
723         * config/i386/i386.md (splitters for int-float conversion): Use
724         SUBREG_REG on SUBREGs in splitter constraints.
725
726 2011-11-01  Julian Brown  <julian@codesourcery.com>
727
728         PR rtl-optimization/47918
729         * reload1.c (set_initial_label_offsets): Use initial offsets
730         for labels on the nonlocal_goto_handler_labels chain.
731
732 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
733
734         PR target/50691
735         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol references.
736         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Return false for
737         TLS_MODEL_GLOBAL_DYNAMIC and TLS_MODEL_LOCAL_DYNAMIC symbol references.
738
739 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
740
741         PR target/50875
742         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
743         constraints.  Change alternative 1 to "x,m,1".
744
745 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
746
747         * BASE-VER: Set to 4.6.3.
748         * DEV-PHASE: Set to prerelease.
749
750 2011-10-26  Release Manager
751
752         * GCC 4.6.2 released.
753
754 2011-10-25  Kai Tietz  <ktietz@redhat.com>
755
756         * config/i386/mingw32.h (SUBTARGET_FRAME_POINTER_REQUIRED):
757         Use for 32-bit frame-pointer, if setjmp is used.
758
759 2011-10-24  Jakub Jelinek  <jakub@redhat.com>
760
761         PR debug/50816
762         * dwarf2out.c (dwarf2out_source_line): Emit discriminators only if
763         -gdwarf-4 or not -gstrict-dwarf.
764
765 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
766
767         PR target/49824
768         Backport from mainline r180385
769         * doc/extend.texi (Declaring Attributes of Functions):
770         Document OS_main and OS_task attributes.
771         (Specifying Attributes of Variables): Move up
772         subsection "AVR Variable Attributes" as of alphabetical order.
773
774 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
775
776         PR target/50820
777         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
778         handling and indirect jump/calls on devices > 128k.
779
780 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
781
782         PR target/50788
783         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
784         Remove (match_dup 0).
785
786 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
787
788         PR target/50820
789         Backport from Mainline r180299.
790         * config/avr/libgcc.S (__EIND__): New define to 0x3C.
791         (__tablejump__): Consistently use EIND for indirect jump/call.
792         (__tablejump_elpm__): Ditto.
793
794 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
795
796         PR target/50106
797         Backport from mainline.
798         2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
799
800         * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
801         reg size from 1-3.
802
803 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
804
805         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
806         second argument instead of mode.
807
808         PR target/50350
809         Backport from mainline
810         2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
811
812         PR middle-end/50386
813         PR middle-end/50326
814         * tree-sra.c (build_ref_for_model): Use the type of the field as
815         the type of the COMPONENT_REF.
816
817 2011-10-18  Uros Bizjak  <ubizjak@gmail.com>
818             Eric Botcazou  <ebotcazou@adacore.com>
819
820         PR target/50737
821         * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Set
822         fs->signal_frame to 1.
823
824 2011-10-14  Richard Guenther  <rguenther@suse.de>
825
826         Backport from mainline
827         2011-10-14  Richard Guenther  <rguenther@suse.de>
828
829         PR tree-optimization/50723
830         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
831
832         2011-10-13  Richard Guenther  <rguenther@suse.de>
833
834         PR tree-optimization/50712
835         * ipa-split.c (split_function): Always re-gimplify parameters
836         when they are not gimple vals before passing them.  Properly
837         check for type compatibility.
838
839 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
840
841         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
842         * config/sparc/sparc.opt (mfix-at697f): New option.
843         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
844         (sparc_reorg): New function.
845
846 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
847
848         PR target/49967
849         Backport from Mainline 179472.
850         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
851         (gcc_cv_ld_static_option): Ditto.
852         (gcc_cv_ld_dynamic_option): Ditto.
853         * configure: Regenerate.
854
855 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
856
857         PR tree-optimization/50189
858         * tree-vrp.c (extract_range_from_assert): Use the type of
859         the variable, not the limit.
860
861 2011-10-12  Richard Guenther  <rguenther@suse.de>
862
863         PR tree-optimization/50700
864         * tree-object-size.c (addr_object_size): Simplify and treat
865         MEM_REF bases consistently.
866
867 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
868
869         PR c/50565
870         * convert.c (convert_to_integer): Do not narrow operands of
871         pointer subtraction.
872
873 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
874
875         PR target/49965
876         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
877         (mov<F:mode>cc): Likewise.
878
879 2011-10-11  Nick Clifton  <nickc@redhat.com>
880
881         PR middle-end/49801
882         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
883         df_get_live_out instead of accessing the bitmaps directly.
884         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
885         df_live_add_problem and df_analyze.
886
887 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
888
889         PR target/50652
890         Backport from Mainline r179737.
891         * config/avr/avr-devices.c (avr_mcu_types): Set
892         .data_section_start of atmega164a to 0x100.
893
894 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
895
896         PR target/49049
897         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
898
899 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
900
901         * tree.h (avoid_folding_inline_builtin): New prototype.
902         * builtins.c (avoid_folding_inline_builtin): No longer static.
903         * gimple-fold.c (gimple_fold_builtin): Give up if
904         avoid_folding_inline_builtin returns true.
905
906         PR tree-optimization/49279
907         * tree-ssa-structalias.c (find_func_aliases): Don't handle
908         CAST_RESTRICT.
909
910 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
911
912         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
913         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
914
915 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
916             Ian Lance Taylor  <iant@google.com>
917
918         * godump.c (go_output_typedef): Support printing enum values that
919         don't fit in a signed HOST_WIDE_INT.
920
921 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
922
923         PR inline-asm/50571
924         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
925         input constraints allow mem and not reg, pass true instead of
926         false as second argument to maybe_fold_reference.
927
928 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
929             Richard Guenther  <rguenther@suse.de>
930
931         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Fix
932         handling of BUILT_IN_STRNCAT.
933         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
934         and BUILT_IN_STRNCAT.
935
936 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
937
938         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
939         forward declaration.
940         (remove_duplicate_close_phi): Detect and repair creation of
941         duplicate close-phis for a containing loop.
942
943 2011-09-26  Richard Guenther  <rguenther@suse.de>
944
945         PR tree-optimization/50472
946         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not fold
947         volatile references.
948
949 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
950
951         PR tree-optimization/50413
952         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
953         a basic block if one of its data-refs can't be analyzed.
954
955 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
956
957         PR tree-optimization/50412
958         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
959         accesses that require epilogue loop if vectorizing outer loop.
960
961 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
962
963         PR target/50464
964         * config/i386/sse.md (xop_pcmov_<mode>): Change operand 1 predicate
965         to register_operand and operand 2 predicate to nonimmediate_operand.
966         (xop_pcmov_<mode>256): Ditto.
967         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
968         xop_pcmov, force op_true to register.  Also, force op_false to
969         register if it doesn't satisfy nonimmediate_operand predicate.
970
971 2011-09-19  Alan Modra  <amodra@gmail.com>
972             Michael Meissner  <meissner@linux.vnet.ibm.com>
973
974         PR target/50341
975         * config/rs6000/rs6000.md (call_indirect_aix32): Do not split the
976         load of the indirect function's TOC from the call to prevent the
977         compiler from moving the load of the new TOC above code that
978         references the current function's TOC.
979         (call_indirect_aix64): Ditto.
980         (call_value_indirect_aix32): Ditto.
981         (call_value_indirect_aix64): Ditto.
982         (call_indirect_nonlocal_aix32_internal): Ditto.
983         (call_indirect_nonlocal_aix32): Ditto.
984         (call_indirect_nonlocal_aix64_internal): Ditto.
985         (call_indirect_nonlocal_aix64): Ditto.
986         (call_value_indirect_nonlocal_aix32_internal): Ditto.
987         (call_value_indirect_nonlocal_aix32): Ditto.
988         (call_value_indirect_nonlocal_aix64_internal): Ditto.
989         (call_value_indirect_nonlocal_aix64): Ditto.
990
991 2011-09-19  Martin Jambor  <mjambor@suse.cz>
992
993         PR middle-end/49886
994         * ipa-split.c (split_function): Do not change signature if it is
995         not possible or there are attribute types.
996
997 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
998             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
999
1000         PR target/50091
1001         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1002         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1003
1004 2011-09-14  Diego Novillo  <dnovillo@google.com>
1005
1006         * tree-vect-stmts.c (vect_transform_stmt): Remove unused
1007         local variable ORIG_SCALAR_STMT.
1008
1009 2011-09-08  Martin Jambor  <mjambor@suse.cz>
1010
1011         Backport from mainline
1012         2011-09-07  Martin Jambor  <mjambor@suse.cz>
1013
1014         PR tree-optimization/49911
1015         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1016         enumerations to the corresponding plain integer type.
1017
1018 2011-09-08  Richard Guenther  <rguenther@suse.de>
1019
1020         Backport from mainline
1021         2011-07-04  Richard Guenther  <rguenther@suse.de>
1022
1023         PR tree-optimization/49518
1024         PR tree-optimization/49628
1025         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
1026         irrelevant data-references.
1027
1028 2011-09-08  Richard Guenther  <rguenther@suse.de>
1029
1030         Backport from mainline
1031         2011-08-23  Richard Guenther  <rguenther@suse.de>
1032
1033         PR tree-optimization/50162
1034         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1035
1036 2011-09-08  Richard Guenther  <rguenther@suse.de>
1037
1038         Backport from mainline
1039         2011-05-05  Michael Matz  <matz@suse.de>
1040
1041         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1042         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1043         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1044         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1045         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1046         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1047         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1048         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1049         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1050         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1051         * config/i386/linux.h (ENDFILE_SPEC): Add Ofast.
1052         * config/i386/linux64.h (ENDFILE_SPEC): Add Ofast.
1053         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1054         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1055         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1056         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1057
1058 2011-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1059             Iain Sandoe  <iains@gcc.gnu.org>
1060
1061         Backport from mainline (restore powerpc-darwin Ada bootstrap).
1062         * config/rs6000/rs6000.c (compute_save_world_info): Test
1063         cfun->has_nonlocal_label to determine if the out-of-line save
1064         world call may be used.
1065
1066 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
1067
1068         PR target/50310
1069         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1070         code early if TARGET_AVX.
1071         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1072
1073 2011-09-06  Martin Jambor  <mjambor@suse.cz>
1074
1075         Revert
1076         2011-09-02  Martin Jambor  <mjambor@suse.cz>
1077         PR middle-end/49886
1078         * ipa-split.c (split_function): Do not skip any arguments if
1079         can_change_signature is set or there are function type attributes.
1080
1081 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
1082
1083         PR target/50289
1084         Backport from mainline r178528
1085         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
1086         that contain global register variable.
1087
1088 2011-09-02  Martin Jambor  <mjambor@suse.cz>
1089
1090         PR middle-end/49886
1091         * ipa-split.c (split_function): Do not skip any arguments if
1092         can_change_signature is set or there are function type attributes.
1093
1094 2011-09-01  Ira Rosen  <ira.rosen@linaro.org>
1095
1096         PR tree-optimization/50178
1097         * tree-vect-stmts.c (vectorizable_call): Update the related
1098         pattern statement before deleting the original call.
1099         (vect_transform_stmt): Don't expect the related pattern statement
1100         to match the original statement after transformation.
1101
1102 2011-08-29  Richard Guenther  <rguenther@suse.de>
1103
1104         PR middle-end/50116
1105         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1106
1107 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1108
1109         * config/i386/sse.md (vec_extract_lo_<mode>): Prevent both
1110         operands in memory.
1111         (vec_extract_lo_v16hi): Ditto.
1112         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1113         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1114         notes to REG_EQUAL.
1115
1116 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1117
1118         PR target/50202
1119         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1120         when all outputs are unused.
1121         (sse4_2_pcmpistr): Ditto.
1122
1123 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1124
1125         PR c/50179
1126         * c-typeck.c (c_process_expr_stmt): Skip over nops and
1127         call mark_exp_read even if exprv is ADDR_EXPR.
1128
1129 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
1130
1131         PR tree-optimization/48739
1132         * tree-ssa.c: Include cfgloop.h.
1133         (execute_update_addresses_taken): When updating ssa, if in
1134         loop closed SSA form, call rewrite_into_loop_closed_ssa instead of
1135         update_ssa.
1136         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1137
1138 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
1139
1140         PR target/50092
1141         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1142         on the result before returning it.
1143
1144 2011-08-16  Liang Wang  <lwang1@marvell.com>
1145
1146         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
1147         ggc_alloc_zone_vec_rtvec_def.
1148
1149 2011-08-12  Nick Clifton  <nickc@redhat.com>
1150
1151         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi
1152         pattern.
1153         * doc/md.texi (cmpstrn): Note that the comparison stops if both
1154         fetched bytes are zero.
1155         (cmpstr): Likewise.
1156         (cmpmem): Note that the comparison does not stop if both of the
1157         fetched bytes are zero.
1158
1159 2011-08-11  Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1160
1161         * config/rx/rx.md (movsicc): Allow register to register
1162         transfers.
1163         (*movsicc): Likewise.
1164         (*stcc): Restrict this pattern to EQ and NE compares.
1165         (*stcc_reg): New pattern.  Works for any comparison but only for
1166         register transfers.
1167
1168 2011-08-10  DJ Delorie  <dj@redhat.com>
1169
1170         * expr.c (expand_expr_addr_expr_1): Detect a user request for
1171         a local frame in a naked function, and produce a suitable
1172         error for that specific case.
1173
1174 2011-08-09  Martin Jambor  <mjambor@suse.cz>
1175
1176         PR middle-end/49923
1177         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1178         memory alignment.
1179
1180 2011-08-09  Nick Clifton  <nickc@redhat.com>
1181
1182         * config/rx/rx.md: Disable extender peepholes at -O3.
1183
1184 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
1185
1186         PR target/50001
1187         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
1188         (TARGET_INSTANTIATE_DECLS): New define.
1189
1190 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1191
1192         Backport from mainline
1193         2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1194
1195         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1196
1197         * doc/invoke.texi: Document core-avx-i.
1198
1199 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
1200
1201         PR tree-optimization/49948
1202         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
1203
1204 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
1205
1206         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
1207         (stack_protect_test): The pattern compares ptr_mode value.
1208
1209 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
1210
1211         PR target/49920
1212         * config/i386/i386.md (strset): Do not expand strset_singleop
1213         when %eax or $edi are fixed.
1214         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
1215         (*strsetsi_1): Ditto.
1216         (*strsethi_1): Ditto.
1217         (*strsetqi_1): Ditto.
1218         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
1219         (*rep_stossi): Ditto.
1220         (*rep_stosqi): Ditto.
1221         (*strlenqi_1): Ditto.
1222         (cmpstrnsi): Also fail when %ecx is fixed.
1223         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
1224         (*cmpstrnqi_1): Ditto.
1225         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
1226         (*strmovsi_1): Ditto.
1227         (*strmovhi_1): Ditto.
1228         (*strmovqi_1): Ditto.
1229         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
1230         (*rep_movsi): Ditto.
1231         (*rep_movqi): Ditto.
1232
1233 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
1234
1235         PR target/47908
1236         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
1237         Disable instruction scheduling for non-ColdFire targets.
1238         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1239
1240 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1241
1242         PR middle-end/49897
1243         PR middle-end/49898
1244         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
1245         in nested parallel and outer is a gimple_reg, mark it as addressable
1246         and set its bit in task_shared_vars bitmap too.
1247
1248 2011-07-29  Wei Guozhi  <carrot@google.com>
1249
1250         Backport from mainline
1251         2011-07-29  Wei Guozhi  <carrot@google.com>
1252
1253         PR rtl-optimization/49799
1254         * combine.c (make_compound_operation): Check if the bit field is valid
1255         before change it to bit field extraction.
1256
1257 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
1258
1259         PR debug/49871
1260         * dwarf2out.c (size_of_die, value_format, output_die): Use
1261         DW_FORM_udata instead of DW_FORM_data[48] for
1262         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
1263
1264 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1265
1266         Backport from mainline
1267         2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1268
1269         PR target/47364
1270         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
1271
1272 2011-07-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1273
1274         Backport from mainline:
1275         2011-07-26  Martin Jambor  <mjambor@suse.cz>
1276
1277         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
1278         return false for invariants.
1279
1280 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
1281
1282         PR target/49866
1283         * config/i386/i386.md (*call_pop_1_vzeroupper, *call_pop_1,
1284         *sibcall_pop_1_vzeroupper, *sibcall_pop_1, *call_1_vzeroupper,
1285         *call_1, *sibcall_1_vzeroupper, *sibcall_1, *call_1_rex64_vzeroupper,
1286         *call_1_rex64, *call_1_rex64_ms_sysv_vzeroupper,
1287         *call_1_rex64_ms_sysv, *sibcall_1_rex64_vzeroupper,
1288         *sibcall_1_rex64, *call_value_pop_1_vzeroupper,
1289         *call_value_pop_1, *sibcall_value_pop_1_vzeroupper,
1290         *sibcall_value_pop_1, *call_value_1_vzeroupper,
1291         *call_value_1, *sibcall_value_1_vzeroupper,
1292         *sibcall_value_1, *call_value_1_rex64_vzeroupper,
1293         *call_value_1_rex64, *call_value_1_rex64_ms_sysv_vzeroupper,
1294         *call_value_1_rex64_ms_sysv, *sibcall_value_1_rex64_vzeroupper,
1295         *sibcall_value_1_rex64): Use z constraint instead of s constraint.
1296
1297         Backport from mainline
1298         2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1299
1300         * config/i386/constraints.md (z): New constraint.
1301
1302 2011-07-25  Andrew Pinski  <apinski@cavium.com>
1303
1304         PR tree-opt/49671
1305         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
1306         TREE_THIS_NOTRAP into the inner most MEM_REF.
1307         Always copy TREE_THIS_VOLATILE.
1308         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
1309         arguments are not volatile references.
1310
1311 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
1312
1313         PR target/39386
1314         Backport from mainline r176756
1315         2011-07-25  Georg-Johann Lay
1316         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
1317         shift counter for x << x and x >> x shifts.
1318
1319 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
1320
1321         * config.gcc (x86_64-*-linux*): Set
1322         default_gnu_indirect_function to yes.
1323
1324 2011-07-22  Richard Guenther  <rguenther@suse.de>
1325
1326         PR tree-optimization/45819
1327         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1328         preserve volatile and notrap flags.
1329
1330 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
1331
1332         Backport from mainline
1333         2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
1334
1335         PR target/49600
1336         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
1337         general register to memory for !TARGET_INTER_UNIT_MOVES.
1338
1339 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1340
1341         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
1342         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
1343
1344 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
1345
1346         PR tree-optimization/49768
1347         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Return NULL
1348         if offset is smaller than bitoffset, but offset+size is bigger
1349         than bitoffset.
1350
1351 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
1352
1353         PR middle-end/49675
1354         * tree.c (build_common_builtin_nodes): Register
1355         __builtin_return_address, __cyg_profile_func_enter
1356         and __cyg_profile_func_exit.
1357
1358 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1359
1360         * config.gcc: Obsolete i[3456x]86-*-netware*.
1361
1362 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1363
1364         PR target/49746
1365         Revert:
1366         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1367
1368         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1369         patterns.
1370
1371 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
1372
1373         PR middle-end/49732
1374         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1375
1376 2011-07-16  Eric Botcazou  <ebotcazou@adacore.com>
1377
1378         PR tree-optimization/49725
1379         Backport from mainline
1380         2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
1381
1382         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
1383         a zero minimum index only if it is redundant.
1384
1385 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1386
1387         PR target/49723
1388         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
1389
1390 2011-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1391
1392         Backport from mainline:
1393         2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1394
1395         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1396         (asm_file_start): Remove.
1397         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1398         free_bb_for_insn around code that modifies insns before
1399         restarting df analysis.
1400
1401 2011-07-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1402
1403         Backport from mainline:
1404         2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1405
1406         PR target/49541
1407         * config/sol2.h (LIB_SPEC): Simplify.
1408         Move LIB_THREAD_LDFLAGS_SPEC ...
1409         (LINK_SPEC): ... here.
1410
1411 2011-07-14  James Greenhalgh  <james.greenhalgh@arm.com>
1412
1413         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
1414
1415 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
1416
1417         PR tree-opt/49309
1418         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
1419         Use fold_build2_loc instead of build2.
1420         Use the correct type for the new tree.
1421
1422 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
1423
1424         PR target/49487
1425         Backport from mainline r176276
1426         2011-07-14  Georg-Johann Lay
1427         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
1428         of REG.
1429         (*rotw<mode>): Use const_int_operand for operand2.
1430         Use match_scatch for operand3.
1431         (*rotb<mode>): Ditto
1432         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
1433
1434 2011-07-14  Richard Guenther  <rguenther@suse.de>
1435
1436         PR tree-optimization/49651
1437         * tree-ssa-structalias.c (get_constraint_for_1): Properly
1438         handle dereferences with subvariables.
1439
1440 2011-07-11  Martin Jambor  <mjambor@suse.cz>
1441
1442         PR tree-optimization/49094
1443         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1444         (build_accesses_from_assign): Use it.
1445
1446 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
1447
1448         PR target/39633
1449         Backport from mainline r176141
1450         2011-07-11  Georg-Johann Lay
1451         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1452         offsets 1..5 set cc0 in a usable way.
1453
1454 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
1455
1456         PR target/49621
1457         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1458         CONST0_RTX (dest_mode) instead of const0_rtx as second operand
1459         of NE.
1460         * config/rs6000/vector.md (vector_select_<mode>,
1461         vector_select_<mode>_uns): Change second operand of NE to
1462         CONST0_RTX (<MODE>mode) instead of const0_rtx.
1463         * config/rs6000/altivec.md (*altivec_vsel<mode>,
1464         *altivec_vsel<mode>_uns): Expect second operand of NE to be
1465         zero_constant of the corresponding vector mode.
1466         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1467         Likewise.
1468
1469 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
1470
1471         PR target/46779
1472         Backport from mainline SVN 176053.
1473         2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
1474         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1475         In particular, allow 8-bit values in r28 and r29.
1476         (avr_hard_regno_scratch_ok): Disallow any register that might be
1477         part of the frame pointer.
1478         (avr_hard_regno_rename_ok): Same.
1479         (avr_legitimate_address_p): Don't allow SUBREGs.
1480
1481 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
1482
1483         PR target/49660
1484         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1485         MASK_V8PLUS, remove commented out flag and reorder.
1486
1487         Backport from mainline
1488         2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1489
1490         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1491         (TARGET_64BIT_DEFAULT): Define.
1492         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1493         of tm_file.
1494         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1495
1496 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
1497
1498         PR c/49644
1499         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1500         one non-complex and one complex argument, call c_save_expr on both
1501         operands.
1502
1503         PR debug/49522
1504         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1505         referencing debug insns that have been reset.
1506         (dead_debug_insert_before): Don't assert reg is non-NULL,
1507         instead return immediately if it is NULL.
1508
1509         PR middle-end/49640
1510         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
1511         operands and last COMPONENT_REF operand call gimplify_expr on it
1512         if non-NULL.
1513
1514 2011-07-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1515
1516         Backport from mainline.
1517         2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1518
1519         PR target/49335
1520         * config/arm/predicates.md (add_operator): New.
1521         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
1522         in Thumb2.
1523
1524 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
1525
1526         PR tree-optimization/49618
1527         * tree-eh.c (tree_could_trap_p) <case FUNCTION_DECL, case VAR_DECL>:
1528         For DECL_WEAK decls return true.
1529
1530 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
1531
1532         PR rtl-optimization/49619
1533         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
1534         pass VOIDmode as op0_mode to recursive call.
1535
1536         PR rtl-optimization/49472
1537         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
1538         negating MULT, negate the second operand instead of first.
1539         (simplify_binary_operation_1) <case MULT>: If one operand is
1540         a NEG and the other is MULT, don't attempt to optimize by
1541         negation of the MULT operand if it only moves the NEG operation
1542         around.
1543
1544         Backported from mainline
1545         2011-06-06  Jakub Jelinek  <jakub@redhat.com>
1546
1547         PR debug/49262
1548         * dwarf2out.c (native_encode_initializer): Decrement count in each
1549         iteration.
1550
1551 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
1552
1553         Backport from mainline
1554         2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
1555
1556         PR target/44643
1557         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
1558         instead of TREE_READONLY.
1559
1560 2011-07-04  Richard Guenther  <rguenther@suse.de>
1561
1562         PR tree-optimization/49615
1563         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
1564         basic-block index check.
1565
1566 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
1567
1568         PR tree-optimization/49572
1569         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
1570         type of the RHS instead of that of the LHS for the expression type.
1571
1572 2011-06-30  Georg-Johann Lay  <avr@gjlay.de>
1573
1574         Backport from mainline
1575         PR target/34734
1576         (avr_section_type_flags): For data in ".progmem.data", remove
1577         section flag SECTION_WRITE.
1578
1579 2011-06-30  Georg-Johann Lay  <avr@gjlay.de>
1580
1581         Backport from mainline
1582         PR target/34734
1583         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
1584         about uninitialized data attributed 'progmem' from here...
1585         (avr_encode_section_info): ...to this new function.
1586         (TARGET_ENCODE_SECTION_INFO): New define.
1587
1588 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
1589
1590         Backport from mainline
1591         2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
1592
1593         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1594         option.
1595         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1596         entry.
1597         (TARGET_AVX128_OPTIMAL): New definition.
1598         * config/i386/i386.c (initial_ix86_tune_features): Initialize
1599         X86_TUNE_AVX128_OPTIMAL entry.
1600         (ix86_option_override_internal): Enable the generation
1601         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1602         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1603         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1604
1605 2011-06-29  Harsha Jagasia <harsha.jagasia@amd.com>
1606
1607         Backport from mainline
1608         2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1609
1610         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1611         * config/i386/sse.md: Add n to negated FMA pattern names.
1612
1613 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1614
1615         PR tree-optimization/49539
1616         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1617         names by means of stmt_references_abnormal_ssa_name.
1618         (associate_plusminus): Call can_propagate_from before propagating
1619         from definition statements.
1620
1621 2011-06-29  Martin Jambor  <mjambor@suse.cz>
1622
1623         Backport from mainline
1624         2011-06-24  Martin Jambor  <mjambor@suse.cz>
1625
1626         PR tree-optimizations/49516
1627         * tree-sra.c (sra_modify_assign): Choose the safe path for
1628         aggregate copies if we also did scalar replacements.
1629
1630 2011-06-28  Changpeng Fang  <changpeng.fang@amd.com>
1631
1632         Backport from mainline
1633         2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
1634
1635         PR target/49089
1636         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1637         (avx256_split_unaligned_store): New definition.
1638         (ix86_option_override_internal): Enable avx256 unaligned load/store
1639         splitting only when avx256_split_unaligned_load/store is set.
1640
1641 2011-06-28  Changpeng Fang  <changpeng.fang@amd.com>
1642
1643         Backport from mainline
1644         2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
1645
1646         * config/i386/i386.c (flag_opts): Fix a typo in
1647         -mavx256-split-unaligned-store.
1648
1649 2011-06-28  Changpeng Fang  <changpeng.fang@amd.com>
1650
1651         Backport from mainline
1652         2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1653
1654         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1655         unaligned 256bit load/store.
1656         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1657         (*avx_movdqu<avxmodesuffix>): Likewise.
1658
1659 2011-06-28  Changpeng Fang  <changpeng.fang@amd.com>
1660
1661         Backport from mainline
1662         2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1663
1664         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1665         and -mavx256-split-unaligned-store.
1666         (ix86_option_override_internal): Split 32-byte AVX unaligned
1667         load/store by default.
1668         (ix86_avx256_split_vector_move_misalign): New.
1669         (ix86_expand_vector_move_misalign): Use it.
1670
1671         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1672         -mavx256-split-unaligned-store.
1673
1674         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1675         256bit load/store.  Generate unaligned store on misaligned memory
1676         operand.
1677         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1678         256bit load/store.
1679         (*avx_movdqu<avxmodesuffix>): Likewise.
1680
1681         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1682         -mavx256-split-unaligned-store.
1683
1684 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
1685
1686         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1687
1688 2011-06-28  Andrey Belevantsev  <abel@ispras.ru>
1689
1690         Backport from mainline
1691         2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
1692
1693         PR rtl-optimization/49014
1694         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1695
1696 2011-06-28  Alexander Monakov  <amonakov@ispras.ru>
1697
1698         Backport from mainline
1699         2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1700
1701         PR target/48273
1702         * cfgloop.h (loop_has_exit_edges): New helper.
1703         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1704         non-clonable.
1705         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1706         that have no exit edges.
1707
1708 2011-06-28  Iain Sandoe  <iains@gcc.gnu.org>
1709
1710         PR target/47997
1711         * config/darwin.c (darwin_mergeable_string_section): Place string
1712         constants in '.cstring' rather than '.const' when CF/NSStrings are
1713         active.
1714
1715 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
1716
1717         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1718         forward scan as well.
1719
1720 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
1721
1722         * BASE-VER: Set to 4.6.2.
1723         * DEV-PHASE: Set to prerelease.
1724
1725 2011-06-27  Release Manager
1726
1727         * GCC 4.6.1 released.
1728
1729 2011-06-21  Alan Modra  <amodra@gmail.com>
1730
1731         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New func.
1732         (TARGET_CANNOT_FORCE_CONST_MEM): Update definition.
1733
1734 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1735
1736         Backport from mainline.
1737         2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1738
1739         PR target/48454
1740         * config/arm/neon.md (vec_pack_trunc): Set the lengths
1741         correctly for the case with Quad vectors.
1742
1743 2011-06-20  Alan Modra  <amodra@gmail.com>
1744
1745         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1746         of toc-relative address in CONST.
1747         (rs6000_delegitimize_address): Recognize changed address.
1748         (rs6000_legitimize_reload_address): Likewise.
1749         (rs6000_emit_move): Don't force these constants to memory.
1750         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1751         toc-relative address in CONST.
1752         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1753         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1754
1755 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
1756
1757         PR target/49411
1758         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1759         last_arg_constant and last argument doesn't match its predicate,
1760         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1761         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1762         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1763         spelling of error message.
1764         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1765         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1766         const_0_to_255_operand instead of const_int_operand.
1767
1768 2011-06-17  Richard Henderson  <rth@redhat.com>
1769
1770         Backport from mainline
1771         2011-03-22  Richard Henderson  <rth@redhat.com>
1772
1773         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
1774
1775 2011-06-17  Richard Guenther  <rguenther@suse.de>
1776
1777         Backport from mainline
1778         2011-05-23  Richard Guenther  <rguenther@suse.de>
1779
1780         PR tree-optimization/49115
1781         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1782         is not necessarily carried out, do not claim it kills the ref.
1783         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1784
1785 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
1786
1787         Backport from mainline
1788         2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
1789
1790         PR rtl-optimization/48542
1791         * reload.c (find_equiv_reg): Stop looking when finding a
1792         setjmp-type call.
1793         * reload1.c (reload_as_needed): Invalidate all reload
1794         registers when crossing a setjmp-type call.
1795
1796 2011-06-16  Kaz Kojima  <kkojima@gcc.gnu.org>
1797
1798         Backport form main line
1799         2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1800
1801         PR target/49307
1802         * config/sh/sh.md (UNSPEC_CHKADD): New.
1803         (chk_guard_add): New define_insn_and_split.
1804         (symGOT_load): Use chk_guard_add instead of blockage.
1805
1806 2011-06-16  Martin Jambor  <mjambor@suse.cz>
1807
1808         Backported from mainline
1809         2011-06-15  Martin Jambor  <mjambor@suse.cz>
1810
1811         PR tree-optimization/48613
1812         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1813         ipa_node_params_vector is NULL.
1814
1815 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1816
1817         PR tree-optimization/49419
1818         * tree-vrp.c (execute_vrp): Call init_range_assertions
1819         before estimate_numbers_of_iterations, call
1820         free_number_of_iterations_estimates before calling
1821         remove_range_assertions.
1822
1823         Backported from mainline
1824         2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
1825
1826         PR target/44618
1827         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern
1828         with a set of similar patterns, where the MATCH_OPERAND for the
1829         function argument is replaced with individual references to hardware
1830         registers.
1831         (save_fpregs_<mode>): Ditto
1832         (restore_gpregs_<mode>): Ditto
1833         (return_and_restore_gpregs_<mode>): Ditto
1834         (return_and_restore_fpregs_<mode>): Ditto
1835         (return_and_restore_fpregs_aix_<mode>): Ditto
1836
1837 2011-06-14  Richard Henderson  <rth@redhat.com>
1838
1839         PR debug/48459
1840         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1841         (based_loc_descr): Assert it's true.
1842         (compute_frame_pointer_to_fb_displacement): Set it,
1843         rather than aborting immediately.
1844
1845 2011-06-14  Richard Henderson  <rth@redhat.com>
1846
1847         Backport from mainline
1848         2011-03-22  Richard Henderson  <rth@redhat.com>
1849
1850         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
1851         (avr_incoming_return_addr_rtx): New.
1852         (emit_push_byte): New.
1853         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
1854         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
1855         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
1856         (emit_pop_byte): New.
1857         (expand_epilogue): Use it.  Pop frame pointer by bytes.
1858         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
1859         (INCOMING_RETURN_ADDR_RTX): New.
1860         (INCOMING_FRAME_SP_OFFSET): New.
1861         (ARG_POINTER_CFA_OFFSET): New.
1862         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
1863         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
1864         (pophi): Remove.
1865
1866 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
1867
1868         PR fortran/49103
1869         * tree.h (DECL_NONSHAREABLE): Define.
1870         (struct tree_decl_common): Change decl_common_unused to
1871         decl_nonshareable_flag.
1872         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1873         Ignore vars with DECL_NONSHAREABLE bit set.
1874         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1875         on stores to automatic aggregate vars.
1876
1877         PR rtl-optimization/49390
1878         Revert:
1879         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1880
1881         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1882         MEM_ALIAS_SET.
1883
1884 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
1885
1886         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1887         (*vec_dupv2df): Rename from vec_dupv2df.
1888         (vec_dupv2df): New expander.
1889
1890 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1891
1892         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1893
1894 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1895
1896         Backport from mainline
1897         2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1898
1899         * config/i386/driver-i386.c (host_detect_local_cpu): Support
1900         unknown Intel family 0x6 CPUs.
1901
1902 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
1903
1904         Backport from mainline
1905         2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
1906
1907         PR target/49238
1908         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1909         needed when original operands are used for msw_skip comparison.
1910
1911 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
1912
1913         PR gcov-profile/49299
1914         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1915
1916 2011-06-06  Pat Haugen <pthaugen@us.ibm.com>
1917
1918         Backport from mainline
1919         2011-05-31  Pat Haugen <pthaugen@us.ibm.com>
1920
1921         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1922         NON_FLOAT_REGS.
1923
1924 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
1925
1926         PR c++/49264
1927         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1928         if stmt folded into nothing.
1929         * tree-inline.c (fold_marked_statements): If a builtin at the
1930         end of a bb folded into nothing, just update cgraph edges
1931         and move to next bb.
1932         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1933         to be NULL.  Don't compute count and frequency if new_call is NULL.
1934
1935 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1936
1937         * longlong.h (smul_ppmm): The resulting register pair contains the
1938         higher order word first.
1939
1940 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
1941
1942         PR tree-optimization/49243
1943         * calls.c (setjmp_call_p): Also check if fndecl has the
1944         returns_twice attribute.
1945
1946 2011-06-06  Richard Guenther  <rguenther@suse.de>
1947
1948         PR tree-optimization/48702
1949         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1950         only when we know the base address is within bounds.
1951         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1952         assume the base address of TARGET_MEM_REFs is in bounds.
1953         (indirect_refs_may_alias_p): Fix TARGET_MEM_REF without index tests.
1954
1955         Backport from mainline
1956         2011-05-31  Jakub Jelinek  <jakub@redhat.com>
1957
1958         PR rtl-optimization/49235
1959         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1960         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1961
1962 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
1963
1964         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1965         EH return when delayed branches are disabled.
1966
1967 2011-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
1968
1969         Backport from mainline
1970         2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1971
1972         PR target/49186
1973         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1974         part of the second operand is 0.
1975
1976 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
1977
1978         PR debug/47590
1979         * target.def (delay_sched2, delay_vartrack): New.
1980         * doc/tm.texi.in: Update.
1981         * doc/tm.texi: Rebuild.
1982         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1983         * var-tracking.c (gate_handle_var_tracking): Likewise.
1984         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1985         (bfin_flag_var_tracking): Drop.
1986         (output_file_start): Don't save and override flag_var_tracking.
1987         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1988         (bfin_reorg): Test original variables.
1989         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1990         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1991         (ia64_flag_var_tracking): Drop.
1992         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1993         (ia64_file_start): Don't save and override flag_var_tracking.
1994         (ia64_override_options_after_change): Ditto
1995         flag_schedule_insns_after_reload.
1996         (ia64_reorg): Test original variables.
1997         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1998         (picochip_flag_var_tracking): Drop.
1999         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2000         (picochip_option_override): Don't save and override
2001         flag_schedule_insns_after_reload.
2002         (picochip_asm_file_start): Ditto flag_var_tracking.
2003         (picochip_reorg): Test original variables.
2004         * config/spu/spu.c (spu_flag_var_tracking): Drop.
2005         (TARGET_DELAY_VARTRACK): Define.
2006         (spu_var_tracking): New.
2007         (spu_machine_dependent_reorg): Call it.
2008         (asm_file_start): Don't save and override flag_var_tracking.
2009
2010 2011-06-04  Ira Rosen  <ira.rosen@linaro.org>
2011
2012         PR tree-optimization/49038
2013         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2014         Ensure at least one epilogue iteration if required by data
2015         accesses with gaps.
2016         * tree-vectorizer.h (struct _loop_vec_info): Add new field
2017         to mark loops that require peeling for gaps.
2018         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2019         (vect_get_known_peeling_cost): Take peeling for gaps into
2020         account.
2021         (vect_transform_loop): Generate epilogue if required by data
2022         access with gaps.
2023         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2024         loop as requiring an epilogue if there are gaps in the end of
2025         the strided group.
2026
2027 2011-06-02  Ira Rosen  <ira.rosen@linaro.org>
2028
2029         PR tree-optimization/49093
2030         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2031         data references.
2032
2033 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
2034
2035         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2036         (fma4_fmaddsub): Likewise
2037
2038 2011-05-31  Richard Guenther  <rguenther@suse.de>
2039
2040         Backport from mainline
2041         2011-05-19  Richard Guenther  <rguenther@suse.de>
2042
2043         PR middle-end/48985
2044         * tree-object-size.c (addr_object_size): If the pointed-to
2045         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2046
2047 2011-05-31  Richard Guenther  <rguenther@suse.de>
2048
2049         Backport from mainline
2050         2011-05-11  Richard Guenther  <rguenther@suse.de>
2051
2052         PR middle-end/48953
2053         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2054
2055 2011-05-30  Richard Guenther  <rguenther@suse.de>
2056
2057         PR tree-optimization/49218
2058         * tree-vrp.c (adjust_range_with_scev): Properly check whether
2059         overflow occured.
2060
2061 2011-05-30  Georg-Johann Lay  <avr@gjlay.de>
2062
2063         PR target/45263
2064         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors):
2065         Don't use r20 around calls of __tablejump_elpm__
2066
2067 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
2068
2069         PR target/43700
2070         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2071         registers.
2072
2073 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
2074
2075         PR target/43995
2076         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2077         recurse_p argument.  Only follow register copies if it is set,
2078         and prevent mips_find_pic_call_symbol from recursing.
2079         (mips_find_pic_call_symbol): Add a recurse_p argument.
2080         Pass it to mips_pic_call_symbol_from_set.
2081         (mips_annotate_pic_calls): Update accordingly.
2082
2083 2011-05-29  Richard Guenther  <rguenther@suse.de>
2084
2085         PR tree-optimization/49217
2086         * ipa-pure-const.c (propagate_pure_const): Fix typos.
2087
2088 2011-05-26  Pat Haugen <pthaugen@us.ibm.com>
2089
2090         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2091         moves expensive on Power7 also.
2092
2093 2011-05-26  Georg-Johann Lay  <avr@gjlay.de>
2094
2095         PR target/44643
2096         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2097         alone. Error if non-const data has attribute progmem.
2098
2099 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
2100
2101         PR c++/49165
2102         * gimplify.c (shortcut_cond_r): Don't special case
2103         COND_EXPRs if they have void type on one of their arms.
2104
2105         PR tree-optimization/49161
2106         * tree-vrp.c (struct case_info): New type.
2107         (compare_case_labels): Sort case_info structs instead of
2108         trees, and not primarily by CASE_LABEL uids but by
2109         label_for_block indexes.
2110         (find_switch_asserts): Put case labels into struct case_info
2111         array instead of TREE_VEC, adjust sorting, compare label_for_block
2112         values instead of CASE_LABELs.
2113
2114 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
2115
2116         PR target/49128
2117         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2118
2119 2011-05-18  Jan Hubicka  <jh@suse.cz>
2120
2121         PR tree-optimization/44897
2122         * ipa-inline.c (cgraph_decide_recursive_inlining): Do not divide
2123         by zero for insane profiles.
2124
2125 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2126
2127         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2128         force flag_ira_share_save_slots to 0.
2129
2130 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
2131
2132         PR target/49133
2133         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2134
2135 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2136
2137         Backport from mainline
2138         2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2139
2140         PR target/49128
2141         * config/i386/driver-i386.c (host_detect_local_cpu): Always
2142         add -mno-XXX.  Handle FMA.
2143
2144 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2145
2146         PR lto/49123
2147         * fold-const.c (constant_boolean_node): If type is non-NULL,
2148         use build_int_cst_type instead of build_int_cst.
2149
2150         PR debug/49032
2151         * dbxout.c: Include cgraph.h.
2152         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2153         and without value expr, return NULL if no varpool node exists for
2154         it or if it is not needed.
2155         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2156
2157         PR c/49120
2158         * c-decl.c (start_decl): Convert expr to void_type_node.
2159
2160         PR middle-end/48973
2161         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2162         failed and the comparison has a single bit signed type, use
2163         constm1_rtx instead of const1_rtx for true value.
2164         (do_store_flag): If ops->type is single bit signed type, disable
2165         signel bit test optimization and pass -1 instead of 1 as last
2166         parameter to emit_store_flag_force.
2167
2168 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2169
2170         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2171         (sparc-*-rtems*): Likewise.
2172         (sparc64-*-elf*): Likewise.
2173         (sparc64-*-rtems*): Likewise.
2174         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
2175         * config/sparc/t-crtin: New file.
2176         * config/sparc/t-sol2 (crti.o): Delete rule.
2177         (crtn.o): Likewise.
2178         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2179         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2180         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2181         (ENDFILE_SPEC): Add crtn.o.
2182
2183 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
2184
2185         PR target/49104
2186         * config/i386/cpuid.h (bit_MMXEXT): New define.
2187
2188 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
2189
2190         PR middle-end/49029
2191         * expmed.c (extract_fixed_bit_field): Test whether target can be used
2192         only after deciding which mode to use.
2193
2194 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2195
2196         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2197         frame pointer.
2198
2199 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2200
2201         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2202         false if there are call-saved registers here...
2203         (sparc_can_use_return_insn_p): ...but here instead.
2204         (save_or_restore_regs): Fix thinko.
2205         (sparc_expand_prologue): Use current_function_is_leaf.
2206         (sparc_frame_pointer_required): Likewise.
2207
2208 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
2209
2210         PR bootstrap/49086
2211         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2212         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2213
2214 2011-05-20  Richard Guenther  <rguenther@suse.de>
2215
2216         PR tree-optimization/49079
2217         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2218         MEM_REFs correctly for the trailing array access detection.
2219         Special case constants the same way as decls for overall size
2220         constraining.
2221
2222 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
2223
2224         PR tree-optimization/49073
2225         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return
2226         NULL if PHI argument is SSA_NAME, whose def_stmt is dominated
2227         by the PHI.
2228         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2229
2230 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
2231
2232         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2233         when TARGET_RDRND is active.
2234         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2235         Generate dummy SImode target register when target is NULL.
2236
2237 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2238
2239         Backport from mainline
2240         2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2241
2242         PR target/49002
2243         * config/i386/sse.md (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>):
2244         Properly handle load cast.
2245
2246 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
2247
2248         PR tree-optimization/49039
2249         * tree-vrp.c (extract_range_from_binary_expr): For
2250         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2251         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2252
2253 2011-05-18  Richard Guenther  <rguenther@suse.de>
2254
2255         PR tree-optimization/49018
2256         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2257         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2258         gimple_has_side_effects.
2259
2260 2011-05-18  Richard Guenther  <rguenther@suse.de>
2261
2262         Backport from mainline
2263         2011-04-19  Richard Guenther  <rguenther@suse.de>
2264
2265         PR lto/48207
2266         * tree.c (free_lang_data): Do not reset the decl-assembler-name
2267         langhook.
2268
2269         2011-04-21  Richard Guenther  <rguenther@suse.de>
2270
2271         PR lto/48703
2272         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
2273         DECL_NAME.
2274
2275 2011-05-18  Richard Guenther  <rguenther@suse.de>
2276
2277         Backport from mainline
2278         2011-05-12  Richard Guenther  <rguenther@suse.de>
2279
2280         PR tree-optimization/48172
2281         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2282         the number of iterations from the segment size calculation.
2283         (vect_create_cond_for_alias_checks): Adjust.
2284
2285         2011-05-13  Richard Guenther  <rguenther@suse.de>
2286
2287         PR tree-optimization/48172
2288         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2289         multiplying by number of iterations for equal step.
2290         (vect_create_cond_for_alias_checks): Likewise.
2291
2292 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
2293
2294         PR tree-optimization/49000
2295         * tree-ssa.c (execute_update_addresses_taken): Call
2296         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
2297         be rewritten and decl has been marked for renaming, reset
2298         the debug stmt.
2299
2300 2011-05-17  Nick Clifton  <nickc@redhat.com>
2301
2302         Import these patches from the mainline:
2303
2304         2011-05-17  Nick Clifton  <nickc@redhat.com>
2305
2306         * config/rx/rx.c (rx_memory_move_cost): Include cost of register moves.
2307
2308         * config/rx/rx.md: Add peephole to remove redundant extensions
2309         after loads.
2310         (bitset_in_memory): Use rx_restricted_mem_operand.
2311         (bitinvert_in_memory): Likewise.
2312         (bitclr_in_memory): Likewise.
2313
2314         2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
2315                     Nick Clifton  <nickc@redhat.com>
2316
2317         * config/rx/rx.md: Add peepholes to match a register move followed
2318         by a comparison of the moved register.  Replace these with an
2319         addition of zero that does both actions in one instruction.
2320
2321 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
2322
2323         PR target/48986
2324         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2325         predicate to allow CONST_INT.
2326
2327 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
2328
2329         PR preprocessor/48677
2330         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2331         from decoded_options[0], not from itself.
2332
2333 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
2334
2335         * config/i386/i386.md (*movxf_internal): Disable CONST_DOUBLE
2336         optimization for CM_MEDIUM and CM_LARGE code models.  Fix usage
2337         of standard_80387_constant_p.
2338         (*movxf_internal_nointeger): Ditto.
2339         (*movdf_internal): Remove dead code-size optimization.
2340         (*movdf_internal_rex64): Fix usage of standard_80387_constant_p.
2341         (*movdf_internal_nointeger): Ditto.
2342         (*movsf_internal): Ditto.
2343         (floating point move splitters): Ditto.
2344         * config/i386/constraints.md (G): Ditto.
2345         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2346
2347 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
2348
2349         PR tree-optimization/48975
2350         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2351         on all bbs here and free and clear ifc_bbs at the end.
2352
2353 2011-05-12  Richard Guenther  <rguenther@suse.de>
2354
2355         Backport from mainline
2356         2011-05-02  Richard Guenther  <rguenther@suse.de>
2357
2358         PR tree-optimization/48822
2359         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2360         (process_scc): Indicate which iteration we start.
2361
2362 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
2363
2364         PR debug/48967
2365         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2366         if validate_subreg fails.
2367
2368 2011-05-12  Nick Clifton  <nickc@redhat.com>
2369
2370         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2371         * config/rx/rx.c (rx_is_legitimate_constant): Use gcc_unreachable
2372         instead of abort.
2373         (rx_align_for_label): Test label before extracting its number of
2374         uses.
2375         (rx_max_skip_for_label): Ignore debug insns.
2376
2377 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
2378
2379         PR debug/48159
2380         * tree-ssa.c (reset_debug_uses): New function.
2381         * tree-flow.h (reset_debug_uses): New prototype.
2382         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2383         * tree-loop-distribution.c (generate_loops_for_partition): Call
2384         reset_debug_uses on the stmts that will be removed.  Keep around
2385         all debug stmts, don't count them as bits in partition bitmap.
2386         (generate_builtin): Don't count debug stmts or labels as bits in
2387         partition bitmap.
2388
2389 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2390
2391         Backport from mainline
2392         2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2393
2394         PR target/48857, 48495
2395         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2396         (VSX_MODE): Ditto.
2397         (VSX_MOVE_MODE): Ditto.
2398         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2399         VSX vector types.  Add V2DImode.
2400         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2401         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2402         (MODES_TIEABLE_P): Ditto.
2403
2404         * config/rs6000/rs6000.c (rs6000_emit_move): Use
2405         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2406         VSX_VECTOR_MODE.
2407         (init_cumulative_args): Ditto.
2408         (rs6000_function_arg_boundary): Ditto.
2409         (rs6000_function_arg_advance_1): Ditto.
2410         (rs6000_function_arg): Ditto.
2411         (rs6000_function_ok_for_sibcall): Ditto.
2412         (emit_frame_save): Ditto.
2413         (rs6000_function_value): Ditto.
2414         (rs6000_libcall_value): Ditto.
2415
2416 2011-05-10  Nick Clifton  <nickc@redhat.com>
2417
2418         * config/rx/rx.c (rx_memory_move_cost): Reduce the cost for
2419         stores.
2420
2421 2011-05-10  DJ Delorie  <dj@redhat.com>
2422
2423         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2424         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2425         * config/rx/rx.c (rx_align_for_label): Add label and
2426         uses_threshold parameters.  Do not align when the label is not
2427         used enough.
2428         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2429
2430 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
2431
2432         Backported from mainline
2433         2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
2434
2435         PR tree-optimization/48837
2436         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2437         when accumulator transformation is performed.
2438
2439 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
2440
2441         PR tree-optimization/48611
2442         PR tree-optimization/48794
2443         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2444         referenced from RESX or EH_DISPATCH arguments.
2445
2446 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2447
2448         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2449         temporary register to match Pmode.
2450
2451 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2452
2453         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2454         (dataflow_set_preserve_mem_locs): Likewise.
2455
2456 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2457
2458         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2459         constraint modifier to "r".
2460
2461 2011-05-06  Alan Modra  <amodra@gmail.com>
2462
2463         PR target/48900
2464         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2465         const0_rtx as the arg to the dummy __tls_get_addr libcall.
2466
2467 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2468
2469         * config/s390/s390.c (s390_asm_trampoline_template): Comment
2470         instruction sizes.
2471         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2472
2473 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2474
2475         PR target/48252
2476         * config/arm/neon.md (neon_vtrn<mode>): Fix typo from earlier commit.
2477
2478 2011-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2479
2480         * config/rs6000/rs6000.c (rs6000_handle_option): Add missing break
2481         for OPT_mfpu_ case.
2482
2483 2011-05-05  Jason Merrill  <jason@redhat.com>
2484
2485         PR c++/40975
2486         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2487
2488 2011-05-05  Julian Brown  <julian@codesourcery.com>
2489
2490         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2491         parenthesis in D-register case.
2492
2493 2011-05-05  Ira Rosen  <ira.rosen@linaro.org>
2494
2495         Backport from mainline:
2496         2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
2497                     Ira Rosen  <ira.rosen@linaro.org>
2498
2499         PR target/48252
2500         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2501         to match neon_vzip/vuzp/vtrn_internal.
2502         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2503         outputs explicitly dependent on both inputs.
2504         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2505
2506 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2507
2508         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2509         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2510         (*movdi_internal): Use "maybe_vex" instead of "vex" in "prefix"
2511         attribute calculation.
2512         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2513         * config/i386/sse.md (*sse2_storeq_rex64): Do not emit %v prefix
2514         for mov{q} mnemonic.
2515         (*vec_extractv2di_1_rex64_avx): Ditto.
2516
2517 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2518             Jakub Jelinek  <jakub@redhat.com>
2519
2520         PR target/48774
2521         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2522         only succeed if req_mode is the same as set_mode.
2523
2524 2011-05-03  Richard Guenther  <rguenther@suse.de>
2525
2526         PR lto/48846
2527         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2528         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2529         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2530
2531 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2532
2533         PR target/48723
2534         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2535         for -fstack-check if the size to allocate is negative.
2536
2537 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2538
2539         PR tree-optimization/48809
2540         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2541         type.
2542         (gen_inbound_check): Don't compute index_expr - range_min in utype
2543         again, instead reuse SSA_NAME initialized in build_arrays.
2544         Remove two useless gsi_for_stmt calls.
2545
2546 2011-04-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2547
2548         Backport from mainline
2549         2011-04-01  Andrew Pinski  <pinskia@gmail.com>
2550             Michael Meissner  <meissner@linux.vnet.ibm.com>
2551
2552         PR target/48262
2553         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2554         operands, as per the specifications.
2555
2556         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2557         (vec_extract_evenv4sf): Ditto.
2558         (vec_extract_evenv8hi): Ditto.
2559         (vec_extract_evenv16qi): Ditto.
2560         (vec_extract_oddv4si): Ditto.
2561
2562 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2563
2564         PR middle-end/48597
2565         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2566         inline asm.
2567
2568 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2569
2570         PR c/48742
2571         * c-typeck.c (build_binary_op): Don't wrap arguments if
2572         int_operands is true.
2573
2574 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2575
2576         PR debug/48768
2577         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2578         is error_mark_node, set value to NULL.
2579
2580         PR tree-optimization/48734
2581         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2582         if return value from maybe_fold_*_comparsions isn't something
2583         the code is prepared to handle.
2584
2585 2011-04-26  Richard Guenther  <rguenther@suse.de>
2586
2587         PR tree-optimization/48731
2588         * ipa-inline.c (cgraph_flatten): Test if function is inlinable.
2589
2590 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2591
2592         PR other/48748
2593         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2594         __is_literal_type, and __is_trivial; update throughout about
2595         possibly cv-qualified void types.
2596
2597 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2598
2599         PR c/48685
2600         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2601         to VOID_TYPE even around MODIFY_EXPR.
2602
2603 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2604
2605         PR tree-optimization/48717
2606         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2607         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2608
2609 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2610
2611         PR c/48716
2612         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2613         TREE_STATIC variables declared inside of some OpenMP construct.
2614
2615 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2616
2617         PR target/48708
2618         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2619         vec_extract and vec_concat for non-SSE4_1 targets.
2620
2621 2011-04-21  Richard Guenther  <rguenther@suse.de>
2622
2623         PR middle-end/48695
2624         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2625         objects and types here.  Adjust for their offset before comparing.
2626
2627 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2628
2629         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2630
2631 2011-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2632
2633         PR target/48288
2634         * config/pa/predicates.md (ior_operand): Delete predicate.
2635         (cint_ior_operand, reg_or_cint_ior_operand): New predicates.
2636         * config/pa/pa.md (iordi3): Use reg_or_cint_ior_operand predicate in
2637         expander.  Use cint_ior_operand in unnamed insn.
2638         (iorsi3): Likewise.
2639         * config/pa/pa-protos.h (ior_operand): Delete declarations.
2640
2641 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2642
2643         PR tree-optimization/48611
2644         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2645         beyond ERT_MUST_NOT_THROW region.
2646
2647 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2648
2649         Backport from mainline
2650         2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2651
2652         PR lto/48148
2653         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2654         the types if they have different enumeration identifiers.
2655
2656         2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2657
2658         PR lto/48492
2659         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2660         DECL_IN_CONSTANT_POOL without RTL.
2661
2662 2011-04-20  Richard Guenther  <rguenther@suse.de>
2663
2664         Backport from mainline
2665         2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
2666
2667         PR fortran/47976
2668         * reload1.c (inc_for_reload): Return void. All callers changed.
2669         (emit_input_reload_insns): Don't try to delete previous output
2670         reloads to a register, or record spill_reg_store for autoincs.
2671
2672 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
2673
2674         PR target/48678
2675         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2676         is a SUBREG with non-MODE_INT mode inside of it.
2677
2678 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2679
2680         PR middle-end/48661
2681         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2682         if TREE_TYPE (v) is non-NULL.
2683
2684         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2685         gimple_get_virt_mehtod_for_binfo.
2686         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2687         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2688         callers.
2689         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2690
2691 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2692
2693         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2694
2695 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2696
2697         PR tree-optimization/48616
2698         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2699         whether the shift is by scalar or vector based on whether all SLP
2700         scalar stmts have the same rhs.
2701
2702 2011-04-17  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
2703
2704         * doc/passes.texi: Fill crossref nodes.
2705
2706 2011-04-17  Marius Strobl  <marius@FreeBSD.org>
2707
2708         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
2709         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
2710         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2711
2712 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2713
2714         PR lto/48538
2715         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2716         is non-null before accessing it.
2717         (input_cgraph): Remove trailing spaces.
2718
2719 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2720
2721         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2722         Replace match_operand with match_dup for the third operand in
2723         these expanders.
2724
2725 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
2726
2727         PR target/48605
2728         * config/i386/sse.md (avx_insertps, sse4_1_insertps): If operands[2]
2729         is a MEM, offset it as needed based on top 2 bits in operands[3],
2730         change MEM mode to SFmode and mask those 2 bits away from operands[3].
2731
2732 2011-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2733
2734         Backport from mainline:
2735         2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2736
2737         PR target/48366
2738         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2739         move from floating point to shift amount register.
2740         (emit_move_sequence): Remove secondary reload support for floating
2741         point to shift amount amount register copies.
2742         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2743         amount register copies.
2744         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2745         register, return false if mode isn't a scalar integer mode.
2746         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2747
2748 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
2749
2750         PR middle-end/48591
2751         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is NULL.
2752         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2753
2754 2011-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2755
2756         Backport from mainline:
2757         2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2758         PR target/48090
2759         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2760
2761 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2762
2763         PR tree-optimization/48195
2764         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2765         ipa_check_create_edge_args.
2766         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2767         ipa_check_create_edge_args.
2768         * ipa-inline.c (inline_generate_summary): Do not call
2769         ipa_check_create_node_params and ipa_check_create_edge_args.
2770         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2771         ipa_check_create_edge_args.
2772
2773 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2774
2775         PR rtl-optimization/48549
2776         * combine.c (propagate_for_debug): Also stop after BB_END of
2777         this_basic_block.  Process LAST and just stop processing after it.
2778         (combine_instructions): If last_combined_insn has been deleted,
2779         set last_combined_insn to its PREV_INSN.
2780
2781 2011-04-12  Nick Clifton  <nickc@redhat.com>
2782
2783         * config/v850/v850.c (expand_prologue): Do not use the CALLT
2784         instruction for interrupt handlers if the target is the basic V850
2785         architecture.
2786         (expand_epilogue): Likewise.
2787
2788 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2789
2790         PR c/48517
2791         * c-typeck.c (store_init_value): Set TREE_TYPE (decl) to
2792         qualified type.
2793
2794 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2795
2796         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2797
2798 2011-04-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2799
2800         Backport from mainline:
2801         2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2802
2803         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2804
2805 2011-04-09  Duncan Sands  <baldrick@free.fr>
2806
2807         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2808
2809 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2810
2811         PR target/47829
2812         * config.gcc: disable unwind table generation for crtbegin/crtend
2813         on i386-*-freebsd.
2814
2815 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2816
2817         PR tree-optimization/48377
2818         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set is_packed
2819         to true even for types with smaller TYPE_ALIGN than TYPE_SIZE.
2820
2821 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2822
2823         * config/i386/sse.md: Update copyright year.
2824         (avx_cmp<ssescalarmodesuffix><mode>3): Add missing output
2825         register constraint.
2826         (*vec_concatv2sf_avx): Fix wrong register constraint in
2827         alternative 3 of operand 1.
2828         (*vec_set<mode>_0_avx): Avoid combining registers from different
2829         units in a single alternative.
2830         (*vec_set<mode>_0_sse4_1): Ditto.
2831         (*vec_set<mode>_0_sse2): Ditto.
2832         (vec_set<mode>_0): Ditto.
2833         (sse2_storehpd): Ditto.
2834         (sse2_loadhpd): Ditto.
2835         (sse4_1_insertps): Use nonimmediate_operand for operand 2.
2836         * config/i386/predicates.md (sse_comparison_operator): Do not
2837         define as special predicate.
2838
2839 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2840
2841         PR debug/48343
2842         * combine.c (combine_instructions): Add last_combined_insn,
2843         update it if insn is after it, pass it to all try_combine calls.
2844         (try_combine): Add last_combined_insn parameter, pass it instead of
2845         i3 to propagate_for_debug.
2846
2847 2011-04-07  Andrey Belevantsev  <abel@ispras.ru>
2848
2849         Backport from mainline
2850         2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
2851
2852         PR rtl-optimization/48144
2853         * sel-sched-ir.c (merge_history_vect): Factor out from ...
2854         (merge_expr_data): ... here.
2855         (av_set_intersect): Rename to av_set_code_motion_filter.
2856         Update all callers.  Call merge_history_vect when an
2857         expression is found in both sets.
2858         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2859
2860 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2861
2862         PR debug/48466
2863         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2864         as base_reg whatever register reg has been eliminated to, instead
2865         of hardcoding STACK_POINTER_REGNUM.
2866
2867         Backported from mainline
2868         2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2869
2870         PR middle-end/48335
2871         * expr.c (expand_assignment): Handle all possibilities
2872         if TO_RTX is CONCAT.
2873         * expmed.c (store_bit_field_1): Avoid trying to create
2874         invalid SUBREGs.
2875         (store_split_bit_field): If SUBREG_REG (op0) or
2876         op0 itself has smaller mode than word, return it
2877         for offset 0 and const0_rtx for out-of-bounds stores.
2878         If word is const0_rtx, skip it.
2879
2880 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2881
2882         * gcov-io.c: Use GCC Runtime Library Exception.
2883
2884 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2885
2886         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2887
2888 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2889
2890         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2891
2892 2011-04-01  Andrey Belevantsev  <abel@ispras.ru>
2893
2894         Backport from mainline
2895         2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
2896
2897         PR rtl-optimization/48143
2898         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
2899         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
2900         sse2_cvtps2pd): Likewise.
2901
2902 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2903
2904         PR target/48142
2905         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2906         frame-related from frame-unrelated adjustments to the stack pointer.
2907
2908 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2909
2910         Backport from mainline
2911         2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2912
2913         PR target/48349
2914         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
2915         FLOAT_SSE_REGS.
2916
2917 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
2918
2919         PR debug/48253
2920         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
2921         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
2922         dw_fde_unlikely_section_end_label, cold_in_std_section,
2923         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
2924         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
2925         fields.
2926         (output_fde): Use dw_fde_second_{begin,end} if second is
2927         true, otherwise dw_fde_{begin,end}.
2928         (output_call_frame_info): Test dw_fde_second_begin != NULL
2929         instead of dw_fde_switched_sections.
2930         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
2931         fields, initialize new fields.  Initialize in_std_section
2932         unconditionally from the first partition.
2933         (dwarf2out_end_epilogue): Don't override dw_fde_end when
2934         dw_fde_second_begin is non-NULL.
2935         (dwarf2out_switch_text_section): Stop initializing removed
2936         dw_fde_struct fields, initialize new fields, initialize
2937         also dw_fde_end here.  Set dw_fde_switch_cfi even when
2938         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
2939         (struct var_loc_list_def): Add last_before_switch field.
2940         (arange_table, arange_table_allocated, arange_table_in_use,
2941         ARANGE_TABLE_INCREMENT, add_arange): Removed.
2942         (size_of_aranges): Count !in_std_section and !second_in_std_section
2943         hunks in fdes, instead of looking at arange_table_in_use.
2944         (output_aranges): Add aranges_length argument, don't call
2945         size_of_aranges here.  Instead of using aranges_table*
2946         emit ranges for fdes when !in_std_section resp.
2947         !second_in_std_section.
2948         (dw_loc_list): Break ranges crossing section switch.
2949         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
2950         use dw_fde_second_end instead of dw_fde_end as end of last
2951         range.
2952         (gen_subprogram_die): Don't call add_arange.  Use
2953         dw_fde_{begin,end} for first partition and if switched
2954         section dw_fde_second_{begin,end} for the second.
2955         (var_location_switch_text_section_1,
2956         var_location_switch_text_section): New functions.
2957         (dwarf2out_begin_function): Initialize cold_text_section even
2958         when function_section () isn't text_section.
2959         (prune_unused_types): Don't walk arange_table.
2960         (dwarf2out_finish): Don't needlessly test
2961         flag_reorder_blocks_and_partition when testing cold_text_section_used.
2962         If info_section_emitted, call size_of_aranges and if it indicates
2963         non-empty .debug_aranges, call output_aranges with the computed
2964         size.  Stop using removed dw_fde_struct fields, use
2965         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
2966         for second.
2967
2968 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
2969
2970         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
2971         (alpha_option_override): Don't set alpha_sr_alias_set.
2972         (emit_frame_store_1): Use gen_frame_mem rather than calling
2973         set_mem_alias_set.
2974         (alpha_expand_epilogue): Ditto.
2975         (unicosmk_gen_dsib): Ditto.
2976
2977 2011-03-29  Nick Clifton  <nickc@redhat.com>
2978
2979         * config/rx/rx.h (LABEL_ALIGN_AFTER_BARRIER): Define.
2980         (ASM_OUTPUT_MAX_SKIP): Define.
2981         * config/rx/predicates.md (rx_zs_comparison_operator): Do not
2982         allow LT aor GE comparisons.
2983         * config/rx/rx-protos.h (rx_align_for_label): Prototype.
2984         * config/rx/rx.md: Add peepholes and patterns to combine extending
2985         loads with simple arithmetic instructions.
2986         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI modes
2987         to use pre-decrement and post-increment addressing.
2988         (rx_is_restricted_memory_address): For REG+INT addressing, ensure
2989         that the INT is a valid offset.
2990         (rx_print_operand): Handle %R.
2991         Fix %Q's handling of MEMs.
2992         (rx_option_override): Set alignments.
2993         (rx_align_for_label): New function.
2994         (rx_max_skip_for_label): New function.
2995         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2996         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2997         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2998         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2999
3000 2011-03-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3001
3002         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
3003         for invalid symbolic addresses.
3004         (s390_secondary_reload): Don't use s390_check_symref_alignment for
3005         larl operands.
3006
3007 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
3008
3009         PR target/47553
3010         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
3011
3012 2011-03-28  Richard Guenther  <rguenther@suse.de>
3013
3014         Backport from mainline
3015         2011-03-24  Richard Guenther  <rguenther@suse.de>
3016
3017         PR middle-end/48269
3018         * tree-object-size.c (addr_object_size): Do not double-account
3019         for MEM_REF offsets.
3020
3021         2011-03-22  Richard Guenther  <rguenther@suse.de>
3022
3023         PR tree-optimization/48228
3024         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3025         for single-arg PHIs.
3026
3027         2011-03-17  Richard Guenther  <rguenther@suse.de>
3028
3029         PR middle-end/48134
3030         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3031         a value make sure to fold the statement.
3032
3033         2011-03-15  Richard Guenther  <rguenther@suse.de>
3034
3035         PR middle-end/48031
3036         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3037         or variable-indexed array accesses when in gimple form.
3038
3039 2011-03-27  Jonathan Wakely  <jwakely.gcc@gmail.com>
3040
3041         PR other/48179
3042         PR other/48221
3043         PR other/48234
3044         * doc/extend.texi (Alignment): Move section to match order in TOC.
3045         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
3046         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
3047
3048 2011-03-26  Uros Bizjak  <ubizjak@gmail.com>
3049
3050         Backport from mainline:
3051         2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
3052
3053         PR target/48237
3054         * config/i386/i386.md (*movdf_internal_rex64): Do not split
3055         alternatives that can be handled with movq or movabsq insn.
3056         (*movdf_internal): Disable for !TARGET_64BIT.
3057         (*movdf_internal_nointeger): Ditto.
3058         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
3059
3060 2011-03-26  Jakub Jelinek  <jakub@redhat.com>
3061
3062         Backport from mainline
3063         2011-03-24  Jakub Jelinek  <jakub@redhat.com>
3064
3065         PR debug/48204
3066         * simplify-rtx.c (simplify_const_unary_operation): Call
3067         real_convert when changing mode class with FLOAT_EXTEND.
3068
3069         2011-03-20  Jakub Jelinek  <jakub@redhat.com>
3070
3071         PR c/42544
3072         PR c/48197
3073         * c-common.c (shorten_compare): If primopN is first sign-extended
3074         to opN and then zero-extended to result type, set primopN to opN.
3075
3076         PR rtl-optimization/48156
3077         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3078         assume df and df_lr are not NULL.
3079
3080         2011-03-17  Jakub Jelinek  <jakub@redhat.com>
3081
3082         PR rtl-optimization/48141
3083         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3084         * dse.c: Include params.h.
3085         (active_local_stores_len): New variable.
3086         (add_wild_read, dse_step1): Clear it when setting active_local_stores
3087         to NULL.
3088         (record_store, check_mem_read_rtx): Decrease it when removing
3089         from the chain.
3090         (scan_insn): Likewise.  Increase it when adding to chain, if it
3091         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3092         set active_local_stores to NULL before the addition.
3093         * Makefile.in (dse.o): Depend on $(PARAMS_H).
3094
3095         PR rtl-optimization/48141
3096         * dse.c (record_store): If no positions are needed in an insn
3097         that cannot be deleted, at least unchain it from active_local_stores.
3098
3099 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
3100
3101         * BASE-VER: Set to 4.6.1.
3102         * DEV-PHASE: Set to prerelease.
3103
3104 2011-03-25  Release Manager
3105
3106         * GCC 4.6.0 released.
3107
3108 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
3109
3110         * config/rs6000/t-freebsd: Remove duplication from file.
3111
3112 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3113
3114         PR bootstrap/48135
3115         * doc/install.texi (Prerequisites): Move jar etc. up.
3116         Explain support library version requirements.
3117
3118 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3119
3120         PR bootstrap/48135
3121         * doc/install.texi (Prerequisites): Move Perl to build
3122         requirements.  Always necessary on Solaris 2 with Sun ld.
3123
3124 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3125
3126         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3127         binutils 2.21.
3128         (Specific, i?86-*-solaris2.[89]): Likewise.
3129         (Specific, i?86-*-solaris2.10): Likewise.
3130         (Specific, mips-sgi-irix6): Likewise.
3131         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3132         Update for binutils 2.21.
3133
3134 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
3135
3136         PR target/48213
3137         * config/s390/s390.c (s390_delegitimize_address): Don't call
3138         lowpart_subreg if orig_x has BLKmode.
3139
3140 2011-03-20  Joseph Myers  <joseph@codesourcery.com>
3141
3142         * c-decl.c (diagnose_mismatched_decls): Give an error for
3143         redefining a typedef with variably modified type.
3144
3145 2011-03-20  Joseph Myers  <joseph@codesourcery.com>
3146
3147         * c-decl.c (grokfield): Don't allow typedefs for structures or
3148         unions with no tag by default.
3149         * doc/extend.texi (Unnamed Fields): Update.
3150
3151 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
3152
3153         PR debug/48176
3154         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3155         arange_table_in_use is 0, but either text_section_used or
3156         cold_text_section_used is true.  Don't call it if
3157         !info_section_emitted.
3158
3159 2011-03-18  Richard Guenther  <rguenther@suse.de>
3160
3161         * doc/install.texi (--enable-gold): Remove.
3162         (--with-plugin-ld): Document.
3163         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3164
3165 2011-03-18  H.J. Lu  <hongjiu.lu@intel.com>
3166
3167         Backport from mainline
3168         2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
3169
3170         PR target/48171
3171         * config/i386/i386.opt: Add Save to -mavx and -mfma.
3172
3173 2011-03-18  Richard Henderson  <rth@redhat.com>
3174             Jakub Jelinek  <jakub@redhat.com>
3175
3176         PR bootstrap/48161
3177         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3178         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3179
3180 2011-03-17  Richard Guenther  <rguenther@suse.de>
3181
3182         PR middle-end/48165
3183         * tree-object-size.c (compute_object_offset): Properly return
3184         the offset operand of MEM_REFs as sizetype.
3185
3186 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
3187
3188         PR debug/47510
3189         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3190         (lookup_type_die_strip_naming_typedef): ... here.
3191         (get_context_die): Use it.
3192         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3193         the anonymous struct named by the naming typedef.
3194
3195 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3196
3197         PR target/46788
3198         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3199         in the output template.
3200
3201 2011-03-15  Alan Modra  <amodra@gmail.com>
3202
3203         PR target/48032
3204         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3205         presume symbol_refs without a symbol_ref_decl are suitably
3206         aligned, nor other trees we may see here.  Handle anchor symbols.
3207         (legitimate_constant_pool_address_p): Comment.  Add mode param.
3208         Check cmodel=medium addresses.  Adjust all calls.
3209         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3210         creating cmodel=medium optimized access to locals.
3211         * config/rs6000/constraints.md (R): Pass QImode to
3212         legitimate_constant_pool_address_p.
3213         * config/rs6000/predicates.md (input_operand): Pass mode to
3214         legitimate_constant_pool_address_p.
3215         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3216         Update prototype.
3217
3218 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3219
3220         PR target/48053
3221         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3222         64-bit constants being loaded into registers other than GPRs such
3223         as loading 0 into a VSX register.
3224
3225 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3226
3227         * config/sol2.c (solaris_assemble_visibility): Remove obsolete
3228         URLs.
3229
3230 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
3231
3232         * doc/invoke.texi, doc/standards.texi: Refer to
3233         gcc-4.6/c99status.html.
3234
3235         * DEV-PHASE: Mark "prerelease".
3236
3237 2011-03-14  Richard Guenther  <rguenther@suse.de>
3238
3239         PR middle-end/48098
3240         * tree.c (build_vector_from_val): Adjust assert to requirements
3241         and reality.
3242
3243 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
3244
3245         PR bootstrap/48102
3246         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE
3247         parameter.
3248
3249 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
3250
3251         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3252         terms of target_flags_explicit. Adjust copyright year.
3253
3254         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3255         * config/rs6000/t-freebsd: New file. Add override for
3256         LIB2FUNCS_EXTRA.
3257
3258 2011-03-13  Chris Demetriou  <cgd@google.com>
3259
3260         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
3261         (-fno-diagnostics-show-option): this, to reflect current default.
3262         (-Werror=): Update text about -fno-diagnostics-show-option.
3263
3264 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
3265
3266         PR target/48053
3267         * config/rs6000/predicates.md (easy_vector_constant_add_self,
3268         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
3269         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
3270         mode is not V2DImode or V2DFmode.
3271         (vspltis_constant): Do not handle V2DImode and V2DFmode.
3272         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
3273         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
3274         registers to 0.
3275         (movdi_internal64): Likewise.
3276
3277 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
3278
3279         PR tree-optimization/47127
3280         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
3281         parameter.
3282         (set_cloog_options): Same.
3283         (scop_to_clast): Same.
3284         (print_clast_stmt): Do not call cloog_state_malloc and
3285         cloog_state_free.
3286         (print_generated_program): Same.
3287         (gloog): Same.
3288         * graphite-clast-to-gimple.h (cloog_state): Declared.
3289         (scop_to_clast): Adjust declaration.
3290         * graphite.c (cloog_state): Defined here.
3291         (graphite_initialize): Call cloog_state_malloc.
3292         (graphite_finalize): Call cloog_state_free.
3293
3294 2011-03-11  Jason Merrill  <jason@redhat.com>
3295
3296         * attribs.c (lookup_attribute_spec): Take const_tree.
3297         * tree.h: Adjust.
3298
3299 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
3300
3301         * config/sparc/sparc.c (sparc_option_override): Use
3302         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
3303
3304 2011-03-11  Richard Guenther  <rguenther@suse.de>
3305
3306         PR tree-optimization/48067
3307         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
3308         multiplication result will be only used once on the target
3309         stmt.
3310
3311 2011-03-11  Richard Guenther  <rguenther@suse.de>
3312
3313         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
3314
3315 2011-03-11  Richard Guenther  <rguenther@suse.de>
3316
3317         PR lto/48073
3318         * tree.c (find_decls_types_r): Do not walk types only reachable
3319         from IDENTIFIER_NODEs.
3320
3321 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
3322
3323         PR middle-end/48044
3324         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
3325         all vnode->force_output nodes as needed.
3326
3327 2011-03-11  Jason Merrill  <jason@redhat.com>
3328
3329         PR c++/48069
3330         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
3331         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
3332
3333 2011-03-11  Martin Jambor  <mjambor@suse.cz>
3334
3335         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
3336         cgraph_node.
3337
3338 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
3339
3340         PR tree-optimization/48063
3341         * ipa-inline.c (cgraph_decide_inlining): Don't try to
3342         inline functions called once if !tree_can_inline_p (node->callers).
3343
3344 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
3345
3346         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
3347         extra_objs.
3348         * config/score/score3.c: Delete.
3349         * config/score/score3.h: Delete.
3350         * config/score/mul-div.S: Delete.
3351         * config/score/sfp-machine.h: Add new file.
3352         * config/score/constraints.md: Add new file.
3353         * config/score/t-score-softfp: Add new file.
3354         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
3355         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
3356         (score7_extra_constraint): Delete.
3357         (score7_option_override): Remove unused code.
3358         * config/score/score.c: Remove score3 and score5 define and code.
3359         * config/score/score.h: Remove score3 and score5 define and code.
3360         * config/score/score.md: Remove score3 template and unusual insn.
3361         * config/score/score.opt: Remove score3 and score5 options.
3362
3363 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3364
3365         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
3366         when _HPUX_SOURCE is defined.
3367         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
3368
3369 2011-03-10  Jason Merrill  <jason@redhat.com>
3370
3371         PR c++/48029
3372         * stor-layout.c (layout_type): Don't set structural equality
3373         on arrays of incomplete type.
3374         * tree.c (type_hash_eq): Handle comparing them properly.
3375
3376 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
3377
3378         PR debug/48043
3379         * config/s390/s390.c (s390_delegitimize_address): Make sure the
3380         result mode matches original rtl mode.
3381
3382 2011-03-10  Nick Clifton  <nickc@redhat.com>
3383
3384         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
3385         (andsi3, andsi3_flags): Fix timings for three operand alternative.
3386
3387 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
3388
3389         PR rtl-optimization/47866
3390         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
3391         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
3392         if target wasn't scalar.
3393         * function.c (assign_stack_temp_for_type): Assert that neither
3394         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
3395         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
3396         macro.
3397         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
3398
3399 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3400
3401         * config/s390/s390-protos.h (s390_label_align): New prototype.
3402         * config/s390/s390.c (s390_label_align): New function.
3403         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
3404
3405 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
3406
3407         PR target/47755
3408         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
3409         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
3410         (output_vec_const_move): Ditto.
3411
3412 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
3413
3414         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
3415         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
3416         * config/mips/mips.c (mips_preferred_reload_class): Make static.
3417         Change 'rclass' argument and result type to reg_class_t.
3418         (TARGET_PREFERRED_RELOAD_CLASS): Define.
3419
3420 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
3421
3422         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3423         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
3424         (TARGET_MEMORY_MOVE_COST): Define.
3425         (avr_register_move_cost, avr_memory_move_cost): New Functions.
3426
3427 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
3428
3429         PR debug/47881
3430         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
3431         removed anything.
3432
3433         PR tree-optimization/48022
3434         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
3435         for EQ/NE_EXPR.
3436
3437 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
3438
3439         PR debug/47991
3440         * var-tracking.c (find_use_val): Return NULL for
3441         cui->sets && cui->store_p BLKmode MEMs.
3442
3443 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
3444
3445         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3446         Remove.
3447         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
3448         xstormy16_print_operand_address): Remove.
3449         * config/stormy16/stormy16.c (xstormy16_print_operand,
3450         xstormy16_print_operand_address): Make static.
3451         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3452
3453 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
3454
3455         PR target/47862
3456         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3457         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
3458         before definition.
3459
3460 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
3461
3462         PR bootstrap/48000
3463         * cfgloopmanip.c (fix_bb_placements): Return immediately
3464         if FROM is BASE_LOOP's header.
3465
3466 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
3467
3468         * gimplify.c (gimplify_function_tree): Fix building calls
3469         to __builtin_return_address.
3470
3471 2011-03-07  Alan Modra  <amodra@gmail.com>
3472
3473         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
3474         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
3475         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
3476         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
3477         return_mode args.
3478         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
3479         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
3480         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
3481         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
3482         * config/rs6000/rs6000.c
3483         (rs6000_elf_end_indicate_exec_stack): Rename to..
3484         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
3485         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
3486         (rs6000_file_start): ..here.
3487         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
3488         file scope variables.
3489         (call_ABI_of_interest): New function.
3490         (init_cumulative_args): Set above vars when function return value
3491         is a float, vector, or small struct.
3492         (rs6000_function_arg_advance_1): Likewise for function args.
3493         (rs6000_va_start): Set rs6000_passes_float if variable arg function
3494         references float args.
3495
3496 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
3497
3498         * doc/cfg.texi: Remove "See" before @ref.
3499         * doc/invoke.texi: Likewise.
3500
3501 2011-03-05  Jason Merrill  <jason@redhat.com>
3502
3503         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
3504
3505 2011-03-05  Anthony Green  <green@moxielogic.com>
3506
3507         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
3508
3509 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
3510
3511         PR rtl-optimization/47899
3512         * cfgloopmanip.c (fix_bb_placements): Fix first argument
3513         to flow_loop_nested_p when moving the loop upward.
3514
3515 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
3516
3517         PR target/47719
3518         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
3519
3520 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
3521
3522         PR tree-optimization/47967
3523         * ipa-cp.c (build_const_val): Return NULL instead of creating
3524         VIEW_CONVERT_EXPR for mismatching sizes.
3525         (ipcp_create_replace_map): Return NULL if build_const_val failed.
3526         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
3527         give up on versioning.
3528
3529 2011-03-05  Alan Modra  <amodra@gmail.com>
3530
3531         PR target/47986
3532         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3533         full cmodel medium/large lo_sum + high addresses.
3534
3535 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3536
3537         * config/s390/s390.c (s390_decompose_address): Reject non-literal
3538         pool references in UNSPEC_LTREL_OFFSET.
3539
3540 2011-03-04  Jan Hubicka  <jh@suse.cz>
3541
3542         PR lto/47497
3543         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
3544         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
3545         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk): Add node pointers.
3546         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
3547         cgraph_add_thunk): Add node pointers.
3548         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
3549         associated to right node.
3550         (input_node): Update use of cgraph_same_body_alias
3551         and cgraph_add_thunk.
3552
3553 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
3554
3555         * config/i386/i386.opt (mprefer-avx128): New flag.
3556         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
3557         when the flag -mprefer-avx128 is on.
3558
3559 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
3560
3561         * dwarf2out.c (compare_loc_operands): Fix address handling.
3562
3563 2011-03-04  Alan Modra  <amodra@gmail.com>
3564
3565         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
3566
3567 2011-03-04  Richard Guenther  <rguenther@suse.de>
3568
3569         PR middle-end/47968
3570         * expmed.c (extract_bit_field_1): Prefer vector modes that
3571         vec_extract patterns can handle.
3572
3573 2011-03-04  Richard Guenther  <rguenther@suse.de>
3574
3575         PR middle-end/47975
3576         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
3577
3578 2011-03-04  Richard Henderson  <rth@redhat.com>
3579
3580         * explow.c (emit_stack_save): Remove 'after' parameter.
3581         (emit_stack_restore): Likewise.
3582         * expr.h: Update to match.
3583         * builtins.c, calls.c, stmt.c: Likewise.
3584         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
3585         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
3586         * function.c (expand_function_end): Insert the emit_stack_save
3587         sequence before parm_birth_insn instead of after.
3588
3589 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
3590
3591         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
3592         (ssse3_pmaddubsw128): Ditto.
3593         (ssse3_pmaddubsw): Ditto.
3594
3595 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
3596
3597         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
3598
3599 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
3600
3601         PR c/47963
3602         * gimplify.c (omp_add_variable): Only call omp_notice_variable
3603         on TYPE_SIZE_UNIT if it is a DECL.
3604
3605         PR debug/47283
3606         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
3607         first operand is not is_gimple_mem_ref_addr, try to fold it.
3608         If the operand still isn't is_gimple_mem_ref_addr, clear
3609         MEM_EXPR on op0.
3610
3611 2011-03-03  Richard Guenther  <rguenther@suse.de>
3612
3613         PR middle-end/47283
3614         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
3615         match comment.
3616         (refs_may_alias_p_1): For release branches return true if
3617         we are confused by our input.
3618
3619 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3620
3621         * config/s390/s390.c (s390_function_value): Rename to ...
3622         (s390_function_and_libcall_value): ... this.
3623         (s390_function_value): New function.
3624         (s390_libcall_value): New function.
3625         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
3626         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
3627         target macro definitions.
3628         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
3629
3630 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
3631
3632         * config/i386/freebsd64.h (CC1_SPEC): Define.
3633         * config/i386/linux64.h (CC1_SPEC): Define.
3634         * config/i386/x86-64.h (CC1_SPEC): Don't define.
3635
3636 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
3637
3638         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3639         Remove.
3640         * config/stormy16/stormy16.c: Include reload.h.
3641         (xstormy16_memory_move_cost): New function.
3642         (TARGET_MEMORY_MOVE_COST): Define.
3643
3644 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
3645
3646         PR rtl-optimization/47925
3647         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
3648         with side effects.  Remove the more-specific check for volatile asms.
3649
3650 2011-03-02  Alan Modra  <amodra@gmail.com>
3651
3652         PR target/47935
3653         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
3654         toc relative addresses for valid offsets.
3655
3656 2011-03-01  Richard Guenther  <rguenther@suse.de>
3657
3658         PR tree-optimization/47890
3659         * tree-vect-loop.c (get_initial_def_for_induction): Set
3660         related stmt properly.
3661
3662 2011-03-01  Richard Guenther  <rguenther@suse.de>
3663
3664         PR lto/47924
3665         * lto-streamer.c (lto_record_common_node): Also register
3666         the canonical type.
3667
3668 2011-03-01  Richard Guenther  <rguenther@suse.de>
3669
3670         PR lto/46911
3671         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3672         Do not stream DECL_ABSTRACT_ORIGIN.
3673         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3674         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3675         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3676         Do not stream DECL_ABSTRACT_ORIGIN.
3677         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3678         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3679
3680 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
3681
3682         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
3683         FUNCTION_VALUE_REGNO_P): Remove.
3684         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
3685         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
3686         Add 'outgoing' argument.
3687         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
3688         function.
3689         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3690         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3691
3692 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
3693
3694         PR debug/28047
3695         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
3696         (lookup_filename): Likewise.
3697         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
3698
3699 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
3700             Jakub Jelinek  <jakub@redhat.com>
3701
3702         PR middle-end/47893
3703         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
3704         (assign_stack_local_1): Change last argument type to int.
3705         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
3706         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
3707         don't record padding space into frame_space_list nor use those areas.
3708         (assign_stack_local): Adjust caller.
3709         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
3710         of assign_stack_local, pass 0 as last argument.
3711         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
3712         callers.
3713
3714 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
3715
3716         PR debug/47283
3717         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
3718         Use target address_mode and pointer_mode hooks instead of hardcoded
3719         Pmode and ptr_mode.  Handle some simple cases of extending if
3720         POINTERS_EXTEND_UNSIGNED < 0.
3721         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
3722         Call convert_debug_memory_address.
3723         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
3724         convert_debug_memory_address.
3725
3726         PR middle-end/46790
3727         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
3728         * configure: Regenerated.
3729         * config.in: Regenerated.
3730         * varasm.c (default_function_section): Return NULL
3731         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
3732
3733 2011-02-28  Martin Jambor  <mjambor@suse.cz>
3734
3735         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
3736         the description to match the printed values.
3737
3738 2011-02-28  Richard Guenther  <rguenther@suse.de>
3739
3740         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
3741         of the copied scope tree.
3742
3743 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3744
3745         * doc/extend.texi (Function Attributes): Avoid deeply (and
3746         wrongly) nested tables.
3747
3748 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
3749
3750         PR middle-end/47903
3751         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
3752         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
3753         r isn't op0 nor op1.
3754
3755 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
3756
3757         * config/avr/avr.md: Remove magic comment for emacs.
3758
3759 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
3760
3761         PR target/45261
3762         * config/avr/avr.c (avr_option_override): Use error on bad options.
3763         (avr_help): New function.
3764         (TARGET_HELP): Define.
3765
3766 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
3767
3768         PR target/42240
3769         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
3770         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
3771
3772 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
3773
3774         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
3775         (ARM Options): Ditto.
3776         (i386 and x86-64 Options): Ditto.
3777         (RX Options): Ditto.
3778         (SPARC Options): Ditto.
3779
3780 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
3781
3782         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
3783         FreeBSD 6 and later.  Generally use cpu generic.
3784
3785 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
3786
3787         * doc/cpp.texi: Update copyright years.
3788
3789 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
3790
3791         PR target/46898
3792         * config/lm32/lm32.md (ashrsi3): Added needed variable.
3793
3794 2011-02-25  Jon Beniston  <jon@beniston.com>
3795
3796         PR target/46898
3797         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
3798         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3799         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
3800         (lm32_block_move_inline): Add type cast to remove warning.
3801         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
3802         (gen_int_relational): Move declarations to start of function.
3803
3804 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
3805
3806         PR tree-optimization/45470
3807         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3808         can throw internally only.
3809         * tree-vect-stmts.c (vectorizable_call): Likewise.
3810
3811 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
3812
3813         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
3814         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3815         * config/stormy16/stormy16-protos.h
3816         (xstormy16_preferred_reload_class): Remove.
3817         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
3818         static. Change 'rclass' argument and return type to reg_class_t.
3819         (TARGET_PREFERRED_RELOAD_CLASS,
3820         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3821
3822 2011-02-24  Richard Guenther  <rguenther@suse.de>
3823
3824         * lto-streamer-in.c (input_bb): Do not find referenced vars
3825         in debug statements.
3826
3827 2011-02-23  Jason Merrill  <jason@redhat.com>
3828
3829         * common.opt (fabi-version): Document v5 and v6.
3830
3831 2011-02-23  Richard Guenther  <rguenther@suse.de>
3832
3833         PR tree-optimization/47849
3834         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
3835
3836 2011-02-23  Jie Zhang  <jie@codesourcery.com>
3837
3838         * opts-common.c (decode_cmdline_option): Print empty string
3839         argument as "" in decoded->orig_option_with_args_text.
3840         * gcc.c (execute): Print empty string argument as ""
3841         in the verbose output.
3842         (do_spec_1): Keep empty string argument.
3843
3844 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
3845
3846         * config.gcc: Declare score-* and crx-* obsolete.
3847
3848 2011-02-23  Jie Zhang  <jie@codesourcery.com>
3849
3850         PR rtl-optimization/47763
3851         * web.c (web_main): Ignore naked clobber when replacing register.
3852
3853 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
3854
3855         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3856         Remove.
3857
3858 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
3859
3860         PR doc/47848
3861         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
3862
3863 2011-02-22  Mike Stump  <mikestump@comcast.net>
3864
3865         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
3866         assembler.
3867         * configure: Regenerate.
3868
3869 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
3870
3871         PR rtl-optimization/46002
3872         * ira-color.c (update_copy_costs): Change class intersection
3873         test to reg_class_contents[] test of 'hard_regno'.
3874
3875 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
3876
3877         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
3878         than Driver option.
3879         * config/hpux11.opt (mt): Likewise.
3880         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
3881         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
3882         * config/vax/elf.opt (mno-asm-pic): Likewise.
3883         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
3884
3885 2011-02-21  Mike Stump  <mikestump@comcast.net>
3886
3887         PR target/47822
3888         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
3889         tree so we can get save the type.
3890         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
3891         for CFString instead of trying to use past the end of the builtins.
3892         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
3893         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
3894         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
3895         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
3896         Rename to darwin_builtin_cfstring.
3897         (darwin_init_cfstring_builtins): Return the built type.
3898
3899 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
3900
3901         PR target/47840
3902         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
3903         (_mm256_insert_epi64): Use _mm_insert_epi64.
3904
3905 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
3906
3907         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3908         * config/stormy16/stormy16-protos.h
3909         (xstormy16_mode_dependent_address_p): Remove.
3910         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
3911         Make static. Change return type to bool. Change argument type to
3912         const_rtx. Remove dead code.
3913         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3914
3915 2011-02-21  Richard Guenther  <rguenther@suse.de>
3916
3917         PR lto/47820
3918         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3919         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3920         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
3921         TUs context.
3922         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3923         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3924
3925 2011-02-20  Richard Guenther  <rguenther@suse.de>
3926
3927         PR lto/47822
3928         * tree.c (free_lang_data_in_decl): Clean builtins from
3929         the TU decl BLOCK_VARS.
3930
3931 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
3932
3933         PR debug/47620
3934         PR debug/47630
3935         * haifa-sched.c (fix_tick_ready): Skip tick computation
3936         for debug insns.
3937
3938 2011-02-19  Richard Guenther  <rguenther@suse.de>
3939
3940         PR lto/47647
3941         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3942         Remove lazy BLOCK_VARS streaming.
3943         (lto_input_ts_block_tree_pointers): Likewise.
3944         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3945
3946 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
3947
3948         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
3949
3950 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
3951
3952         * config/i386/biarch32.h, config/i386/mach.h,
3953         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
3954
3955 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3956
3957         PR target/47800
3958         * config/i386/i386.md (peephole2 for shift and plus): Use
3959         operands[1] original mode in the first insn.
3960
3961 2011-02-18  Mike Stump  <mikestump@comcast.net>
3962
3963         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
3964
3965 2011-02-18  Jan Hubicka  <jh@suse.cz>
3966
3967         PR middle-end/47788
3968         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
3969         to zero when the function is not inlinable at all.
3970
3971 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3972
3973         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
3974         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3975         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
3976         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
3977         * config/pa/t-pa64: Likewise.
3978         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3979
3980 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
3981
3982         PR driver/47787
3983         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
3984
3985 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3986
3987         PR target/47792
3988         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
3989
3990 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
3991
3992         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3993         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
3994         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
3995         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3996         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
3997         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
3998         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
3999         m32r_load_postinc_p, m32r_store_preinc_predec_p,
4000         m32r_legitimate_address_p): New functions.
4001         * config/m32r/constraints.md (constraint "S"): Don't use
4002         STORE_PREINC_PREDEC_P.
4003         (constraint "U"): Don't use LOAD_POSTINC_P.
4004
4005 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
4006
4007         PR rtl-optimization/46178
4008         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4009         compute ira_hard_regno_cover_class[].
4010
4011 2011-02-18  Richard Guenther  <rguenther@suse.de>
4012
4013         PR lto/47798
4014         * lto-streamer.h (lto_global_var_decls): Declare.
4015         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4016         statics for global var processing.
4017
4018 2011-02-18  Richard Guenther  <rguenther@suse.de>
4019
4020         PR tree-optimization/47737
4021         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4022         edge dominance check.
4023
4024 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
4025
4026         PR debug/47780
4027         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4028         avoid invalid rtx sharing.
4029
4030 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
4031
4032         * doc/cpp.texi (Obsolete Features): Add background on the
4033         origin of assertions.
4034
4035 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
4036
4037         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
4038         objc_abi == 2.
4039         * config/darwin.c (output_objc_section_asm_op): Added support for
4040         ABI v1 and v2.
4041         (is_objc_metadata): New.
4042         (darwin_objc2_section): New.
4043         (darwin_objc1_section): New.
4044         (machopic_select_section): Added support for ABI v1 and v2.
4045         (darwin_emit_objc_zeroed): New.
4046         (darwin_output_aligned_bss): Detect objc metadata and treat it
4047         appropriately.
4048         (darwin_asm_output_aligned_decl_common): Same.
4049         (darwin_asm_output_aligned_decl_local): Same.
4050         * config/darwin-sections.def: Updated for ABI v1 and v2.
4051         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4052         compiling Objective-C code for the NeXT runtime, default to using
4053         ABI version 0 for 32-bit, and version 2 for 64-bit.
4054
4055 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4056
4057         * common.opt (optimize_fast): New Variable.
4058         * opts.c (default_options_optimization): Use opts->x_optimize_fast
4059         instead of local variable ofast.
4060
4061 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4062
4063         * doc/invoke.texi (fobjc-abi-version): Documented.
4064         (fobjc-nilcheck): Documented.
4065         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4066         version.
4067
4068 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4069
4070         PR driver/47390
4071         * common.opt (export-dynamic): New Driver option.
4072         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4073
4074 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4075
4076         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4077
4078 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
4079             Jan Hubicka  <jh@suse.cz>
4080
4081         PR debug/47106
4082         PR debug/47402
4083         * cfgexpand.c (account_used_vars_for_block): Remove.
4084         (estimated_stack_frame_size): Use referenced vars.
4085         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4086         that were referenced in the original function.  Test src_fn
4087         rather than cfun.  Drop redundant get_var_ann.
4088         (setup_one_parameter): Drop redundant get_var_ann.
4089         (declare_return_variable): Likewise.
4090         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4091         (copy_arguments_for_versioning): Drop redundant get_var_ann.
4092         * ipa-inline.c (compute_inline_parameters): Do not compute
4093         disregard_inline_limits here.
4094         (compute_inlinable_for_current, pass_inlinable): New.
4095         (pass_inline_parameters): Require PROP_referenced_vars.
4096         * cgraphunit.c (cgraph_process_new_functions): Don't run
4097         compute_inline_parameters explicitly unless function is in SSA form.
4098         (cgraph_analyze_function): Set .disregard_inline_limits.
4099         * tree-sra.c (convert_callers): Compute inliner parameters
4100         only for functions already in SSA form.
4101
4102 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4103
4104         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4105         -mlittle-endian-data.
4106
4107 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4108
4109         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4110         -mno-fpu, not -fpu and -no-fpu.
4111         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4112         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4113
4114 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
4115
4116         PR target/43653
4117         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4118         input reload with PLUS RTX.
4119
4120 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4121
4122         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4123         of InverseVar(MDMX).
4124
4125 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4126
4127         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4128         --m4-340.
4129
4130 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4131
4132         * config/mn10300/mn10300.opt (mno-crt0): New.
4133
4134 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4135
4136         * config/m68k/uclinux.opt (static-libc): New Driver option.
4137
4138 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4139
4140         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4141
4142 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4143
4144         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4145         %{muser-extend-enabled}.
4146
4147 2011-02-16  Richard Guenther  <rguenther@suse.de>
4148
4149         PR tree-optimization/47738
4150         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4151         the TODO from tree_predictive_commoning.
4152
4153 2011-02-15  Jeff Law  <law@redhat.com>
4154
4155         Revert
4156         2011-01-25  Jeff Law  <law@redhat.com>
4157
4158         PR rtl-optimization/37273
4159         * ira-costs.c (scan_one_insn): Detect constants living in memory and
4160         handle them like argument loads from stack slots.  Do not double
4161         count memory for memory constants and argument loads from stack slots.
4162
4163 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
4164
4165         PR middle-end/47725
4166         * combine.c (cant_combine_insn_p): Revert the last change.
4167
4168 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
4169
4170         PR target/47755
4171         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
4172         mode for vector constants.  Remove code that checks for TImode.
4173
4174 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
4175
4176         PR debug/47106
4177         PR debug/47402
4178         * cgraph.h (compute_inline_parameters): Return void.
4179         * ipa-inline.c (compute_inline_parameters): Adjust.
4180
4181 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
4182
4183         PR debug/47106
4184         PR debug/47402
4185         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
4186         rather than decl.
4187         * cfgexpand.c (estimated_stack_frame_size): Likewise.
4188         * ipa-inline.c (compute_inline_parameters): Adjust.
4189
4190 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
4191
4192         PR debug/47106
4193         PR debug/47402
4194         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4195         Adjust all users.  Pass FN to...
4196         * tree-flow-inline.h (first_referenced_var): ... this.  Add
4197         fn argument.
4198         * ipa-struct-reorg.c: Adjust.
4199         * tree-dfa.c: Adjust.
4200         * tree-into-ssa.c: Adjust.
4201         * tree-sra.c: Adjust.
4202         * tree-ssa-alias.c: Adjust.
4203         * tree-ssa-live.c: Adjust.
4204         * tree-ssa.c: Adjust.
4205         * tree-ssanames.c: Adjust.
4206         * tree-tailcall.c: Adjust.
4207
4208 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
4209
4210         PR debug/47106
4211         PR debug/47402
4212         * tree-flow.h (referenced_var_lookup): Add fn parameter.
4213         Adjust all callers.
4214         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4215         * tree-flow-inline.h: Adjust.
4216         * gimple-pretty-print.c: Adjust.
4217         * tree-into-ssa.c: Adjust.
4218         * tree-ssa.c: Adjust.
4219         * cfgexpand.c: Adjust.
4220
4221 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
4222
4223         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4224         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4225         (EXTRA_CONSTRAINT): Delete.
4226         * config/iq2000/constraints.md: New file.
4227         * config/iq2000/iq2000.md: Include it.
4228         (define_insn ""): Delete.
4229         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4230         unsupported constraint letters from patterns.
4231         (call_value, call_value_internal1): Likewise.
4232         (call_value_multiple_internal1): Likewise.
4233
4234 2011-02-15  Nick Clifton  <nickc@redhat.com>
4235
4236         * config/mn10300/mn10300.c: Include tm-constrs.h.
4237         (struct liw_data): New data structure describing an LIW candidate
4238         instruction.
4239         (extract_bundle): Use struct liw_data.  Allow small integer
4240         operands for some instructions.
4241         (check_liw_constraints): Use struct liw_data.  Remove swapped
4242         parameter.  Add comments describing the checks.  Fix bug when
4243         assigning the source of liw1 to the source of liw2.
4244         (liw_candidate): Delete.  Code moved into extract_bundle.
4245         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
4246         before swapping.
4247         * config/mn10300/predicates.md (liw_operand): New predicate.
4248         Allows registers and small integer constants.
4249         * config/mn10300/constraints.md (O): New constraint.  Accetps
4250         integers in the range -8 to +7 inclusive.
4251         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4252         for moving a small integer into a register.  Give this alternative
4253         LIW attributes.
4254         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
4255         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
4256         using the J,K,L and M constraints,
4257         (liw): Remove SI mode on second operands to allow for HI and QI
4258         mode values.
4259         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
4260         instruction.
4261
4262 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
4263
4264         PR middle-end/47725
4265         * combine.c (cant_combine_insn_p): Check zero/sign extended
4266         hard registers.
4267
4268 2011-02-15  Richard Guenther  <rguenther@suse.de>
4269
4270         PR tree-optimization/47743
4271         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
4272         for a non-type-compatible VN lookup bail out.
4273
4274 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
4275
4276         * config/fr30/constraints.md: New file.
4277         * config/fr30/fr30.md: Include it.
4278         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
4279         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4280         (EXTRA_CONSTRAINT): Delete.
4281
4282 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
4283
4284         * config/frv/constraints.md: New file.
4285         * config/frv/predicates.md: Include it.
4286         * config/frv/frv.c (reg_class_from_letter): Delete.
4287         (frv_option_override): Don't initialize it.
4288         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
4289         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
4290         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
4291         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4292         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
4293         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4294         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
4295         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
4296         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
4297         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
4298         (REG_CLASS_FROM_CONSTRAINT): Delete.
4299
4300 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
4301
4302         PR middle-end/47581
4303         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
4304         if frame size is 0 in a leaf function.
4305
4306 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4307
4308         PR pch/14940
4309         * config/alpha/host-osf.c: New file.
4310         * config/alpha/x-osf: New file.
4311         * config.host (alpha*-dec-osf*): Use it.
4312
4313 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
4314
4315         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4316         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
4317         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
4318         (rx_mode_dependent_address_p): ...this. Make static. Change argument
4319         type to const_rtx.
4320         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4321
4322 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
4323
4324         * config/stormy16/constraints.md: New file.
4325         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
4326         Use satisfies_constraint_Q and satisfies_constraint_R.
4327         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
4328         Delete.
4329         (xstormy16_legitiamte_address_p): Declare.
4330         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
4331         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4332         (EXTRA_CONSTRAINT): Delete.
4333         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4334         Un-staticize.
4335         (xstormy16_extra_constraint_p): Delete.
4336
4337 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
4338
4339         PR tree-optimization/46494
4340         * loop-unroll.c (split_edge_and_insert): Adjust comment.
4341         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
4342         (pass_rtl_loop_done): Add TODO_verify_flow.
4343         * fwprop.c (pass_rtl_fwprop): Likewise.
4344         * modulo-sched.c (pass_sms): Likewise.
4345         * tree-ssa-dom.c (pass_dominator): Likewise.
4346         * tree-ssa-loop-ch.c (pass_ch): Likewise.
4347         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
4348         (pass_tree_loop_done): Likewise.
4349         * tree-ssa-pre.c (execute_pre): Likewise.
4350         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4351         * tree-ssa-sink.c (pass_sink_code): Likewise.
4352         * tree-vrp.c (pass_vrp): Likewise.
4353
4354 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
4355
4356         * config/v850/constraints.md: New file.
4357         * config/v850/v850.md: Include it.
4358         * config/v850/predicates.md (reg_or_0_operand): Use
4359         satisfies_constraint_G.
4360         (special_symbolref_operand): Use satisfies_constraint_K.
4361         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
4362         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4363         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
4364         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4365         (EXTRA_CONSTRAINT): Delete.
4366         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
4367         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
4368         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
4369
4370 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
4371
4372         PR target/47696
4373         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
4374         description.
4375
4376 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
4377
4378         * config/mcore/constraints.md: New file.
4379         * config/mcore/mcore.md: Include it.
4380         * config/mcore/mcore.c (reg_class_from_letter): Delete.
4381         * config/mcore/mcore.h (reg_class_from_letter): Delete.
4382         (REG_CLASS_FROM_LETTER): Delete.
4383         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
4384         insn_const_int_ok_for_constraint.
4385         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
4386         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
4387         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4388         (EXTRA_CONSTRAINT): Delete.
4389
4390 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4391
4392         PR ada/41929
4393         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
4394         (IS_SIGHANDLER): Define.
4395         (sparc64_is_sighandler): New function, split off from
4396         sparc64_fallback_frame_state.
4397         (sparc_is_sighandler): New function, split off from
4398         sparc_fallback_frame_state.
4399         (sparc64_fallback_frame_state): Merge with ...
4400         (sparc_fallback_frame_state): ... this into ...
4401         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
4402         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
4403         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
4404         stack instead of hardcoded offsets.
4405
4406 2011-02-14  Andriy Gapon  <avg@freebsd.org>
4407
4408         PR target/45808
4409         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
4410
4411 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4412
4413         * configure: Regenerate.
4414
4415 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
4416
4417         PR driver/45731
4418         * gcc.c (asm_options): Correct spec matching --target-help.
4419
4420 2011-02-12  Martin Jambor  <mjambor@suse.cz>
4421
4422         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
4423         to gimple call error.
4424
4425 2011-02-12  Mike Stump  <mikestump@comcast.net>
4426
4427         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
4428         comments in backslash regions.
4429
4430 2011-02-12  Mike Stump  <mikestump@comcast.net>
4431             Jakub Jelinek  <jakub@redhat.com>
4432             Iain Sandoe  <iains@gcc.gnu.org>
4433
4434         PR target/47324
4435         * dwarf2out.c (output_cfa_loc): When required, apply the
4436         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
4437         (output_loc_sequence): Likewise.
4438         (output_loc_operands_raw): Likewise.
4439         (output_loc_sequence_raw): Likewise.
4440         (output_cfa_loc): Likewise.
4441         (output_loc_list): Suppress register number adjustment when
4442         calling output_loc_sequence()
4443         (output_die): Likewise.
4444
4445 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
4446
4447         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4448         Remove macros.
4449         * config/xtensa/xtensa.c (xtensa_register_move_cost,
4450         xtensa_memory_move_cost): New functions.
4451         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
4452
4453 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
4454
4455         PR lto/47225
4456         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
4457         in the current directory.
4458         * configure: Rebuilt.
4459
4460 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
4461
4462         * config/darwin.c (darwin_override_options): Add a hunk missed
4463         from the commit of r168571.  Trim comment line lengths and
4464         correct indents of the preceding block.
4465
4466 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
4467
4468         * gcc.c (driver_handle_option): Concatenate the argument to -F with
4469         the switch.
4470
4471 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
4472
4473         * common.opt (nostartfiles): New Driver option.
4474
4475 2011-02-11  Xinliang David Li  <davidxl@google.com>
4476
4477         PR tree-optimization/47707
4478         * tree-chrec.c (convert_affine_scev): Keep type precision.
4479
4480 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
4481
4482         PR tree-optimization/47420
4483         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
4484
4485 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
4486
4487         PR rtl-optimization/47614
4488         * rtl.h (check_for_inc_dec): Declare.
4489         * dse.c (check_for_inc_dec): Externalize...
4490         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
4491         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
4492
4493 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
4494
4495         PR driver/47678
4496         * gcc.c (main): Do not compile inputs if there were errors in
4497         option handling.
4498         * opts-common.c (read_cmdline_option): Check for wrong language
4499         after other error checks.
4500
4501 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
4502
4503         * cgraph.c: Fix comment typos.
4504         * cgraph.h: Likewise.
4505         * cgraphunit.c: Likewise.
4506         * ipa-cp.c: Likewise.
4507         * ipa-inline.c: Likewise.
4508         * ipa-prop.c: Likewise.
4509         * ipa-pure-const.c: Likewise.
4510         * ipa-ref.c: Likewise.
4511         * ipa-reference.c: Likewise.
4512
4513 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
4514
4515         PR debug/47684
4516         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
4517
4518 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4519
4520         PR testsuite/47400
4521         * doc/sourcebuild.texi (Require Support): Document
4522         dg-require-ascii-locale.
4523
4524 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
4525
4526         * doc/lto.texi (Write summary): Fix missing parentheses.
4527
4528 2011-02-10  DJ Delorie  <dj@redhat.com>
4529
4530         * config/m32c/m32c.c (m32c_option_override): Disable
4531         -fcombine-stack-adjustments until flag value tracking and compare
4532         optimization can be rewritten.
4533
4534 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
4535
4536         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
4537         PROCESSOR_POWER7.
4538         (PROCESSOR_DEFAULT64): Likewise.
4539
4540 2011-02-10  Richard Henderson  <rth@redhat.com>
4541
4542         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
4543         change from 2011-02-03.
4544         * config/rx/rx.c (flags_from_code): Likewise.
4545         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
4546         is valid, n/pz otherwise.
4547         (rx_select_cc_mode): Return CCmode if Y is not zero.
4548
4549 2011-02-10  Richard Guenther  <rguenther@suse.de>
4550
4551         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
4552
4553 2011-02-10  Richard Guenther  <rguenther@suse.de>
4554
4555         PR tree-optimization/47677
4556         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
4557
4558 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
4559
4560         PR target/47665
4561         * combine.c (make_compound_operation): Only change shifts into
4562         multiplication for SCALAR_INT_MODE_P.
4563
4564 2011-02-10  Jie Zhang  <jie@codesourcery.com>
4565
4566         PR testsuite/47622
4567         Revert
4568         2011-02-05  Jie Zhang  <jie@codesourcery.com>
4569         PR debug/42631
4570         * web.c (entry_register): Don't clobber the number of the
4571         first uninitialized reference in used[].
4572
4573 2011-02-09  Richard Guenther  <rguenther@suse.de>
4574
4575         PR tree-optimization/47664
4576         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
4577         all edges again.
4578
4579 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
4580
4581         PR target/46481
4582         PR target/47032
4583         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
4584         PROCESSOR_POWER7.
4585         (PROCESSOR_DEFAULT64): Same.
4586         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
4587
4588 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4589
4590         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
4591
4592 2011-02-09  Martin Jambor  <mjambor@suse.cz>
4593
4594         PR middle-end/45505
4595         * tree-sra.c (struct access): New flags grp_scalar_read and
4596         grp_scalar_write.  Changed description of assignment read and write
4597         flags.
4598         (dump_access): Dump new flags, reorder all of them.
4599         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
4600         to detect multiple scalar reads.
4601         (analyze_access_subtree): Use the new scalar read write flags instead
4602         of the old flags.  Adjusted comments.
4603
4604 2011-02-08  DJ Delorie  <dj@redhat.com>
4605
4606         PR target/47548
4607         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
4608         patterns.
4609
4610 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4611
4612         * config/m68k/uclinux.opt: New.
4613         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
4614
4615 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4616
4617         * config/cris/elf.opt (sim): New Driver option.
4618
4619 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4620
4621         * config/xtensa/elf.opt: New.
4622         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
4623
4624 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4625
4626         * config/vax/elf.opt: New.
4627         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
4628
4629 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4630
4631         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
4632
4633 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4634
4635         * config/gnu-user.opt: New.
4636         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
4637         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
4638         *-*-uclinux*): Use gnu-user.opt.
4639
4640 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
4641
4642         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
4643         * config/i386/gnu.h (CPP_SPEC): Likewise.
4644
4645 2011-02-08  Ian Lance Taylor  <iant@google.com>
4646
4647         * common.opt (fcx-limited-range): Add SetByCombined flag.
4648         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
4649         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
4650         (fassociative-math, freciprocal-math): Likewise.
4651         (funsafe-math-optimizations): Likewise.
4652         * opth-gen.awk: Handle SetByCombined.
4653         * optc-gen.awk: Likewise.
4654         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
4655         (set_unsafe_math_optimizations_flags): Likewise.
4656         * doc/options.texi (Option properties): Document SetByCombined.
4657
4658 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4659
4660         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
4661         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
4662         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
4663         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
4664         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
4665
4666 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
4667
4668         PR tree-optimization/46834
4669         PR tree-optimization/46994
4670         PR tree-optimization/46995
4671         * graphite-sese-to-poly.c (used_outside_reduction): New.
4672         (detect_commutative_reduction): Call used_outside_reduction.
4673         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
4674         translate_scalar_reduction_to_array only when at least one
4675         loop-phi/close-phi tuple has been detected.
4676
4677 2011-02-08  Richard Guenther  <rguenther@suse.de>
4678
4679         PR middle-end/47639
4680         * tree-vect-generic.c (expand_vector_operations_1): Update
4681         stmts here ...
4682         (expand_vector_operations): ... not here.  Cleanup EH info
4683         and the CFG if required.
4684
4685 2011-02-08  Richard Guenther  <rguenther@suse.de>
4686
4687         PR tree-optimization/47641
4688         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
4689         require type compatibility.
4690
4691 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4692
4693         * gimple-low.c (lower_function_body): Don't remove the location of
4694         the return statement here.
4695         (lower_gimple_return): Do it here instead but only if the return
4696         statement is actually used twice.
4697
4698 2011-02-08  Richard Guenther  <rguenther@suse.de>
4699
4700         PR tree-optimization/47632
4701         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
4702         unused up_to_stmt parameter, return whether cfg-cleanup is
4703         necessary, remove EH info properly.
4704         (forward_propagate_into_gimple_cond): Adjust caller.
4705         (forward_propagate_into_cond): Likewise.
4706         (forward_propagate_comparison): Likewise.
4707         (tree_ssa_forward_propagate_single_use_vars): Make
4708         forward_propagate_comparison case similar to the two others.
4709
4710 2011-02-08  Nick Clifton  <nickc@redhat.com>
4711
4712         * config/mn10300/mn10300.opt (mliw): New command line option.
4713         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
4714         (liw_bundling): New automaton.
4715         (liw): New attribute.
4716         (liw_op): New attribute.
4717         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
4718         (movsi_internal): Add LIW attributes.
4719         (andsi3): Likewise.
4720         (iorsi3): Likewise.
4721         (xorsi3): Likewise.
4722         (addsi3): Separate register and immediate alternatives.
4723         Add LIW attributes.
4724         (subsi3): Likewise.
4725         (cmpsi): Likewise.
4726         (aslsi3): Likewise.
4727         (lshrsi3): Likewise.
4728         (ashrsi3): Likewise.
4729         (liw): New pattern.
4730         * config/mn10300/mn10300.c (liw_op_names): New
4731         (mn10300_print_operand): Handle 'W' operand descriptor.
4732         (extract_bundle): New function.
4733         (check_liw_constraints): New function.
4734         (liw_candidate): New function.
4735         (mn10300_bundle_liw): New function.
4736         (mn10300_reorg): New function.
4737         (TARGET_MACHINE_DEPENDENT_REORG): Define.
4738         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
4739         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
4740         __LIW__ or __NO_LIW__.
4741         * doc/invoke.texi: Describe the -mliw command line option.
4742
4743 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4744
4745         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
4746         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4747         pthread_mutex_unlock): Remove.
4748         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
4749         * config/pa/t-pa64: Likewise.
4750         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
4751         shared libc if not linking against libpthread.
4752         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4753
4754 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
4755
4756         PR target/47558
4757         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
4758         on 10.6 and later to ensure that we always use the unwinder from
4759         the system.  Only add -no_compact_unwind when tarteting darwin
4760         10.6 or later.
4761
4762 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
4763
4764         PR target/46997
4765         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
4766         (vec_interleave_lowv2sf): Ditto.
4767         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
4768         (vec_extract_oddv2sf): Ditto.
4769
4770 2011-02-07  Mike Stump  <mikestump@comcast.net>
4771
4772         PR target/42333
4773         Add __ieee_divdc3 entry point.
4774         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
4775         entry point.
4776         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
4777         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
4778         * config/darwin.c (darwin_rename_builtins): Add.
4779         * config/darwin-protos.h (darwin_rename_builtins): Add.
4780
4781 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
4782
4783         PR target/47636
4784         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
4785         for the condition.
4786
4787 2011-02-07  Mike Stump  <mikestump@comcast.net>
4788
4789         * config/darwin.opt (mmacosx-version-min): Update default OS version.
4790
4791 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
4792
4793         PR target/47534
4794         * config/avr/libgcc.S (exit): Move .endfunc
4795
4796 2011-02-07  Richard Guenther  <rguenther@suse.de>
4797
4798         PR tree-optimization/47615
4799         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
4800         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
4801         (run_scc_vn): Initialize it.
4802         (visit_reference_op_load): Use it.
4803         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
4804
4805 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4806
4807         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
4808         DImode trapping arithmetic libfuncs.
4809
4810 2011-02-07  Richard Guenther  <rguenther@suse.de>
4811
4812         PR tree-optimization/47621
4813         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
4814         two duplicates ...
4815         (execute_update_addresses_taken): ... here.  Make it more
4816         conservative in what we accept.
4817
4818 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
4819
4820         * config/sparc/freebsd.h (ASM_SPEC): Define.
4821         * config/sparc/vxworks.h (ASM_SPEC): Define.
4822
4823 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
4824
4825         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
4826
4827 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
4828
4829         * doc/invoke.texi: Remove reference to compiler internals from
4830         user documentation.
4831
4832         * reg-notes.def: Remove REG_VALUE_PROFILE.
4833         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
4834
4835 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
4836
4837         PR middle-end/47610
4838         * varasm.c (default_section_type_flags): If decl is NULL,
4839         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
4840
4841 2011-02-05  Jie Zhang  <jie@codesourcery.com>
4842
4843         PR debug/42631
4844         * web.c (entry_register): Don't clobber the number of the
4845         first uninitialized reference in used[].
4846
4847 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
4848
4849         PR tree-optimization/46194
4850         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
4851         (build_classic_dist_vector_1): Do not represent classic distance
4852         vectors when the access functions are variating in different loops.
4853
4854 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
4855
4856         * config/mips/iris6.opt: New.
4857         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
4858
4859 2011-02-04  Richard Henderson  <rth@redhat.com>
4860             Steve Ellcey  <sje@cup.hp.com>
4861
4862         PR target/46997
4863         * config/ia64/predicates.md (mux1_brcst_element): New.
4864         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
4865         * config/ia64/ia64.c (ia64_unpack_assemble): New.
4866         (ia64_unpack_sign): New.
4867         (ia64_expand_unpack): Rewrite using new routines.
4868         (ia64_expand_widen_sum): Ditto.
4869         (ia64_expand_dot_prod_v8qi): Ditto.
4870         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
4871         routines, add endian check.
4872         (pmpy2_even): Rename from pmpy2_r, add endian check.
4873         (pmpy2_odd): Rename from pmpy2_l, add endian check.
4874         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
4875         (vec_widen_smult_hi_v4hi): Ditto.
4876         (vec_widen_umult_lo_v4hi): Ditto.
4877         (vec_widen_umult_hi_v4hi): Ditto.
4878         (mulv2si3): Change endian checks.
4879         (sdot_prodv4hi): Rewrite with new calls.
4880         (udot_prodv4hi): New.
4881         (vec_pack_ssat_v4hi): Add endian check.
4882         (vec_pack_usat_v4hi): Ditto.
4883         (vec_pack_ssat_v2si): Ditto.
4884         (max1_even): Rename from max1_r, add endian check.
4885         (max1_odd): Rename from max1_l, add endian check.
4886         (*mux1_rev): Format change.
4887         (*mux1_mix): Ditto.
4888         (*mux1_shuf): Ditto.
4889         (*mux1_alt): Ditto.
4890         (*mux1_brcst_v8qi): Use new predicate.
4891         (vec_extract_evenv8qi): Remove endian check.
4892         (vec_extract_oddv8qi): Ditto.
4893         (vec_interleave_lowv4hi): Format change.
4894         (vec_interleave_highv4hi): Ditto.
4895         (mix2_even): Rename from mix2_r, add endian check.
4896         (mix2_odd): Rename from mux2_l, add endian check.
4897         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
4898         (vec_extract_evenodd_helper): Format change.
4899         (vec_extract_evenv4hi): Remove endian check.
4900         (vec_extract_oddv4hi): Remove endian check.
4901         (vec_interleave_lowv2si): Format change.
4902         (vec_interleave_highv2si): Format change.
4903         (vec_initv2si): Remove endian check.
4904         (vecinit_v2si): Add endian check.
4905         (reduc_splus_v2sf): Add endian check.
4906         (reduc_smax_v2sf): Ditto.
4907         (reduc_smin_v2sf): Ditto.
4908         (vec_initv2sf): Remove endian check.
4909         (fpack): Add endian check.
4910         (fswap): Add endian check.
4911         (vec_interleave_highv2sf): Add endian check.
4912         (vec_interleave_lowv2sf): Add endian check.
4913         (fmix_lr): Add endian check.
4914         (vec_setv2sf): Format change.
4915         (*vec_extractv2sf_0_be): Use shift to extract operand.
4916         (*vec_extractv2sf_1_be): New.
4917         (vec_pack_trunc_v4hi): Add endian check.
4918         (vec_pack_trunc_v2si): Format change.
4919
4920 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
4921
4922         PR inline-asm/23200
4923         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
4924         do bb, locus and block comparison and disallow loads if it is not set.
4925         (stmt_is_replaceable_p): New function.
4926         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
4927         callers.
4928         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
4929         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
4930         SSA_NAME_DEF_STMT.
4931         * tree-flow.h (stmt_is_replaceable_p): New prototype.
4932
4933 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
4934
4935         * config/rs6000/xilinx.opt: New.
4936         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
4937
4938 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
4939
4940         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
4941
4942 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
4943
4944         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
4945         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4946         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
4947         secondary_reload_info, xtensa_secondary_reload): Remove.
4948         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
4949         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4950         (xtensa_preferred_reload_class): Make static. Change return and
4951         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
4952         Use CONST_DOUBLE_P predicate.
4953         (xtensa_preferred_output_reload_class): New function.
4954         (xtensa_secondary_reload): Make static.
4955
4956 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
4957
4958         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
4959         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
4960         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
4961
4962 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
4963
4964         PR middle-end/31490
4965         * output.h (SECTION_RELRO): Define.
4966         (SECTION_MACH_DEP): Adjust.
4967         (get_variable_section): New prototype.
4968         * varpool.c (varpool_finalize_named_section_flags): New function.
4969         (varpool_assemble_pending_decls): Call it.
4970         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
4971         * cgraphunit.c (cgraph_output_in_order): Call
4972         varpool_finalize_named_section_flags.
4973         * varasm.c (get_section): Allow section flags conflicts between
4974         relro and read-only sections if the section hasn't been declared yet.
4975         Set SECTION_OVERRIDE after diagnosing section type conflict.
4976         (get_variable_section): No longer static.
4977         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
4978         readonly sections that need relocations.
4979         (decl_readonly_section_1): New function.
4980         (decl_readonly_section): Use it.
4981
4982         Revert:
4983         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
4984                     Steve Ellcey  <sje@cup.hp.com>
4985
4986         PR middle-end/31490
4987         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
4988         if section attribute used.
4989
4990 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
4991
4992         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
4993         * config/darwin.c (SECTION_NO_ANCHOR): Define.
4994         (darwin_init_sections): Remove assertion.
4995
4996 2011-02-03  Nick Clifton  <nickc@redhat.com>
4997
4998         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
4999         lt and ge.
5000         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
5001         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
5002         instead of "n" and "pz".
5003         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
5004         CC_FLAG_S.
5005
5006 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
5007
5008         PR target/47312
5009         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5010         fma, expand FMA_EXPR as fma{,f,l} call.
5011
5012         PR lto/47274
5013         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5014         copy them into a unsigned char variable and pass address of it to
5015         lto_output_data_stream.
5016
5017         PR target/47564
5018         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5019         around backend_init_target and lang_dependent_init_target calls.
5020         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5021         (verify_cgraph_node): Don't call set_cfun here.  Use
5022         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5023         Set error_found for incorrectly represented calls to thunks.
5024
5025 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
5026
5027         PR debug/43092
5028         PR rtl-optimization/43494
5029         * rtl.h (for_each_inc_dec_fn): New type.
5030         (for_each_inc_dec): Declare.
5031         * rtlanal.c (struct for_each_inc_dec_ops): New type.
5032         (for_each_inc_dec_find_inc_dec): New fn.
5033         (for_each_inc_dec_find_mem): New fn.
5034         (for_each_inc_dec): New fn.
5035         * dse.c (struct insn_size): Remove.
5036         (replace_inc_dec, replace_inc_dec_mem): Remove.
5037         (emit_inc_dec_insn_before): New fn.
5038         (check_for_inc_dec): Use it, along with for_each_inc_dec.
5039         (canon_address): Pass mem modes to cselib_lookup.
5040         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
5041         (cselib_lookup_from_insn): Likewise.
5042         (cselib_subst_to_values): Likewise.
5043         * cselib.c (find_slot_memmode): New var.
5044         (cselib_find_slot): New fn.  Use it instead of
5045         htab_find_slot_with_hash everywhere.
5046         (entry_and_rtx_equal_p): Use find_slot_memmode.
5047         (autoinc_split): New fn.
5048         (rtx_equal_for_cselib_p): Rename and implement in terms of...
5049         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
5050         Deal with autoinc.  Special-case recursion into MEMs.
5051         (cselib_hash_rtx): Likewise.
5052         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
5053         address and MEM modes.
5054         (cselib_subst_to_values): Add memmode, pass it on.
5055         Deal with autoinc.
5056         (cselib_lookup): Add memmode argument, pass it on.
5057         (cselib_lookup_from_insn): Add memmode.
5058         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5059         (struct cselib_record_autoinc_data): New.
5060         (cselib_record_autoinc_cb): New fn.
5061         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
5062         mode to cselib_lookup.  Reset autoinced REGs here instead of...
5063         (cselib_process_insn): ... here.
5064         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5065         to cselib_lookup.
5066         (add_uses): Likewise, also to cselib_subst_to_values.
5067         (add_stores): Likewise.
5068         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
5069         cselib_subst_to_values.
5070         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
5071         * gcse.c (do_local_cprop): Adjusted.
5072         * postreload.c (reload_cse_simplify_set): Adjusted.
5073         (reload_cse_simplify_operands): Adjusted.
5074         * sel-sched-dump (debug_mem_addr_value): Pass mode.
5075
5076 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
5077
5078         PR tree-optimization/45122
5079         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5080         unsafe assumptions when there's more than one loop exit.
5081
5082 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5083
5084         PR target/47272
5085         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5086         Document using vector double with the load/store builtins, and
5087         that the load/store builtins always use Altivec instructions.
5088
5089         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5090         to use altivec memory instructions, even on VSX.
5091         (vector_altivec_store_<mode>): Ditto.
5092
5093         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5094         function.
5095
5096         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5097         V2DF, V2DI support to load/store overloaded builtins.
5098
5099         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5100         altivec load/store builtins for V2DF/V2DI types.
5101
5102         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5103         set avoid indexed addresses on power6 if -maltivec.
5104         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5105         vector_altivec_load/vector_altivec_store builtins.
5106         (altivec_expand_st_builtin): Ditto.
5107         (altivec_expand_builtin): Add VSX memory builtins.
5108         (rs6000_init_builtins): Add V2DI types to internal types.
5109         (altivec_init_builtins): Add support for V2DF/V2DI altivec
5110         load/store builtins.
5111         (rs6000_address_for_altivec): Insure memory address is appropriate
5112         for Altivec.
5113
5114         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5115         vec_vsx_ld and vec_vsx_st.
5116         (vsx_store_<mode>): Ditto.
5117
5118         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5119         variables to hold long long types for VSX vector memory builtins.
5120         (RS6000_BTI_unsigned_long_long): Ditto.
5121         (long_long_integer_type_internal_node): Ditti.
5122         (long_long_unsigned_type_internal_node): Ditti.
5123
5124         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5125         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5126         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5127
5128         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5129         short cuts.
5130         (vec_vsx_st): Ditto.
5131
5132 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
5133
5134         * config/pa/pa-hpux10.opt: New.
5135         * config/hpux11.opt (pthread): New Driver option.
5136         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5137         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5138
5139 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
5140
5141         * config/ia64/vms.opt: New.
5142         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5143
5144 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5145
5146         PR target/47580
5147         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5148         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5149         generator functions.
5150         (vsx_floatuns<VSi><mode>2): Ditto.
5151         (vsx_fix_trunc<mode><VSi>2): Ditto.
5152         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5153
5154 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
5155
5156         * config/i386/djgpp.opt (posix): New Driver option.
5157
5158 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
5159
5160         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5161         Move to the unsupported targets list.
5162
5163 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
5164
5165         PR rtl-optimization/47525
5166         * df-scan.c: Update copyright years.
5167         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
5168         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
5169
5170 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5171
5172         * config/i386/sysv4.h (TARGET_VERSION): Remove.
5173         (SUBTARGET_RETURN_IN_MEMORY): Remove.
5174         (ASM_OUTPUT_ASCII): Remove.
5175         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
5176
5177 2011-02-02  Jeff Law  <law@redhat.com>
5178
5179         PR middle-end/47543
5180         * reload.c (find_reloads_address): Handle reg+d address where both
5181         components are invalid by reloading the entire address.
5182
5183 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
5184             Richard Guenther  <rguenther@suse.de>
5185
5186         PR tree-optimization/40979
5187         PR bootstrap/47044
5188         * passes.c (init_optimization_passes): After LIM call copy_prop
5189         and DCE to clean up.
5190         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5191
5192 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
5193
5194         PR tree-optimization/47576
5195         PR tree-optimization/47555
5196         * doc/invoke.texi (scev-max-expr-complexity): Documented.
5197         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5198         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5199         * tree-scalar-evolution.c (follow_ssa_edge): Use
5200         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5201
5202 2011-02-02  Richard Guenther  <rguenther@suse.de>
5203
5204         PR tree-optimization/47566
5205         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5206
5207 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
5208
5209         PR debug/47106
5210         PR debug/47402
5211         * tree-inline.c (declare_return_variable): Remove unused caller
5212         variable.
5213
5214         PR debug/47106
5215         PR debug/47402
5216         * tree-flow-inline.h (clear_is_used, is_used_p): New.
5217         * cfgexpand.c (account_used_vars_for_block): Use them.
5218         * tree-nrv.c (tree_nrv): Likewise.
5219         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5220         (dump_scope_block): Likewise.
5221         (remove_unused_locals): Likewise.
5222
5223         PR debug/47106
5224         PR debug/47402
5225         * tree-inline.c (declare_return_variable): Add result decl to
5226         local decls only once.
5227         * gimple-low.c (record_vars_into): Mark newly-created variables
5228         as referenced.
5229
5230 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
5231
5232         PR debug/47498
5233         PR debug/47501
5234         PR debug/45136
5235         PR debug/45130
5236         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5237         debug insns.
5238         (no_real_insns_p, schedule_block, set_priorities): Drop special
5239         treatment of boundary debug insns.
5240         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5241         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5242         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5243         (BOUNDARY_DEBUG_INSN_P): Likewise.
5244         (SCHEDULE_DEBUG_INSN_P): Likewise.
5245         * sched-rgn.c (init_ready_list): Drop special treatment of
5246         boundary debug insns.
5247         * final.c (rest_of_clean_state): Clear notes' BB.
5248
5249 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5250
5251         * config/openbsd.opt (assert=): New Driver option.
5252
5253 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5254
5255         * config/i386/nto.opt: New.
5256         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
5257
5258 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5259
5260         * config/i386/netware.opt: New.
5261         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
5262
5263 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5264
5265         * config/interix.opt (posix): New Driver option.
5266
5267 2011-02-01  DJ Delorie  <dj@redhat.com>
5268
5269         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5270
5271         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
5272         class for A0/A1.
5273
5274 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
5275
5276         PR tree-optimization/47561
5277         * toplev.c (process_options): Print the Graphite flags.  Add
5278         flag_loop_flatten to the list of options requiring Graphite.
5279
5280 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5281
5282         * config/i386/cygming.opt (posix): New Driver option.
5283
5284 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5285
5286         * config/arm/vxworks.opt: New.
5287         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
5288
5289 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5290
5291         * config/alpha/elf.opt: New.
5292         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
5293         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
5294
5295 2011-02-01  Richard Guenther  <rguenther@suse.de>
5296
5297         PR tree-optimization/47559
5298         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
5299         store-motion on references that can throw.
5300
5301 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
5302
5303         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
5304         * tree-pass.h (TDF_CSELIB): New macro.
5305         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
5306         cselib_lookup): Check for it rather than for TDF_DETAILS.
5307
5308 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
5309
5310         PR driver/47547
5311         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
5312         is HOST_BIT_BUCKET.
5313
5314         * opts.c (finish_options): Don't add x_aux_base_name if it is
5315         HOST_BIT_BUCKET.
5316
5317 2011-02-01  Richard Guenther  <rguenther@suse.de>
5318
5319         PR tree-optimization/47555
5320         Revert
5321         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
5322
5323         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5324
5325 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
5326
5327         PR gcc/46692
5328         * config/lm32/t-lm32: Add multilib for all CPU options.
5329
5330 2011-02-01  Richard Guenther  <rguenther@suse.de>
5331
5332         PR tree-optimization/47541
5333         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5334         sure to have a field at offset zero.
5335
5336 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
5337
5338         * config/arc/arc.opt (EB, EL): New Driver options.
5339
5340 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
5341
5342         * config/alpha/osf5.opt: New.
5343         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
5344
5345 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
5346
5347         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
5348
5349 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
5350
5351         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
5352         -floop-interchange.
5353         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
5354         is an alias of -floop-interchange and that it requires the
5355         Graphite infrastructure.
5356         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
5357         flag_loop_interchange based on the value of flag_tree_loop_linear.
5358
5359 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
5360             Richard Guenther  <rguenther@suse.de>
5361
5362         PR tree-optimization/47538
5363         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
5364         type instead of r1type, except for comparisons.  For right
5365         shifts and comparisons punt if there are mismatches in
5366         sizetype vs. non-sizetype types.
5367
5368 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5369
5370         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5371         avx_runtime.
5372
5373 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5374
5375         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
5376         version number.
5377         * configure: Regenerate.
5378
5379 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5380
5381         * configure.ac (gcc_cv_ld_static_option): Define.
5382         (gcc_cv_ld_dynamic_option): Define.
5383         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
5384         instead.
5385         (HAVE_LD_STATIC_DYNAMIC): Update message.
5386         (LD_STATIC_OPTION): Define.
5387         (LD_DYNAMIC_OPTION): Define.
5388         * configure: Regenerate.
5389         * config.in: Regenerate.
5390         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
5391         HAVE_LD_STATIC_DYNAMIC]: Use them.
5392
5393 2011-01-31  Nick Clifton  <nickc@redhat.com>
5394
5395         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
5396         registers inside interrupt handlers if the handler is not a leaf
5397         function.
5398
5399 2011-01-31  Nick Clifton  <nickc@redhat.com>
5400
5401         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
5402         reg_renumber returning an INVALID_REGNUM.
5403
5404 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
5405
5406         PR libgcj/44341
5407         * doc/install.texi: Document host options discarded when cross
5408         configuring target libraries.
5409
5410 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
5411
5412         Reverted:
5413         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
5414         PR debug/45136
5415         PR debug/45130
5416         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5417         debug insns.
5418         (no_real_insns_p, schedule_block, set_priorities): Drop special
5419         treatment of boundary debug insns.
5420         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5421         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5422         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5423         (BOUNDARY_DEBUG_INSN_P): Likewise.
5424         (SCHEDULE_DEBUG_INSN_P): Likewise.
5425         * sched-rgn.c (init_ready_list): Drop special treatment of
5426         boundary debug insns.
5427         * final.c (rest_of_clean-state): Clear notes' BB.
5428
5429 2011-01-31  Alan Modra  <amodra@gmail.com>
5430
5431         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
5432         toc relative expressions as we do in print_operand_address.
5433
5434 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
5435
5436         * doc/extend.texi: Follow spelling conventions.
5437         * doc/invoke.texi: Fix a typo.
5438
5439 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
5440
5441         * config/hpux11.opt: New.
5442         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
5443         ia64*-*-hpux*): Use hpux11.opt.
5444
5445 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
5446
5447         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
5448         to tmake_file.
5449
5450 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
5451
5452         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
5453         support sites.
5454
5455 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
5456
5457         * doc/install.texi (Binaries): Remove outdated reference for
5458         Motorola 68HC11/68HC12 downloads.
5459
5460 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
5461
5462         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
5463         Drepper's paper.
5464
5465 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
5466
5467         PR bootstrap/47147
5468         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
5469         used by NetBSD.
5470
5471 2011-01-28  Ahmad Sharif  <asharif@google.com>
5472
5473         * value-prof.c (check_counter): Corrected error message.
5474
5475 2011-01-29  Jie Zhang  <jie@codesourcery.com>
5476
5477         * config/arm/arm.c (arm_legitimize_reload_address): New.
5478         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5479         arm_legitimize_reload_address.
5480         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
5481
5482 2011-01-28  Ian Lance Taylor  <iant@google.com>
5483
5484         * godump.c (go_define): Ignore macros whose definitions include
5485         two adjacent operands.
5486
5487 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
5488
5489         PR target/42894
5490         * varasm.c (force_const_mem): Store copy of x in desc->constant
5491         instead of x itself.
5492         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
5493         itself into REG_EQUAL note.
5494
5495 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
5496
5497         * config/freebsd.opt (posix, rdynamic): New Driver options.
5498
5499 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5500
5501         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
5502         -Bstatic/-Bdynamic.
5503         * configure: Regenerate.
5504
5505 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
5506
5507         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
5508         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
5509
5510 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
5511
5512         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
5513         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
5514         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5515         (s390_preferred_reload_class): Make static. Change return and
5516         'rclass' argument type to reg_class_t.
5517
5518 2011-01-27  Jan Hubicka  <jh@suse.cz>
5519
5520         PR middle-end/46949
5521         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
5522         (process_function_and_variable_attributes): Check defined weakrefs.
5523
5524 2011-01-27  Martin Jambor  <mjambor@suse.cz>
5525
5526         PR tree-optimization/47228
5527         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
5528         build_ref_for_offset.
5529
5530 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5531
5532         * config/spu/spu-elf.h (ASM_SPEC): Remove.
5533
5534 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
5535
5536         PR rtl-optimization/46856
5537         * postreload.c (reload_combine_recognize_const_pattern): Do not
5538         separate cc0 setter and user on cc0 targets.
5539
5540 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
5541
5542         PR c/43082
5543         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
5544         passed a VOID_TYPE expression, immediately emit an error and
5545         return error_mark_node.
5546
5547 2011-01-26  Jeff Law  <law@redhat.com>
5548
5549         PR rtl-optimization/47464
5550         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
5551         rather than may_trap_p as needed.
5552
5553 2011-01-26  DJ Delorie  <dj@redhat.com>
5554
5555         PR rtl-optimization/46878
5556         * combine.c (insn_a_feeds_b): Check for the implicit cc0
5557         setter/user dependency as well.
5558
5559 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
5560
5561         PR rtl-optimization/44469
5562         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
5563         after removing trivially dead basic blocks.
5564
5565 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5566
5567         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
5568         * config/frv/frv.h (LINK_SPEC): Likewise.
5569         * config/i386/netware.h (LINK_SPEC): Likewise.
5570         * config/m68k/linux.h (ASM_SPEC): Likewise.
5571         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
5572         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5573         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5574         * config/sparc/linux.h (ASM_SPEC): Likewise.
5575         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5576         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5577
5578 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5579
5580         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
5581         * config/frv/frv.h (ASM_SPEC): Likewise.
5582         * config/m68k/linux.h (ASM_SPEC): Likewise.
5583         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5584         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
5585         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5586         * config/sparc/linux.h (ASM_SPEC): Likewise.
5587         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5588         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5589
5590 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5591
5592         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
5593         * config/frv/frv.h (LINK_SPEC): Likewise.
5594         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5595
5596 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5597
5598         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
5599         * config/frv/frv.h (ASM_SPEC): Likewise.
5600         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
5601         * config/m68k/linux.h (ASM_SPEC): Likewise.
5602         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5603         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5604         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5605         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
5606         * config/sparc/linux.h (ASM_SPEC): Likewise.
5607         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5608         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5609         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
5610
5611 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
5612
5613         PR target/46997
5614         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
5615         (*mux2): Ditto.
5616         (vec_extract_evenodd_help): Ditto.
5617         (vec_extract_evenv4hi): Ditto.
5618         (vec_extract_oddv4hi): Ditto.
5619         (vec_interleave_lowv2si): Ditto.
5620         (vec_interleave_highv2si): Ditto.
5621         (vec_extract_evenv2si): Ditto.
5622         (vec_extract_oddv2si: Ditto.
5623         (vec_pack_trunc_v2si): Ditto.
5624
5625 2011-01-22  Jan Hubicka  <jh@suse.cz>
5626
5627         PR target/47237
5628         * cgraph.h (cgraph_local_info): New field can_change_signature.
5629         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
5630         signature can change.
5631         (ipcp_estimate_growth): Call sequence simplify only if calle signature
5632         can change.
5633         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
5634         (cgraph_function_versioning): We can not change signature of functions
5635         that don't allow that.
5636         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
5637         (lto_input_node): Likewise.
5638         * ipa-inline.c (compute_inline_parameters): Compute
5639         local.can_change_signature.
5640         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
5641         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
5642         functions that can not change signature.
5643         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
5644         init_cumulative_args): Do not use local calling conventions
5645         for functions that can not change signature.
5646
5647 2011-01-22  Jan Hubicka  <jh@suse.cz>
5648
5649         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
5650
5651 2011-01-26  Richard Guenther  <rguenther@suse.de>
5652
5653         PR tree-optimization/47190
5654         * cgraphunit.c (process_common_attributes): New function.
5655         (process_function_and_variable_attributes): Use it.
5656
5657 2011-01-26  Richard Guenther  <rguenther@suse.de>
5658
5659         PR lto/47423
5660         * cgraphbuild.c (record_eh_tables): Record reference to personality
5661         function.
5662
5663 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
5664
5665         PR debug/45454
5666         * sel-sched.c (moveup_expr): Don't let debug insns prevent
5667         non-debug insns from moving up.
5668
5669 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
5670
5671         PR target/40125
5672         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
5673         t-dlldir{,-x} fragment for build and add it to tmake_file.
5674         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
5675         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
5676         * config/i386/t-dlldir: New file.
5677         (SHLIB_DLLDIR): Define.
5678         * config/i386/t-dlldir-x: New file.
5679         (SHLIB_DLLDIR): Define.
5680         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
5681         (SHLIB_INSTALL): Use it.
5682
5683 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
5684
5685         PR target/47246
5686         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
5687         lower bound of the allowed Thumb-2 coprocessor load/store
5688         index range to -256. Add explaining comment.
5689
5690 2011-01-25  Ian Lance Taylor  <iant@google.com>
5691
5692         * godump.c (go_define): Improve lexing of macro expansion to only
5693         accept expressions which match Go spec.
5694
5695 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
5696
5697         PR c++/43601
5698         * tree.c (handle_dll_attribute): Handle it.
5699         * doc/extend.texi (@item dllexport): Mention it.
5700         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
5701
5702 2011-01-25  Ian Lance Taylor  <iant@google.com>
5703
5704         PR tree-optimization/26854
5705         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
5706         (decl_jump_unsafe): Move higher in file, with no other change.
5707         (bind): Set has_jump_unsafe_decl if appropriate.
5708         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
5709         (check_earlier_gotos): Likewise.
5710         (c_check_switch_jump_warnings): Likewise.
5711
5712 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
5713
5714         * doc/invoke.texi (Warning Options): Add missing hyphen.
5715         (-fprofile-dir): Minor grammatical fixes.
5716         (-fbranch-probabilities): Likewise.
5717
5718 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
5719
5720         PR debug/45136
5721         PR debug/45130
5722         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5723         debug insns.
5724         (no_real_insns_p, schedule_block, set_priorities): Drop special
5725         treatment of boundary debug insns.
5726         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5727         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5728         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5729         (BOUNDARY_DEBUG_INSN_P): Likewise.
5730         (SCHEDULE_DEBUG_INSN_P): Likewise.
5731         * sched-rgn.c (init_ready_list): Drop special treatment of
5732         boundary debug insns.
5733         * final.c (rest_of_clean-state): Clear notes' BB.
5734
5735 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5736
5737         * Makefile.in (LAMBDA_H): Removed.
5738         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
5739         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
5740         lambda-trans.o, and tree-loop-linear.o.
5741         (lto-symtab.o): Remove dependence on LAMBDA_H.
5742         (tree-loop-linear.o): Remove rule.
5743         (lambda-mat.o): Same.
5744         (lambda-trans.o): Same.
5745         (lambda-code.o): Same.
5746         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
5747         (tree-vect-slp.o): Same.
5748         * hwint.h (gcd): Moved here.
5749         (least_common_multiple): Same.
5750         * lambda-code.c: Removed.
5751         * lambda-mat.c: Removed.
5752         * lambda-trans.c: Removed.
5753         * lambda.h: Removed.
5754         * tree-loop-linear.c: Removed.
5755         * lto-symtab.c: Do not include lambda.h.
5756         * omega.c (gcd): Removed.
5757         * passes.c (init_optimization_passes): Remove pass_linear_transform.
5758         * tree-data-ref.c (print_lambda_vector): Moved here.
5759         (lambda_vector_copy): Same.
5760         (lambda_matrix_copy): Same.
5761         (lambda_matrix_id): Same.
5762         (lambda_vector_first_nz): Same.
5763         (lambda_matrix_row_add): Same.
5764         (lambda_matrix_row_exchange): Same.
5765         (lambda_vector_mult_const): Same.
5766         (lambda_vector_negate): Same.
5767         (lambda_matrix_row_negate): Same.
5768         (lambda_vector_equal): Same.
5769         (lambda_matrix_right_hermite): Same.
5770         * tree-data-ref.h: Do not include lambda.h.
5771         (lambda_vector): Moved here.
5772         (lambda_matrix): Same.
5773         (dependence_level): Same.
5774         (lambda_transform_legal_p): Removed declaration.
5775         (lambda_collect_parameters): Same.
5776         (lambda_compute_access_matrices): Same.
5777         (lambda_vector_gcd): Same.
5778         (lambda_vector_new): Same.
5779         (lambda_vector_clear): Same.
5780         (lambda_vector_lexico_pos): Same.
5781         (lambda_vector_zerop): Same.
5782         (lambda_matrix_new): Same.
5783         * tree-flow.h (least_common_multiple): Removed declaration.
5784         * tree-parloops.c (lambda_trans_matrix): Moved here.
5785         (LTM_MATRIX): Same.
5786         (LTM_ROWSIZE): Same.
5787         (LTM_COLSIZE): Same.
5788         (LTM_DENOMINATOR): Same.
5789         (lambda_trans_matrix_new): Same.
5790         (lambda_matrix_vector_mult): Same.
5791         (lambda_transform_legal_p): Same.
5792         * tree-pass.h (pass_linear_transform): Removed declaration.
5793         * tree-ssa-loop.c (tree_linear_transform): Removed.
5794         (gate_tree_linear_transform): Removed.
5795         (pass_linear_transform): Removed.
5796         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
5797         flag_loop_interchange.
5798
5799 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
5800
5801         PR tree-optimization/47265
5802         PR tree-optimization/47443
5803         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
5804         if name still has some uses.
5805
5806 2011-01-25  Martin Jambor  <mjambor@suse.cz>
5807
5808         PR tree-optimization/47382
5809         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
5810         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
5811
5812 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
5813
5814         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
5815         sjlj_except_unwind_info.
5816
5817 2011-01-25  Richard Guenther  <rguenther@suse.de>
5818
5819         PR tree-optimization/47426
5820         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
5821         visible functions results escape.
5822
5823 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
5824
5825         PR target/45701
5826         * config/arm/arm.c (any_sibcall_uses_r3): New function.
5827         (arm_get_frame_offsets): Use it.
5828
5829 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5830             Jakub Jelinek  <jakub@redhat.com>
5831
5832         PR tree-optimization/47271
5833         * tree-if-conv.c (bb_postdominates_preds): New.
5834         (if_convertible_bb_p): Call bb_postdominates_preds.
5835         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
5836         (predicate_scalar_phi): Call bb_postdominates_preds.
5837
5838 2011-01-25  Nick Clifton  <nickc@redhat.com>
5839
5840         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
5841         * config/rx/rx.c (rx_function_value): Likewise.
5842         (rx_promote_function_mode): Likewise.
5843         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
5844         in order to make it legitimate.
5845         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
5846         make sure that the first operand is the same as the result register.
5847         (addsi3_unspec): Delete.
5848         (subdi3): Do not accept immediate operands.
5849         (subdi3_internal): Likewise.
5850
5851 2011-01-25  Jeff Law  <law@redhat.com>
5852
5853         PR rtl-optimization/37273
5854         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5855         handle them like argument loads from stack slots.  Do not double
5856         count memory for memory constants and argument loads from stack slots.
5857
5858 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
5859
5860         PR tree-optimization/47427
5861         PR tree-optimization/47428
5862         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5863         coalesce if the new root var would be TREE_READONLY.
5864
5865 2011-01-25  Richard Guenther  <rguenther@suse.de>
5866
5867         PR middle-end/47414
5868         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
5869         correct type for TBAA.
5870
5871 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5872
5873         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
5874         (close_phi_written_to_memory): Call for_each_index with
5875         dr_indices_valid_in_loop.
5876
5877 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5878
5879         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
5880         when it is initialized.
5881
5882 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5883
5884         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
5885         call to graphite_find_data_references_in_stmt.
5886         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
5887         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
5888         call to graphite_find_data_references_in_stmt.
5889         (analyze_drs_in_stmts): Same.
5890         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
5891         in which the scalar analysis of indices is performed.
5892         (create_data_ref): Same.  Update call to dr_analyze_indices.
5893         (find_data_references_in_stmt): Update call to create_data_ref.
5894         (graphite_find_data_references_in_stmt): Same.
5895         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
5896         declaration.
5897         (create_data_ref): Same.
5898         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
5899         call to create_data_ref.
5900
5901 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5902
5903         * graphite-sese-to-poly.c (build_poly_scop): Move
5904         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
5905
5906 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5907
5908         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
5909         VAR_DECL, PARM_DECL, and RESULT_DECL.
5910
5911 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5912
5913         * graphite-dependences.c (reduction_dr_1): Allow several reductions
5914         in a reduction PBB.
5915         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
5916         that have already been marked as PBB_IS_REDUCTION.
5917
5918 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5919
5920         * graphite-scop-detection.c (same_close_phi_node): New.
5921         (remove_duplicate_close_phi): New.
5922         (make_close_phi_nodes_unique): New.
5923         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
5924
5925 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5926
5927         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
5928         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
5929         of both data references to be the same.
5930
5931 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5932
5933         * graphite-dependences.c (build_lexicographical_constraint): Remove
5934         the gdim parameter.
5935         (build_lexicographical_constraint): Adjust call to
5936         ppl_powerset_is_empty.
5937         (dependence_polyhedron): Same.
5938         (graphite_legal_transform_dr): Same.
5939         (graphite_carried_dependence_level_k): Same.
5940         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
5941         parameter.
5942         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
5943
5944 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5945
5946         * graphite-sese-to-poly.c
5947         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
5948         (close_phi_written_to_memory): New.
5949         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
5950         and unshare_expr.
5951
5952 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5953
5954         * doc/install.texi: Update the expected version number of PPL to 0.11.
5955         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
5956         #if PPL_VERSION_MINOR < 11.
5957
5958 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5959
5960         * graphite-dependences.c: Include graphite-cloog-util.h.
5961         (new_poly_ddr): Inlined into dependence_polyhedron.
5962         (free_poly_ddr): Moved close by new_poly_ddr.
5963         (dependence_polyhedron_1): Renamed dependence_polyhedron.
5964         Early return NULL when ppl_powerset_is_empty returns true.
5965         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
5966         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
5967         (graphite_legal_transform_dr): Call new_poly_ddr.
5968         (graphite_carried_dependence_level_k): Same.
5969         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
5970         (dot_transformed_deps_stmt_1): Removed.
5971         (dot_deps_stmt_1): Call dot_deps_stmt_2.
5972         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
5973         (dot_deps_1): Call dot_deps_2.
5974         * Makefile.in (graphite-dependences.o): Add missing dependence on
5975         graphite-cloog-util.h.
5976
5977 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5978
5979         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
5980         (build_lexicographical_constraint): Same.
5981         (dependence_polyhedron_1): Same.
5982         (graphite_legal_transform_dr): Same.
5983         (graphite_carried_dependence_level_k): Same.
5984         * graphite-ppl.c (ppl_powerset_is_empty): New.
5985         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
5986         * tree-data-ref.c (dump_data_reference): Print the basic block index.
5987
5988 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5989
5990         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
5991         the "a followed by b" relation and document it.
5992
5993 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5994
5995         * graphite-dependences.c (build_lexicographical_constraint): Stop the
5996         iteration when the bag of constraints is empty.
5997
5998 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5999
6000         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
6001
6002 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6003
6004         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
6005         nest and two loop depths as parameters.
6006         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6007         lst_perfect_nestify.
6008
6009 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6010
6011         * graphite-dependences.c (print_pddr): Call
6012         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6013
6014 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6015
6016         * graphite-ppl.c (debug_gmp_value): New.
6017         * graphite-ppl.h (debug_gmp_value): Declared.
6018
6019 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
6020
6021         * doc/install.texi: Document availability of cloog-0.16.
6022
6023 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
6024
6025         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6026         invalid postdominance info.
6027
6028 2011-01-24  Jan Hubicka  <jh@suse.cz>
6029
6030         PR c/21659
6031         * doc/extend.texi (weak pragma): Drop claim that it must
6032         appear before definition.
6033         * varasm.c (merge_weak, declare_weak): Only sanity check
6034         that DECL is not output at a time it is declared weak.
6035
6036 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
6037
6038         * machmode.def: Fixed comments.
6039
6040 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
6041
6042         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6043
6044 2011-01-24  Paul Koning  <ni1d@arrl.net>
6045
6046         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
6047         WORDS_BIG_ENDIAN.
6048
6049 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
6050
6051         PR target/46519
6052         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6053         (block_info): Add scanned and prev.
6054         (move_or_delete_vzeroupper_2): Return if the basic block
6055         has been scanned and the upper 128bit state is unchanged
6056         from the last scan.
6057         (move_or_delete_vzeroupper_1): Return true if the exit
6058         state is changed.
6059         (move_or_delete_vzeroupper): Visit basic blocks using the
6060         work-list based algorithm based on vt_find_locations in
6061         var-tracking.c.
6062
6063         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6064
6065 2011-01-24  Nick Clifton  <nickc@redhat.com>
6066
6067         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6068         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6069         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
6070         then define __v850e1__.
6071         * doc/invoke.texi: Document -mv850es.
6072
6073 2011-01-24  Richard Henderson  <rth@redhat.com>
6074
6075         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6076         compound unordered comparisons.
6077         * config/rx/rx.c (rx_split_fp_compare): Remove.
6078         * config/rx/rx-protos.h: Update.
6079         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6080         (cbranchsf4): Don't call rx_split_fp_compare.
6081         (*cbranchsf4): Use rx_split_cbranch.
6082         (*cmpsf): Don't accept "i" constraint.
6083         (*conditional_branch): Only valid after reload.
6084         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
6085
6086 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6087
6088         PR target/47385
6089         * config/rs6000/altivec.md (vector constant splitters): Add
6090         support for creating vector single precision constants if -mvsx is
6091         used and we would create the constant using Altivec primitives.
6092
6093 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
6094             Richard Sandiford  <rdsandiford@googlemail.com>
6095
6096         PR rtl-optimization/47166
6097         * reload1.c (emit_reload_insns): Disable the spill_reg_store
6098         mechanism for PRE_MODIFY and POST_MODIFY.
6099         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6100         reloadreg.
6101
6102 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
6103
6104         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
6105
6106 2011-01-22  Jan Hubicka  <jh@suse.cz>
6107
6108         PR lto/47333
6109         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6110
6111 2011-01-22  Jan Hubicka  <jh@suse.cz>
6112
6113         PR tree-optimization/43884
6114         PR lto/44334
6115         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
6116         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6117
6118 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
6119
6120         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6121         * config/s390/s390.c (s390_register_move_cost,
6122         s390_memory_move_cost): New.
6123         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6124
6125 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6126
6127         PR middle-end/47401
6128         * except.c (sjlj_assign_call_site_values): Move setting the
6129         crtl->uses_eh_lsda flag to ...
6130         (sjlj_mark_call_sites): ... here.
6131         (sjlj_emit_function_enter): Support NULL dispatch label.
6132         (sjlj_build_landing_pads): In a function with no landing pads
6133         that still has must-not-throw regions, generate code to register
6134         a personality function with empty LSDA.
6135
6136 2011-01-21  Richard Henderson  <rth@redhat.com>
6137
6138         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6139
6140         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6141
6142         * compare-elim.c: New file.
6143         * Makefile.in (OBJS-common): Add it.
6144         (compare-elim.o): New.
6145         * common.opt (fcompare-elim): New.
6146         * opts.c (default_options_table): Add OPT_fcompare_elim.
6147         * tree-pass.h (pass_compare_elim_after_reload): New.
6148         * passes.c (init_optimization_passes): Add it.
6149         * recog.h: Protect against re-inclusion.
6150         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6151         * doc/invoke.texi (-fcompare-elim): Document it.
6152         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6153         * doc/tm.texi: Rebuild.
6154
6155 2011-01-22  Nick Clifton  <nickc@redhat.com>
6156
6157         * config/rx/rx.md (cstoresf4): Pass comparison operator to
6158         rx_split_fp_compare.
6159
6160 2011-01-22  Nick Clifton  <nickc@redhat.com>
6161
6162         * config/rx/rx.md (UNSPEC_CONST): New.
6163         (deallocate_and_return): Wrap the amount popped off the stack in
6164         an UNSPEC_CONST in order to stop it being rejected by
6165         -mmax-constant-size.
6166         (pop_and_return): Add a "(return)" rtx.
6167         (call): Drop the immediate operand.
6168         (call_internal): Likewise.
6169         (call_value): Likewise.
6170         (call_value_internal): Likewise.
6171         (sibcall_internal): Likewise.
6172         (sibcall_value_internal): Likewise.
6173         (sibcall): Likewise.  Generate an explicit call using
6174         sibcall_internal.
6175         (sibcall_value): Likewise.
6176         (mov<>): FAIL if a constant operand is not legitimate.
6177         (addsi3_unpsec): New pattern.
6178
6179         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
6180         (ok_for_max_constant): New function.
6181         (gen_safe_add): New function.
6182         (rx_expand_prologue): Use gen_safe_add.
6183         (rx_expand_epilogue): Likewise.
6184         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
6185         UNSPEC CONSTs.
6186
6187 2011-01-21  Jeff Law  <law@redhat.com>
6188
6189         PR tree-optimization/47053
6190         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6191         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6192         statements are deleted.
6193         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
6194         is nonempty, then purge dead edges and cleanup the CFG.
6195
6196 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
6197
6198         PR debug/47402
6199         Temporarily revert:
6200         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
6201         PR debug/47106
6202         * tree-dfa.c (create_var_ann): Mark variable as used.
6203
6204 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
6205
6206         PR middle-end/45566
6207         * except.c (convert_to_eh_region_ranges): Emit queued no-region
6208         notes from other section in hot/cold partitioning even if
6209         last_action is -3.  Increment call_site_base.
6210
6211         PR rtl-optimization/47366
6212         * fwprop.c (forward_propagate_into): Return bool.  If
6213         any changes are made, -fnon-call-exceptions is used and
6214         REG_EH_REGION note is present, call purge_dead_edges
6215         and return true if it purged anything.
6216         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6217         any EH edges were purged.
6218
6219 2011-01-21  Jeff Law  <law@redhat.com>
6220
6221         PR rtl-optimization/41619
6222         * caller-save.c (setup_save_areas): Break out code to determine
6223         which hard regs are live across calls by examining the reload chains
6224         so that it is always used.
6225         Eliminate code which checked REG_N_CALLS_CROSSED.
6226
6227 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
6228
6229         PR tree-optimization/47355
6230         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6231         NOP has non-debug uses beyond PHIs in new_bb.
6232
6233 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
6234
6235         PR debug/47106
6236         * cfgexpand.c (account_used_vars_for_block): Only account vars
6237         that are annotated as used.
6238         (estimated_stack_frame_size): Don't set TREE_USED.
6239         * tree-dfa.c (create_var_ann): Mark variable as used.
6240
6241 2011-01-21  Richard Guenther  <rguenther@suse.de>
6242
6243         PR middle-end/47395
6244         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6245
6246 2011-01-21  Richard Guenther  <rguenther@suse.de>
6247
6248         PR tree-optimization/47365
6249         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6250         (vn_reference_lookup_pieces): Adjust.
6251         (vn_reference_lookup): Likewise.
6252         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6253         (vn_reference_lookup_3): Only look through kills if in
6254         VN_WALKREWRITE mode.
6255         (vn_reference_lookup_pieces): Adjust.
6256         (vn_reference_lookup): Likewise.
6257         (visit_reference_op_load): Likewise.
6258         (visit_reference_op_store): Likewise.
6259         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
6260         (compute_avail): Likewise.
6261         (eliminate): Likewise.
6262
6263 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
6264
6265         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
6266         DECL_IGNORED_P non-reg vars if they are used.
6267
6268         PR tree-optimization/47391
6269         * varpool.c (const_value_known_p): Return false if
6270         decl is volatile.
6271
6272 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
6273
6274         PR bootstrap/47215
6275         * config/i386/i386.c (ix86_local_alignment): Handle
6276         case for va_list_type_node is nil.
6277         (ix86_canonical_va_list_type): Likewise.
6278
6279 2011-01-21  Alan Modra  <amodra@gmail.com>
6280
6281         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
6282         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
6283
6284 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6285
6286         * config/arm/arm.md (define_attr type): Rename f_load
6287         and f_store to f_fpa_load and f_fpa_store. Update.
6288         (write_conflict): Deal with rename fallout.
6289         (*push_fp_multi): Likewise.
6290         * config/arm/fpa.md (f_load): Use f_fpa_load.
6291         (f_store): Use f_fpa_store.
6292         (*movsf_fpa): Likewise.
6293         (*movdf_fpa): Likewise.
6294         (*movxf_fpa): Likewise.
6295         (*thumb2_movsf_fpa): Likewise.
6296         (*thumb2_movdf_fpa): Likewise.
6297         (*thumb2_movxf_fpa): Likewise.
6298         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
6299         f_loadd and f_stored.
6300         (*thumb2_movdi_vfp): Likewise.
6301         (*thumb2_movsf_vfp): Fix attribute to f_loads.
6302         (*thumb2_movsi_vfp): Likewise.
6303         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
6304         Use f_loads instead of f_load.
6305         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
6306
6307 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
6308
6309         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6310         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
6311         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6312         (xtensa_mode_dependent_address_p): New function.
6313         (constantpool_address_p): Make static. Change return type to bool.
6314         Change argument type to const_rtx. Use CONST_INT_P predicate.
6315
6316 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
6317
6318         PR debug/46583
6319         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
6320
6321 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
6322
6323         PR debug/47283
6324         * cfgexpand.c (expand_debug_expr): Instead of generating
6325         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
6326         etc. handling.
6327
6328 2011-01-20  Richard Guenther  <rguenther@suse.de>
6329
6330         PR middle-end/47370
6331         * tree-inline.c (remap_gimple_op_r): Recurse manually for
6332         the pointer operand of MEM_REFs.
6333
6334 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
6335
6336         PR tree-optimization/46130
6337         * ipa-split.c (consider_split): If return_bb contains non-virtual
6338         PHIs other than for retval or if split_function would not adjust it,
6339         refuse to split.
6340
6341 2011-01-20  Richard Guenther  <rguenther@suse.de>
6342
6343         PR tree-optimization/47167
6344         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6345         Revert previous change, only avoid enumeral type changes.
6346
6347 2011-01-19  Mike Stump  <mikestump@comcast.net>
6348
6349         * doc/tm.texi.in (BRANCH_COST): Englishify.
6350         * doc/tm.texi (BRANCH_COST): Likewise.
6351
6352 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
6353
6354         PR c++/47291
6355         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
6356         (gen_scheduled_generic_parms_dies): New functions.
6357         (gen_struct_or_union_type_die): Schedule template parameters DIEs
6358         generation for the end of CU compilation.
6359         (dwarf2out_finish): Generate template parameters DIEs here.
6360
6361 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
6362
6363         PR debug/46240
6364         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
6365         debug bind stmt on merge edges.
6366
6367 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
6368
6369         PR debug/47079
6370         PR debug/46724
6371         * function.c (instantiate_expr): Instantiate incoming rtl of
6372         implicit arguments, and recurse on VALUE_EXPRs.
6373         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
6374         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
6375
6376 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
6377
6378         * c-parser.c (c_parser_for_statement): Initialize
6379         collection_expression.
6380
6381 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
6382
6383         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
6384
6385 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
6386
6387         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
6388         (LINK_SHLIB_SPEC): Don't use %(link_path).
6389         (SUBTARGET_EXTRA_SPECS): Remove link_path.
6390
6391 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
6392
6393         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
6394         (NO_SHARED_LIB_SUPPORT): Remove.
6395         (LINK_SHLIB_SPEC): Remove one conditional definition.
6396
6397 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
6398
6399         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
6400         %{call_shared}.
6401         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
6402         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
6403         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
6404         %{call_shared} and conditionals on these options not being passed.
6405         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
6406         %{call_shared}.
6407
6408 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
6409
6410         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
6411         simplify.
6412
6413         * ipa-split.c: Spelling fixes.
6414
6415 2011-01-19  Richard Henderson  <rth@redhat.com>
6416
6417         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
6418         (*mulsi3): Likewise.
6419
6420         * longlong.h [__mn10300__] (count_leading_zeros): New.
6421         [__mn10300__] (umul_ppmm, smul_ppmm): New.
6422         [__mn10300__] (add_ssaaaa, subddmmss): New.
6423         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
6424         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
6425
6426 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6427
6428         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
6429
6430 2011-01-19  Richard Henderson  <rth@redhat.com>
6431
6432         * config/mn10300/mn10300.md (addsi3_flags): New.
6433         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
6434         (subsi3_flags, subc_internal, subdi3): New.
6435         (subdi3_internal, *subdi3_degenerate): New.
6436         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
6437
6438         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
6439         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
6440         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
6441         * config/mn10300/mn10300-protos.h: Update.
6442         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
6443         (return_ret): Likewise.  Rename from return_internal_regs.
6444         (return_internal): Remove.
6445
6446         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
6447         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
6448         (mn10300_legitimate_constant_p): Likewise.
6449         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
6450         (mn10300_frame_size): New.
6451         (mn10300_expand_prologue): Use it.
6452         (mn10300_expand_epilogue): Likewise.
6453         (mn10300_initial_offset): Likewise.
6454         * config/mn10300/mn10300-protos.h: Update.
6455         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
6456         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
6457         (prologue, epilogue, return_internal): Tidy output code.
6458         (mn10300_store_multiple_operation, return): Likewise.
6459         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
6460         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
6461         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
6462         (load_pic, am33_load_pic): New.
6463         (mn10300_load_pic0, mn10300_load_pic1): New.
6464
6465         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
6466         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
6467         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
6468         (cc_flags_for_mode, cc_flags_for_code): New.
6469         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
6470         overflow flag is not valid.  Validate that the flags we need
6471         for the comparison are valid.
6472         (mn10300_output_cmp): Remove.
6473         (mn10300_output_add): New.
6474         (mn10300_select_cc_mode): Use cc_flags_for_code.
6475         (mn10300_split_cbranch): New.
6476         (mn10300_match_ccmode): New.
6477         (mn10300_split_and_operand_count): New.
6478         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
6479         to the function.
6480         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
6481         (addsi3): ... here.  Use mn10300_output_add.
6482         (*addsi3_flags): New.
6483         (*am33_subsi3, *mn10300_subsi3): Merge...
6484         (subsi3): ... here.  Use attribute isa.
6485         (*subsi3_flags): New.
6486         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
6487         when possible.
6488         (*am33_andsi3, *mn10300_andsi3): Merge...
6489         (andsi3): ... here.
6490         (*andsi3_flags): New.
6491         (andsi3 splitters): New.
6492         (*am33_iorsi3, *mn10300_iorsi3): Merge...
6493         (iorsi3): ... here.
6494         (*iorsi3_flags): New.
6495         (*am33_xorsi3, *mn10300_xorsi3): Merge...
6496         (xorsi3): ... here.
6497         (*xorsi3_flags): New.
6498         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
6499         (one_cmplsi2): ... here.
6500         (*one_cmplsi2_flags): New.
6501         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
6502         instead of "dax" in constraints.  Use mn10300_split_cbranch.
6503         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
6504         use matching constraints to eliminate a self-comparison.
6505         (*integer_conditional_branch): Rename from integer_conditional_branch.
6506         Use int_mode_flags to match CC_REG.
6507         (*cbranchsi4_btst, *btstsi): New.
6508         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
6509         mn10300_split_cbranch.
6510         (*am33_cmpsf): Rename from am33_cmpsf.
6511         (*float_conditional_branch): Rename from float_conditional_branch.
6512         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
6513         (zero_extendqisi2): ... here.
6514         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
6515         (zero_extendhisi2): ... here.
6516         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
6517         (extendqisi2): ... here.
6518         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
6519         (extendhisi2): ... here.
6520         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
6521         (ashlsi3): ... here.
6522         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
6523         (lshrsi3): ... here.
6524         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
6525         (ashrsi3): ... here.
6526         (consecutive add peephole): Remove.
6527         * config/mn10300/predicates.md (label_ref_operand): New.
6528         (int_mode_flags): New.
6529         (CCZN_comparison_operator): New.
6530
6531         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
6532         (throughput_42_latency_43): New reservation.
6533         (mulsidi3, umulsidi3): New expanders.
6534         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
6535         the MDR register to allocation; separately allocate the low and
6536         high parts of the DImode result.
6537         (umulsidi3_internal): Similarly.
6538         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
6539         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
6540         (udivsi3, umodsi3): Remove.
6541         (udivmodsi4, divmodsi4): New expanders.
6542         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
6543         (*divmodsi4): Simiarly.
6544         (ext_internal): New.
6545
6546         * config/mn10300/constraints.md ("z"): New constraint.
6547         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
6548         (FIXED_REGISTERS): Don't fix MDR.
6549         (CALL_USED_REGSITERS): Reformat nicely.
6550         (REG_ALLOC_ORDER): Add MDR.
6551         (enum regclass): Add MDR_REGS.
6552         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
6553         (IRA_COVER_CLASSES): Add MDR_REGS.
6554         (REGNO_REG_CLASS): Handle MDR_REG.
6555         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
6556         (mn10300_register_move_cost): Likewise.
6557         * config/mn10300/mn10300.md (MDR_REG): New.
6558         (*movsi_internal): Handle moves to/from MDR_REGS.
6559
6560         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
6561         POST_MODIFY.
6562         (mn10300_secondary_reload): Tidy combination reload classes.
6563         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
6564         addresses for AM33.  Allow symbolic offsets for reg+imm.
6565         (mn10300_regno_in_class_p): New.
6566         (mn10300_legitimize_reload_address): New.
6567         * config/mn10300/mn10300.h (enum reg_class): Remove
6568         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
6569         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
6570         SP_OR_GENERAL_REGS.
6571         (REG_CLASS_NAMES): Update to match.
6572         (REG_CLASS_CONTENTS): Likewise.
6573         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
6574         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
6575         (REGNO_IN_RANGE_P): Remove.
6576         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
6577         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
6578         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
6579         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
6580         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
6581         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
6582         (REGNO_GENERAL_P): New.
6583         (HAVE_POST_MODIFY_DISP): New.
6584         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
6585         (LEGITIMIZE_RELOAD_ADDRESS): New.
6586         * config/mn10300/mn10300-protos.h: Update.
6587
6588         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
6589         DATA_REGS for AM33 stack-pointer destination.
6590         (mn10300_preferred_output_reload_class): Likewise.
6591         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
6592         into a form appropriate for ...
6593         (TARGET_SECONDARY_RELOAD): New.
6594         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
6595         * config/mn10300/mn10300-protos.h: Update.
6596         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
6597         reload_insi; use the "A" constraint for the scratch; handle AM33
6598         moves of sp to non-address registers.
6599
6600         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
6601         (*movqi_internal): ... here.
6602         (*am33_movhi, *mn10300_movhi): Merge into...
6603         (*movhi_internal): ... here.
6604         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
6605         as the source/destination of moves from/to SP.
6606         (movsf): Only allow for AM33-2.
6607         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
6608         any integer constant constraint.  Only allow for AM33-2.  Tidy
6609         all of the alternative outputs.
6610         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
6611         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
6612         for MN103.
6613         (udivsi3, umodsi3): New patterns for MN103 only.
6614
6615 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
6616
6617         * doc/tm.texi.in: Spell out that a lack of register class unions
6618         can lead to ICEs.
6619         * doc/tm.texi: Regenerate.
6620
6621 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
6622
6623         PR rtl-optimization/47337
6624         * dce.c (check_argument_store): New function.
6625         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
6626
6627         PR tree-optimization/47290
6628         * tree-eh.c (infinite_empty_loop_p): New function.
6629         (cleanup_empty_eh): Use it.
6630
6631 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
6632
6633         PR target/46997
6634         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
6635         (a64_expand_widen_sum): Ditto.
6636         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
6637         (vec_extract_evenodd_help): Ditto.
6638         (vec_extract_evenv4hi): Ditto.
6639         (vec_extract_oddv4hi): Ditto.
6640         (vec_extract_evenv2si): Ditto.
6641         (vec_extract_oddv2si): Ditto.
6642         (vec_extract_evenv2sf): Ditto.
6643         (vec_extract_oddv2sf): Ditto.
6644         (vec_pack_trunc_v4hi: Ditto.
6645         (vec_pack_trunc_v2si): Ditto.
6646         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
6647         (vec_interleave_highv8qi): Ditto.
6648         (mix1_r): Ditto.
6649         (vec_extract_oddv8qi): Ditto.
6650         (vec_interleave_lowv4hi): Ditto.
6651         (vec_interleave_highv4hi): Ditto.
6652         (vec_interleave_lowv2si): Ditto.
6653         (vec_interleave_highv2si): Ditto.
6654
6655 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6656
6657         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
6658         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
6659         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
6660         (pa_c_mode_for_suffix): New.
6661         (TARGET_EXPAND_BUILTIN): Define.
6662         (TARGET_C_MODE_FOR_SUFFIX): Define.
6663         (pa_builtins): Define.
6664         (pa_init_builtins): Register __float128 type and init new support
6665         builtins.
6666         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
6667         * config/pa/quadlib.c (_U_Qfcopysign): New.
6668
6669 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
6670
6671         PR middle-end/46894
6672         * explow.c (allocate_dynamic_stack_space): Do not assume more than
6673         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
6674         are defined.
6675
6676 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6677
6678         PR tree-optimization/47179
6679         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
6680         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
6681
6682 2011-01-18  Richard Guenther  <rguenther@suse.de>
6683
6684         PR rtl-optimization/47216
6685         * emit-rtl.c: Include tree-flow.h.
6686         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
6687         of replicating it with different semantics.
6688         * Makefile.in (emit-rtl.o): Adjust.
6689
6690 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6691
6692         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
6693         (cortex_a9_dp): Handle neon types correctly.
6694
6695 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
6696
6697         PR rtl-optimization/47299
6698         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
6699         subtarget.  Use normal multiplication if both operands are constants.
6700         * expmed.c (expand_widening_mult): Don't try to optimize constant
6701         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
6702         before using it.
6703
6704 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6705
6706         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
6707         spacing after 'e.g.', typos, comma, hyphenation.
6708
6709 2011-01-17  Richard Henderson  <rth@redhat.com>
6710
6711         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
6712         (rx_restricted_mem_operand): New.
6713         (rx_shift_operand): Use register_operand.
6714         (rx_source_operand, rx_compare_operand): Likewise.
6715         * config/rx/rx.md (addsi3_flags): New expander.
6716         (adddi3): Rewrite as expander.
6717         (adc_internal, *adc_flags, adddi3_internal): New patterns.
6718         (subsi3_flags): New expander.
6719         (subdi3): Rewrite as expander.
6720         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
6721
6722         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
6723         (rx_init_builtins): Remove sat builtin.
6724         (rx_expand_builtin): Likewise.
6725         * config/rx/rx.md (ssaddsi3): New.
6726         (*sat): Rename from sat.  Represent the CC_REG input.
6727
6728         * config/rx/predicates.md (rshift_operator): New.
6729         * config/rx/rx.c (rx_expand_insv): Remove.
6730         * config/rx/rx-protos.h: Update.
6731         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
6732         operand to the canonical position.
6733         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
6734         (*bitclr, *bitclr_in_memory): Similarly.
6735         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
6736         (insv): Retain the zero_extract in the expansion.
6737
6738         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
6739         (bswaphi2, bitinvert, revw): Likewise.
6740
6741         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
6742         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
6743         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
6744         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
6745         (bitset, bitset_in_memory): Likewise.
6746         (bitinvert, bitinvert_in_memory): Likewise.
6747         (bitclr, bitclr_in_memory): Likewise.
6748         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
6749         (rx_strend, rx_cmpstrn): Likewise.
6750         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
6751         (bitop peep2 patterns): Remove.
6752
6753         * config/rx/rx.c (rx_match_ccmode): New.
6754         * config/rx/rx-protos.h: Update.
6755         * config/rx/rx.md (abssi2): Clobber, don't set flags.
6756         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
6757         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
6758         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
6759         (fix_truncsfsi2, floatsisf2): Likewise.
6760         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
6761         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
6762         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
6763         (*subsi3_flags, *xorsi3_flags): New.
6764
6765         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
6766
6767         * config/rx/rx.c (rx_print_operand): Remove workaround for
6768         unsplit comparison operations.
6769
6770         * config/rx/rx.md (movsicc): Split after reload.
6771         (*movsicc): Merge *movsieq and *movsine via match_operator.
6772         (*stcc): New pattern.
6773
6774         * config/rx/rx.c (rx_float_compare_mode): Remove.
6775         * config/rx/rx.h (rx_float_compare_mode): Remove.
6776         * config/rx/rx.md (cstoresi4): Split after reload.
6777         (*sccc): New pattern.
6778
6779         * config/rx/predicates.md (label_ref_operand): New.
6780         (rx_z_comparison_operator): New.
6781         (rx_zs_comparison_operator): New.
6782         (rx_fp_comparison_operator): New.
6783         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
6784         Validate that the flags are set properly for the comparison.
6785         (rx_gen_cond_branch_template): Remove.
6786         (rx_cc_modes_compatible): Remove.
6787         (mode_from_flags): New.
6788         (flags_from_code): Rename from flags_needed_for_conditional.
6789         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
6790         (rx_select_cc_mode): Likewise.
6791         (rx_split_fp_compare): New.
6792         (rx_split_cbranch): New.
6793         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
6794         (*cbranchsi4): Use match_operator and rx_split_cbranch.
6795         (*cbranchsf4): Similarly.
6796         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
6797         match_operator and rx_split_cbranch.
6798         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
6799         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
6800         (*cmpsi): Rename from cmpsi.
6801         (*tstsi): Rename from tstsi.
6802         (*cmpsf): Rename from cmpsf; use CC_Fmode.
6803         (*conditional_branch): Rename from conditional_branch.
6804         (*reveresed_conditional_branch): Remove.
6805         (b<code>): Remove expander.
6806         * config/rx/rx-protos.h: Update.
6807
6808         * config/rx/rx.c (rx_compare_redundant): Remove.
6809         * config/rx/rx.md (cmpsi): Don't use it.
6810         * config/rx/rx-protos.h: Update.
6811
6812         * config/rx/rx-modes.def (CC_F): New mode.
6813         * config/rx/rx.c (rx_select_cc_mode): New.
6814         * config/rx/rx.h (SELECT_CC_MODE): Use it.
6815         * config/rx/rx-protos.h: Update.
6816
6817 2011-01-17  Richard Henderson  <rth@redhat.com>
6818
6819         * except.c (dump_eh_tree): Fix stray ; after for statement.
6820
6821 2011-01-17  Richard Guenther  <rguenther@suse.de>
6822
6823         PR tree-optimization/47313
6824         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
6825         handling before copying the body.  Properly deal with
6826         by-reference result in SSA form.
6827
6828 2011-01-17  Ian Lance Taylor  <iant@google.com>
6829
6830         PR target/47219
6831         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
6832         (struct_value_alias_set): Don't define.
6833         (sparc_option_override): Don't set sparc_sr_alias_set and
6834         struct_value_alias_set.
6835         (save_or_restore_regs): Use gen_frame_mem rather than calling
6836         set_mem_alias_set.
6837         (sparc_struct_value_rtx): Likewise.
6838
6839 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
6840
6841         PR target/47318
6842         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
6843         __m128i.
6844         (_mm_maskstore_pd): Likewise.
6845         (_mm_maskload_ps): Likewise.
6846         (_mm_maskstore_ps): Likewise.
6847         (_mm256_maskload_pd): Change mask to __m256i.
6848         (_mm256_maskstore_pd): Likewise.
6849         (_mm256_maskload_ps): Likewise.
6850         (_mm256_maskstore_ps): Likewise.
6851
6852         * config/i386/i386-builtin-types.def: Updated.
6853         (ix86_expand_special_args_builtin): Likewise.
6854
6855         * config/i386/i386.c (bdesc_special_args): Update
6856         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
6857         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
6858         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
6859         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
6860
6861         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
6862         Use <avxpermvecmode> on mask register.
6863         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
6864
6865 2011-01-17  Olivier Hainque  <hainque@adacore.com>
6866             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6867             Eric Botcazou  <ebotcazou@adacore.com>
6868
6869         PR target/46655
6870         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
6871         if <= USHRT_MAX in 32-bit mode.
6872
6873 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6874
6875         * doc/install.texi (Configuration, Specific): Wrap long
6876         lines in examples.  Allow line wrapping in long options
6877         and URLs where beneficial for PDF output.
6878
6879 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
6880
6881         * config/mips/mips.c (mips_classify_symbol): Don't return
6882         SYMBOL_PC_RELATIVE for nonlocal labels.
6883
6884 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
6885
6886         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
6887
6888 2011-01-15  Jan Hubicka  <jh@suse.cz>
6889
6890         PR tree-optimization/47276
6891         * ipa.c (function_and_variable_visibility): Do not try to mark alias
6892         declarations as needed.
6893
6894 2011-01-15  Martin Jambor  <mjambor@suse.cz>
6895
6896         * common.opt (fdevirtualize): New flag.
6897         * doc/invoke.texi (Option Summary): Document it.
6898         * opts.c (default_options_table): Add devirtualize flag.
6899         * ipa-prop.c (detect_type_change): Return immediately if
6900         devirtualize flag is not set.
6901         (detect_type_change_ssa): Likewise.
6902         (compute_known_type_jump_func): Likewise.
6903         (ipa_analyze_virtual_call_uses): Likewise.
6904
6905 2011-01-14  Martin Jambor  <mjambor@suse.cz>
6906
6907         PR tree-optimization/45934
6908         PR tree-optimization/46302
6909         * ipa-prop.c (type_change_info): New type.
6910         (stmt_may_be_vtbl_ptr_store): New function.
6911         (check_stmt_for_type_change): Likewise.
6912         (detect_type_change): Likewise.
6913         (detect_type_change_ssa): Likewise.
6914         (compute_complex_assign_jump_func): Check for dynamic type change.
6915         (compute_complex_ancestor_jump_func): Likewise.
6916         (compute_known_type_jump_func): Likewise.
6917         (compute_scalar_jump_functions): Likewise.
6918         (ipa_analyze_virtual_call_uses): Likewise.
6919         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
6920
6921 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6922
6923         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
6924         * config/i386/i386.opt (msse5): New Alias.
6925
6926 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6927
6928         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6929         * config/sparc/linux64.h (CC1_SPEC): Likewise.
6930         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6931         * config/sparc/sparc.h (CC1_SPEC): Likewise.
6932
6933 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6934
6935         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
6936         -mcpu options.
6937         * config/sparc/linux64.h (CC1_SPEC): Likewise.
6938         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6939         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
6940         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
6941         Likewise.
6942         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
6943
6944 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6945
6946         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
6947
6948 2011-01-14  Mike Stump  <mikestump@comcast.net>
6949
6950         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
6951         * config/fr30/fr30.md: Likweise
6952         (movsi_push): Likewise.
6953         (movsi_pop): Likewise.
6954         (enter_func): Likewise.
6955         * config/moxie/moxie.md (movsi_push): Likewise.
6956         (movsi_pop): Likewise.
6957
6958 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6959
6960         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
6961         %{no_archive} %{exact_version}.
6962         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
6963         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
6964         %{no_archive} %{exact_version}.
6965         * config/mips/openbsd.h (LINK_SPEC): Likewise.
6966         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
6967         * config/mips/vxworks.h: Likewise.
6968
6969 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6970
6971         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
6972
6973 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6974
6975         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
6976         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
6977
6978 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6979
6980         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
6981         -nodefaultlib.
6982
6983 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6984
6985         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
6986         for mcpu not cpu.
6987         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
6988         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
6989         not cpu.
6990         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
6991         Don't handle -shlib.
6992
6993 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6994
6995         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
6996         (CC1_SPEC): Don't handle -profile.
6997
6998 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6999
7000         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
7001         * config/mips/mips.h (CC1_SPEC): Likewise.
7002
7003 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7004
7005         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
7006         * config/mips/mips.h (CC1_SPEC): Likewise.
7007
7008 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7009
7010         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7011         * config/m32r/linux.h (LINK_SPEC): Likewise.
7012         * config/mips/linux.h (LINK_SPEC): Likewise.
7013         * config/mips/linux64.h (LINK_SPEC): Likewise.
7014         * config/sparc/linux.h (LINK_SPEC): Likewise.
7015         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7016         LINK_SPEC): Likewise.
7017         * config/xtensa/linux.h (LINK_SPEC): Likewise.
7018
7019 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7020
7021         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7022         %{version:-v}.
7023         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7024
7025 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7026
7027         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7028         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7029
7030 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7031
7032         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7033
7034 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7035
7036         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7037         supports -Bstatic/-Bdynamic.
7038         * configure: Regenerate.
7039
7040 2011-01-14  Jan Hubicka  <jh@suse.cz>
7041             Jack Howarth  <howarth@bromo.med.uc.edu>
7042
7043         PR target/46037
7044         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7045         when checking debug_info_level. Test write_symbols instead of
7046         debug_hooks->var_location when setting flag_var_tracking_uninit.
7047
7048 2011-01-14  Richard Guenther  <rguenther@suse.de>
7049
7050         PR tree-optimization/47179
7051         * target.def (ref_may_alias_errno): New target hook.
7052         * targhooks.h (default_ref_may_alias_errno): Declare.
7053         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7054         (default_ref_may_alias_errno): New function.
7055         * target.h (struct ao_ref_s): Declare.
7056         * tree-ssa-alias.c: Include target.h.
7057         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7058         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7059         (targhooks.o): Likewise.
7060         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7061         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7062
7063 2011-01-14  Richard Guenther  <rguenther@suse.de>
7064
7065         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
7066
7067 2011-01-14  Richard Guenther  <rguenther@suse.de>
7068
7069         PR tree-optimization/47280
7070         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7071         return CFG changes.
7072         (tree_ssa_forward_propagate_single_use_vars): Deal with
7073         CFG changes from associate_plusminus.
7074
7075 2011-01-14  Richard Guenther  <rguenther@suse.de>
7076
7077         PR middle-end/47281
7078         Revert
7079         2011-01-11  Richard Guenther  <rguenther@suse.de>
7080
7081         PR tree-optimization/46076
7082         * tree-ssa.c (useless_type_conversion_p): Conversions from
7083         unprototyped to empty argument list function types are useless.
7084
7085 2011-01-14  Richard Guenther  <rguenther@suse.de>
7086
7087         PR tree-optimization/47286
7088         * tree-ssa-structalias.c (new_var_info): Register variables are global.
7089
7090 2011-01-14  Martin Jambor  <mjambor@suse.cz>
7091
7092         PR middle-end/46823
7093         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7094
7095 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
7096
7097         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7098         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7099         * config/xtensa/xtensa.c (xtensa_libcall_value,
7100         xtensa_function_value_regno_p): New functions.
7101         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7102
7103 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
7104
7105         PR c++/47213
7106         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7107         PE specific hook.
7108         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7109         New function prototype.
7110         * config/i386/winnt.c (i386_pe_assemble_visibility):
7111         Warn only if attribute was specified by user.
7112
7113 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
7114
7115         PR target/47251
7116         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7117         floating point.
7118         (floatunsdidf2_fcfidu): Ditto.
7119
7120 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7121
7122         * config/s390/s390.c (print_operand_address): Replace 'error' with
7123         'output_operand_lossage'.
7124         (print_operand): Likewise.
7125
7126 2011-01-13  Jeff Law  <law@redhat.com>
7127
7128         PR rtl-optimization/39077
7129         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7130         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7131         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7132         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7133         * gcse.c (prune_insertions_deletions): New function.
7134         (compute_pre_data): Use it.
7135
7136 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
7137
7138         PR debug/PR46973
7139         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7140         static function.
7141         (prune_unused_types_mark): Use it.
7142
7143 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
7144
7145         PR rtl-optimization/45352
7146         * sel-sched.c: Update copyright years.
7147         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
7148         in the advancing loop when we have issued issue_rate insns.
7149
7150 2011-01-12  Richard Henderson  <rth@redhat.com>
7151
7152         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7153         (TARGET_MD_ASM_CLOBBERS): New.
7154
7155         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7156         (TARGET_DELEGITIMIZE_ADDRESS): New.
7157
7158         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7159         (clzsi2, *bsch): New patterns.
7160
7161         * config/mn10300/mn10300.md (INT): New mode iterator.
7162         (*mov<INT>_clr): New pattern, and peep2 to generate it.
7163
7164         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
7165         flag_split_wide_types.
7166
7167         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
7168         (mn10300_trampoline_init): Rewrite without a template, an immediate
7169         load and a direct branch.
7170         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
7171
7172 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
7173
7174         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7175         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
7176         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
7177         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7178
7179 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
7180
7181         PR debug/47209
7182         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
7183         of type.
7184
7185 2011-01-12  Jan Hubicka  <jh@suse.cz>
7186
7187         PR driver/47244
7188         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7189         (PLUGIN_COND_CLOSE): New macro.
7190         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7191
7192 2011-01-12  Richard Guenther  <rguenther@suse.de>
7193
7194         PR lto/47259
7195         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7196         register variables in a MEM_REF.
7197
7198 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
7199
7200         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7201         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7202         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7203         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7204         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7205         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7206         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7207         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7208         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7209         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7210         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7211         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7212         * config/gnu-user.h: New.  Copied from linux.h.
7213         (LINUX_TARGET_STARTFILE_SPEC): Rename to
7214         GNU_USER_TARGET_STARTFILE_SPEC.
7215         (LINUX_TARGET_ENDFILE_SPEC): Rename to
7216         GNU_USER_TARGET_ENDFILE_SPEC.
7217         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7218         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7219         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7220         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7221         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7222         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7223         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7224         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7225         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7226         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7227         * config/arm/linux-eabi.h (CC1_SPEC): Use
7228         GNU_USER_TARGET_CC1_SPEC.
7229         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7230         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7231         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7232         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7233         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7234         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7235         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7236         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7237
7238 2011-01-12  Richard Guenther  <rguenther@suse.de>
7239
7240         PR other/46946
7241         * doc/invoke.texi (ffast-math): Document it is turned on
7242         with -Ofast.
7243
7244 2011-01-12  Jan Hubicka  <jh@suse.cz>
7245
7246         PR tree-optimization/47233
7247         * opts.c (common_handle_option): Disable ipa-reference with profile
7248         feedback.
7249
7250 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7251
7252         * c-parser.c (c_parser_objc_at_property_declaration): Improved
7253         error message.
7254
7255 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7256
7257         * c-parser.c (c_lex_one_token): Updated and reindented some
7258         comments.  No changes in code.
7259
7260 2011-01-11  Ian Lance Taylor  <iant@google.com>
7261
7262         * godump.c (go_output_var): Don't output the variable if there is
7263         already a type with the same name.
7264
7265 2011-01-11  Ian Lance Taylor  <iant@google.com>
7266
7267         * godump.c (go_format_type): Don't generate float80.
7268
7269 2011-01-11  Richard Henderson  <rth@redhat.com>
7270
7271         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
7272         declaration.  Rewrite for both speed and size.
7273         (mn10300_address_cost_1): Remove.
7274         (mn10300_register_move_cost): New.
7275         (mn10300_memory_move_cost): New.
7276         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
7277         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
7278         extensions, shifts, BSWAP, CLZ.
7279         (mn10300_wide_const_load_uses_clr): Remove.
7280         (TARGET_REGISTER_MOVE_COST): New.
7281         (TARGET_MEMORY_MOVE_COST): New.
7282         * config/mn10300/mn10300-protos.h: Update.
7283         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
7284
7285         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
7286         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
7287         * config/mn10300/mn10300-protos.h: Update.
7288         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
7289         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
7290         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
7291         (*test_int_bitfield, *test_byte_bitfield): Remove.
7292         (*bit_test, *subreg_bit_test): Remove.
7293         * config/mn10300/predicates.md (const_8bit_operand): Remove.
7294
7295         * config/mn10300/constraints.md ("c"): Rename from "A".
7296         ("A", "D"): New constraint letters.
7297         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
7298         (fmssf4, fnmasf4, fnmssf4): Likewise.
7299
7300         * config/mn10300/mn10300.md (isa): New attribute.
7301         (enabled): New attribute.
7302
7303         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
7304         (abssf2, negsf2): Define only for hardware fp.
7305         (sqrtsf2): Reformat.
7306         (addsf3, subsf3, mulsf3): Merge expander and insn.
7307
7308         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
7309         (DEBUGGER_AUTO_OFFSET): Remove.
7310         (DEBUGGER_ARG_OFFSET): Remove.
7311
7312         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
7313         Emit register stores with the same offsets as the hardware.
7314         (mn10300_store_multiple_operation): Don't check that the register
7315         save offsets are monotonic.
7316         * config/mn10300/mn10300-protos.h: Update.
7317
7318         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
7319
7320         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
7321         in terms of the value on the stack, not the MDR register.
7322
7323 2011-01-11  Jan Hubicka  <jh@suse.cz>
7324
7325         PR lto/45721
7326         PR lto/45375
7327         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
7328         (symbol_alias_set_destroy, symbol_alias_set_contains,
7329         propagate_aliases_backward): Declare.
7330         * lto-streamer-out.c (struct sets): New sturcture.
7331         (trivally_defined_alias): New function.
7332         (output_alias_pair_p): Rewrite.
7333         (output_unreferenced_globals): Fix output of alias pairs.
7334         (produce_symtab): Likewise.
7335         * ipa.c (function_and_variable_visibility): Set weak alias destination
7336         as needed in lto.
7337         * varasm.c (symbol_alias_set_t): Remove.
7338         (symbol_alias_set_destroy): Export.
7339         (propagate_aliases_forward, propagate_aliases_backward): New functions
7340         based on ...
7341         (compute_visible_aliases): ... this one; remove.
7342         (trivially_visible_alias): New
7343         (trivially_defined_alias): New.
7344         (remove_unreachable_alias_pairs): Rewrite.
7345         (finish_aliases_1): Reorganize code checking if alias is defined.
7346         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
7347         in LTO mode.
7348
7349 2011-01-11  Richard Guenther  <rguenther@suse.de>
7350
7351         PR tree-optimization/46076
7352         * tree-ssa.c (useless_type_conversion_p): Conversions from
7353         unprototyped to empty argument list function types are useless.
7354
7355 2011-01-11  Richard Guenther  <rguenther@suse.de>
7356
7357         PR middle-end/45235
7358         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
7359         volatile MEMs as MEM_READONLY_P.
7360
7361 2011-01-11  Richard Guenther  <rguenther@suse.de>
7362
7363         PR tree-optimization/47239
7364         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
7365
7366 2011-01-11  Jeff Law  <law@redhat.com>
7367
7368         PR tree-optimization/47086
7369         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
7370         IVs from statements that might throw.
7371
7372 2011-01-10  Jan Hubicka  <jh@suse.cz>
7373
7374         PR lto/45375
7375         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
7376
7377 2011-01-10  Jan Hubicka  <jh@suse.cz>
7378
7379         PR lto/45375
7380         * profile.c (read_profile_edge_counts): Ignore profile inconistency
7381         when correcting profile.
7382
7383 2011-01-10  Jan Hubicka  <jh@suse.cz>
7384
7385         PR lto/46083
7386         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
7387         DECL_FINI_PRIORITY.
7388         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
7389         Restore DECL_FINI_PRIORITY.
7390
7391 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7392
7393         * doc/gimple.texi: Fix quoting of multi-word return values in
7394         @deftypefn statements.  Ensure presence of return value.  Wrap
7395         overlong @deftypefn lines.
7396         (is_gimple_operand, is_gimple_min_invariant_address): Remove
7397         descriptions of removed functions.
7398         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
7399         of multi-word return value in @deftypefn statement.
7400
7401 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7402
7403         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
7404         (Conditional Expressions, Logical Operators)
7405         (Statement and operand traversals): Do not indent smallexample
7406         code.  Fix duplicate function argument in example.
7407
7408 2011-01-10  Jeff Law  <law@redhat.com>
7409
7410         PR tree-optimization/47141
7411         * ipa-split.c (split_function): Handle case where we are
7412         returning a value and the return block has a virtual operand phi.
7413
7414 2011-01-10  Jan Hubicka  <jh@suse.cz>
7415
7416         PR tree-optimization/47234
7417         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
7418         (pass_feedback_split_functions): Declare.
7419         * passes.c (init_optimization_passes): Add ipa-split as subpass of
7420         tree-profile.
7421         * ipa-split.c (gate_split_functions): Update comments; disable
7422         split-functions for profile_arc_flag and branch_probabilities.
7423         (gate_feedback_split_functions): New function.
7424         (execute_feedback_split_functions): New function.
7425         (pass_feedback_split_functions): New global var.
7426
7427 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
7428
7429         PR lto/46760
7430         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
7431         calling gimple_call_set_cannot_inline.
7432
7433 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
7434
7435         * config/darwin-sections.def: Remove unused section.
7436
7437 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
7438
7439         PR c++/47218
7440         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
7441
7442 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
7443
7444         PR objc/47232
7445         * c-parser.c (c_parser_declaration_or_fndef): Improved
7446         error message.
7447
7448 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
7449
7450         * config/i386/winnt.c (i386_pe_start_function): Make sure
7451         to switch back to function's section.
7452
7453 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
7454
7455         PR gcc/46902
7456         PR testsuite/46912
7457         * plugin.c: Move include of dlfcn.h from here...
7458         * system.h: ... to here.
7459
7460 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7461
7462         * doc/cpp.texi (C++ Named Operators): Fix markup for header
7463         file name.
7464         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
7465         two extra empty pages in PDF output.
7466
7467 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
7468
7469         PR objc/47078
7470         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
7471         for error recovery purposes behave as if it was not specified so
7472         that the default type is usd.
7473
7474 2011-01-07  Jan Hubicka  <jh@suse.cz>
7475
7476         PR tree-optmization/46469
7477         * ipa.c (function_and_variable_visibility): Clear needed flags on
7478         nodes with external decls; handle weakrefs merging correctly.
7479
7480 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
7481
7482         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
7483         not false.
7484
7485 2011-01-07  Jan Hubicka  <jh@suse.cz>
7486
7487         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
7488         and no longer claim that gold is required for linker plugin.
7489         * configure: Regenerate.
7490         * gcc.c (PLUGIN_COND): New macro.
7491         (LINK_COMMAND_SPEC): Use it.
7492         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
7493         * config.in (HAVE_LTO_PLUGIN): New.
7494         * configure.ac (--with-lto-plugin): New parameter; autodetect
7495         HAVE_LTO_PLUGIN.
7496
7497 2011-01-07  Jan Hubicka  <jh@suse.cz>
7498
7499         PR tree-optimization/46367
7500         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
7501         when we can update original.
7502         (cgraph_mark_inline_edge): Sanity check.
7503         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
7504
7505 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7506
7507         * config/spu/spu.h (ASM_COMMENT_START): Define.
7508
7509 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
7510
7511         PR driver/42445
7512         * gcc.c (%>S): New.
7513         (SWITCH_KEEP_FOR_GCC): Likewise.
7514         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
7515         (do_spec_1): Handle "%>".
7516
7517         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
7518
7519 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
7520
7521         PR target/47201
7522         * config/i386/i386.c (ix86_delegitimize_address): If
7523         simplify_gen_subreg fails, return orig_x.
7524
7525         PR bootstrap/47187
7526         * value-prof.c (gimple_stringop_fixed_value): Handle
7527         lhs of the call properly.
7528
7529 2011-01-07  Jan Hubicka  <jh@suse.cz>
7530
7531         PR lto/45375
7532         * lto-opt.c (lto_reissue_options): Set flag_shlib.
7533
7534 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
7535
7536         * target.def (function_switched_text_sections): New hook.
7537         * doc/tm.texi: Regenerated.
7538         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7539         * final.c (default_function_switched_text_sections): New.
7540         (final_scan_insn): Call function_switched_text_sections when a
7541         mid-function section change occurs.
7542         * output.h (default_function_switched_text_sections): Declare.
7543         * config/darwin-protos.h (darwin_function_switched_text_sections):
7544         Likewise.
7545         * config/darwin.c (darwin_function_switched_text_sections): New.
7546         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7547
7548 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
7549
7550         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
7551         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
7552         the secondary code fragment when outputting for DWARF == 2.
7553
7554 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
7555
7556         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7557         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
7558         Remove.
7559         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
7560         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7561
7562 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
7563
7564         PR debug/46704
7565         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
7566         when it is not empty.
7567
7568 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
7569
7570         Bobcat Enablement
7571         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
7572         (case ${target}): Add btver1.
7573         * config/i386/driver-i386.c (host_detect_local_cpu): Let
7574         -march=native recognize btver1 processors.
7575         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7576         btver1 def_and_undef
7577         * config/i386/i386.c (struct processor_costs btver1_cost): New
7578         btver1 cost table.
7579         (m_BTVER1): New definition.
7580         (m_AMD_MULTIPLE): Includes m_BTVER1.
7581         (initial_ix86_tune_features): Add btver1 tune.
7582         (processor_target_table): Add btver1 entry.
7583         (static const char *const cpu_names): Add btver1 entry.
7584         (software_prefetching_beneficial_p): Add btver1.
7585         (ix86_option_override_internal): Add btver1 instruction sets.
7586         (ix86_issue_rate): Add btver1.
7587         (ix86_adjust_cost): Add btver1.
7588         * config/i386/i386.h (TARGET_BTVER1): New definition.
7589         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
7590         (enum processor_type): Add PROCESSOR_BTVER1.
7591         * config/i386/i386.md (define_attr "cpu"): Add btver1.
7592
7593 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7594
7595         PR target/43309
7596         * config/i386/i386.c (legitimize_tls_address)
7597         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
7598         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
7599         (tls_initial_exec_64_sun): New pattern.
7600
7601 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
7602
7603         * doc/invoke.texi (Overall Options): Improve wording and markup
7604         of the description of -wrapper.
7605
7606 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
7607
7608         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
7609         rdynamic, threads): New Driver options.
7610
7611 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7612
7613         PR target/38118
7614         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
7615         if coming from .tdata.
7616         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7617
7618 2011-01-06  Jan Hubicka  <jh@suse.cz>
7619
7620         PR lto/47188
7621         * collect2.c (main): Do not enable LTOmode when plugin is active.
7622
7623 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7624
7625         PR other/45915
7626         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
7627         --version output if supported.
7628         * configure: Regenerate.
7629
7630 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
7631
7632         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
7633         Driver options.
7634
7635 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
7636
7637         PR c/47150
7638         * c-convert.c (convert): When converting a complex expression
7639         other than COMPLEX_EXPR to a different complex type, ensure
7640         c_save_expr is called instead of save_expr, unless in_late_binary_op.
7641         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
7642         when converting COMPLEX_TYPE.
7643
7644 2011-01-06  Ira Rosen  <irar@il.ibm.com>
7645
7646         PR tree-optimization/47139
7647         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
7648         only the last reduction value is used outside the loop.  Update
7649         documentation.
7650
7651 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
7652
7653         * config/rtems.opt: New.
7654         * config.gcc (*-*-rtems*): Use rtems.opt.
7655
7656 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
7657
7658         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
7659         processors do not support 3DNow instructions.
7660
7661 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7662
7663         * config/spu/spu.c (spu_option_override): Set parameter
7664         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
7665
7666 2011-01-05  Jan Hubicka  <jh@suse.cz>
7667
7668         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
7669         at the command line.
7670
7671 2011-01-05  Martin Jambor  <mjambor@suse.cz>
7672
7673         PR lto/47162
7674         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
7675         deltas on streamed outgoing edges.
7676         (output_node_opt_summary): Output info for outgoing edges only when
7677         the node is in new parameter set.
7678         (output_cgraph_opt_summary): New parameter set, passed to the two
7679         aforementioned functions.  Update its forward declaration and its
7680         callee too.
7681
7682 2011-01-05  Tom Tromey  <tromey@redhat.com>
7683
7684         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
7685         operator to c_finish_omp_atomic.
7686         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
7687         (build_unary_op): Update.
7688         (build_modify_expr): Update.
7689         (build_asm_expr): Update.
7690
7691 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7692
7693         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
7694         newly inserted insns.
7695         (pad_bb): Likewise.
7696         (spu_emit_branch_hint): Likewise.
7697         (insert_hbrp_for_ilb_runout): Likewise.
7698         (spu_machine_dependent_reorg): Call df_finish_pass after
7699         schedule_insns returns.
7700
7701 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7702
7703         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
7704
7705 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7706
7707         PR tree-optimization/47005
7708         * tree-sra.c (struct access): Add 'non_addressable' bit.
7709         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
7710         (decide_one_param_reduction): Return 0 if the parameter is passed by
7711         reference and one of the accesses in the group is non_addressable.
7712
7713 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7714
7715         PR tree-optimization/47056
7716         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
7717         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
7718         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
7719
7720 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7721
7722         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
7723         initializer.  Skip view conversions from aggregate types.
7724
7725 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
7726
7727         PR bootstrap/47055
7728         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
7729
7730 2011-01-04  Philipp Thomas  <pth@suse.de>
7731
7732         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
7733         obvious typo.
7734
7735 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7736
7737         * function.c (thread_prologue_and_epilogue_insns): Do not crash
7738         on empty epilogue sequences.
7739
7740 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
7741
7742         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
7743         non-static): New Driver options.
7744
7745 2011-01-04  Jie Zhang  <jie@codesourcery.com>
7746
7747         PR driver/47137
7748         * gcc.c (default_compilers[]): Set combinable field to 0
7749         for all assembly languages.
7750
7751 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
7752
7753         * config/mips/loongson3a.md: New file.
7754         * config/mips/mips.md: Include loongson3a.md.
7755         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
7756         TUNE_LOONGSON_3A.
7757
7758 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
7759
7760         PR middle-end/47017
7761         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
7762         instead of convert_memory_address_addr_space on the base expression.
7763
7764 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7765
7766         * config/spu/spu.c (spu_option_override): Update error text
7767         for bad -march= / -mtune= values.
7768
7769 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7770
7771         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
7772         if branch-hint optimization will be performed.
7773
7774 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
7775
7776         PR tree-optimization/47148
7777         * ipa-split.c (split_function): Convert arguments to
7778         DECL_ARG_TYPE if possible.
7779
7780         PR tree-optimization/47155
7781         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
7782         when computing uns.
7783
7784         PR rtl-optimization/47157
7785         * combine.c (try_combine): If undobuf.other_insn becomes
7786         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
7787         and set *new_direct_jump_p too.
7788
7789 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
7790
7791         PR tree-optimization/47021
7792         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
7793
7794 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
7795
7796         * gcc.c (process_command): Update copyright notice dates.
7797         * gcov.c (print_version): Likewise.
7798         * gcov-dump.c (print_version): Likewise.
7799         * mips-tfile.c (main): Likewise.
7800         * mips-tdump.c (main): Likewise.
7801
7802 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7803
7804         PR tree-optimization/46801
7805         * tree-sra.c (type_internals_preclude_sra_p): Check whether
7806         aggregate fields start at byte boundary instead of the bit-field flag.
7807
7808 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
7809
7810         PR driver/47137
7811         * gcc.c (main): Revert revision 168407.
7812
7813 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7814
7815         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
7816
7817 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7818
7819         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
7820         vector optab to expand vector/scalar shift, update gimple to vector.
7821
7822 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7823
7824         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
7825         a thunk.
7826
7827 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7828
7829         PR tree-optimization/46984
7830         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
7831         HOST_WIDE_INT.
7832         (cgraph_create_indirect_edge): Fixed line length.
7833         (cgraph_indirect_call_info): Declare.
7834         (cgraph_make_edge_direct) Update declaration.
7835         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
7836         (cgraph_create_indirect_edge): Use it.
7837         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
7838         callees.
7839         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
7840         the new thunk_delta representation.
7841         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
7842         HOST_WIDE_INT.
7843         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
7844         (ipa_read_indirect_edge_info): Likewise.
7845         * lto-cgraph.c (output_edge_opt_summary): New function.
7846         (output_node_opt_summary): Call it on all outgoing edges.
7847         (input_edge_opt_summary): New function.
7848         (input_node_opt_summary): Call it on all outgoing edges.
7849
7850 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
7851
7852         PR driver/47137
7853         * gcc.c (main): Don't check have_o when settting combine_inputs.
7854
7855 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
7856
7857         * regrename.c: Add general comment describing the pass.
7858         (struct du_head): Remove 'length' field.
7859         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
7860         (regrename_optimize): Do not sort chains.  Rework comments, add others.
7861         Force renaming to the preferred class (if any) in the first pass and do
7862         not consider registers that belong to it in the second pass.
7863         (create_new_chain): Do not set 'length' field.
7864         (scan_rtx_reg): Likewise.
7865
7866 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
7867
7868         PR tree-optimization/47140
7869         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
7870         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
7871         to bit_value_binop.
7872
7873         PR rtl-optimization/47028
7874         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
7875         parm_birth_insn instead of at the beginning of first bb.
7876
7877 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
7878
7879         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
7880         Remove the word "see" before "@pxref".
7881         * doc/rtl.texi: Remove the word "see" before "@pxref".
7882
7883 2011-01-01  Jan Hubicka  <jh@suse.cz>
7884
7885         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
7886         memory.
7887
7888 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
7889
7890         PR target/38662
7891         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
7892
7893 \f
7894 Copyright (C) 2011 Free Software Foundation, Inc.
7895
7896 Copying and distribution of this file, with or without modification,
7897 are permitted in any medium without royalty provided the copyright
7898 notice and this notice are preserved.