OSDN Git Service

2011-12-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-12-15  Richard Guenther  <rguenther@suse.de>
2
3         PR lto/51564
4         * tree.h (REGISTER_DEFS_IN_THIS_STMT, NECESSARY,
5         STMT_IN_SSA_EDGE_WORKLIST): Remove no longer existing flag
6         uses documentation.
7         (TREE_ASM_WRITTEN): Update documentation to mention its use
8         on TYPE_DECLs from debug info generation.
9         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
10         TREE_ASM_WRITTEN as always zero for TYPE_DECLs, similar to
11         all other types.
12
13 2011-12-15  Georg-Johann Lay  <avr@gjlay.de>
14
15         PR target/51050
16         * config/avr/avr.c (expand_epilogue): Don't build SUBREG of fp.
17         (avr_prologue_setup_frame): Ditto.
18
19 2011-12-15  Jakub Jelinek  <jakub@redhat.com>
20
21         PR debug/51517
22         * tree-ssa-coalesce.c (coalesce_ssa_name): For !optimize, test
23         !DECL_IGNORED_P instead of !DECL_ARTIFICIAL.
24
25 2012-12-15  Richard Guenther  <rguenther@suse.de>
26
27         Revert
28         PR lto/48437
29         * lto-streamer-out.c (tree_is_indexable): Exclude block-local
30         extern declarations.
31
32         PR lto/48508
33         PR lto/48437
34         * tree-streamer-out.c (streamer_write_chain): Stream DECL_EXTERNAL
35         VAR_DECLs and FUNCTION_DECLs locally.
36
37 2011-12-14  Richard Henderson  <rth@redhat.com>
38
39         * config/arm/arm.md (*addsi3_compare0_scratch): Set predicable.
40         (*compare_negsi_si, *compare_addsi2_op0): Likewise.
41         (*compare_addsi2_op1, *zeroextractsi_compare0_scratch): Likewise.
42         (*compareqi_eq0, *arm_cmpsi_insn, *arm_cmpsi_negshiftsi_si): Likewise.
43
44 2011-12-14  Richard Guenther  <rguenther@suse.de>
45
46         * tree-cfg.c (replace_uses_by): Fixup TREE_CONSTANT for
47         propagating all kinds of constants.
48
49 2011-12-14  Richard Guenther  <rguenther@suse.de>
50
51         PR lto/51497
52         * lto-streamer-in.c (lto_read_body): Fixup local types
53         TYPE_CANONICAL and variant chain.
54
55 2011-12-14  Richard Guenther  <rguenther@suse.de>
56
57         * tree.c (free_lang_data_in_type): Do not clear fields
58         dependent on debuginfo level setting.
59         (find_decls_types_r): Use TYPE_STUB_DECL rathern than TREE_CHAIN.
60         * tree.h (TYPE_STUB_DECL): Properly check that we access a type.
61
62 2011-12-14  Georg-Johann Lay  <avr@gjlay.de>
63
64         PR target/50931
65         * config/avr/avr.md (mulpsi3): New expander.
66         (*umulqihipsi3, *umulhiqipsi3): New insns.
67         (*mulsqipsi3.libgcc, *mulpsi3.libgcc): New insns.
68         (mulsqipsi3, *mulpsi3): New insn-and-splits.
69         (ashlpsi3): Turn to expander.  Move insn code to...
70         (*ashlpsi3): ...this new insn.
71
72 2011-12-14  Richard Guenther  <rguenther@suse.de>
73
74         * tree-cfg.c (replace_uses_by): Only mark blocks altered
75         that will make a difference.  Only recompute ADDR_EXPR
76         invariantness if it could possibly have changed.  Do so
77         before folding the statement.
78
79 2011-12-13  Eric Botcazou  <ebotcazou@adacore.com>
80
81         * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
82         * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
83         * lto-streamer-in.c (lto_read_body): Likewise.
84         (lto_input_toplevel_asms): Likewise.
85         * lto-section-in.c (lto_create_simple_input_block): Likewise.
86         * ipa-inline-analysis.c (inline_read_section): Likewise.
87         * ipa-prop.c (ipa_prop_read_section): Likewise.
88
89         * df.h (DF_NOTE): Fix typo in comment.
90
91 2011-12-13  Aldy Hernandez  <aldyh@redhat.com>
92
93         * trans-mem.c (ipa_tm_create_version_alias): Set DECL_CONTEXT and
94         DECL_LANG_SPECIFIC.
95
96 2011-12-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
97
98         * regmove.c (fixup_match_2): Only access call_used_regs with hard regs.
99
100 2011-12-13  Andrew Pinski  <apinski@cavium.com>
101             Adam Nemet  <anemet@caviumnetworks.com>
102
103         * config/mips/mips-cpus.def: Add Octeon2.
104         * config/mips/mips-tables.opt: Regenerate.
105         * config/mips/mips.md (define_attr "cpu"): Add Octeon2.
106         * config/mips/driver-native.c (host_detect_local_cpu): Support Octeon2.
107         * config/mips/octeon.md (octeon_arith): Add Octeon2.
108         (octeon_condmove): Likewise.
109         (octeon_load): Rename to ..
110         (octeon_load_o1): this.
111         (octeon_load_o2): New reserve.
112         (octeon_cop_o2): New reserve.
113         (octeon_store):  Match Octeon2 also.
114         (octeon_brj): Rename to ..
115         (octeon_brj_o1): this.
116         (octeon_brj_o2): New reserve.
117         (octeon_imul3): Rename to ...
118         (octeon_imul3_o1): this.
119         (octeon_imul3_o2): New reserve.
120         (octeon_imul): Rename to ...
121         (octeon_imul_o1): this.
122         (octeon_imul_o2): New reserve.
123         (octeon_mfhilo): Rename to ...
124         (octeon_mfhilo_o1): This.
125         (octeon_mfhilo_o2): New reserve.
126         (octeon_imadd): Rename to ...
127         (octeon_imadd_o1): this.
128         (octeon_imadd_o2): New reserve.
129         (octeon_idiv): Rename to ..
130         (octeon_idiv_o1): This.
131         (octeon_idiv_o2_si): New reserve.
132         (octeon_idiv_o2_di): Likewise.
133         (octeon_unknown): Match Octeon2 also.
134         * config/mips/mips.c (mips_rtx_cost_data): Add Octeon2 cost data.
135         (mips_issue_rate): Octeon2 can issue 2 at a time.
136         * config/mips/mips.h (TARGET_OCTEON): Match Octeon2 also.
137         (TARGET_OCTEON2): New define.
138         (TUNE_OCTEON): Match Octeon2 also.
139
140 2011-12-13  Richard Henderson  <rth@redhat.com>
141
142         * config/sparc/tso.h: New file.
143         * config.gcc (sparc-*-linux*, sparc*-*-solaris2*): Use it.
144         * config/sparc/sparc.c (sparc_option_override): Honor
145         SUBTARGET_DEFAULT_MEMORY_MODEL.
146         * config/sparc/sparc.h (SUBTARGET_DEFAULT_MEMORY_MODEL): New.
147
148 2011-12-13  Aldy Hernandez  <aldyh@redhat.com>
149
150         PR middle-end/51443
151         * trans-mem.c (struct diagnose_tm): Remove saw_unsafe.
152         (diagnose_tm_1): Same.
153         (ipa_tm_execute): Do not test tm_may_enter_irr before we set it.
154         (ipa_tm_scan_irr_function): Return gracefully when no
155         DECL_STRUCT_FUNCTION.
156         (ipa_tm_scan_irr_block): Believe the user on TM attributes.
157
158 2011-12-13  Martin Jambor  <mjambor@suse.cz>
159
160         PR middle-end/50628
161         * tree-sra.c (propagate_subaccesses_across_link): Do not propagate
162         sub-accesses of scalar accesses.
163
164 2011-12-13  Martin Jambor  <mjambor@suse.cz>
165
166         PR tree-optimization/51362
167         * ipa-cp.c (estimate_local_effects): When estimated size of a
168         specialized clone is zero, bump it to one.
169
170 2011-12-13  Richard Guenther  <rguenther@suse.de>
171
172         PR lto/48354
173         * tree.c (find_decls_types_r): Also walk DECL_ORIGINAL_TYPE.
174         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
175         Stream DECL_ORIGINAL_TYPE.
176         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers):
177         Likewise.
178
179 2011-12-13  Jakub Jelinek  <jakub@redhat.com>
180
181         Revert
182         2011-12-12  Jakub Jelinek  <jakub@redhat.com>
183
184         PR tree-optimization/51481
185         * gimple-fold.c (gimple_fold_call): Call
186         maybe_clean_or_replace_eh_stmt.  Avoid optimization if stmt has EH
187         edges, but gimple_fold_builtin result can't throw.
188
189 2011-12-13  Jakub Jelinek  <jakub@redhat.com>
190             Michael Matz  <matz@suse.de>
191
192         PR tree-optimization/51117
193         * tree-eh.c (sink_clobbers): New function.
194         (execute_lower_eh_dispatch): Call it for BBs ending with
195         internally throwing RESX.
196         * cfgexpand.c (add_scope_conflicts_1): Add all conflicts only
197         at the first real instruction.
198
199 2011-12-13  Tristan Gingold  <gingold@adacore.com>
200
201         * final.c (final_scan_insn): Guard the call to begin_epilogue
202         debug hook.
203
204 2011-12-13  Tristan Gingold  <gingold@adacore.com>
205
206         * vmsdbgout.c (vmsdbgout_write_source_line): New function.
207         (vmsdbgout_end_prologue): Call vmsdbgout_write_source_line.
208         (vmsdbgout_begin_epilogue): Likewise.
209         (vmsdbgout_end_epilogue): Likewise.
210         (vmsdbgout_source_line): Move code to vmsdbgout_write_source_line.
211
212 2011-12-13  Richard Guenther  <rguenther@suse.de>
213
214         PR middle-end/51481
215         * tree-cfg.c (replace_uses_by): Pass proper arguments to
216         maybe_clean_or_replace_eh_stmt.
217
218 2011-12-13  Richard Guenther  <rguenther@suse.de>
219
220         PR tree-optimization/51519
221         * ipa-inline.c (edge_badness): Use edge growth in non-guessed
222         branch probability case as well.
223
224 2011-12-13  Revital Eres  <revital.eres@linaro.org>
225
226         * modulo-sched.c (mark_loop_unsched): Free bbs.
227
228 2011-12-12  Jakub Jelinek  <jakub@redhat.com>
229
230         PR rtl-optimization/51495
231         * function.c (thread_prologue_and_epilogue_insns): Don't add
232         to bb_tail basic blocks that have EDGE_COMPLEX predecessor edges
233         from basic blocks not needing prologue.
234
235         PR tree-optimization/51481
236         * gimple-fold.c (gimple_fold_call): Call
237         maybe_clean_or_replace_eh_stmt.  Avoid optimization if stmt has EH
238         edges, but gimple_fold_builtin result can't throw.
239
240 2011-12-12  Vladimir Makarov  <vmakarov@redhat.com>
241
242         PR rtl-optimization/21617
243         * ira-color.c (bucket_allocno_compare_func): Don't compare
244         allocno classes.  Compare number of hard registers needed.
245
246 2011-12-12  Eric Botcazou  <ebotcazou@adacore.com>
247
248         PR tree-optimization/50569
249         * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
250         in the expression of MODEL instead of just the last one.
251
252 2011-12-12  Jakub Jelinek  <jakub@redhat.com>
253
254         PR middle-end/51510
255         * calls.c (internal_arg_pointer_based_exp_scan): Don't use
256         VEC_safe_grow_cleared if idx is smaller than VEC_length.
257
258 2011-12-12  Richard Sandiford  <richard.sandiford@linaro.org>
259
260         PR middle-end/50873
261         * optabs.c (maybe_legitimize_operand_same_code): Use copy_to_mode_reg
262         instead of force_reg.  Do nothing if the address is already a
263         non-virtual pseudo register.
264
265 2011-12-12  Torvald Riegel  <triegel@redhat.com>
266
267         * gimplify.c (voidify_wrapper_expr): Add default handling for
268         outermost wrapper.
269
270 2011-12-12  Torvald Riegel  <triegel@redhat.com>
271
272         * tree-ssa-tail-merge.c (gimple_equal_p): Don't treat transaction
273         commits as equal.
274
275 2011-12-12  Iain Sandoe  <iains@gcc.gnu.org>
276
277         * config/darwin-sections.def (zobj_const_data_section): Fix over-
278         length section name.
279
280 2011-12-11  Richard Henderson  <rth@redhat.com>
281
282         * config/rs6000/rs6000.c (rs6000_expand_interleave): Use
283         BYTES_BIG_ENDIAN, not TARGET_BIG_ENDIAN.
284
285 2011-12-11  Jakub Jelinek  <jakub@redhat.com>
286
287         PR tree-optimization/51485
288         * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
289         DRs in call stmts.
290
291 2011-12-11  Patrick Marlier  <patrick.marlier@gmail.com>
292
293         * trans-mem.c (ipa_tm_transform_calls_redirect): Do not remove edge.
294
295 2011-12-10  Richard Henderson  <rth@redhat.com>
296
297         * config/rs6000/altivec.md (altivec_vmrghb): Rewrite pattern as
298         vec_select + vec_concat.
299         (altivec_vmrghh, altivec_vmrghw, altivec_vmrghsf, altivec_vmrglb,
300         altivec_vmrglh, altivec_vmrglw, altivec_vmrglsf): Likewise.
301         (vec_perm_constv16qi): New.
302         (vec_extract_evenv4si, vec_extract_evenv4sf, vpkuhum_nomode,
303         vpkuwum_nomode, vec_extract_oddv8hi, vec_extract_oddv16qi,
304         vec_interleave_high<VI>, vec_interleave_low<VI>): Remove.
305         * config/rs6000/paired.md (paired_merge00): Rewrite pattern as
306         vec_select + vec_concat.
307         (paired_merge10, paired_merge01, paired_merge11): Likewise.
308         (vec_perm_constv2sf): New.
309         (vec_interleave_highv2sf, vec_interleave_lowv2sf,
310         vec_extract_evenv2sf, vec_extract_oddv2sf): Remove.
311         * config/rs6000/spe.md (spe_evmergehi): Rewrite pattern as
312         vec_select + vec_concat.
313         (spe_evmergehilo, spe_evmergelo, spe_evmergelohi): New.
314         (vec_perm_constv2si): New.
315         * config/rs6000/vector.md (vec_interleave_highv4sf,
316         vec_interleave_lowv4sf, vec_interleave_high<VEC_64>,
317         vec_interleave_low<VEC_64>): Remove.
318         * config/rs6000/vsx.md (VS_double): New mode attribute.
319         (UNSPEC_VSX_XXPERMDI): Remove.
320         (vsx_xxpermdi_<VSX_L>_1): Rewrite pattern as vec_select + vec_concat.
321         (vsx_xxmrghw_<VSX_W>, vsx_xxmrglw_<VSX_W>): Likewise.
322         (vsx_xxpermdi_<VSX_L>): Change to expander.
323         (vec_perm_const<VSX_D>): New.
324         (vsx_mergel_<VSX_D>, vsx_mergeh_<VSX_D>): New.
325         * config/rs6000/predicates.md (const_0_to_1_operand): New.
326         (const_2_to_3_operand): New.
327         * config/rs6000/rs6000.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
328         (altivec_expand_vec_perm_const): New.
329         (rs6000_expand_vec_perm_const_1, rs6000_expand_vec_perm_const): New.
330         (rs6000_vectorize_vec_perm_const_ok): New.
331         (rs6000_do_expand_vec_perm): New.
332         (rs6000_expand_extract_even, rs6000_expand_interleave): New.
333         * config/rs6000/rs6000-builtin.def (VEC_MERGE*): Update rtx codes.
334         * config/rs6000/rs6000-modes.def: Add double-wide vector modes.
335         * config/rs6000/rs6000-protos.h: Update.
336
337 2011-12-10  Richard Henderson  <rth@redhat.com>
338
339         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Avoid passing a
340         CONST_INT to expand_vec_perm as the selector.
341         * optabs.c (expand_vec_perm): Assert the selector is of a proper mode.
342
343 2011-12-10  Richard Henderson  <rth@redhat.com>
344
345         * genmodes.c (struct mode_data): Remove wider_2x member.
346         (blank_mode): Adjust initializer.
347         (calc_wider_mode): Use XALLOCAVEC.
348         (emit_move_wider): Select double-width same-element vectors for
349         2xwider vectors.
350         * machmode.h (GET_MODE_2XWIDER_MODE): Update documentation.
351         * config/i386/i386.c (doublesize_vector_mode): Remove.
352         (expand_vselect_vconcat): Use GET_MODE_2XWIDER_MODE instead.
353
354 2011-12-10  Joern Rennecke  <joern.rennecke@embecosm.com>
355
356         * config/epiphany/epiphany.h (USE_LOAD_POST_INCREMENT): Define.
357         (USE_LOAD_POST_DECREMENT, USE_STORE_POST_INCREMENT): Likewise.
358         (USE_STORE_POST_DECREMENT): Likewise.
359
360         * config/epiphany/epiphany.h (EPIPHANY_RETURN_REGNO): New macro,
361         broken out of ..
362         (INCOMING_RETURN_ADDR_RTX) .. this.  Use EPIPHANY_RETURN_REGNO.
363         (DWARF_FRAME_RETURN_COLUMN): New macro.
364
365         * config/epiphany/epiphany-protos.h (epiphany_start_function): Declare.
366         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
367         Split "timer" value into "timer0" and "timer1".
368         Handle page_miss, message and wand.  Don't handle static_flag.
369         Adjust warning text.
370         (epiphany_start_function): New function.
371         (epiphany_compute_function_type): Split "timer" value into "timer0"
372         and "timer1".  Handle page_miss, message and wand.
373         Don't handle static_flag.
374         (epiphany_expand_epilogue): Don't use frame_insn for status / iret
375         restore.
376         * config/epiphany/epiphany.h: ASM_DECLARE_FUNCTION_NAME: Define.
377         (enum epiphany_function_type):
378         Split EPIPHANY_FUNCTION_TIMER value into EPIPHANY_FUNCTION_TIMER0
379         and EPIPHANY_FUNCTION_TIMER1.
380         Remove EPIPHANY_FUNCTION_ILINK1 and EPIPHANY_FUNCTION_ILINK2 values.
381         Add EPIPHANY_FUNCTION_PAGE_MISS and EPIPHANY_FUNCTION_MESSAGE values.
382         Rename EPIPHANY_FUNCTION_STATIC_FLAG to EPIPHANY_FUNCTION_WAND.
383
384 2011-12-10  Nathan Sidwell  <nathan@acm.org>
385
386         PR gcov-profile/51449
387         * coverage.c (coverage_end_function): Always process the coverage
388         variables.
389
390 2011-12-09  Aldy Hernandez  <aldyh@redhat.com>
391
392         PR/51291
393         * tree.c (build_common_builtin_nodes): Do not use TM_PURE
394         attribute unless language has support for TM.
395         * config/i386/i386.c (ix86_init_tm_builtins): Exit gracefully in
396         the absence of TM builtins.
397
398 2011-12-09  Eric Botcazou  <ebotcazou@adacore.com>
399
400         * gimple-fold.c (gimple_fold_stmt_to_constant_1) <GIMPLE_UNARY_RHS>:
401         Also check the TYPE_MODE to recognize useless pointer conversions.
402
403 2011-12-09  Jakub Jelinek  <jakub@redhat.com>
404
405         PR tree-optimization/51117
406         * tree-eh.c (optimize_clobbers): Don't remove just one
407         clobber, but all consecutive clobbers before RESX.
408         Use gimple_clobber_p predicate.
409
410 2011-12-09  Michael Meissner  <meissner@the-meissners.org>
411
412         * config/rs6000/rs6000.c (altivec_expand_builtin): Call
413         expand_call to return a valid funciton instead of return
414         cosnt0_rtx/NULL_RTX if there was an error with the builtin.
415         (altivec_expand_ld_builtin): Ditto.
416         (rs6000_inner_target_options): If VSX is selected as a target
417         attribute or pragma, enable ALTIVEC also.
418         (rs6000_pragma_target_parse): Call rs6000_option_override_internal
419         to do all of the standard processing when switching options,
420         including redefining appropriate macros.
421
422         PR rtl-optimization/51469
423         * varasm.c (default_binds_local_p_1): If the symbol is a gnu
424         indirect function, mark the symbol as non-local.
425
426 2011-12-09  H.J. Lu  <hongjiu.lu@intel.com>
427
428         PR bootstrap/51479
429         * Makefile.in (errors.o): Restored.
430
431 2011-12-09  Richard Guenther  <rguenther@suse.de>
432
433         PR lto/48042
434         * tree.c (free_lang_data_in_decl): Remove freeing conditional
435         on debuginfo level.
436
437 2011-12-09  Joern Rennecke  <joern.rennecke@embecosm.com>
438
439         PR middle-end/40154
440         * emit-rtl.c (set_dst_reg_note): New function.
441         * rtl.h (set_dst_reg_note): Declare.
442         * optabs.c (expand_binop, expand_absneg_bit): Use set_dst_reg_note.
443         (emit_libcall_block, expand_fix): Likewise.
444         * function.c (assign_parm_setup_reg, expand_function_start): Likewise.
445         * expmed.c (expand_mult_const, expand_divmod): Likewise.
446         * reload1.c (gen_reload): Likewise.
447
448         * dse.c (get_stored_val, get_call_args): Use gen_int_mode.
449         * expmed.c (expand_divmod): Likewise.
450         * combine.c (simplify_if_then_else): Likewise.
451
452 2011-12-09  Kai Tietz  <ktietz@redhat.com>
453
454         * ira-color.c (print_hard_regs_subforest): Use
455         HOST_WIDEST_INT_PRINT_DEC instead of %lld.
456         (allocno_hard_regs): Change type of cost member to HOST_WIDEST_INT.
457         (add_allocno_hard_regs): Change type of argument cost
458         to HOST_WIDEST_INT.
459         * ira-conflict.c (build_conflict_bit_table): Replace use
460         of long-long by HOST_WIDEST_INT.
461
462 2011-12-09  Georg-Johann Lay  <avr@gjlay.de>
463
464         PR target/51425
465         * config/avr/avr.md (config/avr/avr.md, *sbix_branch_tmp): Use
466         zero_extract:QIHI instead of zero_extract:HI.
467
468 2011-12-09  Jakub Jelinek  <jakub@redhat.com>
469             Andrew Pinski  <apinski@cavium.com>
470
471         PR tree-optimization/51117
472         * tree-eh.c (optimize_clobbers): New function.
473         (execute_lower_eh_dispatch): Call it.
474
475 2011-12-09  Richard Guenther  <rguenther@suse.de>
476
477         PR tree-optimization/51482
478         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
479         Make sure to only create REAL_TYPE and INTEGER_TYPE component vectors.
480
481 2011-12-09  Kai Tietz  <ktietz@redhat.com>
482
483         * implicit-zee.c (num_realized): Change type to long.
484         (num_ze_opportunities): Likewise.
485
486 2011-12-08  Andrew Pinski  <apinski@cavium.com>
487
488         * config/mips/mips-cpus.def (octeon+): New CPU.
489         * config/mips/mips-tables.opt: Regenerate.
490         * config/mips/mips.h (MIPS_CPP_SET_PROCESSOR): Emit '+' as 'P'.
491
492 2011-12-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
493
494         PR middle-end/39976
495         * tree-ssa-dom.c (enum expr_kind): Add EXPR_PHI.
496         (struct hashable_expr): Add struct phi field.
497         (initialize_hash_element): Handle phis; change to use XCNEWVEC.
498         (hashable_expr_equal_p): Handle phis.
499         (iterative_hash_hashable_expr): Likewise.
500         (print_expr_hash_elt): Likewise.
501         (free_expr_hash_elt): Likewise.
502         (dom_opt_enter_block): Create equivalences from redundant phis.
503         (eliminate_redundant_computations): Handle redundant phis.
504         (lookup_avail_expr): Handle phis.
505
506 2011-12-08  Jakub Jelinek  <jakub@redhat.com>
507
508         PR tree-optimization/51466
509         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
510         TREE_SIDE_EFFECTS.
511
512 2011-12-08  Richard Guenther  <rguenther@suse.de>
513
514         * tree-ssa-operands.c (add_stmt_operand): Do not mark stmts
515         volatile when processing operands of an ADDR_EXPR.
516         (get_indirect_ref_operands): Likewise.
517         (get_tmr_operands): Likewise.
518         (get_expr_operands): Likewise.
519
520 2011-12-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
521
522         PR target/50395
523         * config/s390/s390.c (s390_mainpool_finish): Emit the jump over
524         the literal pool as jump insn.
525
526 2011-12-08  Richard Guenther  <rguenther@suse.de>
527
528         PR tree-optimization/49772
529         * tree-inline.c (optimize_inline_calls): Remove bail out on errors.
530
531 2011-12-08  Richard Guenther  <rguenther@suse.de>
532
533         PR lto/50747
534         * lto-streamer-out.c (produce_symtab): Remove asserts.
535
536 2011-12-08  Richard Guenther  <rguenther@suse.de>
537
538         PR lto/49945
539         * lto-streamer-out.c (tree_is_indexable): Localize variably
540         modified types and their FIELD_DECLs.
541
542 2011-12-08  Eric Botcazou  <ebotcazou@adacore.com>
543
544         PR tree-optimization/51315
545         * tree.h (get_object_or_type_alignment): Declare.
546         * expr.c (get_object_or_type_alignment): Move to...
547         * builtins.c (get_object_or_type_alignment): ...here.  Add assertion.
548         * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
549         (tree_non_aligned_mem_p): ...this.  Add ALIGN parameter.  Look into
550         MEM_REFs and use get_object_or_type_alignment for them.
551         (build_accesses_from_assign): Adjust for above change.
552         (access_precludes_ipa_sra_p): Likewise.
553
554 2011-12-08  Richard Guenther  <rguenther@suse.de>
555
556         PR lto/48437
557         * lto-streamer-out.c (tree_is_indexable): Exclude block-local
558         extern declarations.
559
560 2011-12-07  Andrew Pinski  <apinski@cavium.com>
561
562         PR middle-end/45416
563         * expr.c (do_store_flag): Rewrite code that looks for BIT_AND_EXPR for
564         SSA-expand.
565
566 2011-12-07  Richard Guenther  <rguenther@suse.de>
567
568         PR tree-optimization/50823
569         * ipa-inline.c (edge_badness): Do not account for the number of
570         remaining calls.
571
572 2011-12-07  Martin Jambor  <mjambor@suse.cz>
573
574         PR tree-optimization/50744
575         * ipa-cp.c (good_cloning_opportunity_p): Assert size_cost is positive,
576         compute evaluation in HOST_WIDEST_INT.
577         (safe_add): New function
578         (propagate_effects): Use safe_add to accumulate effects.
579
580 2011-12-06  Joel Sherrill <joel.sherrill@oarcorp.com>
581
582         * config/rs6000/rtems.h: Switch to using global_options_set
583         in SUBSUBTARGET_OVERRIDE_OPTIONS.
584
585 2011-12-06  David S. Miller  <davem@davemloft.net>
586
587         * config/sparc/visintrin.h: Add appropriate __VIS__ cpp protection.
588
589 2011-12-06  Georg-Johann Lay  <avr@gjlay.de>
590
591         * config/avr/avr.c (avr_file_start): Fix missing ,
592
593 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
594
595         PR target/51354
596         * config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note
597         unconditionally.
598
599 2011-12-06  Georg-Johann Lay  <avr@gjlay.de>
600
601         Forward-port from gcc-4_6-branch r181936 2011-12-02.
602         * config/avr/avr-mcus.def (avr_mcu_types): ATtiny4313 and
603         AT86RF401 have a 16-bit SP (their manual is bogus).
604
605 2011-12-06  Georg-Johann Lay  <avr@gjlay.de>
606
607         Forward-port from gcc-4_6-branch r181936 2011-12-02.
608
609         PR target/51002
610         * config/avr/avr.md (movhi_sp_r): Set insn condition to
611         !AVR_HAVE_8BIT_SP.
612         * config/avr/avr.c (output_movhi): Use "clr%B0" instead of "in
613         %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
614         (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
615
616 2011-12-06  Georg-Johann Lay  <avr@gjlay.de>
617
618         PR target/51409
619         PR target/49868
620         * config/avr/avr.h (ADDR_SPACE_PGM, ADDR_SPACE_PGM1,
621         ADDR_SPACE_PGM2, ADDR_SPACE_PGM3, ADDR_SPACE_PGM4,
622         ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): Write as enum.
623         (avr_addrspace_t): New typedef.
624         (avr_addrspace): New declaration.
625         * config/avr/avr-c.c (avr_toupper): New static function.
626         (avr_register_target_pragmas, avr_cpu_cpp_builtins): Use
627         avr_addrspace to get address space information.
628         * config/avr/avr.c (avr_addrspace): New variable.
629         (avr_out_lpm, avr_pgm_check_var_decl, avr_insert_attributes,
630         avr_asm_named_section, avr_section_type_flags,
631         avr_asm_select_section, avr_addr_space_address_mode,
632         avr_addr_space_convert, avr_emit_movmemhi): Use it.
633         (avr_addr_space_pointer_mode): Forward to avr_addr_space_address_mode.
634         (avr_pgm_segment): Remove.
635
636 2011-12-06  Richard Guenther  <rguenther@suse.de>
637
638         PR middle-end/50601
639         * varasm.c (assemble_alias): Move DECL_EXTERNAL implementation
640         quirk adjustjment ...
641         * passes.c (rest_of_decl_compilation): ... here.
642
643 2011-12-06  Richard Guenther  <rguenther@suse.de>
644
645         PR middle-end/51436
646         * gimple-fold.c (gimplify_and_update_call_from_tree): Guard vdef check
647         for the fact we do not have virtual operands when not optimizing.
648
649 2011-12-06  Richard Guenther  <rguenther@suse.de>
650
651         PR tree-optimization/51245
652         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
653         New function.
654         (vn_reference_lookup_3): Use it.  Properly valueize all refs we create.
655
656 2011-12-06  Iain Sandoe  <iains@gcc.gnu.org>
657
658         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
659         rs6000_current_abi.
660
661 2011-12-06  Richard Guenther  <rguenther@suse.de>
662
663         PR tree-optimization/51363
664         * gimple.c (gimple_rhs_has_side_effects): Remove.
665         * gimple.h (gimple_rhs_has_side_effects): Likewise.
666         * tree-ssa-dom.c (optimize_stmt): Simplify conditional.
667
668 2011-12-06  Alan Modra  <amodra@gmail.com>
669
670         PR target/50906
671         * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
672         Do not mark r11 setup as frame-related.  Pass correct offset to
673         rs6000_emit_savres_rtx.  Correct out-of-line rs6000_frame_related
674         arguments.  Correct sp_offset.  Remove "offset" fudge from
675         in-line rs6000_frame_related call.  Rename misleading variable.
676         Fix comments and whitespace.  Tidy some expressions.
677         (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
678         to r11 in out-of-line case.  Correct sp_offset.  Pass correct
679         offset to rs6000_emit_savres_rtx.  Rename misleading variable.
680         Fix comments and whitespace.  Tidy some expressions.
681         (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
682         adjustment when !saving_GPRs_inline.  Correct register mode
683         used in address calcs.
684         (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
685         !restoring_GPRs_inline.
686
687 2011-12-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
688
689         * config/arm/vfp.md (*combine_vcvt_f64_<FCVTI32typename>): Fix
690         formatting character for vmov.f64 case.
691
692 2011-12-05  Jakub Jelinek  <jakub@redhat.com>
693
694         PR tree-optimization/51396
695         * tree-ssa-math-opts.c (convert_mult_to_fma): Don't optimize
696         if MUL_RESULT has zero uses.
697
698         PR debug/51410
699         * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
700         for debug info if scope is file_scope.
701
702         PR c/51339
703         * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
704         relayout_decl instead of layout_decl.
705
706 2011-12-05  Richard Sandiford  <rdsandiford@googlemail.com>
707
708         * resource.c (init_resource_info): Only consider EXIT_IGNORE_STACK
709         if there is in epilogue.
710
711 2011-12-05  Richard Sandiford  <rdsandiford@googlemail.com>
712
713         * optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target
714         to emit_library_call_value.
715         (expand_atomic_compare_and_swap): Likewise.
716
717 2011-12-05  Vladimir Makarov  <vmakarov@redhat.com>
718
719         PR other/50775
720         * ira-int.h (struct ira_object): Remove add_data.
721         (OBJECT_ADD_DATA): Remove.
722
723         * ira-build.c (ira_create_object): Remove OBJECT_ADD_DATA
724         initialization.
725
726         * ira-color.c (object_hard_regs_t, object_hard_regs): Rename to
727         allocno_hard_regs_t, allocno_hard_regs.
728         (object_hard_regs_node_t, object_hard_regs_node): Rename to
729         allocno_hard_regs_node_t and allocno_hard_regs_node.
730         (struct allocno_color_data): Add new member last_process.  Move
731         profitable_hard_regs, hard_regs_node, and hard_regs_subnodes_start
732         from object_color_data.
733         (object_color_data_t, object_color_data, OBJECT_COLOR_DATA): Remove.
734         (curr_allocno_process): New static variable.
735         (object_hard_regs_eq, object_hard_regs_htab): Rename to
736         allocno_hard_regs_eq and allocno_hard_regs_htab.
737         (init_object_hard_regs, finish_object_hard_regs): Rename to
738         init_allocno_hard_regs and finish_allocno_hard_regs.
739         (object_hard_regs_compare, object_hard_regs_node_t): Rename to
740         allocno_hard_regs_compare and allocno_hard_regs_node_t.
741         (create_new_object_hard_regs_node): Rename to
742         create_new_allocno_hard_regs_node.
743         (add_new_object_hard_regs_node_to_forest): Rename to
744         add_new_allocno_hard_regs_node_to_forest.
745         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover):
746         Rename to add_allocno_hard_regs_to_forest and
747         collect_allocno_hard_regs_cover.
748         (setup_object_hard_regs_nodes_parent): Rename to
749         setup_allocno_hard_regs_nodes_parent.
750         (remove_unused_object_hard_regs_nodes): Rename to
751         remove_unused_allocno_hard_regs_nodes.
752         (enumerate_object_hard_regs_nodes, object_hard_regs_nodes_num):
753         Rename to enumerate_allocno_hard_regs_nodes and
754         allocno_hard_regs_nodes_num.
755         (object_hard_regs_nodes, object_hard_regs_subnode_t): Rename to
756         allocno_hard_regs_nodes and allocno_hard_regs_subnode_t.
757         (object_hard_regs_subnode, object_hard_regs_subnodes): Rename to
758         allocno_hard_regs_subnode and allocno_hard_regs_subnodes.
759         (object_hard_regs_subnode_index): Rename to
760         allocno_hard_regs_subnode_index.
761         (setup_object_hard_regs_subnode_index): Rename to
762         setup_allocno_hard_regs_subnode_index.
763         (get_object_hard_regs_subnodes_num): Rename to
764         get_allocno_hard_regs_subnodes_num.
765         (form_object_hard_regs_nodes_forest): Rename to
766         form_allocno_hard_regs_nodes_forest.
767         (finish_object_hard_regs_nodes_tree): Rename to
768         form_allocno_hard_regs_nodes_forest
769         (finish_object_hard_regs_nodes_forest): Rename to
770         finish_allocno_hard_regs_nodes_forest.
771         (setup_left_conflict_sizes_p): Use allocno data instead of object ones.
772         Process conflict allocnos once.
773         (update_left_conflict_sizes_p): Use allocno data instead of object
774         ones.  Change prototype signature.
775         (empty_profitable_hard_regs): Use allocno data instead of object ones.
776         (setup_profitable_hard_regs): Ditto.
777         (get_conflict_profitable_regs): Rename to
778         get_conflict_and_start_profitable_regs.  Use allocno data for
779         profitable regs calculation.
780         (check_hard_reg_p): Change prototype signature.  Check profitable
781         regs for allocno not the objects.
782         (assign_hard_reg): Process conflict allocnos only once for
783         updating conflict costs.
784         (setup_allocno_available_regs_num): Use allocno data instead of
785         object ones.  Modify debug output.
786         (color_pass): Remove initialization and finalization of object
787         color data.
788
789 2011-12-05  Kazu Hirata  <kazu@codesourcery.com>
790
791         PR target/51408
792         * config/arm/arm.md (*minmax_arithsi): Always require the else
793         clause in the MINUS case.
794
795 2011-12-05  Richard Guenther  <rguenther@suse.de>
796
797         PR tree-optimization/50904
798         * tree-ssa-loop-im.c (struct mem_ref): Remove vops member.
799         (MEM_ANALYZABLE): New.
800         (memory_references): Remove clobbered_vops and vop_ref_map
801         members, add all_refs_stored_in_loop member.
802         (memref_free): Adjust.
803         (mem_ref_alloc): Likewise.
804         (gather_mem_refs_stmt): Do not record clobbers, instead
805         record refs for unanalyzable stmts.
806         (gather_mem_refs_in_loops): Do not propagate clobbers.
807         (struct vop_to_refs_elt, vtoe_hash, vtoe_eq, vtoe_free,
808         record_vop_access, get_vop_accesses, get_vop_stores,
809         add_vop_ref_mapping): Remove.
810         (create_vop_ref_mapping_loop): Adjust to simply record all stores.
811         (analyze_memory_references): Adjust.
812         (refs_independent_p): Check for not analyzable refs.
813         (can_sm_ref_p): Likewise.
814         (ref_indep_loop_p_1): Simplify.
815         (tree_ssa_lim_finalize): Adjust.
816
817         * tree-ssa-loop-im.c (stmt_cost): Simplify, use LIM_EXPENSIVE
818         rather than magic constants.  Assign zero cost to PAREN_EXPR
819         and SSA_NAME copies.  Assign cost proportional to the vector
820         size for vector constructors.
821
822 2011-12-05  Richard Guenther  <rguenther@suse.de>
823
824         * tree-ssa-alias.h (struct ao_ref_s): Add volatile_p field.
825         * tree-ssa-alias.c (ao_ref_init): Initialize it.
826         (ao_ref_init_from_ptr_and_size): Likewise.
827         (refs_may_alias_p_1): Two volatile accesses conflict.
828         (ref_maybe_used_by_call_p_1): Likewise.
829         (call_may_clobber_ref_p_1): Likewise.
830         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Initialize
831         volatile_p field.
832
833 2011-12-05  Richard Guenther  <rguenther@suse.de>
834
835         * tree-ssa.c (verify_ssa): Verify SSA names in the loop over all SSA
836         names.  Remove SSA operand checking, call verify_ssa_operands.
837         * tree-ssa-operands.h (verify_ssa_operands): Declare.
838         * tree-ssa-operands.c (verify_ssa_operands): New function.
839
840 2011-12-05  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
841
842         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Define.
843         * config/arm/arm-protos.h (vfp3_const_double_for_fract_bits): Declare.
844         * config/arm/constraints.md ("Dt"): New constraint.
845         * config/arm/predicates.md
846         (const_double_vcvt_power_of_two_reciprocal): New.
847         * config/arm/vfp.md (FCVTI32typename): New.
848         (FCVT): New iterator.
849         (*combine_vcvt_f32_<FCVTI32typename>): New.
850         (*combine_vcvt_f64_<FCVTI32typename>): New.
851
852 2011-12-05  Richard Guenther  <rguenther@suse.de>
853
854         * cgraph.c (cgraph_create_edge_1): Initialize
855         call_stmt_cannot_inline_p from the stmt if possible.
856         (cgraph_make_edge_direct): Likewise.
857         * gimple-streamer-in.c (input_gimple_stmt): Do not
858         call gimple_call_set_cannot_inline.
859         * gimple.h (enum gf_mask): Remove GF_CALL_CANNOT_INLINE, shift values.
860         (gimple_call_set_cannot_inline): Remove.
861         (gimple_call_cannot_inline_p): Likewise.
862         * ipa-inline-analysis.c (initialize_inline_failed): Look
863         at the edge call_stmt_cannot_inline_p flag.
864         * ipa-inline.c (can_inline_edge_p): Likewise.
865         (early_inliner): Only update the edge flag.
866         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
867         (ipa_modify_call_arguments): Do not call gimple_call_set_cannot_inline.
868         * cgraphunit.c (assemble_thunk): Likewise.
869         * gimple-fold.c (gimple_fold_call): Likewise.
870
871         * tree.h (CALL_CANNOT_INLINE_P): Remove.
872         * tree-mudflap.c (mf_xform_statements): Do not modify alloca calls.
873         * builtins.c (expand_builtin_alloca): With -fmudflap do not expand
874         alloca calls inline.
875         * cfgexpand.c (expand_call_stmt): Do not set CALL_CANNOT_INLINE_P.
876         * gimple.c (gimple_build_call_from_tree): Do not read
877         CALL_CANNOT_INLINE_P.
878         * gimplify.c (gimplify_call_expr): Do not copy CALL_CANNOT_INLINE_P.
879
880 2011-12-05  Jakub Jelinek  <jakub@redhat.com>
881             Eric Botcazou  <ebotcazou@adacore.com>
882
883         PR middle-end/51323
884         PR middle-end/50074
885         * calls.c (internal_arg_pointer_exp_state): New variable.
886         (internal_arg_pointer_based_exp_1,
887         internal_arg_pointer_exp_scan): New functions.
888         (internal_arg_pointer_based_exp): New function.
889         (mem_overlaps_already_clobbered_arg_p): Use it.
890         (expand_call): Free internal_arg_pointer_exp_state.cache vector
891         and clear internal_arg_pointer_exp_state.scan_start.
892
893 2011-12-04  Kaz Kojima  <kkojima@gcc.gnu.org>
894
895         * config/sh/linux.h (TARGET_DEFAULT): Add MASK_SOFT_ATOMIC.
896         * config/sh/sync.md: New file.
897         * config/sh/sh.md: Include sync.md.
898         * config/sh/sh.opt (msoft-atomic): New option.
899         * doc/invoke.texi (SH Options): Document it.
900
901 2011-12-04  Nathan Sidwell  <nathan@acm.org>
902
903         * gcov-io.h (struct gcov_info): Replace trailing array with
904         pointer to array.
905         * profile.c (branch_prob): Only call renamed
906         coverage_begin_function once.
907         * coverage.h (coverage_begin_output): Rename to ...
908         (coverage_begin_function): ... here.
909         * coverage.c (struct function_list): Rename to ...
910         (struct coverage_data): ... this.  Update all uses.
911         (gcov_info_var, gcov_fn_info_type, gcov_fn_info_ptr_type): New globals.
912         (bbg_file_opened, bbg_function_announced): Remove.
913         (get_coverage_counts): Adjust message.
914         (coverage_begin_ouput): Rename to ...
915         (coverage_begin_function): ... here.  Move file opening to
916         coverage_init.  Adjust for being called only once.
917         (coverage_end_function): Remove bbg file and inhibit further
918         output here on error.
919         (build_info_type): Adjust for change to pointer to array.
920         (build_info): Receive array of function pointers and adjust.
921         (create_coverage): Break into ...
922         (coverage_obj_init, coverage_obj_fn, coverage_obj_finish):
923         ... these, and adjust.
924         (coverage_init): Open the notes file here.  Tidy.
925         (coverage_finish): Call coverage_obj_init etc.
926
927 2011-12-04  Ira Rosen  <ira.rosen@linaro.org>
928
929         PR middle-end/51285
930         * tree-vect-loop.c (vect_create_epilog_for_reduction): Create exit
931         phi nodes for outer loop in case of double reduction.
932
933 2011-12-04  Jérémie Detrey  <Jeremie.Detrey@loria.fr>
934
935         PR target/51393
936         * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
937         parameter as long long.
938
939 2011-12-04  Richard Sandiford  <rdsandiford@googlemail.com>
940
941         PR middle-end/51351
942         * optabs.c (init_sync_libfuncs): Use "or" rather than "ior"
943         in the external names.
944
945 2011-12-03  Jack Howarth <howarth@bromo.med.uc.edu>
946
947         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for
948         non-PIC code when targeting 10.7 or later.
949
950 2011-12-03  Iain Sandoe  <iains@gcc.gnu.org>
951
952         * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
953         Darwin >= 10.
954         (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
955         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
956
957 2011-12-03  Jakub Jelinek  <jakub@redhat.com>
958
959         * fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR,
960         VEC_UNPACK_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
961         VEC_UNPACK_FLOAT_HI_EXPR with VECTOR_CST argument.
962         (fold_binary_loc): Fold VEC_PACK_TRUNC_EXPR,
963         VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR
964         and VEC_WIDEN_MULT_HI_EXPR with VECTOR_CST arguments.
965
966         PR debug/50317
967         * tree-ssa.c (target_for_debug_bind): Also allow is_gimple_reg_type
968         vars that aren't referenced.
969         (tree-ssa-live.c (remove_unused_locals): Don't clear TREE_ADDRESSABLE
970         of unreferenced local vars.
971         * cfgexpand.c (expand_debug_expr): For DEBUG_IMPLICIT_PTR allow also
972         TREE_ADDRESSABLE vars that satisfy target_for_debug_bind.
973
974 2011-12-03  Anatoly Sokolov  <aesok@post.ru>
975
976         * config/arm/arm.h (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove.
977         * config/arm/arm-protos.h (aapcs_libcall_value): Remove.
978         * config/arm/arm.c (TARGET_FUNCTION_VALUE_REGNO_P): Define.
979         (arm_libcall_value_1, arm_function_value_regno_p): New function.
980         (arm_function_value, arm_libcall_value): Use arm_libcall_value_1.
981         (aapcs_libcall_value): Make static.
982         (arm_libcall_value): Add static qualifier.
983
984 2011-12-02  Jakub Jelinek  <jakub@redhat.com>
985
986         PR target/51387
987         * config/i386/sse.md (mul<mode>3 with VI1_AVX2 iterator): For
988         V32QImode use { 0,2,..,14,32,34,..,46,16,18,..,30,48,50,..,62 }
989         permutation instead of extract even permutation.
990
991 2011-12-02  Nathan Sidwell  <nathan@acm.org>
992
993         * gcov.c (struct arc_info): Add is_throw field.
994         (struct (block_info): Add exceptional field, reduce flags size to
995         account for it.
996         (struct function_info): Add has_catch field.
997         (struct line_info): Add unexceptional field.
998         (process_file): Call find_exception_blocks if necessary.
999         (read_graph_file): Adjust.  Note if an exceptional edge is seen.
1000         (find_exception_blocks): New.
1001         (add_line_counts): Set line's unexceptional flag if not exceptional.
1002         (output_branch_count): Note exceptional arcs, lines and blocks.
1003         * gcov-dump.c (tag_arcs): Decode arc flags.
1004         * doc/gcov.texi: Document '=====' lines.
1005
1006 2011-12-02  Anatoly Sokolov  <aesok@post.ru>
1007
1008         * config/ia64/ia64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1009         PRINT_OPERAND_PUNCT_VALID_P): Remove macros.
1010         * config/ia64/ia64-protos.h (ia64_print_operand,
1011         ia64_print_operand_address): Remove.
1012         * config/ia64/ia64.c (TARGET_PRINT_OPERAND,
1013         TARGET_PRINT_OPERAND_ADDRESS, TARGET_PRINT_OPERAND_PUNCT_VALID_P):
1014         Define.
1015         (ia64_print_operand_punct_valid_p): New function.
1016         (ia64_print_operand, ia64_print_operand_address): Make static.
1017
1018 2011-12-02  Michael Meissner  <meissner@the-meissners.org>
1019
1020         PR target/51390
1021         * config/rs6000/rs6000.c (def_builtin): Use the correct field to
1022         figure out the function's attributes.
1023         (struct builtin_description): Mark mask field as const since we no
1024         longer need to modify it for SPE and PAIRED builtins.
1025
1026 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
1027
1028         Revert:
1029
1030         2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1031
1032         PR rtl-opt/37451
1033         * loop-doloop.c (doloop_modify): New argument zero_extend_p and
1034         zero extend count after the correction to it is done.
1035         (doloop_optimize): Update call to doloop_modify, don't zero extend
1036         count before call.
1037
1038         2008-11-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1039
1040         PR rtl-opt/37782
1041         * loop-doloop.c (doloop_modify): Add from_mode argument that says what
1042         mode count is in.
1043         (doloop_optimize): Update call to doloop_modify.
1044
1045 2011-12-02  Richard Guenther  <rguenther@suse.de>
1046
1047         PR lto/47259
1048         * ipa.c (varpool_externally_visible_p): Register variables
1049         are always externally visible.
1050
1051 2011-12-02  Sameera Deshpande  <sameera.deshpande@arm.com>
1052
1053         * gimple-pretty-print.c (dump_gimple_call): Dereference fn only if
1054           non-NULL.
1055
1056 2011-12-02  Martin Jambor  <mjambor@suse.cz>
1057
1058         PR tree-optimization/50622
1059         * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
1060         if both lacc and racc are grp_partial_lhs.
1061
1062 2011-12-01  Kaz Kojima  <kkojima@gcc.gnu.org>
1063
1064         PR target/50814.
1065         * config/sh/sh.c (expand_ashiftrt): Handle TARGET_SH2A same as
1066         TARGET_SH3.
1067         (shl_sext_kind): Likewise.
1068         * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Likewise.
1069         * config/sh/sh.md (ashlsi3_sh2a, ashrsi3_sh2a, lshrsi3_sh2a): Remove.
1070         (ashlsi3_std): Handle TARGET_SH2A same as TARGET_SH3.
1071         (ashlsi3): Likewise.
1072         (ashrsi3_d): Likewise.
1073         (lshrsi3_d): Likewise.
1074         (lshrsi3): Likewise.
1075
1076 2011-12-01  Diego Novillo  <dnovillo@google.com>
1077
1078         PR bootstrap/51346
1079         * ipa-inline.c (can_inline_edge_p): If the edge E has a statement,
1080         use the statement's inline indicator instead of E's.
1081         Remove consistency check.
1082
1083 2011-12-01  Diego Novillo  <dnovillo@google.com>
1084
1085         PR bootstrap/51346
1086         Revert
1087
1088         2011-11-29  Diego Novillo  <dnovillo@google.com>
1089
1090         * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
1091         Update field call_stmt_cannot_inline_p from call
1092         graph edge, if needed.
1093         * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
1094
1095 2011-12-01  Nathan Sidwell  <nathan@acm.org>
1096
1097         PR gcov-profile/51113
1098         * coverage.c (build_var): Keep coverage variables static.
1099
1100 2011-12-01  Jakub Jelinek  <jakub@redhat.com>
1101
1102         PR tree-optimization/51356
1103         * tree-vect-patterns.c (vect_recog_bool_pattern): Give up if
1104         vectype doesn't have VECTOR_MODE_P.
1105
1106         PR debug/50317
1107         * tree-ssa-dce.c (remove_dead_stmt): Add a debug stmt when removing
1108         as unnecessary a store to a variable with gimple reg type.
1109         * tree-ssa-live.c (remove_unused_locals): Clear TREE_ADDRESSABLE bit
1110         on local unreferenced variables.
1111         * cfgexpand.c (expand_gimple_basic_block): Don't emit DEBUG_INSNs
1112         for !target_for_debug_bind variables.
1113
1114 2011-12-01  Patrick Marlier  <patrick.marlier@gmail.com>
1115
1116         PR middle-end/51273
1117         * cgraph.h (cgraph_call_node_duplication_hooks): Declare.
1118         * cgraph.c (cgraph_call_node_duplication_hooks): Make global.
1119         * cgraphunit.c (cgraph_copy_node_for_versioning): Call it.
1120
1121 2011-12-01  Andrew Pinski  <apinski@cavium.com>
1122
1123         PR lto/51198
1124         * tree.c (free_lang_data_in_decl): Clear FIELD_DECL's
1125         DECL_INITIAL also.
1126
1127 2011-12-01  Jakub Jelinek  <jakub@redhat.com>
1128
1129         PR tree-optimization/51246
1130         * tree-predcom.c (replace_ref_with): Handle also clobber on the rhs.
1131
1132         PR rtl-optimization/51014
1133         * loop-unroll.c (apply_opt_in_copies): Ignore label DEBUG_INSNs
1134         both from bb and orig_bb.
1135
1136 2011-12-01  Joern Rennecke  <joern.rennecke@embecosm.com>
1137
1138         PR tree-optimization/50802
1139         * tree-vrp.c (simplify_conversion_using_ranges): Rewrite test
1140         considering what happens to ranges during sign changes and/or
1141         intermediate narrowing conversions.
1142
1143 2011-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1144
1145         PR middle-end/50283
1146         * config/pa/pa.md (in_branch_delay): Disallow frame related insns.
1147         (in_nullified_branch_delay): Likewise.
1148         (in_call_delay): Likewise.
1149
1150 2011-11-30  Richard Henderson  <rth@redhat.com>
1151
1152         * predict.c (expr_expected_value_1): Assume compare-and-swap builtin
1153         boolean return is true.
1154
1155 2011-11-30  Jakub Jelinek  <jakub@redhat.com>
1156
1157         PR rtl-optimization/51044
1158         * dse.c (emit_inc_dec_insn_before): Ensure new_insn is an instruction
1159         rather than just insn body.
1160
1161         PR target/50725
1162         * function.c (thread_prologue_and_epilogue_insns): If
1163         stack_realign_drap, add drap_reg to SET_UP_BY_PROLOGUE
1164         regset.
1165
1166         PR middle-end/51089
1167         * tree-eh.c (cleanup_empty_eh_merge_phis): Add check to
1168         avoid creating duplicate edges here.
1169         (cleanup_empty_eh_unsplit): And remove it in the caller.
1170
1171 2011-11-30  Andrew Pinski  <apinski@cavium.com>
1172
1173         PR c/51321
1174         * c-parser.c (c_parser_postfix_expression): Check groktypename results
1175         before looking at the main variant.
1176
1177 2011-11-30  Jakub Jelinek  <jakub@redhat.com>
1178
1179         PR rtl-optimization/48721
1180         * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
1181         reg_pending_barrier to TRUE_BARRIER.
1182
1183         PR rtl-optimization/48721
1184         * sched-ebb.c (begin_move_insn): Insert empty unreachable
1185         block after BARRIER if insn is followed by it.
1186
1187 2011-11-30  Richard Henderson  <rth@redhat.com>
1188
1189         * config/sparc/sparc-opts.h (enum sparc_memory_model_type): New.
1190         * config/sparc/sparc.opt (mmemory-model=): New option.
1191         * doc/invoke.texi (Sparc Options): Document it.
1192         * config/sparc/sparc.c (sparc_option_override): Provide default
1193         for sparc_memory_model.
1194         (sparc_emit_membar_for_model): Omit barrier combinations that are
1195         implied by the memory model.
1196
1197 2011-11-30  Richard Henderson  <rth@redhat.com>
1198
1199         * config/sparc/sync.md (I124MODE): New mode iterator.
1200         (memory_barrier): Remove.
1201         (atomic_exchangesi): New.
1202         (swapsi): Rename from *swapsi.
1203         (atomic_test_and_set<I124MODE>): New.
1204         (ldstubqi): Rename from *ldstubqi, merge with expander.
1205         (ldstub<I24MODE>): Rename from *ldstub<I24MODE>, merge with expander.
1206         (sync_lock_test_and_setsi): Remove.
1207         (sync_lock_test_and_set<I12MODE>): Remove.
1208
1209 2011-11-30  Richard Henderson  <rth@redhat.com>
1210
1211         * config/sparc/constraints.md ("w"): New.
1212         * config/sparc/predicates.md (mem_noofs_operand): New.
1213         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Make static.
1214         Generate the boolean result of the atomic_compare_exchange.
1215         (sparc_expand_compare_and_swap): New.
1216         * config/sparc/sync.md (atomic_compare_and_swap<I>): New.
1217         (atomic_compare_and_swap<I48MODE>_1): Rename from
1218         *sync_compare_and_swap<I48MODE>, use mem_noofs_operand.
1219         (*atomic_compare_and_swapdi_v8plus): Rename from
1220         *sync_compare_and_swapdi_v8plus, use mem_noofs_operand.
1221         (sync_compare_and_swap<I12MODE>): Remove.
1222         (sync_compare_and_swap<I48MODE>): Remove.
1223
1224 2011-11-30  Richard Henderson  <rth@redhat.com>
1225
1226         * config/sparc/predicates.md (register_or_v9_zero_operand): New.
1227         * config/sparc/sparc.md (UNSPEC_ATOMIC): New.
1228         * config/sparc/sync.md (atomic_load<I>): New.
1229         (atomic_loaddi_1, atomic_store<I>, atomic_storedi_1): New.
1230
1231 2011-11-30  Richard Henderson  <rth@redhat.com>
1232
1233         * config/sparc/predicates.md (zero_or_v7_operand): New.
1234         * config/sparc/sparc.c (sparc_emit_membar_for_model): New.
1235         * config/sparc/sparc-protos.h: Update.
1236         * config/sparc/sync.md (mem_thread_fence): New.
1237         (memory_barrier): Use sparc_emit_membar_for_model.
1238         (membar, *membar_empty, *membar_storestore, *membar_storeload): New.
1239         (*membar_v8): Accept and ignore the membar mask.
1240         (*membar): Accept and print the membar mask.
1241
1242 2011-11-30  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1243
1244         * config/arm/arm.c (arm_issue_rate): Cortex-A15 can triple issue.
1245         * config/arm/arm.md (mul64): New attribute.
1246         (generic_sched): Cortex-A15 is not scheduled generically.
1247         (cortex-a15.md): Include.
1248         * config/arm/cortex-a15.md: New machine description.
1249         * config/arm/t-arm (MD_INCLUDES): Add cortex-a15.md.
1250
1251 2011-11-30  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1252
1253         * config/arm/t-arm (MD_INCLUDES): Ensure all md files are listed.
1254
1255 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
1256
1257         * doc/tm.texi.in (NEXT_OBJC_RUNTIME): Update macro description.
1258         * doc/tm.texi: Regenerate.
1259         * flags.h (flag_next_runtime): Remove references.
1260         * toplev.c: Likewise.
1261         * defaults.h (NEXT_OBJC_RUNTIME): Provide default.
1262         * gccspec.c (lang_specific_driver): Adjust use of NEXT_OBJC_RUNTIME.
1263         * config/darwin.c (darwin_override_options): Provide default
1264         Objective-C abi settings and target conflict checks.
1265         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Remove unused
1266         code. Adjust indenting.
1267
1268 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
1269
1270         * config/sh/sh.h (enum reg_class, REG_CLASS_NAMES)
1271         (REG_CLASS_CONTENTS): Add NON_SP_REGS.
1272         (REGCLASS_HAS_GENERAL_REG): Handle NON_SP_REGS.
1273         * config/sh/constraints.md (u): New constraint.
1274
1275 2011-11-29  Oleg Endo  <oleg.endo@t-online.de>
1276
1277         PR target/51337
1278         * config/sh/sh.c (sh_secondary_reload): Add case when FPUL
1279         register is being loaded from a pseudo in memory.
1280
1281 2011-11-29  DJ Delorie  <dj@redhat.com>
1282
1283         * config.gcc (rl78-*-elf): New case.
1284         * doc/extend.texi: Add RL78 documentation.
1285         * doc/invoke.texi: Likewise.
1286         * doc/md.texi: Likewise.
1287         * doc/contrib.texi: Add RL78.
1288         * doc/install.texi: Add rl78-*-elf.
1289         * config/rl78: New directory for the Renesas RL78.
1290
1291 2011-11-29  Jakub Jelinek  <jakub@redhat.com>
1292
1293         PR tree-optimization/51247
1294         * tree-vrp.c (extract_range_from_assert): For signed 1-bit precision
1295         types instead of adding 1 subtract -1 and instead of subtracting 1
1296         add -1 to avoid overflows.
1297
1298 2011-11-29  Andrew MacLeod  <amacleod@redhat.com>
1299
1300         PR target/50123
1301         * optabs.c (maybe_optimize_fetch_op): New.  Look for more optimal
1302         instructions for a FECTH_OP or OP_FECTH sequence.
1303         (expand_atomic_fetch_op): Call maybe_optimize_fetch_op.
1304
1305 2011-11-29  Uros Bizjak  <ubizjak@gmail.com>
1306
1307         * config/i386/sync.md (UNSPEC_LDA, UNSPEC_STA): New unspecs.
1308         (movdi_via_fpu): Remove.
1309         (loaddi_via_fpu): New insn pattern.
1310         (storedi_via_fpu): Ditto.
1311         (atomic_loaddi_fpu): Use loaddi_via_fpu and storedi_via_fpu.
1312         (atomic_storedi_fpu): Ditto.
1313         * reg-stack.c (get_true_reg): Handle UNSPEC_LDA.
1314         (subst_stack_regs_pat): Handle UNSPEC_STA.
1315
1316 2011-11-29  Uros Bizjak  <ubizjak@gmail.com>
1317
1318         * config/i386/i386.md (*floathi<mode>2_i387_with_temp): Do not
1319         allocate scratch memory for alternative 0.
1320
1321 2011-11-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1322
1323         * config/rs6000/rs6000-builtins.def: Completely rewrite builtin
1324         handling to centralize more of the builtins in this file.  Change
1325         some builtin enumerations to be more consistant.  Use a new mask
1326         to hold the current builtins, including SPE and PAIRED builtins
1327         which no longer are set via target_flags masks.  Add
1328         -mdebug=builtin debug support.  For power machines, define all
1329         Altivec and VSX buitins when the compiler starts, but don't allow
1330         the use of a builtin unless the appropriate switch is used, or
1331         #pragma GCC target is used to change the options.  If the user
1332         uses #pragma GCC target, update the appropriate hardware macros.
1333         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Ditto.
1334         * config/rs6000/rs6000.opt (rs6000_builtin_mask): Ditto.
1335         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Ditto.
1336         (rs6000_define_or_undefine_macro): Ditto.
1337         (rs6000_target_modify_macros): Ditto.
1338         (rs6000_cpu_cpp_builtins): Ditto.
1339         (altivec_overloaded_builtins): Ditto.
1340         (altivec_build_resolved_builtin): Ditto.
1341         * config/rs6000/rs6000.c (rs6000_target_modify_macros_ptr): Ditto.
1342         (rs6000_builtin_info): Ditto.
1343         (def_builtin): Ditto.
1344         (enable_mask_for_builtins): Ditto.
1345         (DEBUG_FMT_X): Ditto.
1346         (rs6000_debug_reg_global): Ditto.
1347         (rs6000_builtin_mask_calculate): Ditto.
1348         (rs6000_option_override_internal): Ditto.
1349         (rs6000_builtin_conversion): Ditto.
1350         (rs6000_builtin_vectorized_function): Ditto.
1351         (bdesc_3arg): Ditto.
1352         (bdesc_dst): Ditto.
1353         (bdesc_2arg): Ditto.
1354         (builtin_description_predicates): Ditto.
1355         (bdesc_altivec_preds): Ditto.
1356         (bdesc_spe_predicates): Ditto.
1357         (bdesc_spe_evsel): Ditto.
1358         (bdesc_paired_preds): Ditto.
1359         (bdesc_abs): Ditto.
1360         (bdesc_1arg): Ditto.
1361         (rs6000_overloaded_builtin_p): Ditto.
1362         (rs6000_expand_unop_builtin): Ditto.
1363         (bdesc_2arg_spe): Ditto.
1364         (spe_expand_builtin): Ditto.
1365         (rs6000_invalid_builtin): Ditto.
1366         (rs6000_expand_builtin): Ditto.
1367         (rs6000_init_builtins): Ditto.
1368         (spe_init_builtins): Ditto.
1369         (paired_init_builtins): Ditto.
1370         (altivec_init_builtins): Ditto.
1371         (builtin_function_type): Ditto.
1372         (rs6000_common_init_builtins): Ditto.
1373         (rs6000_builtin_reciprocal): Ditto.
1374         (rs6000_builtin_mask_names): Ditto.
1375         (rs6000_pragma_target_parse): Ditto.
1376         (rs6000_function_specific_print): Ditto.
1377         * config/rs6000/rs6000.h (MASK_DEBUG_BUILTIN): Ditto.
1378         (MASK_DEBUG_ALL): Ditto.
1379         (TARGET_DEBUG_BUILTIN): Ditto.
1380         (TARGET_EXTRA_BUILTINS): Ditto.
1381         (REGISTER_TARGET_PRAGMAS): Ditto.
1382         (enum rs6000_btc): Ditto.
1383         (RS6000_BTC_*): Ditto.
1384         (RS6000_BTM_*): Ditto.
1385         (enum rs6000_builtins): Ditto.
1386         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_p): Ditto.
1387         (rs6000_target_modify_macros): Ditto.
1388         (rs6000_target_modify_macros_ptr): Ditto.
1389
1390         * config/rs6000/vector.md (unsfloat<VEC_int><mode>2): Use the
1391         standard name for converting vector unsigned values to floating
1392         point.  Delete the TARGET_VECTORIZE_BUILTIN_CONVERSION hook, which
1393         is handled by machine independent code.
1394         * config/rs6000/rs6000.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Ditto.
1395         (rs6000_builtin_conversion): Ditto.
1396
1397 2011-11-29  Dodji Seketeli  <dodji@redhat.com>
1398
1399         * tree-diagnostic (struct loc_t): Rename into struct loc_map_pair.
1400         (maybe_unwind_expanded_macro_loc): Adjust.
1401
1402 2011-11-29  David Edelsohn  <dje.gcc@gmail.com>
1403             Aldy Hernandez  <aldyh@redhat.com>
1404
1405         * trans-mem.c (ipa_tm_create_version_alias): Mangle new_decl
1406         if DECL_ONE_ONLY.
1407         (ipa_tm_create_version): Same.
1408
1409 2011-11-29  Bernd Schmidt  <bernds@codesourcery.com>
1410
1411         * haifa-sched.c (recompute_todo_spec): Simplify and correct the
1412         code checking for a clobber of a condition register when deciding
1413         whether to predicate.
1414
1415 2011-11-29  Diego Novillo  <dnovillo@google.com>
1416
1417         * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
1418         Update field call_stmt_cannot_inline_p from call graph edge, if needed.
1419         * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
1420
1421 2011-11-29  Sameera Deshpande  <sameera.deshpande@arm.com>
1422
1423         * config/arm/arm.md (arm_movdi): Update NEG_POOL_RANGE.
1424         (movdf_soft_insn): Likewise.
1425         * config/arm/fpa.md (thumb2_movdf_fpa): Likewise.
1426         * config/arm/neon.md (neon_mov<mode>): Likewise.
1427         * config/arm/vfp.md (movdi_vfp): Likewise.
1428         (movdi_vfp_cortexa8): Likewise.
1429         (movdf_vfp): Likewise.
1430
1431 2011-11-29  Jakub Jelinek  <jakub@redhat.com>
1432
1433         PR middle-end/50074
1434         * expr.c (expand_expr_addr_expr_1): Don't call force_operand for
1435         EXPAND_SUM modifier.
1436
1437 2011-11-29  Ira Rosen  <ira.rosen@linaro.org>
1438
1439         PR tree-optimization/51301
1440         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check that
1441         the last statement doesn't convert to a bigger type than the original
1442         type of the computation.
1443
1444 2011-11-28  Richard Henderson  <rth@redhat.com>
1445
1446         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1447         Handle overlap between retval and oldval.  Always compute boolval
1448         from CR0 EQ value.
1449
1450 2011-11-28  Jakub Jelinek  <jakub@redhat.com>
1451
1452         PR debug/50317
1453         * tree-ssa.c (execute_update_addresses_taken): Remove
1454         var ={v} {CLOBBER} stmts instead of rewriting them into
1455         var_N ={v} {CLOBBER}.
1456
1457         PR middle-end/50907
1458         * function.c (convert_jumps_to_returns): When redirecting an edge
1459         succ to EXIT_BLOCK_PTR, clear EDGE_CROSSING flag.
1460
1461         PR tree-optimization/50078
1462         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
1463         TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
1464
1465         PR tree-optimization/50682
1466         * tree-eh.c (maybe_remove_unreachable_handlers): New function.
1467         * tree-flow.h (maybe_remove_unreachable_handlers): New prototype.
1468         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call it.
1469
1470 2011-11-28  Georg-Johann Lay  <avr@gjlay.de>
1471
1472         * doc/extend.texi (AVR Built-in Functions): Add documentation for
1473         __builtin_avr_map8 and __builtin_avr_map16.
1474
1475         * config/avr/avr.md: Document new %t and %T asm output codes.
1476         (define_c_enum "unspec"): Add UNSPEC_MAP_BITS.
1477         (adjust_len): Add map_bits.
1478         (map_bitsqi, map_bitshi): New insns.
1479         * config/avr/avr-protos.h (avr_out_map_bits): New.
1480         * config/avr/avr-protos.c (print_operand): Implement %t and %T.
1481         (adjust_insn_length): Handle ADJUST_LEN_MAP_BITS.
1482         (avr_double_int_push_digit): New function.
1483         (avr_map, avr_revert_map, avr_swap_map, avr_id_map): New functions.
1484         (avr_sig_map, avr_map_hamming_byte): New functions.
1485         (avr_out_swap_bits, avr_out_revert_bits, avr_move_bits,
1486         avr_out_map_bits): New functions.
1487         (enum avr_builtin_id): Add AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
1488         (avr_init_builtins): Populate __builtin_avr_map8, __builtin_avr_map16.
1489         (bdesc_2arg): Add __builtin_avr_map8, __builtin_avr_map16 ...
1490         (avr_expand_builtin): ...and expand them.
1491         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
1492         __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
1493
1494 2011-11-27  Richard Sandiford  <rdsandiford@googlemail.com>
1495
1496         PR target/51278
1497         * config/mips/mips.c (mips_rtx_costs): Handle baddu.
1498
1499 2011-11-27  Richard Sandiford  <rdsandiford@googlemail.com>
1500
1501         * config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.
1502
1503 2011-11-27  Richard Sandiford  <rdsandiford@googlemail.com>
1504
1505         * config/mips/mips-protos.h (mips_emit_binary): Declare.
1506         * config/mips/mips.c (mips_emit_binary): Make global.
1507         (mips_set_mips16_mode): Turn off -mfix-r4000 in MIPS16 mode.
1508         (mips_conditional_register_usage): Don't treat LO and HI as
1509         register operands in MIPS16 mode.
1510         (mips_mulsidi3_gen_fn): Use {u,}mulsidi3_{32,64}bit_mips16
1511         for MIPS16 code.
1512         * config/mips/predicates.md (muldiv_target_operand): New predicate.
1513         (move_operand): Allow hilo_operand.
1514         * config/mips/mips.md (mul<mode>3): Explicitly specify LO as the
1515         target of MIPS16 multiplies, then move it into the target register.
1516         (mul<mode>3_internal, *macc2, *msac2): Use muldiv_target_operand.
1517         (<u>mulsidi3_32bit_mips16): New expander.
1518         (<u>mulsidi3_32bit): Use muldiv_target_operand.
1519         (<u>mulsidi3_32bit_r4000): Disable for ISA_HAS_DSP.
1520         (<u>mulsidi3_64bit): Require !TARGET_MIPS16.  Split into
1521         <u>mulsidi3_64bit_split.
1522         (<u>mulsidi3_64bit_mips16): New expander.
1523         (<u>mulsidi3_64bit_split): Likewise, using expansions from
1524         two previous define_splits.
1525         (<u>mulsidi3_64bit_hilo, *muls<u>_di, <u>msubsidi4): Use
1526         muldiv_target_operand.
1527         (<su>mulsi3_highpart): Use <su>mulsi3_highpart_split for MIPS16 code.
1528         (<su>mulsi3_highpart_internal): Require !TARGET_MIPS16.
1529         Split into <su>mulsi3_highpart_split.
1530         (<su>mulsi3_highpart_split): New expander.
1531         (<su>muldi3_highpart): Turn into a define_expand.
1532         Use <su>muldi3_highpart_split for MIPS16 code.
1533         (<su>muldi3_highpart_internal): Renamed from <su>muldi3_highpart.
1534         Require !TARGET_MIPS16.  Split into <su>muldi3_highpart_split.
1535         (<su>muldi3_highpart_split): New expander.
1536         (<u>mulditi3): Explicitly specify LO as the target of MIPS16
1537         multiplies, then move it into the target register.
1538         (<u>mulditi3_internal, <u>maddsidi4): Use muldiv_target_operand.
1539         (divmod<mode>4, udivmod<mode>4): Turn into define_expands.
1540         Use <u>divmod<mode>4_split for MIPS16 code, then explicitly
1541         move LO into operand 0.
1542         (divmod<mode>4_internal, udivmod<mode>4_internal): Renamed
1543         from <u>divmod<mode>4.  Use muldiv_target_operand.
1544         Require !TARGET_MIPS16.  Split into <u>divmod<mode>4_split.
1545         (<u>divmod<mode>4_split): New expander.
1546         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): Use muldiv_target_operand.
1547         (mfhi<GPR:mode>_<HILO:mode>): Use hilo_operand.
1548
1549 2011-11-27  Richard Sandiford  <rdsandiford@googlemail.com>
1550
1551         * hard-reg-set.h (target_hard_regs): Add x_accessible_reg_set
1552         and x_operand_reg_set.
1553         (accessible_reg_set, operand_reg_set): New macros.
1554         * reginfo.c (init_reg_sets): Initialize accessible_reg_set and
1555         operand_reg_set.
1556         (saved_accessible_reg_set, saved_operand_reg_set): New variables.
1557         (save_register_info): Save them.
1558         (restore_register_info): Restore them.
1559         (init_reg_sets_1): Limit operand_reg_set to accessible_reg_set.
1560         Remove NO_REGS registers from operand_reg_set.  Treat members
1561         of operand_reg_set as fixed.
1562         * recog.c (general_operand): Check operand_reg_set rather than NO_REGS.
1563         (register_operand, nonmemory_operand): Likewise.
1564         * varasm.c (make_decl_rtl): Always use DECL_MODE as the mode of
1565         register variables.  Check accessible_reg_set and operand_reg_set.
1566         * config/mips/mips.c (mips_conditional_register_usage): Remove
1567         inaccessible register from accessible_reg_set, rather than just
1568         making them fixed.
1569
1570 2011-11-27  Gerald Pfeifer  <gerald@pfeifer.com>
1571
1572         * config/pa/pa-linux.h (TARGET_GAS): Remove comment.
1573
1574 2011-11-26  Richard Henderson  <rth@redhat.com>
1575
1576         * config/arm/arm.c (arm_init_libfuncs): Call init_sync_libfuncs
1577         for Linux.
1578
1579 2011-11-26  Richard Henderson  <rth@redhat.com>
1580
1581         * optabs.c (expand_atomic_fetch_op): Always return result.
1582
1583         * optabs.c (init_sync_libfuncs_1): Include max in iteration.
1584
1585         * omp-low.c (expand_omp_atomic): Assume anything aligned to
1586         BIGGEST_ALIGNMENT is aligned.
1587
1588 2011-11-26  Richard Henderson  <rth@redhat.com>
1589
1590         * config/m68k/m68k.md (UNSPECV_CAS_1, UNSPECV_CAS_2): New.
1591         (UNSPECV_TAS_1, UNSPECV_TAS_2): New.
1592         (I): New mode iterator.
1593         (xz): New mode attribute.
1594         * config/m68k/sync.md: New file.
1595
1596         * config/m68k/linux.h (TARGET_INIT_LIBFUNCS): New.
1597         * config/m68k/m68k.c (m68k_init_sync_libfuncs): New.
1598
1599 2011-11-26  Nathan Sidwell  <nathan@acm.org>
1600
1601         PR gcov-profile/51297
1602         * gcov.c (main): Allocate initial names and sources arrays.
1603         (find_source): Don't check for null name or source arrays here.
1604
1605 2011-11-26  Jakub Jelinek  <jakub@redhat.com>
1606
1607         PR rtl-optimization/49912
1608         * cfgrtl.c (rtl_verify_flow_info_1): Ignore also EDGE_PRESERVE bit
1609         when counting n_branch.
1610
1611 2011-11-26  Uros Bizjak  <ubizjak@gmail.com>
1612
1613         * config/i386/sync.md (movdi_via_fpu): Add %Z insn suffixes.
1614
1615 2011-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
1616
1617         PR middle-end/50074
1618         * calls.c (mem_overlaps_already_clobbered_arg_p):
1619         Return false if no outgoing arguments have been stored so far.
1620
1621 2011-11-25  Georg-Johann Lay  <avr@gjlay.de>
1622
1623         * config/avr/avr.c (print_operand): Support code = 'i' for CONST_INT.
1624
1625 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
1626
1627         PR other/51011
1628         * tree.h (is_builtin_name): No longer external.
1629         * builtins.c (is_builtin_name): Make static.
1630         * varasm.c (incorporeal_function_p): __sync and __atomic external calls
1631         are not incorporeal and may need asm label processing.
1632
1633 2011-11-25  Georg-Johann Lay  <avr@gjlay.de>
1634
1635         PR target/50566
1636         * config/avr/avr-protos.h (avr_log_t): Add field .builtin.
1637         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
1638         Don't bypass TARGET_ALL_DEBUG.  Print self-info with ?.
1639         (avr_log_vadump): Support %D and %X to print double_int.
1640         (avr_double_int_pop_digit): New static function.
1641         (avr_dump_double_int_hex): New static function.
1642
1643 2011-11-24  Enkovich Ilya  <ilya.enkovich@intel.com>
1644
1645         PR target/51287
1646         * config/i386/i386.c (distance_non_agu_define_in_bb): Fix insn
1647         attr check.
1648
1649 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
1650
1651         * optab.c (maybe_emit_atomic_exchange): New.  Try to emit an
1652         atomic_exchange pattern.
1653         (maybe_emit_sync_lock_test_and_set): New.  Try to emit an exchange
1654         using __sync_lock_test_and_set.
1655         (maybe_emit_compare_and_swap_exchange_loop): New. Try to emit an
1656         exchange using a compare_and_swap loop.
1657         (expand_sync_lock_test_and_set): New.  Expand sync_lock_test_and_set.
1658         (expand_atomic_test_and_set): New.  Expand test_and_set operation.
1659         (expand_atomic_exchange): Use new maybe_emit_* functions.
1660         (expand_atomic_store): Use new maybe_emit_* functions.
1661         * builtins.c (expand_builtin_sync_lock_test_and_set): Call
1662         expand_sync_lock_test_and_set routine.
1663         (expand_builtin_atomic_exchange): Remove parameter from call.
1664         (expand_builtin_atomic_clear): Use atomic_clear pattern if present.
1665         (expand_builtin_atomic_test_and_set): Add target and simply call
1666         expand_atomic_test_and_set.
1667         (expand_builtin): Add target to expand_builtin_atomic_test_and_set.
1668         * expr.h (expand_atomic_exchange): Add parameter.
1669         (expand_sync_lock_test_and_set): New prototype.
1670         (expand_atomic_test_and_set, expand_atomic_clear): New prototypes.
1671
1672 2011-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1673
1674         PR target/51134
1675         * config/i386/i386.h (processor_costs): Revert revision 181357.
1676         * config/i386/i386.c (cost models): Likewise.
1677         (core_cost): Likewise.
1678         (promote_duplicated_reg): Likewise.
1679         (promote_duplicated_reg_to_size): Likewise.
1680         (processor_target): Likewise.
1681         (expand_set_or_movmem_via_loop_with_iter): Likewise.
1682         (expand_set_or_movmem_via_loop): Likewise.
1683         (emit_strset): Likewise.
1684         (expand_movmem_epilogue): Likewise.
1685         (expand_setmem_epilogue): Likewise.
1686         (expand_movmem_prologue): Likewise.
1687         (expand_setmem_prologue): Likewise.
1688         (expand_constant_movmem_prologue): Likewise.
1689         (expand_constant_setmem_prologue): Likewise.
1690         (decide_alg): Likewise.
1691         (decide_alignment): Likewise.
1692         (ix86_expand_movmem): Likewise.
1693         (ix86_expand_setmem): Likewise.
1694         (ix86_slow_unaligned_access): Likewise.
1695         * config/i386/i386.md (strset): Likewise.
1696         * config/i386/sse.md (vec_dupv4si): Likewise.
1697         (vec_dupv2di): Likewise.
1698
1699 2011-11-24  Georg-Johann Lay  <avr@gjlay.de>
1700
1701         * config/avr/avr.md (*rotlhi2.15): Set length to 4.
1702
1703 2011-11-24  Razya Ladelsky  <razya@il.ibm.com>
1704
1705         * tree-data-ref.c (initialize_data_dependence_relation): Update
1706         comment for the self dependence case.
1707         (compute_self_dependence): Remove.
1708         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove call to
1709         compute_self_dependenc.
1710
1711 2011-11-24  Alan Modra  <amodra@gmail.com>
1712
1713         * c-decl.c (warn_if_shadowing): Don't warn if shadowed
1714         identifier is from system header.
1715
1716 2011-11-23  Jakub Jelinek  <jakub@redhat.com>
1717
1718         PR target/51261
1719         * config/i386/i386.c (decide_alg): Initialize *dynamic_check
1720         even if !optimize.
1721
1722 2011-11-23  Vladimir Makarov  <vmakarov@redhat.com>
1723
1724         PR rtl-optimization/48455
1725         * doc/invoke.texi (-fira-region): Document default values.
1726
1727         * flags-types.h (enum ira_region): Add new value
1728         IRA_REGION_AUTODETECT.
1729
1730         * common.opt (fira-region): Set up initial value to
1731         IRA_REGION_AUTODETECT.
1732
1733         * toplev.c (process_options): Set up flag_ira_region depending on
1734         -O options.
1735
1736         * ira.c (ira.c): Remove optimize guard for ira_build.
1737
1738 2011-11-23  Chung-Lin Tang  <cltang@codesourcery.com>
1739
1740         PR rtl-optimization/50496
1741         * jump.c (redirect_jump): Assert fail on nlabel == NULL_RTX
1742         only after epilogue is created. Add comments.
1743
1744 2011-11-22  Richard Henderson  <rth@redhat.com>
1745
1746         * config/ia64/ia64.c (ia64_expand_atomic_op): Add model parameter.
1747         Generate the barrier required for the memory model.
1748         (rtx_needs_barrier): Handle UNSPEC_FETCHADD_REL, UNSPEC_CMPXCHG_REL.
1749         * config/ia64/ia64-protos.h: Update.
1750         * config/ia64/ia64.md (UNSPEC_FETCHADD_REL): New.
1751         (UNSPEC_CMPXCHG_REL): New.
1752         * config/ia64/sync.md (mem_thread_fence): New.
1753         (atomic_load<IMODE>, atomic_store<IMODE>): New.
1754         (atomic_compare_and_swap<IMODE>): New.
1755         (cmpxchg_acq_<I124MODE>, cmpxchg_acq_di): New.
1756         (atomic_exchange<IMODE>): New.
1757         (xchg_acq_<IMODE>): Rename from sync_lock_test_and_set<IMODE>.
1758         (atomic_<FETCHOP><IMODE>, atomic_nand<IMODE>): New.
1759         (atomic_fetch_<FETCHOP><IMODE>, atomic_fetch_nand<IMODE>): New.
1760         (atomic_<FETCHOP>_fetch<IMODE>, atomic_nand_fetch<IMODE>): New.
1761         (fetchadd_rel_<I48MODE>): New.
1762         (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): Remove.
1763         (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): Remove.
1764         (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): Remove.
1765         (sync_compare_and_swap<IMODE>): Remove.
1766         (sync_lock_release<IMODE>): Remove.
1767
1768         * config/ia64/ia64.md: Use define_c_enum for UNSPEC_*
1769         and UNSPECV_* constants.
1770
1771 2011-11-22  Tom de Vries  <tom@codesourcery.com>
1772
1773         PR rtl-optimization/50764
1774         * sched-deps.c (sched_analyze_insn): Make sure frame-related insns are
1775         not moved past preceding jump.
1776
1777 2011-11-22  Jeff Law  <law@redhat.com>
1778
1779         * doc/contrib.texi: Add entry for David Binderman.
1780
1781 2011-11-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1782
1783         * postreload.c (reload_combine): Mark reg_state as invalid at
1784         volatile insns if there has been a use already.
1785
1786 2011-11-21  Aldy Hernandez  <aldyh@redhat.com>
1787
1788         * opts.c (finish_options): Do not fail for -fgnu-tm.
1789         * gimple-streamer-out.c (output_gimple_stmt): Handle
1790         GIMPLE_TRANSACTION.
1791         * gimple-streamer-in.c (input_gimple_stmt): Same.
1792         * lto-cgraph.c (input_overwrite_node): Read tm_clone bit.
1793         (lto_output_node): Write tm_clone bit.
1794
1795 2011-11-22  Ian Lance Taylor  <iant@google.com>
1796
1797         * doc/install.texi (Configuration): Correct doc of
1798         --enable-build-poststage1-with-cxx: it is not experimental.
1799
1800 2011-11-22  Jakub Jelinek  <jakub@redhat.com>
1801
1802         PR tree-optimization/51074
1803         * fold-const.c (fold_binary_loc): Fix up VEC_INTERLEAVE_*_EXPR
1804         handling for BYTES_BIG_ENDIAN.
1805         * optabs.c (can_vec_perm_for_code_p): Likewise.
1806
1807 2011-11-22  Michael Matz  <matz@suse.de>
1808
1809         PR other/51125
1810         * trans-mem.c (expand_block_tm): Ignore clobbers.
1811
1812 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1813
1814         *  config/darwin.h (ENDFILE_SPEC): New.
1815         (DARWIN_CRT1_SPEC): Add crttms.o.
1816         (STARTFILE_SPEC): Likewise for dynamic libs and bundles.
1817         * config/i386.h (ENDFILE_SPEC): Amend to include crttme.o.
1818
1819 2011-11-22  Michael Matz  <matz@suse.de>
1820
1821         PR c++/51264
1822         * tree.c (iterative_hash_expr): Remove break after return.
1823
1824 2011-11-22  Iain Sandoe  <iains@gcc.gnu.org>
1825
1826         * target.def (tm_clone_table_section): New hook.
1827         * doc/tm.texi.in (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
1828         * doc/tm.texi: Regenerate.
1829         * varasm.c (dump_tm_clone_pairs): Use target tm_clone_table_section.
1830         * output.h (default_clone_table_section): New prototype.
1831         * config/darwin.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): New.
1832         * config/darwin-protos.h (darwin_tm_clone_table_section): New prototype.
1833         * config/darwin.c (darwin_tm_clone_table_section): New.
1834
1835 2011-11-21  Torvald Riegel  <triegel@redhat.com>
1836
1837         * trans-mem.c (diagnose_tm_1): Print an expression instead of a
1838         declaration in error messages for indirect calls.
1839
1840 2011-11-21  David S. Miller  <davem@davemloft.net>
1841
1842         * config/sparc/sparc.c (sparc_regmode_natural_size): New function
1843         implementing REGMODE_NATURAL_SIZE taking into consideration vector
1844         modes.
1845         (sparc_modes_tieable_p): Similarly for MODES_TIEABLE_P.
1846         * config/sparc/sparc-protos.h (sparc_regmode_natural_size,
1847         sparc_modes_tieable_p): Declare.
1848         * gcc/config/sparc/sparc.h (REGMODE_NATURAL_SIZE,
1849         MODES_TIEABLE_P): Use new helper functions.
1850
1851         Revert
1852         2011-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1853
1854         PR middle-end/50325
1855         * expmed.c (store_bit_field_1): Use extract_bit_field on big
1856         endian targets if the source cannot be exactly covered by word
1857         mode chunks.
1858
1859 2011-11-21  Jakub Jelinek  <jakub@redhat.com>
1860
1861         PR debug/50827
1862         * var-tracking.c (loc_cmp): For ENTRY_VALUEs use ENTRY_VALUE_EXP
1863         macro instead of XEXP.
1864
1865 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1866
1867         * configure: Regenerate.
1868
1869 2011-11-21  Georg-Johann Lay  <avr@gjlay.de>
1870
1871         * config/avr/avr.c (output_reload_in_const): Loading a byte with 0
1872         must not affect cc0.
1873         * config/avr/avr.md (*movhi, *movpsi, *movsi, *movsf): Zero to any
1874         register does not change cc0. Same for any constant to ld-register.
1875
1876 2011-11-21  Uros Bizjak  <ubizjak@gmail.com>
1877
1878         * config/i386/mmx.md (unspec) <UNSPEC_MOVNTQ, UNSPEC_PFRCP,
1879         UNSPEC_PFRCPIT1, UNSPEC_PFRCPIT2, UNSPEC_PFRSQRT, UNSPEC_PFRSQIT1>:
1880         Move from config/i386/i386.md
1881         (unspecv) <UNSPECV_EMMS, UNSPECV_FEMMS>: Ditto.
1882         * config/i386/sse.md (unspec) <UNSPEC_MOVNT,UNSPEC_MOVU, UNSPEC_LDDQU,
1883         UNSPEC_PSHUFB, UNSPEC_PSIGN, UNSPEC_PALIGNR, UNSPEC_EXTRQI,
1884         UNSPEC_EXTRQ, UNSPEC_INSERTQI, UNSPEC_INSERTQ, UNSPEC_BLENDV,
1885         UNSPEC_INSERTPS, UNSPEC_DP, UNSPEC_MOVNTDQA, UNSPEC_MPSADBW,
1886         UNSPEC_PHMINPOSUW, UNSPEC_PTEST, UNSPEC_PCMPESTR, UNSPEC_PCMPISTR,
1887         UNSPEC_FMADDSUB, UNSPEC_XOP_UNSIGNED_CMP, UNSPEC_XOP_TRUEFALSE,
1888         UNSPEC_XOP_PERMUTE, UNSPEC_FRCZ, UNSPEC_AESENC, UNSPEC_AESENCLAST,
1889         UNSPEC_AESDEC, UNSPEC_AESDECLAST, UNSPEC_AESIMC,
1890         UNSPEC_AESKEYGENASSIST, UNSPEC_PCLMUL, UNSPEC_PCMP, UNSPEC_VPERMIL,
1891         UNSPEC_VPERMIL2, UNSPEC_VPERMIL2F128, UNSPEC_CAST, UNSPEC_VTESTP,
1892         UNSPEC_VCVTPH2PS, UNSPEC_VCVTPS2PH, UNSPEC_VPERMSI, UNSPEC_VPERMDF,
1893         UNSPEC_VPERMSF, UNSPEC_VPERMTI, UNSPEC_GATHER, UNSPEC_VSIBADDR>: Ditto.
1894         (unspecv) <UNSPECV_LDMXCSR, UNSPECV_STMXCSR, UNSPECV_CLFLUSH,
1895         UNSPECV_MONITOR, UNSPECV_MWAIT, UNSPECV_VZEROALL, UNSPECV_VZEROUPPER>:
1896         Ditto.
1897         * config/i386/sync.md (unspec) <UNSPEC_LFENCE, UNSPEC_SFENCE,
1898         UNSPEC_MFENCE, UNSPEC_MOVA>: Ditto.
1899         (unspecv) <UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2, UNSPECV_CMPXCHG_3,
1900         UNSPECV_CMPXCHG_4, UNSPECV_XCHG, UNSPECV_LOCK>: Ditto.
1901         (sse2_lfence): Move from config/i386/sse.md.
1902         (*sse2_lfence): Ditto.
1903         (sse_sfence): Ditto.
1904         (*sse_sfence): Ditto.
1905         (sse2_mfence): Ditto.
1906         (mfence_sse2): Ditto.  Rename from *sse2_mfence.  Enable also
1907         for TARGET_64BIT.
1908         (mem_thread_fence): Use mfence_sse2.
1909
1910 2011-11-21  Georg-Johann Lay  <avr@gjlay.de>
1911
1912         * config/avr/avr.h (struct base_arch_s): Add field sfr_offset.
1913         * config/avr/avr-devices.c: Ditto. And initialize it.
1914         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in define
1915         __AVR_SFR_OFFSET__.
1916         * config/avr/avr-protos.h (out_movqi_r_mr, out_movqi_mr_r): Remove.
1917         (out_movhi_r_mr, out_movhi_mr_r): Remove.
1918         (out_movsi_r_mr, out_movsi_mr_r): Remove.
1919         * config/avr/avr.md (*cbi, *sbi): Use %i instead of %m-0x20.
1920         (*insv.io, *insv.not.io): Ditto.
1921         * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r): Make static.
1922         (print_operand): Implement "%i" to print address as I/O address.
1923         (output_movqi): Clean up call of out_movqi_mr_r.
1924         (output_movhi): Clean up call of out_movhi_mr_r.
1925         (avr_file_start): Use avr_current_arch->sfr_offset instead of
1926         magic -0x20. Use TMP_REGNO, ZERO_REGNO instead of 0, 1.
1927         (avr_out_sbxx_branch): Use %i instead of %m-0x20.
1928         (out_movqi_r_mr, out_movqi_mr_r): Ditto. And make static.
1929         (out_movhi_r_mr, out_movhi_mr_r): Ditto. And use avr_asm_len.
1930         (out_shift_with_cnt): Clean up code: Use avr_asm_len.
1931         (output_movsisf): Use output_reload_insisf for all CONSTANT_P sources.
1932         (avr_out_movpsi): USE avr_out_reload_inpsi for all CONSTANT_P sources.
1933         Clean up call of avr_out_store_psi.
1934         (output_reload_in_const): Don't cut symbols longer than 2 bytes.
1935         (output_reload_insisf): Filter CONST_INT_P or CONST_DOUBLE_P to
1936         try if setting pre-cleared register is advantageous.
1937         (avr_out_plus_1): Use gen_int_mode instead of GEN_INT.
1938
1939 2011-11-20  Joey Ye  <joey.ye@arm.com>
1940
1941         * expr.c (expand_expr_real_1): Correctly handle strict volatile
1942         bitfield loads smaller than mode size.
1943
1944 2011-11-20  Richard Henderson  <rth@redhat.com>
1945
1946         * config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs.
1947
1948 2011-11-20  Uros Bizjak  <ubizjak@gmail.com>
1949
1950         PR target/51235
1951         * config/i386/i386.c (ix86_expand_vcond): Generate TARGET_XOP
1952         patterns for supported mode only.
1953
1954         PR target/51236
1955         * config/i386/i386.c (ix86_expand_builtin)
1956         <IX86_BUILTIN_GATHERALTSIV4DI>: Use CODE_FOR_avx2_gathersiv4di.
1957
1958 2011-11-20  Uros Bizjak  <ubizjak@gmail.com>
1959
1960         * config/i386/i386.md (UNSPEC_MOVNTI): Remove.
1961         (UNSPEC_MOVNTQ): New unspec.
1962         * config/i386/mmx.md (sse_movntq): Rename from sse_movntdi.
1963         Use UNSPEC_MOVNTQ instead of UNSPEC_MOVNT.
1964         * config/i386/sse.md (sse2_movnti<mode>): Use UNSPEC_MOVNT instead of
1965         UNSPEC_MOVNTI.
1966         (STORENT_MODE): Add DI and V4DI modes.
1967
1968 2011-11-20  Nathan Sidwell  <nathan@acm.org>
1969
1970         PR gcov-profile/51113
1971         * coverage.c (build_var): Propagate visibility for public
1972         decls.  Use make_decl_one_only for PIC correctness.
1973
1974         testsuite/
1975         * gcc.misc-tests/gcov-13.c: Check gcovpart-13b coverage
1976         * gcc.misc-tests/gcov-16.c: New.
1977         * gcc.misc-tests/gcov-17.c: New.
1978         * g++.dg/gcov/gcov-8.C: New.
1979         * g++.dg/gcov/gcov-9.C: New.
1980         * g++.dg/gcov/gcov-10.C: New.
1981
1982 2011-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1983
1984         PR rtl-optimization/51187
1985         * reorg.c (relax_delay_slots): Do not consider a jump useless if there
1986         is a barrier between the jump and its target label.
1987
1988 2011-11-19  Patrick Marlier  <patrick.marlier@gmail.com>
1989
1990         PR middle-end/51211
1991         * tracer.c (ignore_bb_p): Don't copy GIMPLE_TRANSACTION.
1992
1993 2011-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1994
1995         * expmed.c (store_bit_field_1): Revert bogus formatting change.
1996
1997 2011-11-19  Richard Earnshaw  <rearnsha@arm.com>
1998
1999         PR target/50493
2000         * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
2001         overlap of src and dest operands.
2002
2003 2011-11-19  Iain Sandoe  <iains@gcc.gnu.org>
2004
2005         * config/darwin.h (ASM_DEBUG_SPEC): New.
2006         * config/darwin9.h (ASM_DEBUG_SPEC): New.
2007
2008 2011-11-18  Jan Hubicka  <jh@suse.cz>
2009
2010         * config/i386/i386.c (atom_cost): Disable SSE loop until alignment
2011         issues are fixed.
2012
2013 2011-11-18  Anatoly Sokolov  <aesok@post.ru>
2014
2015         * config/cris/cris.c (cris_function_value_regno_p): Make static.
2016         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2017         * config/cris/cris.h (FUNCTION_VALUE_REGNO_P): Remove.
2018         * config/cris/cris-protos.h (cris_function_value_regno_p): Remove.
2019
2020 2011-11-18  H.J. Lu  <hongjiu.lu@intel.com>
2021
2022         PR target/33944
2023         * doc/extend.texi: Document __builtin_ia32_movnti64.
2024
2025         * config/i386/emmintrin.h (_mm_stream_si64): New.
2026
2027         * config/i386/i386-builtin-types.def: Add VOID_FTYPE_PLONGLONG_LONGLONG.
2028
2029         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTI64.
2030         (bdesc_special_args): Update __builtin_ia32_movnti.  Add
2031         __builtin_ia32_movnti64.
2032         (ix86_expand_special_args_builtin): Handle
2033         VOID_FTYPE_PLONGLONG_LONGLONG.
2034
2035         * config/i386/i386.md (UNSPEC_MOVNTI): New.
2036
2037         * config/i386/sse.md (sse2_movntsi): Renamed to ...
2038         (sse2_movnti<mode>): This.
2039
2040 2011-11-18  Georg-Johann Lay  <avr@gjlay.de>
2041
2042         PR target/49868
2043         * config/avr/avr.h (base_arch_s): Add field n_segments.
2044         (ADDR_SPACE_PGM1, ADDR_SPACE_PGM2, ADDR_SPACE_PGM3,
2045         ADDR_SPACE_PGM4, ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): New address spaces.
2046         (AVR_HAVE_ELPM, AVR_HAVE_ELPMX): New defines.
2047         (INIT_EXPANDERS): New define.
2048         * config/avr/avr-protos.h (avr_mem_pgmx_p): New.
2049         (avr_init_expanders): New.
2050         (avr_emit_movmemhi, avr_out_movmem): New.
2051         (avr_xload_libgcc_p): New.
2052         * config/avr/avr-c.c (avr_register_target_pragmas): Register
2053         address spaces __pgm1, __pgm2,  __pgm3,  __pgm4  __pgm5,  __pgmx.
2054         (avr_cpu_cpp_builtins): Add built-in defines __PGM1,
2055         __PGM2, __PGM3, __PGM4, __PGM5, __PGMX.
2056         * config/avr/avr-devices.c (avr_arch_types): Set field n_segments.
2057
2058         * config/avr/avr.c (AVR_SECTION_PROGMEM): Change define to cover
2059         3 bits instead of just 1.
2060         (xstring_empty, xstring_e, rampz_rtx): New static GTYed variables.
2061         (progmem_section): Change from section to array of sections.
2062         (progmem_section_prefix): New static variable.
2063         (avr_file_start): Print set for __RAMPZ__
2064         (avr_option_override): Move initialization of RTXes from here...
2065         (avr_init_expanders): ...to this new function.
2066         (avr_pgm_segment): New static function.
2067         (avr_decl_pgm_p): Handle error_mark_node.
2068         (avr_mem_pgmx_p, avr_decl_pgmx_p): New static functions.
2069         (avr_out_xload, avr_find_unused_d_reg): New static functions.
2070         (expand_prologue, expand_epilogue): Use rampz_rtx.
2071         (print_operand): Hande CONST_STRING.
2072         (avr_xload_libgcc_p): New static function.
2073         (avr_out_lpm_no_lpmx, avr_out_lpm): Handle ELPM.
2074         (avr_progmem_p): Return 2 for 24-bit flash address space.
2075         (avr_out_sbxx_branch): Clean-up code from ASn macros.
2076         (out_movqi_r_mr, out_movqi_mr_r): Ditto. And recognize RAMPZ's
2077         address and print symbolically.
2078         (avr_asm_named_section, avr_section_type_flags,
2079         avr_encode_section_info, avr_asm_select_section,
2080         avr_addr_space_address_mode, avr_addr_space_pointer_mode,
2081         avr_addr_space_legitimate_address_p, avr_addr_space_convert,
2082         avr_addr_space_legitimize_address): Handle new address spaces.
2083         (avr_output_progmem_section_asm_op): New static function.
2084         (avr_asm_init_sections): Initialize progmem_section[].
2085         (adjust_insn_length): Handle ADJUST_LEN_XLOAD, ADJUST_LEN_MOVMEM.
2086         (avr_const_address_lo16): New static function.
2087         (avr_assemble_integer): Use it to handle 3-byte integers.
2088         (avr_emit_movmemhi, avr_out_movmem): New functions.
2089
2090         * config/avr/predicates.md (nox_general_operand): Handle new
2091         address spaces.
2092         * config/avr/avr.md (unspec): Add UNSPEC_MOVMEM.
2093         (adjust_len): Add xload, movmem.
2094         (SP_ADDR): New define_constants.
2095         (isa): Add "lpm", "lpmx", "elpm", "elpmx".
2096         (enabled): Handle them.
2097         (load<mode>_libgcc): New expander.
2098         (*load.<mode>.libgcc): Rename to load_<mode>_libgcc.
2099         (xload8_A, xload<mode>_A): New insn-and-splits.
2100         (xload_8, xload_<mode>_libgcc, xload_<mode>, loadmem_elpm): New insns.
2101         (mov<mode>): Handle new address spaces.
2102         (movmemhi): Rewrite using avr_emit_movmemhi.
2103         (MOVMEM_r_d): New mode attribute.
2104         (movmem_<mode>, movmem_qi_elpm): New insns.
2105         (setmemhi, *clrmemqi, *clrmemhi, strlenhi, *strlenhi): Unquote
2106         C-code.  Use label instead of hard-coded instrunction lengths.
2107
2108 2011-11-18  Martin Jambor  <mjambor@suse.cz>
2109
2110         PR tree-optimization/50605
2111         * gimple.c (is_gimple_ip_invariant_address): Also handle MEM_REFs
2112         of IPA invariant decls.
2113
2114 2011-11-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2115
2116         * tree-outof-ssa.c (insert_back_edge_copies):  Add call to
2117         mark_dfs_back_edges.
2118
2119 2011-11-18  Iain Sandoe  <iains@gcc.gnu.org>
2120
2121         PR target/49992
2122         * configure.ac: Remove ranlib special-casing for Darwin.
2123         * configure: Regenerate.
2124
2125 2011-11-18  Uros Bizjak  <ubizjak@gmail.com>
2126
2127         PR tree-optimization/51118
2128         * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
2129         before using TREE_TYPE accessor on expr.
2130
2131 2011-11-17  Jan Hubicka  <jh@suse.cz>
2132
2133         PR bootstrap/51134
2134         * i386.c (atom_cost): Fix 32bit memset description.
2135         (expand_set_or_movmem_via_loop_with_iter): Output proper bounds check
2136         for epilogue loops.
2137         (expand_movmem_epilogue): Handle epilogues up to size 15 w/o producing
2138         byte loop.
2139         (decide_alg): sse_loop is not useable wthen SSE2 is disabled;
2140         when not optimizing always use rep movsb or lincall; do not produce
2141         word sized loops when optimizing memset for size (to avoid need
2142         for large constants).
2143         (ix86_expand_movmem): Get into sync with ix86_expand_setmem;
2144         choose unroll factors better; always do 128bit moves when producing
2145         SSE loops; do not produce loopy epilogue when size is too small.
2146         (promote_duplicated_reg_to_size): Do not look into desired alignments
2147         when doing vector expansion.
2148         (ix86_expand_setmem): Track better when promoted value is available;
2149         choose unroll factors more sanely. Output loopy epilogue only
2150         when needed.
2151
2152 2011-11-17  Steve Ellcey  <sje@cup.hp.com>
2153
2154         PR middle-end/51144
2155         * output.h (fprint_w): Remove.
2156         * final.c (fprint_w): Remove.
2157         (output_addr_const): Change fprint_w back to fprintf.
2158
2159 2011-11-17  Andrew Pinski  <apinski@cavium.com>
2160
2161         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
2162
2163 2011-11-17  Andrew MacLeod  <amacleod@redhat.com>
2164
2165         * builtins.c (expand_builtin): Remove 4th parameter representing
2166         weak/strong mode when __atomic_compare_exchange becomes a library call.
2167
2168 2011-11-17  Richard Henderson  <rth@redhat.com>
2169
2170         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
2171         new pseudo for target after convert_modes.
2172         (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
2173
2174 2011-11-17  Richard Henderson  <rth@redhat.com>
2175
2176         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
2177         new pseudo for target after convert_modes.
2178         (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
2179
2180 2011-11-17  Richard Henderson  <rth@redhat.com>
2181
2182         * builtins.c (expand_builtin_mem_thread_fence): Remove.
2183         (expand_builtin_mem_signal_fence): Remove.
2184         (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence.
2185         (expand_builtin_sync_synchronize): Likewise.
2186         (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence.
2187         * optabs.c (expand_asm_memory_barrier): Split out from
2188         expand_builtin_mem_signal_fence.
2189         (expand_mem_thread_fence): New, a combination of code from
2190         expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize.
2191         (expand_mem_signal_fence): Moved and renamed from
2192         expand_builtin_mem_signal_fence.
2193         (expand_atomic_exchange): Use expand_mem_thread_fence.
2194         (expand_atomic_load, expand_atomic_store): Likewise.
2195         * expr.h, optabs.h: Update decls.
2196
2197 2011-11-17  Bin Cheng  <bin.cheng@arm.com>
2198
2199         PR rtl-optimization/50663
2200         * cprop.c (implicit_set_indexes): New global variable.
2201         (insert_set_in_table): Add additional parameter and record implicit
2202         set information.
2203         (hash_scan_set): Add additional parameter and pass it to above.
2204         (hash_scan_insn): Pass false to hash_scan_set.
2205         (compute_hash_table_work): Pass true to hash_scan_set.
2206         (compute_cprop_data): Add implicit set to AVIN of block which the
2207         implicit set is recorded for.
2208         (one_cprop_pass): Handle implicit_set_indexes array.
2209
2210 2011-11-17  Michael Matz  <matz@suse.de>
2211
2212         PR middle-end/50644
2213         PR middle-end/50741
2214         * tree-ssa-live.c (mark_all_vars_used_1): Recurse only for decls of
2215         current function.
2216         (remove_unused_locals): Ditto.
2217
2218 2011-11-16  Richard Henderson  <rth@redhat.com>
2219
2220         * config/alpha/alpha.c (alpha_split_compare_and_swap_12): Copy
2221         ALIAS_SET_MEMORY_BARRIER when creating a new memory.
2222         (alpha_split_atomic_exchange_12): Likewise.
2223         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Likewise.
2224
2225 2011-11-16  Joseph Myers  <joseph@codesourcery.com>
2226
2227         * config/i386/i386elf.h (PREFERRED_DEBUGGING_TYPE): Remove.
2228
2229 2011-11-16  David Edelsohn  <dje.gcc@gmail.com>
2230
2231         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
2232         Default to minimum alignment if decl is NULL.
2233
2234 2011-11-16  Uros Bizjak  <ubizjak@gmail.com>
2235
2236         * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
2237         sequence for AVX.
2238         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
2239
2240 2011-11-16  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2241
2242         * doc/invoke.texi: Document AMD bdver1 and btver1.
2243
2244 2011-11-16  Richard Earnshaw  <rearnsha@arm.com>
2245             Bernd Schmidt <bernds@coudesourcery.com>
2246             Sebastian Huber <sebastian.huber@embedded-brains.de>
2247
2248         PR target/49641
2249         * config/arm/arm.c (store_multiple_sequence): Avoid cases where
2250         the base reg is stored iff compiling for Thumb1.
2251
2252 2011-11-16  Razya Ladelsky  <razya@il.ibm.com>
2253
2254         PR tree-optimization/49960
2255         * tree-data-ref.c (initialize_data_dependence_relation): Add
2256         initializations.
2257         Remove call to compute_self_dependence.
2258         (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
2259         (compute_self_dependence): Remove old code. Add call to
2260         compute_affine_dependence.
2261         (compute_all_dependences): Remove call to compute_self_dependence.
2262         Add call to compute_affine_dependence.
2263
2264 2011-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2265
2266         PR middle-end/50325
2267         * expmed.c (store_bit_field_1): Use extract_bit_field on big
2268         endian targets if the source cannot be exactly covered by word
2269         mode chunks.
2270
2271 2011-11-15  Joseph Myers  <joseph@codesourcery.com>
2272
2273         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
2274         ELF_STRING_LIMIT.
2275
2276 2011-11-15  Richard Henderson  <rth@redhat.com>
2277
2278         * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
2279         (alpha_post_atomic_barrier): New.
2280         (alpha_split_atomic_op): New memmodel argument; honor it.
2281         (alpha_split_compare_and_swap): Take array of operands.  Honor
2282         memmodel; always set bool output
2283         (alpha_expand_compare_and_swap_12): Similarly.
2284         (alpha_split_compare_and_swap_12): Similarly.
2285         (alpha_split_atomic_exchange): Similarly.  Rename from
2286         alpha_split_lock_test_and_set.
2287         (alpha_expand_atomic_exchange_12): Similarly.  Rename from
2288         alpha_expand_lock_test_and_set_12.
2289         (alpha_split_atomic_exchange_12): Similarly.  Rename from
2290         alpha_split_lock_test_and_set_12.
2291         * config/alpha/alpha-protos.h: Update.
2292         * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
2293         * config/alpha/constraints.md ("w"): New.
2294         * config/alpha/predicates.md (mem_noofs_operand): New.
2295         * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
2296         sync_compare_and_swap<mode>; add the new parameters.
2297         (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
2298         (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
2299         (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
2300         (atomic_<op><mode>): Update from sync_<op><mode>.
2301
2302 2011-11-16  Tom de Vries  <tom@codesourcery.com>
2303
2304         * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
2305
2306 2011-11-16  Alan Modra  <amodra@gmail.com>
2307
2308         PR rtl-optimization/51051
2309         PR bootstrap/51086
2310         * function.c (thread_prologue_and_epilogue_insns): Guard
2311         emitting return with single_succ_p test.
2312
2313 2011-11-15  Joern Rennecke  <joern.rennecke@embecosm.com>
2314
2315         * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
2316         get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
2317
2318 2011-11-15  Uros Bizjak  <ubizjak@gmail.com>
2319
2320         * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
2321         (vec_pack_sfix_trunc_v2df): Ditto.
2322         (vec_pack_sfix_v2df): Ditto.
2323         (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
2324         avx_vec_concatv8si patterns.
2325         (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
2326         avx_vec_concatv8si patterns.
2327
2328 2011-11-15  Torvald Riegel  <triegel@redhat.com>
2329
2330         * c-parser.c (c_parser_transaction_expression): Require parentheses
2331         when parsing transaction expressions.
2332
2333 2011-11-15  Tristan Gingold  <gingold@adacore.com>
2334
2335         * incpath.c (get_added_cpp_dirs): New function.
2336         * incpath.h (get_added_cpp_dirs): Declare.
2337         * config/vms/vms-c.c (vms_c_register_includes): New function.
2338         (vms_std_modules): New variable.
2339         * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
2340         (vms_c_register_includes): Declare.
2341
2342 2011-11-15  Tristan Gingold  <gingold@adacore.com>
2343
2344         * c-family/c-pragma.h (pragma_extern_prefix): Declare.
2345         * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
2346         * config/vms/vms-c.c (saved_extern_prefix): New variable.
2347         (vms_pragma_extern_prefix): New function.
2348         (vms_c_register_pragma): Register vms_pragma_extern_prefix.
2349
2350 2011-11-15  Georg-Johann Lay  <avr@gjlay.de>
2351
2352         PR target/49868
2353         * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
2354         (REGISTER_TARGET_PRAGMAS): New define.
2355         * config/avr/avr-protos.h (avr_mem_pgm_p): New.
2356         (avr_load_libgcc_p): New.
2357         (avr_register_target_pragmas): New.
2358         (asm_output_external_libcall): Remove.
2359         (avr_log_t): Add field "progmem".  Order alphabetically.
2360         * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
2361         * config/avr/avr-c.c (langhooks.h): New include.
2362         (avr_register_target_pragmas): New function. Register address
2363         space __pgm.
2364         (avr_cpu_cpp_builtins): Add built-in define __PGM.
2365
2366         * config/avr/avr.c: Include "c-family/c-common.h".
2367         (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
2368         (TARGET_LEGITIMIZE_ADDRESS): Remove define.
2369         (TARGET_ADDR_SPACE_SUBSET_P): Define to...
2370         (avr_addr_space_subset_p): ...this new static function.
2371         (TARGET_ADDR_SPACE_CONVERT): Define to...
2372         (avr_addr_space_convert): ...this new static function.
2373         (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
2374         (avr_addr_space_address_mode): ...this new static function.
2375         (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
2376         (avr_addr_space_pointer_mode): ...this new static function.
2377         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
2378         (avr_addr_space_legitimate_address_p): ...this new static function.
2379         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
2380         (avr_addr_space_legitimize_address): ...this new static function.
2381         (avr_mode_code_base_reg_class): Handle address spaces.
2382         (avr_regno_mode_code_ok_for_base_p): Ditto.
2383         (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
2384         (avr_option_override): Initialize them.
2385         (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
2386         variables.
2387         (avr_pgm_segment): New static function.
2388         (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
2389         (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
2390         (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
2391         avr_out_lpm to handle loads from progmem.
2392         (avr_load_libgcc_p): New static function.
2393         (avr_progmem_p): Test if decl is in flash.
2394         (avr_pgm_pointer_const_p): New static function.
2395         (avr_nonconst_pointer_addrspace): New static function.
2396         (avr_pgm_check_var_decl): New static function.
2397         (avr_insert_attributes): Use it.  Change error message to report
2398         cause (progmem or address space) when code wants to write to flash.
2399         (avr_section_type_flags): Unset section flag SECTION_BSS for
2400         data in progmem.
2401
2402         * config/avr/predicates.md (nop_general_operand): New predicate.
2403         (nox_general_operand): New predicate.
2404         * config/avr/avr.md (LPM_REGNO): New define_constant.
2405         (load<mode>_libgcc): New expander.
2406         (*load.<mode>.libgcc): New insn.
2407         (mov<mode>): Handle loads from non-generic AS.
2408         (movmemhi): Ditto.  Propagate address space information to newly
2409         created MEM.
2410         (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
2411         to nox_general_operand.
2412         (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
2413         nop_general_operand.
2414         (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
2415         (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
2416         (split-lpmx): New split.
2417         (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
2418         *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
2419
2420 2011-11-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2421
2422         * ipa-cp.c (ipa_value_from_jfunc): Make global.
2423         (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
2424         (get_indirect_edge_target): Rename, make global.
2425         (devirtualization_time_bonus, estimate_local_effects,)
2426         (ipcp_discover_new_direct_edges): Update.
2427         * ipa-inline-analysis.c (evaluate_conditions_for_edge):
2428         Generalize to also handle types.  Rename to ...
2429         (evaluate_properties_for_edge): Use instead of
2430         evaluate_conditions_for_edge.
2431         (estimate_edge_devirt_benefit): New function.
2432         (estimate_calls_size_and_time): Use it.
2433         (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
2434         (inline_merge_summary): Update.
2435         (do_estimate_edge_time, do_estimate_edge_growth): Update.  Calculate
2436         parameter information at the call site and pass it on to subroutines.
2437         * tree-inline.c (estimate_num_insns): Distinguish between direct and
2438         indirect calls.
2439         (init_inline_once): Set size and time costs or indirect calls.
2440         * tree-inline.h (eni_weights): Add indirect_call_cost.
2441
2442 2011-11-15  Tom de Vries  <tom@codesourcery.com>
2443
2444         PR tree-optimization/51005
2445         * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
2446         mark_basic_block_deleted.
2447         (update_worklist): Inline purge_bbs.
2448         (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
2449         (delete_block_update_dominator_info): Remove.
2450         (replace_block_by): Remove update_vops parameter.  Partially evaluate
2451         for update_vops == false.
2452         (apply_clusters): Remove update_vops parameter.  Remove update_vops
2453         argument in replace_block_by call.
2454         (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
2455         (tail_merge_optimize): Remove update_vops argument to apply_clusters.
2456         Remove call to purge_bbs.  Add calls to calculate_dominance_info and
2457         free_dominance_info.  Add MAY_HAVE_DEBUG_STMTS  before calling
2458         update_debug_stmts.  Mark vop var for renaming, if necessary.
2459
2460 2011-11-15  Bernd Schmidt  <bernds@codesourcery.com>
2461
2462         PR rtl-optimization/51051
2463         * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
2464         move would cause fallthrough into the exit block.
2465
2466 2011-11-14  Richard Henderson  <rth@redhat.com>
2467
2468         * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
2469         handled.
2470         (emit_store_conditional): Likewise.
2471         (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
2472         (rs6000_adjust_atomic_subword): New.
2473         (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
2474         (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
2475         for pre-reload expansion.
2476         (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
2477         rs6000_expand_compare_and_swapqhi): Merge into ...
2478         (rs6000_expand_atomic_compare_and_swap): ... here.  New function.
2479         rs6000_split_lock_test_and_set; expand immediately.  Handle
2480         QImode and HImode.
2481         * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
2482         from UNSPECV_LWSYNC.
2483         * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
2484         (mem_thread_fence): New.
2485         (hwsync): Rename from memory_barrier.
2486         (*hwsync): Rename from *sync_internal.
2487         (lwsync, *lwsync): Mirror hwsync implementation.
2488         (isync): Don't reference memory.
2489         (loadsync): New.
2490         (atomic_load<INT>, atomic_store<INT>): New.
2491         (ATOMIC): New mode iterator.
2492         (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
2493         (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
2494         (sync_compare_and_swap<GPR>): Remove.
2495         (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
2496         (sync_compare_and_swapqhi_internal): Remove.
2497         (sync_lock_test_and_set<GPR>): Remove.
2498         (sync_<FETCHOP><INT1>): Remove.
2499         (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
2500         (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
2501         (sync_old_<FETCHOP><GPR>): Remove.
2502         (*sync_old_<FETCHOP>si_internal): Remove.
2503         (*sync_old_<FETCHOP>di_internal): Remove.
2504         (sync_old_nand<INT1>): Remove.
2505         (*sync_old_nand<GPR>_internal): Remove.
2506         (sync_new_<FETCHOP><GPR>): Remove.
2507         (*sync_new_<FETCHOP>si_internal): Remove.
2508         (*sync_new_<FETCHOP>di_internal): Remove.
2509         (sync_new_nand<INT1>): Remove.
2510         (*sync_new_nand<GPR>_internal): Remove.
2511         (*atomic_andsi, *atomic_anddi): Remove.
2512         (*sync_addshort_internal, *sync_subshort_internal): Remove.
2513         (*sync_andsi_internal, *sync_boolsi_internal): Remove.
2514         (*sync_boolcshort_internal): Remove.
2515         (sync_lock_release<INT1>): Remove.
2516         (atomic_compare_and_swap<INT1>): New.
2517         (atomic_exchange<INT1>): New.
2518         (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
2519         (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
2520         (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
2521
2522 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
2523
2524         * config/i386/sse.md (round<mode>2): Use register_operand for
2525         operand 1 predicate.
2526         (round<mode>2_sfix): Ditto.
2527         (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
2528
2529 2011-11-14  Nathan Sidwell  <nathan@acm.org>
2530
2531         * gcov.c (canonicalize_name): Protect use of S_ISLNK.
2532
2533 2011-11-14  Jan Hubicka  <jh@suse.cz>
2534
2535         PR target/51126
2536         * config/i386/i386.c (core cost model): Correct pasto.
2537
2538 2011-11-14  Uros Bizjak  <ubizjak@gmail.com>
2539
2540         * config/i386/sse.md (round<mode>2_sfix): New expander.
2541         (round<mode>2_vec_pack_sfix): Ditto.
2542         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
2543         (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
2544         * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
2545         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
2546         V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
2547         * config/i386/i386.c (ix86_builtins): Add
2548         IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
2549         IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
2550         (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
2551         __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
2552         __builtin_ia32_{floorps,ceilps}_sfix{,256}and
2553         __builtin_ia32_roundps_az_sfix{,256} descriptions.
2554         (ix86_expand_sse_round_vec_pack_sfix): New.
2555         (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
2556         V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
2557         V8SI_FTYPE_V4DF_V4DF_ROUND types.  Check last argument of
2558         CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
2559         CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
2560         (ix86_builtin_vectorized_function): Handle
2561         BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
2562         BUILT_IN_{I,L,LL}ROUND{,F}
2563
2564 2011-11-14  Jan Hubicka  <jh@suse.cz>
2565
2566         PR middle-end/50598
2567         * cgraph.h (varpool_externally_visible_p): Declare.
2568         (varpool_add_new_variable): Declare.
2569         * tree-emultls.c (get_emutls_init_templ_addr,
2570         new_emutls_decl): Use varpool_add_new_variable.
2571         * ipa.c (varpool_externally_visible_p): Export.
2572         * varpool.c (varpool_add_new_variable): New function.
2573
2574 2011-11-14  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
2575             Jan Hubicka  <jh@suse.cz>
2576
2577         * config/i386/i386.h (processor_costs): Add second dimension to
2578         stringop_algs array.
2579         * config/i386/i386.c (cost models): Initialize second dimension of
2580         stringop_algs arrays.
2581         (core_cost): New costs based on generic64 costs with updated stringop
2582         values.
2583         (promote_duplicated_reg): Add support for vector modes, add
2584         declaration.
2585         (promote_duplicated_reg_to_size): Likewise.
2586         (processor_target): Set core costs for core variants.
2587         (expand_set_or_movmem_via_loop_with_iter): New function.
2588         (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
2589         different loops, produced by this function.
2590         (emit_strset): New function.
2591         (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
2592         use SSE-moves where possible.
2593         (expand_setmem_epilogue): Likewise.
2594         (expand_movmem_prologue): Likewise for prologue.
2595         (expand_setmem_prologue): Likewise.
2596         (expand_constant_movmem_prologue): Likewise.
2597         (expand_constant_setmem_prologue): Likewise.
2598         (decide_alg): Add new argument align_unknown.  Fix algorithm of
2599         strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
2600         (decide_alignment): Update desired alignment according to chosen move
2601         mode.
2602         (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
2603         (ix86_expand_setmem): Likewise.
2604         (ix86_slow_unaligned_access): Implementation of new hook
2605         slow_unaligned_access.
2606         * config/i386/i386.md (strset): Enable half-SSE moves.
2607         * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
2608         (vec_dupv2di): Add expand for vec_dupv2di.
2609
2610 2011-11-14  Dimitrios Apostolou  <jimis@gmx.net>
2611
2612         PR bootstrap/51094
2613         PR middle-end/51116
2614         * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
2615         * varasm.c (default_elf_internal_label): Remove.
2616
2617 2011-11-14  Kai Tietz  <ktietz@redhat.com>
2618
2619         * gcov.c (generate_results): Add missing semicolon and correct indent.
2620
2621 2011-11-14  Ira Rosen  <ira.rosen@linaro.org>
2622
2623         PR bootstrap/51112
2624         * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
2625
2626 2011-11-14  Mingjie Xing  <mingjie.xing@gmail.com>
2627
2628         * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
2629         to @pxref{Function Attributes}.
2630
2631 2011-11-13  Oleg Endo  <oleg.endo@t-online.de>
2632
2633         PR target/50694
2634         * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
2635         New macros.
2636         (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
2637         taking the default configuration into account.
2638
2639 2011-11-13  Jonathan Wakely  <jwakely.gcc@gmail.com>
2640
2641         * doc/install.texi (Specific): Fix anchor for
2642         x86_64-*-solaris2.1[0-9]*.
2643
2644 2011-11-13  Nathan Sidwell  <nathan@acm.org>
2645
2646         * gcov.c (source_prefix, source_length): New globals.
2647         (flag_relative_only): Likewise.
2648         (print_usage, options, process_args): Update.
2649         (generate_results): Use coverage.name, check
2650         flag_relative_only. Adjust messages.
2651         (find_source): Check source_prefix.
2652         (output_lines): Use coverage.name, adjust messages.
2653         * doc/gcov.texi (Invoking Gcov): Document new options.
2654
2655 2011-11-12  Jason Merrill  <jason@redhat.com>
2656
2657         PR c++/51060
2658         * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
2659         (gimplify_modify_expr): Don't try to simplify it.
2660
2661 2011-11-12  Dimitrios Apostolou  <jimis@gmx.net>
2662
2663         PR bootstrap/51094
2664         * config/elfos.h (STRING_ASM_OP): Define.
2665         * varasm.c (default_elf_asm_output_limited_string): Use it.
2666
2667         PR bootstrap/51094
2668         * gcc/configure.ac: Check for stpcpy declaration.
2669         * system.h: Declare it if not.
2670         * config.in, configure: Regenerate.
2671
2672 2011-11-12  Richard Henderson  <rth@redhat.com>
2673
2674         * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
2675         nonimmediate_operand for the destination.
2676         (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
2677
2678         * builtins.c (expand_builtin_compare_and_swap): If target is const0,
2679         don't pass the target to expand_atomic_compare_and_swap.
2680         (expand_builtin_atomic_compare_exchange): Likewise.
2681
2682         * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
2683         * config/sh/sh.c (sh_init_sync_libfuncs): New.
2684
2685         * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
2686         * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
2687         * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
2688
2689 2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
2690
2691         PR target/45233
2692         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
2693         Only expand a symbol ref. into an access when the entity is defined
2694         in the TU.
2695
2696 2011-11-12  Jan Hubicka  <jh@suse.cz>
2697
2698         PR bootstrap/50822
2699         * cgraphunit.c (output_weakrefs): Output really only weakrefs.
2700
2701 2011-11-12  Nathan Sidwell  <nathan@acm.org>
2702
2703         * gcov.c (struct name_map): New.
2704         (names, n_names, a_names): New global vars.
2705         (print_usage): Adjust usage.
2706         (generate_results): Canonicalize main file name.
2707         (release_structures): Adjust.
2708         (name_search, name_sort): New callbacks.
2709         (find_source): Look for and create a canonical name.
2710         (canonicalize_name): New.
2711         (make_gcov_file_name): Reimplement and fix mangling.
2712         (mangle_name): New.
2713         * doc/gcov.texi: Update documentation about path preservation.
2714
2715 2011-11-11  David S. Miller  <davem@davemloft.net>
2716
2717         * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
2718         * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
2719
2720 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
2721
2722         * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
2723         New prototype.
2724         * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
2725         function.
2726         (ix86_expand_epilogue): Use it.
2727         * config/i386/i386.md (return, simple_return): Call it in the
2728         expanders.
2729
2730         PR tree-optimization/51091
2731         * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
2732         rhs also in the va_list_simple_ptr case.
2733
2734         PR tree-optimization/51058
2735         * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
2736         (vect_schedule_slp): Call it.
2737         * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
2738         don't replace scalar calls with setting of their lhs to zero here.
2739
2740         PR tree-optimization/51074
2741         * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
2742         (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
2743         VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
2744         VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
2745         (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
2746         CONSTRUCTOR operands.
2747         * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
2748         expressions.
2749         * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
2750         to 0 .. 2 * elements - 1.
2751
2752 2011-11-11  Richard Henderson  <rth@redhat.com>
2753
2754         * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
2755         (dump_gimple_omp_atomic_store): Likewise.
2756         * optabs.c (can_atomic_exchange_p): New.
2757         * optabs.h (can_atomic_exchange_p): Declare.
2758         * omp-low.c (expand_omp_atomic_load): Implement.
2759         (expand_omp_atomic_store): Likewise.
2760         (expand_omp_atomic): Update for new arguments to load/store.
2761
2762 2011-11-11  Eric Botcazou  <ebotcazou@adacore.com>
2763
2764         * cprop.c: Adjust outdated comments throughout.
2765         (hash_scan_set): Rename PAT parameter into SET.
2766         (cprop_pavloc): Rename into...
2767         (cprop_avloc): ...this.
2768         (cprop_absaltered): Rename into...
2769         (cprop_kill): ...this.
2770         (alloc_cprop_mem): Adjust for above renaming.
2771         (free_cprop_mem): Likewise.
2772         (compute_cprop_data): Likewise.
2773         (compute_local_properties): Rename TRANSP parameter into KILL and
2774         adjust throughout.  Rework comments.
2775         (try_replace_reg): Fix long line.
2776         (cprop_jump): Likewise.
2777         (constprop_register): Fix prototype and take INSN last.
2778         (cprop_insn): Adjust calls to above function.  Fix long lines.
2779         (bypass_block): Likewise.
2780         (one_cprop_pass): Likewise.
2781
2782 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
2783
2784         * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
2785         (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
2786
2787 2011-11-11  Jason Merrill  <jason@redhat.com>
2788
2789         * varasm.c (default_elf_asm_output_limited_string): #ifdef
2790         ELF_ASCII_ESCAPES.
2791         (default_elf_asm_output_ascii): Likewise.
2792
2793 2011-11-11  Uros Bizjak  <ubizjak@gmail.com>
2794
2795         PR target/50762
2796         * config/i386/constraints.md (j): New address constraint.
2797         * config/i386/predicates.md (lea_address_operand): Redefine as
2798         special predicate.
2799         * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
2800         (*lea_4_zext): Ditto.
2801
2802 2011-11-11  David S. Miller  <davem@davemloft.net>
2803
2804         Revert
2805         2011-11-05  David S. Miller  <davem@davemloft.net>
2806
2807         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
2808         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
2809         (*zero_extend_v8qi_<P:mode>_insn,
2810         *zero_extend_v4hi_<P:mode>_insn): New insns.
2811         * config/sparc/sparc.c (vector_init_move_words,
2812         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
2813         sparc_expand_vector_init_vis1): New functions.
2814         (vector_init_bshuffle): Rewrite to handle more cases and make use
2815         of locs[] array prepared by vector_init_prepare_elts.
2816         (vector_init_fpmerge, vector_init_faligndata): Delete.
2817         (sparc_expand_vector_init): Rewrite using new infrastructure.
2818
2819 2011-11-11  Jakub Jelinek  <jakub@redhat.com>
2820
2821         * opts-common.c (generate_canonical_option): Free opt_text
2822         it it has been allocated here and not stored anywhere.
2823
2824         * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
2825         vector.
2826         (vect_create_new_slp_node): Don't allocate node before checking stmt
2827         type.
2828         (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
2829         free def_stmts vectors and additionally free oprnd_info.
2830         (vect_build_slp_tree): Adjust callers.  Call it even if
2831         stop_recursion.  If vect_create_new_slp_node or
2832         vect_build_slp_tree fails, properly handle freeing memory.
2833         If it succeeded, clear def_stmts in oprnd_info.
2834
2835 2011-11-11  Dimitrios Apostolou  <jimis@gmx.net>
2836
2837         * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
2838         multiple lines for readability.
2839         * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
2840         (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
2841         * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
2842         dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
2843         dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
2844         * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
2845         fprintf.
2846         * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
2847         serving as fast replacements for fprintf integer to string conversions.
2848         (sprint_ul_rev): Internal helper for the above.
2849         (output_addr_const) <CONST_INT>: Don't use fprintf.
2850         * varasm.c: Fix some whitespace inconsistencies.
2851         (default_elf_asm_output_limited_string): New.
2852         (default_elf_asm_output_ascii): Likewise.
2853         (default_elf_internal_label): Likewise.
2854         * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
2855         stpcpy instead of sprintf.
2856         (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
2857         (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
2858         STRING_LIMIT macros.
2859         (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
2860         provide the same functionality.
2861         * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
2862
2863 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
2864
2865         * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
2866
2867 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
2868
2869         PR middle-end/51038
2870         * builtins.c (expand_builtin_atomic_clear): New.  Expand atomic_clear.
2871         (expand_builtin_atomic_test_and_set): New.  Expand atomic test_and_set.
2872         (expand_builtin): Add cases for test_and_set and clear.
2873         * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
2874         (BUILT_IN_ATOMIC_CLEAR): New.
2875
2876 2011-11-10  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
2877
2878         PR debug/50983
2879         * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
2880         value in the current line table.
2881
2882 2011-11-10  Nathan Sidwell  <nathan@acm.org>
2883
2884         * gcov.c (struct function_info): Make src an index, not a pointer.
2885         (struct source_info): Remove index and next source fields.
2886         (fn_end): New static var.
2887         (sources_index): Remove.
2888         (sources): Now a pointer to an array, not a list.
2889         (n_sources, a_sources): New.
2890         (process_file): Adjust for changes to read_graph_file. Insert
2891         functions into source lists and check line numbers here.
2892         (generate_results): Only allocate lines for sources with
2893         contents.  Adjust for source array.
2894         (release_structures): Likewise.
2895         (find_source): Return source index, adjust for source array.
2896         (read_graph_file): Return function list.  Don't insert into source
2897         lists here.
2898         (read_count_file): Take list of functions.
2899         (solve_flow_graph): Reverse the arc lists here.
2900         (add_line_counts): Adjust for source array.
2901
2902 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
2903
2904         PR middle-end/51077
2905         * tree-object-size.c (addr_object_size): Check TREE_CODE of
2906         MEM_REF's operand rather than code of the MEM_REF itself.
2907
2908 2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
2909
2910         PR rtl-optimization/51040
2911         * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
2912         be AND followed by NOT.
2913         * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
2914         should be AND followed by NOT.
2915
2916 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
2917
2918         * vec.h (VEC_BASE): If base is at offset 0 in the structure,
2919         use &(P)->base even if P is NULL.
2920
2921         PR rtl-optimization/51023
2922         * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
2923         val_signbit_known_clear_p for signed comparison narrowing
2924         optimization.  Don't check for non-VOIDmode, use
2925         HWI_COMPUTABLE_MODE_P macro.
2926         <case ZERO_EXTEND>: Don't check for non-VOIDmode.
2927         Optimize even when const_op is equal to GET_MODE_MASK (mode),
2928         don't optimize if const_op is negative.
2929
2930 2011-11-10  Richard Guenther  <rguenther@suse.de>
2931
2932         PR tree-optimization/51042
2933         * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
2934         self-referential expressions.  Refactor code to avoid duplication.
2935
2936 2011-11-10  Richard Guenther  <rguenther@suse.de>
2937
2938         PR tree-optimization/51070
2939         * tree-loop-distribution.c (generate_builtin): Do not replace
2940         the loop with a builtin if the partition contains statements which
2941         results are used outside of the loop.
2942         (pass_loop_distribution): Verify and collect.
2943
2944 2011-11-10  Richard Guenther  <rguenther@suse.de>
2945
2946         PR tree-optimization/51030
2947         * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
2948         (value_replacement): Use it to handle trivial non-empty
2949         intermediate blocks.
2950
2951 2011-11-10  Richard Guenther  <rguenther@suse.de>
2952
2953         PR middle-end/51071
2954         * gimple.c (gimple_has_side_effects): Remove checking code
2955         that doesn't belong here.
2956
2957 2011-11-10  Ira Rosen  <ira.rosen@linaro.org>
2958
2959         PR tree-optimization/51058
2960         * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
2961
2962 2011-11-10  Jakub Jelinek  <jakub@redhat.com>
2963
2964         PR tree-optimization/51000
2965         * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
2966         a pattern stmt for a bool store, adjust DR_STMT too.
2967         Don't handle bool conversions to single bit precision lhs.
2968         * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
2969         stmt, remove its related stmt and free its stmt_vinfo.
2970         (free_stmt_vec_info): Free also pattern stmt's vinfo and
2971         pattern def stmt's vinfo.
2972         * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
2973         free pattern stmt's vinfo here.
2974         (vect_transform_loop): When calling vect_remove_stores,
2975         do gsi_next first and don't call gsi_remove.  If not strided
2976         store, free stmt vinfo for gsi_stmt (si) rather than stmt.
2977
2978 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
2979
2980         PR target/50911
2981         * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
2982         V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
2983         to V4SFmode.
2984
2985         * function.h (requires_stack_frame_p): New prototype.
2986         * function.c (requires_stack_frame_p): No longer static.
2987         * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
2988         stack_realign_fp was just a conservative guess for a function
2989         which doesn't use sp/fp/argp at all, clear frame_pointer_needed
2990         and stack realignment.
2991
2992 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
2993
2994         PR preprocessor/51061
2995         * incpath.c (merge_include_chains): Make sure to not pass null
2996         pointers to free_path.
2997
2998 2011-11-09  Paolo Carlini  <paolo.carlini@oracle.com>
2999
3000         * doc/invoke.texi ([Option Summary, C++ Language Options]):
3001         Add -Wzero-as-null-pointer-constant.
3002
3003 2011-11-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3004
3005         * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
3006         * config/arm/arm-tables.opt: Regenerate.
3007         * config/arm/arm-tune.md: Likewise.
3008         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
3009         * doc/invoke.texi: Document -mcpu=cortex-a7.
3010
3011 2011-11-09  Richard Guenther  <rguenther@suse.de>
3012
3013         Revert
3014         2011-11-09  Richard Guenther  <rguenther@suse.de>
3015
3016         * tree-cfg.c (verify_gimple_call): Verify that
3017         gimple_call_cannot_inline_p is returning a conservative
3018         correct result according to gimple_check_call_matching_types.
3019
3020 2011-11-09  Richard Guenther  <rguenther@suse.de>
3021
3022         PR tree-optimization/51039
3023         * tree-cfg.c (verify_gimple_call): Verify that
3024         gimple_call_cannot_inline_p is returning a conservative
3025         correct result according to gimple_check_call_matching_types.
3026         * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
3027         code dealing with un-inlinablility.
3028         * gimple-streamer-in.c (input_gimple_stmt): Update the
3029         non-inlinable flag.
3030
3031 2011-11-09  Richard Guenther  <rguenther@suse.de>
3032
3033         PR tree-optimization/51039
3034         * tree-inline.c (setup_one_parameter): Always perform a
3035         valid gimple type change.
3036         (declare_return_variable): Likewise.
3037
3038 2011-11-09  Jakub Jelinek  <jakub@redhat.com>
3039
3040         * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
3041         vconduv4sfv4si): New patterns.
3042         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
3043         different dest_mode from comparison mode.
3044
3045 2011-11-09  Richard Guenther  <rguenther@suse.de>
3046
3047         * gimple-fold.c (canonicalize_constructor_val): Mark
3048         address-taken variables addressable.
3049
3050 2011-11-09  Ira Rosen  <ira.rosen@linaro.org>
3051
3052         PR tree-optimization/51015
3053         * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
3054         vectype to be set for pattern def stmts.
3055
3056 2011-11-09  Alan Modra  <amodra@gmail.com>
3057
3058         * function.c (bb_active_p): Delete.
3059         (dup_block_and_redirect, active_insn_between): New functions.
3060         (convert_jumps_to_returns, emit_return_for_exit): New functions,
3061         split out from..
3062         (thread_prologue_and_epilogue_insns): ..here.  Delete
3063         shadowing variables.  Don't do prologue register clobber tests
3064         when shrink wrapping already failed.  Delete all last_bb_active
3065         code.  Instead compute tail block candidates for duplicating
3066         exit path.  Remove these from antic set.  Duplicate tails when
3067         reached from both blocks needing a prologue/epilogue and
3068         blocks not needing such.
3069         * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
3070         HAVE_simple_return.
3071         * bb-reorder.c (get_uncond_jump_length): Make global.
3072         * bb-reorder.h (get_uncond_jump_length): Declare.
3073         * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
3074         (rtl_split_edge): Likewise.  Warning fix.
3075         (rtl_duplicate_bb): New function.
3076         (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
3077         * Makefile.in (function.o): Update dependencies.
3078
3079 2011-11-08  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3080             Georg-Johann Lay  <avr@gjlay.de>
3081
3082         * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
3083         argument.
3084         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3085         * doc/tm.texi: Regenerate.
3086
3087         * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
3088         space argument.
3089         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3090         * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
3091         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3092         * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
3093         argument.
3094         (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
3095         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
3096         (avr_regno_mode_code_ok_for_base_p): Ditto.
3097         * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
3098         (avr_regno_mode_code_ok_for_base_p): Ditto.
3099         (avr_reg_ok_for_addr_p): Pass AS down to
3100         avr_regno_mode_code_ok_for_base_p.
3101
3102         * addresses.h (base_reg_class): Add address space argument.
3103         Pass to MODE_CODE_BASE_REG_CLASS.
3104         (ok_for_base_p_1): Add address space argument.  Pass to
3105         REGNO_MODE_CODE_OK_FOR_BASE_P.
3106         (regno_ok_for_base_p): Add address space argument.  Pass to
3107         ok_for_base_p_1.
3108
3109         * regrename.c (scan_rtx_address): Add address space argument.
3110         Pass address space to regno_ok_for_base_p and base_reg_class.
3111         Update recursive calls.
3112         (scan_rtx): Pass address space to scan_rtx_address.
3113         (build_def_use): Likewise.
3114         * regcprop.c (replace_oldest_value_addr): Add address space
3115         argument.  Pass to regno_ok_for_base_p and base_reg_class.
3116         Update recursive calls.
3117         (replace_oldest_value_mem): Pass address space to
3118         replace_oldest_value_addr.
3119         (copyprop_hardreg_forward_1): Likewise.
3120
3121         * reload.c (find_reloads_address_1): Add address space argument.
3122         Pass address space to base_reg_class and regno_ok_for_base_p.
3123         Update recursive calls.
3124         (find_reloads_address): Pass address space to base_reg_class,
3125         regno_ok_for_base_p, and find_reloads_address_1.
3126         (find_reloads): Pass address space to base_reg_class.
3127         (find_reloads_subreg_address): Likewise.
3128
3129         * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
3130         (ok_for_base_p_nonstrict): Add address space argument.  Pass to
3131         ok_for_base_p_1.
3132         (record_address_regs): Add address space argument.  Pass to
3133         base_reg_class and ok_for_base_p_nonstrict.  Update recursive calls.
3134         (record_operand_costs): Pass address space to record_address_regs.
3135         (scan_one_insn): Likewise.
3136
3137         * caller-save.c (init_caller_save): Update call to base_reg_class.
3138         * ira-conflicts.c (ira_build_conflicts): Likewise.
3139         * reload1.c (maybe_fix_stack_asms): Likewise.
3140
3141 2011-11-08  Michael Matz  <matz@suse.de>
3142
3143         * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
3144
3145         * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
3146
3147         * tree.h (TREE_CLOBBER_P): New macro.
3148         * gimple.h (gimple_clobber_p): New inline function.
3149         * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
3150         that go out of scope and live in memory.
3151         * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
3152         for constructors.
3153         * cfgexpand.c (decl_to_stack_part): New static variable.
3154         (add_stack_var): Allocate it, and remember mapping.
3155         (fini_vars_expansion): Deallocate it.
3156         (stack_var_conflict_p): Add early outs.
3157         (visit_op, visit_conflict, add_scope_conflicts_1,
3158         add_scope_conflicts): New static functions.
3159         (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
3160         (expand_used_vars): Add scope conflicts.
3161         (expand_gimple_stmt_1): Expand clobbers to nothing.
3162         (expand_debug_expr): Ditto.
3163
3164         * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
3165         * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
3166         refer to otherwise unused locals.
3167         * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
3168         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
3169         SSA names aren't necessary.
3170         (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
3171         * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
3172         * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
3173         any known value.
3174         * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
3175         don't zero-initialize something.
3176         * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
3177         clobber RHS, we don't want PHI nodes with those.
3178
3179 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
3180
3181         * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
3182         if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
3183
3184 2011-11-08  Richard Guenther  <rguenther@suse.de>
3185
3186         PR tree-optimization/51012
3187         * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
3188         non-inlinable state.
3189         * cgraph.c (cgraph_make_edge_direct): Likewise.
3190
3191 2011-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3192
3193         PR rtl-optimization/47698
3194         * ifcvt.c (noce_operand_ok): Move around comment.
3195
3196 2011-11-08  Richard Guenther  <rguenther@suse.de>
3197
3198         PR lto/50999
3199         * lto-opts.c (append_to_collect_gcc_options): Split out from...
3200         (lto_write_options): ... here.  Prepend frontend specific flags.
3201
3202 2011-11-08  Jakub Jelinek  <jakub@redhat.com>
3203
3204         * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
3205         0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
3206
3207         * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
3208         Handle vectorization of SLP calls.
3209         (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
3210         (vect_transform_stmt): Adjust vectorizable_call caller, remove
3211         assertion.
3212         * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
3213         with op_idx 3.
3214         (vect_build_slp_tree): Allow CALL_EXPR.
3215
3216 2011-11-08  Richard Guenther  <rguenther@suse.de>
3217
3218         * gimple-fold.c (canonicalize_constructor_val): Make sure
3219         we have referenced vars setup before adding to them.
3220
3221 2011-11-07  Richard Henderson  <rth@redhat.com>
3222             Aldy Hernandez  <aldyh@redhat.com>
3223             Andrew MacLeod  <amacleod@redhat.com>
3224             Torvald Riegel  <triegel@redhat.com>
3225
3226         Merged from transactional-memory.
3227
3228         * gtm-builtins.def: New file.
3229         * trans-mem.c: New file.
3230         * trans-mem.h: New file.
3231
3232         * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
3233
3234         * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
3235         (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
3236         ix86_builtin_tm_load, ix86_builtin_tm_store,
3237         ix86_init_tm_builtins): New.
3238         (ix86_init_builtins): Initialize TM builtins.
3239         (struct ix86_attribute_table): Add "*tm regparm".
3240         * config/i386/i386-builtin-types.def (PV2SI): Define.
3241         (PCV2SI): Define.
3242         Define V2SI_FTYPE_PCV2SI.
3243         Define V4SF_FTYPE_PCV4SF.
3244         Define V8SF_FTYPE_PCV8SF.
3245         Define VOID_PV2SI_V2SI.
3246
3247         * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
3248         tm-max-aggregate-size.
3249         * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
3250         TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
3251         * doc/tm.texi: Regenerate.
3252
3253         * attribs.c (apply_tm_attr): New.
3254         (init_attributes): Allow '*' prefix for overrides.
3255         (register_attribute): Likewise.
3256         * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
3257         (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
3258         ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
3259         ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
3260         ATTR_TMPURE_NOTHROW_LIST): New.
3261         * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
3262         BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
3263         BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
3264         BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
3265         * builtins.def: Include gtm-builtins.def. Add comments regarding
3266         transactional memory synchronization.
3267         (DEF_TM_BUILTIN): New.
3268         * c-parser.c (struct c_parser): Add in_transaction.
3269         (c_parser_transaction, c_parser_transaction_expression,
3270         c_parser_transaction_cancel, c_parser_transaction_attributes): New.
3271         (c_parser_attribute_any_word): Split out from c_parser_attributes.
3272         (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
3273         (c_parser_unary_expression): Same.
3274         * c-tree.h (c_finish_transaction): Declare.
3275         * c-typeck.c (c_finish_transaction): New.
3276         (build_function_call_vec): Call tm_malloc_replacement.
3277         * calls.c (is_tm_builtin): New.
3278         (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
3279         * cfgbuild.c (make_edges): Add edges for REG_TM notes.
3280         * cfgexpand.c (expand_call_stmt): Call
3281         mark_transaction_restart_calls.
3282         (gimple_expand_cfg): Free the tm_restart map.
3283         (mark_transaction_restart_calls): New.
3284         * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
3285         * cgraph.c (dump_cgraph_node): Handle tm_clone.
3286         * cgraph.h (struct cgraph_node): Add tm_clone field.
3287         (decl_is_tm_clone): New.
3288         (struct cgraph_local_info): Add tm_may_enter_irr.
3289         (cgraph_copy_node_for_versioning): Declare.
3290         * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
3291         copy analyzed from old version.
3292         * combine.c (distribute_notes): Handle REG_TM notes.
3293         * common.opt: Add -fgnu-tm.
3294         * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
3295         (__do_global_dtors_aux): Deregister clone table.
3296         (frame_dummy): Register clone table.
3297         * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
3298         body.
3299         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
3300         GIMPLE_TRANSACTION.
3301         (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
3302         * gimple-pretty-print.c: Include trans-mem.h.
3303         (dump_gimple_fmt): Add %x.
3304         (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
3305         (dump_gimple_eh_else, dump_gimple_transaction): New.
3306         (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3307         * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
3308         (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
3309         field.
3310         (walk_gimple_op): Handle GIMPLE_TRANSACTION.
3311         (walk_gimple_stmt): Initialize and honor removed_stmt.
3312         Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3313         (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3314         * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
3315         * gimple.h (struct gimple_statement_eh_else,
3316         gimple_statement_transaction, GTMA_*): New.
3317         (gimple_statement_d): Add gimple_statement_eh_else and
3318         gimple_transaction.
3319         (gimple_build_eh_else, gimple_build_transaction,
3320         gimple_fold_call, diagnose_tm_safe_errors): Declare.
3321         (get_call_expr_in): Remove prototype.
3322         (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3323         (gimple_eh_else_n_body, gimple_eh_else_e_body,
3324         gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
3325         gimple_transaction_body, gimple_transaction_label,
3326         gimple_transaction_label_ptr, gimple_transaction_subcode,
3327         gimple_transaction_set_body, gimple_transaction_set_label,
3328         gimple_transaction_set_subcode): New.
3329         (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
3330         * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
3331         (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
3332         (gimplify_transaction): New.
3333         (gimplify_expr): Handle TRANSACTION_EXPR.
3334         * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
3335         * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
3336         TM pure functions.
3337         * Makefile.in: Add trans-mem.o and dependencies.
3338         (BUILTINS_DEF): Add gtm-builtins.def.
3339         (gimple-pretty-print.o): Depend on TRANS_MEM_H.
3340         (GTFILES): Add trans-mem.c.
3341         * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
3342         * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
3343         get_tm_clone_pair): Declare.
3344         * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
3345         * passes.c (init_optimization_passes): Place transactional memory
3346         passes.
3347         * print-tree.c (print_node): Dump tm-clone.
3348         * recog.c (peep2_attempt): Handle REG_TM.
3349         * reg-notes.def (TM): New.
3350         * rtlanal.c (alloc_reg_note): Handle REG_TM.
3351         * target.def (builtin_tm_load, builtin_tm_store): New.
3352         * targhooks.c (default_builtin_tm_load_store): New.
3353         * targhooks.h (default_builtin_tm_load_store): Declare.
3354         * timevar.def (TV_TRANS_MEM): New.
3355         * toplev.c (compile_file): Call finish_tm_clone_pairs.
3356         * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
3357         (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
3358         writes into the statements to update labels.
3359         (is_ctrl_altering_stmt): Add TM ending statements. Handle
3360         GIMPLE_TRANSACTION.
3361         (verify_gimple_transaction): New.
3362         (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
3363         (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3364         (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
3365         (dump_function_to_file): Display [tm-clone] if applicable.
3366         * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
3367         (struct_ptr_hash): Same.
3368         (collect_finally_tree): Handle GIMPLE_EH_ELSE.
3369         (replace_goto_queue_1): Likewise.
3370         (get_eh_else): New.
3371         (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
3372         (lower_try_finally_nofallthru): Likewise.
3373         (lower_try_finally_onedest): Likewise.
3374         (lower_try_finally_copy): Likewise.
3375         (lower_try_finally_switch): Likewise.
3376         (lower_try_finally): Likewise.
3377         (decide_copy_try_finally): Likewise.
3378         (lower_eh_constructs_2): Likewise.
3379         (refactor_eh_r): Likewise.
3380         * tree-flow.h (struct gimple_df): Add tm_restart field.
3381         Define tm_restart_node.
3382         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
3383         (estimate_num_insns): Likewise.
3384         (init_inline_once): Init tm_cost.
3385         * tree-inline.h (struct eni_weights_d): Add tm_cost.
3386         * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
3387         pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
3388         * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
3389         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3390         BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
3391         Add support for TM vector loads.  Add support for TM logging builtins.
3392         (call_may_clobber_ref_p_1): Add support for vector stores.
3393         * tree-ssa-structalias.c (find_func_aliases): Add support for TM
3394         vector stores and loads. Handle BUILT_IN_TM_MEMSET,
3395         BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
3396         * tree.c (strip_invariant_refs): Moved from gimple.c to here.
3397         (local_define_builtin): Handle ECF_TM_PURE.
3398         (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
3399         * tree.def (TRANSACTION_EXPR): New.
3400         * tree.h (strip_invariant_refs): Moved from gimple.h to here.
3401         (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
3402         TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
3403         BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
3404         CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
3405         (ECF_TM_PURE, ECF_TM_BUILTIN): New.
3406         (struct tree_function_decl): Add tm_clone_flag.
3407         (struct_ptr_eq, struct_ptr_hash): New.
3408         (apply_tm_attr): Declare.
3409         (is_tm_safe_or_pure): New.
3410         (build_tm_abort_call, is_tm_safe, is_tm_pure,
3411         is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
3412         tm_malloc_replacement): Declare.
3413         * varasm.c (tm_clone_hash): New.
3414         (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
3415         dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
3416         (struct tm_alias_pair): New.  Declare VEC types for object.
3417
3418 2011-11-07  Richard Henderson  <rth@redhat.com>
3419
3420         * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
3421         OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
3422         OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
3423         OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
3424         OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
3425         rename from the direct_optab_index enum.
3426         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
3427         sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
3428         sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
3429         sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
3430         sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
3431         from the optab_table, not the direct_optab_table.
3432         (init_sync_libfuncs): Declare.
3433         (can_compare_and_swap_p): Update parameters.
3434         * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
3435         (can_compare_and_swap_p): Add allow_libcall parameter; if true,
3436         test for the legacy compare-and-swap libcall.
3437         (expand_atomic_exchange): Use the legacy test-and-set libcall.
3438         (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
3439         (struct atomic_op_functions): Update for optab type changes.
3440         (maybe_emit_op): Likewise.
3441         (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
3442         * builtins.c (fold_builtin_atomic_always_lock_free): Update call
3443         to can_compare_and_swap_p.
3444         * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
3445         (expand_omp_atomic_pipeline): Likewise.
3446         * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
3447         sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
3448         optabs.
3449         * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
3450
3451 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
3452
3453         * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
3454         * config/i386/i386.c (enum ix86_builtins): Add
3455         IX86_BUILTIN_VEC_PACK_SFIX256.
3456         (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
3457         (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
3458         (ix86_builtin_vectorized_function): Also vectorize lrint using
3459         256-bit vectors for -mavx.
3460
3461 2011-11-07  Anatoly Sokolov  <aesok@post.ru>
3462
3463         * config/cris/constraints.md: New file.
3464         * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
3465         CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
3466         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
3467         EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
3468         EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
3469         * config/cris/cris.c: Incule "tm-constrs.h".
3470         (cris_print_operand): Use satisfies_constraint_O.
3471         (cris_normal_notice_update_cc, cris_rtx_costs): Use
3472         satisfies_constraint_I.
3473         (cris_address_cost): Use satisfies_constraint_L.
3474         * config/cris/cris.md: Include "constraints.md".
3475         (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
3476         *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
3477         *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
3478         *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
3479         *extop<mode>si_swap_side): Use satisfies_constraint_N and
3480         satisfies_constraint_J.
3481         (moversideqi movemsideqi mover2side peephole2): Use
3482         satisfies_constraint_N and satisfies_constraint_J.
3483         (andu peephole2): Use satisfies_constraint_I and
3484         satisfies_constraint_O.
3485
3486 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
3487
3488         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
3489         BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
3490
3491 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
3492
3493         * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
3494         SWITCHABLE_TARGET can change the values during compilation.
3495         (expand_atomic_fetch_op): Handle parameter change ripples for
3496         get_atomic_op_for_code call.
3497
3498 2011-11-07  Andrew MacLeod  <amacleod@redhat.com>
3499
3500         * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
3501         __atomic_store.
3502         * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
3503         only when originated from that builtin.
3504         (expand_atomic_store): Expand to __sync_lock_release when originated
3505         from that builtin.
3506         * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
3507         expand_atomic_exchange call originated from here.
3508         (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
3509         call originated from here.
3510         (expand_builtin_atomic_exchange): Add origination flag.
3511         (expand_builtin_atomic_store): Add origination flag.
3512         * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
3513         parameters to indicate implementation fall back options.
3514
3515 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
3516
3517         * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
3518         now, not only CONST_INT and CONST_DOUBLE.
3519         (output_movqi): Use output_reload_in_const.
3520         (output_reload_inhi): Ditto.
3521         (output_reload_insisf): Move assertion to output_reload_in_const.
3522         (avr_out_reload_inpsi): Ditto.
3523
3524 2011-11-07  Nathan Sidwell  <nathan@acm.org>
3525
3526         * gcov.c (object_summary): Replace with ...
3527         (object_runs): ... this.
3528         (process_file): Remove functions with no data.
3529         (generate_results): Ignore files with no lines.
3530         (release_function): New helper, broken out of ...
3531         (release_structures): ... here.  Use it.
3532         (read_count_file): Adjust for new data file format.
3533         (output_lines): Use object_runs.
3534         * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
3535         (struct gcov_ctr_info): Move definition.
3536         (struct gcov_fn_info): Add key field, use gcov_ctr_info for
3537         trailing array.
3538         (struct gcov_info): Add merge function array, remove mask and
3539         counts.  Trailing array is array of pointers to function info.
3540         * coverage.c (struct function_list): Replace counter numbers with
3541         counter arrays.  Add fndecl field.  GTYify.
3542         (counts_entry): Remove chain workspace.
3543         (functions_head): GTYify.
3544         (prg_n_ctrs): Remove.
3545         (fn_v_ctrs): New.
3546         (tree_ctr_tables): Remove.
3547         (read_counts_file): Cope with blank entries and expect program
3548         summaries before functions.  Don't warn on missing entries.
3549         (coverage_counter_alloc): Allocate individual function arrays.
3550         (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
3551         for individual function arrays.
3552         (coverage_end_function): GTYify function list object. Finalize
3553         function's counter arrays.
3554         (build_var): New.  Create a counter-related variable with
3555         appropriate linkage.
3556         (build_fn_info_type): Adjust for new runtime structure.
3557         (build_fn_info_value): Rename to ...
3558         (build_fn_info): ... here.  Build new format data.
3559         (build_ctr_info_type, build_ctr_info_value): Remove.
3560         (build_info_type): New. Build new format data structure.
3561         (build_info): Adjust for new format data.
3562         (create_coverage): Likewise.
3563         * gcov-dump.c (tag_function): Recognize placeholders.
3564
3565 2011-11-07  Georg-Johann Lay  <avr@gjlay.de>
3566
3567         * config/avr/constraints.md (Cm2): New constraint for int -2.
3568         * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
3569         (*negqihi2): New insn.
3570
3571 2011-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3572
3573         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
3574         HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
3575
3576 2011-11-07  Jakub Jelinek  <jakub@redhat.com>
3577
3578         * config/i386/i386.c (ix86_expand_builtin): If gather mask
3579         argument is known to have all high bits set, pass pc_rtx as
3580         second argument to the expander instead of op0.
3581         * config/i386/sse.md (*avx2_gathersi<mode>_2,
3582         *avx2_gatherdi<mode>_2): New patterns.
3583         * config/i386/avx2intrin.h (_mm256_i32gather_pd,
3584         _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
3585         _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
3586         _mm256_set1_pd.
3587
3588         PR tree-optimization/50789
3589         * tree-vect-stmts.c (process_use): Add force argument, avoid
3590         exist_non_indexing_operands_for_use_p check if true.
3591         (vect_mark_stmts_to_be_vectorized): Adjust callers.  Handle
3592         STMT_VINFO_GATHER_P.
3593         (gen_perm_mask): New function.
3594         (perm_mask_for_reverse): Use it.
3595         (reverse_vec_element): Rename to...
3596         (permute_vec_elements): ... this.  Add Y and MASK_VEC arguments,
3597         generalize for any permutations.
3598         (vectorizable_load): Adjust caller.  Handle STMT_VINFO_GATHER_P.
3599         * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
3600         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
3601         * doc/tm.texi: Regenerate.
3602         * tree-data-ref.c (initialize_data_dependence_relation,
3603         compute_self_dependence): No longer static.
3604         * tree-data-ref.h (initialize_data_dependence_relation,
3605         compute_self_dependence): New prototypes.
3606         * tree-vect-data-refs.c (vect_check_gather): New function.
3607         (vect_analyze_data_refs): Detect possible gather load data refs.
3608         * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
3609         (STMT_VINFO_GATHER_P): Define.
3610         (vect_check_gather): New prototype.
3611         * config/i386/i386-builtin-types.def: Add types for alternate
3612         gather builtins.
3613         * config/i386/sse.md (AVXMODE48P_DI): Remove.
3614         (VEC_GATHER_MODE): Rename mode_attr to...
3615         (VEC_GATHER_IDXSI): ... this.
3616         (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
3617         (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
3618         instead of <VEC_GATHER_MODE>.
3619         (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
3620         <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
3621         on src and mask operands.
3622         (*avx2_gatherdi<mode>): Likewise.  Use VEC_GATHER_MODE iterator
3623         instead of AVXMODE48P_DI.
3624         (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
3625         * config/i386/i386.c (enum ix86_builtins): Add
3626         IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
3627         IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
3628         (ix86_init_mmx_sse_builtins): Create those builtins.
3629         (ix86_expand_builtin): Handle those builtins and adjust expansions
3630         of other gather builtins.
3631         (ix86_vectorize_builtin_gather): New function.
3632         (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
3633
3634 2011-11-07  Uros Bizjak  <ubizjak@gmail.com>
3635
3636         * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
3637
3638 2011-11-07  Tristan Gingold  <gingold@adacore.com>
3639
3640         * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
3641         * config/vms/t-vms: Add vms-c.o rule.
3642         * config/vms/vms-c.c: New file.
3643         * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
3644         * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
3645
3646 2011-11-07  Tristan Gingold  <gingold@adacore.com>
3647
3648         * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
3649         TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
3650         TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
3651         POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
3652         (SUBTARGET_OS_CPP_BUILTINS): Define.
3653         (TARGET_DEFAULT): Tune according to POINTER_SIZE.
3654         (MASK_RETURN_ADDR): Define in 64 bit mode.
3655         * config/ia64/vms.h: Likewise.
3656         * config/vms/vms.h: New file.
3657         * config/vms/vms64.h: New file.
3658         * config/alpha/vms64.h: Removed.
3659         * config/ia64/vms64.h: Removed.
3660         * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
3661         Adjust for above change.
3662
3663 2011-11-07  Enkovich Ilya  <ilya.enkovich@intel.com>
3664
3665         PR target/50962
3666         * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
3667         * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
3668         * config/i386/i386.md (movsi_internal): Emit lea if profitable.
3669         (movdi_internal_rex64): Likewise.
3670
3671 2011-11-07  Sergey Ostanevich  <sergos.gnu@gmail.com>
3672
3673         PR rtl-optimization/47698
3674         * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
3675
3676 2011-11-07  Tristan Gingold  <gingold@adacore.com>
3677
3678         * common/config/alpha/alpha-common.c (alpha_option_init_struct):
3679         New function.
3680         (TARGET_OPTION_INIT_STRUCT): Define.
3681         * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
3682         (TARGET_MAX_ANCHOR_OFFSET)
3683         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
3684
3685 2011-11-06  Quentin Neill  <quentin.neill@amd.com>
3686
3687         Fix r180999, update ChangeLog
3688         * config.gcc: Add f16cintrin.h.
3689         * config/i386/f16cintrin.h: Add missing endif.
3690
3691 2011-11-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3692
3693         * config.gcc (arm*-*-rtemseabi*): New target.
3694         * config/arm/rtems-eabi.h: New.
3695         * config/arm/t-rtems-eabi: New.
3696
3697 2011-11-06  David S. Miller  <davem@davemloft.net>
3698
3699         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
3700         (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
3701         *zero_extend_v8qi_<P:mode>_insn,
3702         *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
3703         and vec_duplicate instead of using an UNSPEC.
3704
3705 2011-11-07  Alan Modra  <amodra@gmail.com>
3706
3707         PR target/30282
3708         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
3709         blockage for ABI_V4.
3710
3711 2011-11-06  Dave Korn  <dave.korn.cygwin@gmail.com>
3712
3713         * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
3714         libgcj version bump.
3715         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3716
3717 2011-11-06  Eric Botcazou  <ebotcazou@adacore.com>
3718
3719         * gcse.c: Adjust outdated comments throughout.
3720         (struct mem_conflict_info): New structure.
3721         (mems_conflict_for_gcse_p): Use it to communicate with caller.
3722         (load_killed_in_block_p): Pass it to note_stores.
3723         (hash_expr): Remove superfluous line break.
3724         (hash_scan_set): Rename PAT parameter into SET.
3725         (hash_scan_insn): Reorder cases.
3726         (canon_list_insert): Fix long line.
3727         (edge_list): Delete.
3728         (prune_expressions): Rename E local variable into EXPR.
3729         (compute_pre_data): Return struct edge_list * object.
3730         (pre_expr_reaches_here_p_work): Fix formatting.
3731         (process_insert_insn): Move around comment.
3732         (pre_edge_insert): Fix long line.
3733         (pre_insert_copies): Likewise.
3734         (gcse_emit_move_after): Swap SRC and DEST parameters.
3735         (pre_delete): Adjust call to gcse_emit_move_after.
3736         (pre_gcse): Take struct edge_list * parameter.  Fix long line.
3737         (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
3738         Use a local list of edges.
3739         (hoist_code): Fix long line.  Adjust call to gcse_emit_move_after.
3740         (pre_ldst_expr_hash): Fix long line.
3741         (free_ldst_mems): Rename into...
3742         (free_ld_motion_mems): ...this.
3743         (first_ls_expr): Delete.
3744         (next_ls_expr): Likewise.
3745         (print_ldst_list): Do not use above two functions.
3746         (simple_mem): Adjust interface.
3747         (compute_ld_motion_mems): Fix formatting.
3748         (update_ld_motion_stores): Reuse local variable.
3749
3750 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3751
3752         * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
3753         specifiers.
3754         (build_null_declspecs): Initialize align_log and alignas_p fields.
3755         (declspecs_add_alignas): New.
3756         * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
3757         (c_parser_declspecs): Handle _Alignas specifiers.
3758         (c_parser_alignas_specifier): New.
3759         (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
3760         Diagnose _Alignof (expression).
3761         * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
3762         (declspecs_add_alignas): Declare.
3763         * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
3764         * ginclude/stdalign.h: New.
3765         * Makefile.in (USER_H): Add stdalign.h.
3766
3767 2011-11-06  Joern Rennecke  <joern.rennecke@embecosm.com>
3768
3769         * regset.h (fixed_reg_set_regset): Declare.
3770         * dse.c: Include regset.h .
3771         (struct insn_info): Add member fixed_regs_live.
3772         (note_add_store_info): New typedef.
3773         (note_add_store): New function.
3774         (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
3775         Use gen_add3_insn / gen_move_insn.
3776         Check new insn for unwanted clobbers before emitting it.
3777         (check_for_inc_dec): Rename to...
3778         (check_for_inc_dec_1:) ... this.  Return bool.  Take insn_info
3779         parameter.  Changed all callers in file.
3780         (check_for_inc_dec, copy_fixed_regs): New functions.
3781         (scan_insn): Set fixed_regs_live field of insn_info.
3782         * rtl.h (check_for_inc_dec): Update prototype.
3783         * postreload.c (reload_cse_simplify): Take new signature of
3784         check_ind_dec into account.
3785         * reginfo.c (fixed_reg_set_regset): New variable.
3786         (init_reg_sets_1): Initialize it.
3787
3788 2011-11-06  Jakub Jelinek  <jakub@redhat.com>
3789
3790         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
3791         any user labels.
3792
3793 2011-11-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3794
3795         * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
3796         Remove dependence of declaration and target define on definition of
3797         HPUX_LONG_DOUBLE_LIBRARY.  Update implementation.
3798
3799 2011-11-06  Andrew Macleod  <amacleod@redhat.com>
3800             Richard Henderson  <rth@redhat.com>
3801             Aldy Hernandez  <aldyh@redhat.com>
3802
3803         Merged from cxx-mem-model.
3804
3805         * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
3806         * coretypes.h (enum memmodel): New.  enumerated memory model type.
3807         * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
3808         * genopinit,c (optabs): Add atomic direct optab handlers.
3809         * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
3810         * builtin-types.def (BT_CONST_VOLATILE_PTR,
3811         BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
3812         BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
3813         BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
3814         BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
3815         BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
3816         BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
3817         * expr.h (expand_atomic_*): Add prototypes.
3818         (expand_{bool,val}_compare_and_swap): Remove prototypes.
3819         * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
3820         parameters.
3821         * common.opt (Winvalid-memory-model): New warning flag.
3822         (finline-atomics): New. Flag to disable atomic inlining.
3823         * params.h (ALLOW_LOAD_DATA_RACES): New.
3824         (ALLOW_PACKED_LOAD_DATA_RACES): New.
3825         (ALLOW_PACKED_STORE_DATA_RACES): New.
3826         * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
3827         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
3828         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
3829         * builtins.c (is_builtin_name): Handle __atomic.
3830         (get_memmodel): New.  Extract memory model.
3831         (expand_expr_force_mode): New. Factor out common code for ensuring an
3832         integer argument is in the proper mode.
3833         (expand_builtin_sync_operation): Remove ignore param.  Always call
3834         expand_atomic_fetch_op instead of the old expanders.
3835         (expand_builtin_compare_and_swap,
3836         expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
3837         call atomic expanders instead of sync expanders.
3838         (expand_builtin_sync_lock_release): Call atomic_store expander.
3839         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
3840         expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
3841         (expand_builtin_atomic_exchange): New.
3842         (fold_builtin_atomic_always_lock_free,
3843         expand_builtin_atomic_always_lock_free,
3844         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
3845         New.
3846         (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
3847         expand_builtin_atomic_signal_fence): New.
3848         (expand_builtin_mem_signal_fence): New.
3849         (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
3850         (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
3851         * optabs.h (DOI_atomic_*): Define new atomics.
3852         (atomic_*_optab): Define.
3853         (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
3854         prototypes.
3855         * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
3856         (expand_sync_lock_test_and_set): Remove.
3857         (expand_atomic_load, expand_atomic_store): New.
3858         (expand_atomic_exchange): New.
3859         (expand_atomic_compare_and_swap): New.  Implements
3860         atomic_compare_exchange via compare and swap.
3861         (struct atomic_op_functions): Opcode table struct for fetch ops.
3862         (get_atomic_op_for_code): New.  Return an opcode table entry.
3863         (maybe_emit_op): New.  Try to emit a fetch op.
3864         (expand_atomic_fetch_op): New.
3865         (expand_val_compare_and_swap_1): Remove.
3866         (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
3867         (expand_atomic_compare_and_swap): Rename from
3868         expand_atomic_compare_exchange.  Rewrite to return both success and
3869         oldval return values; expand via both atomic and sync optabs.
3870         (can_compare_and_swap_p): New.
3871         (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
3872         (maybe_gen_insn): Handle 7 and 8 operands.
3873         * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
3874         fetch_op optabs, only test can_compare_and_swap_p.  Use __atomic
3875         builtins instead of __sync builtins.
3876         (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
3877         * doc/extend.texi: Document __atomic built-in functions.
3878         * doc/invoke.texi: Document data race parameters.
3879         * doc/md.texi: Document atomic patterns.
3880         * config/i386/i386.md (UNSPEC_MOVA): New.
3881         (UNSPECV_CMPXCHG): Split into ...
3882         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
3883         UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
3884         * config/i386/sync.md (ATOMIC): New mode iterator.
3885         (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
3886         (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
3887         (mem_thread_fence): Rename from memory_barrier.
3888         Handle the added memory model parameter.
3889         (mfence_nosse): Rename from memory_barrier_nosse.
3890         (sync_compare_and_swap<CASMODE>): Split into ...
3891         (atomic_compare_and_swap<SWI124>): this and ...
3892         (atomic_compare_and_swap<CASMODE>): this.  Handle the new parameters.
3893         (atomic_compare_and_swap_single<SWI>): Rename from
3894         sync_compare_and_swap<SWI>; rewrite to use split unspecs.
3895         (atomic_compare_and_swap_double<DCASMODE>): Rename from
3896         sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
3897         (*atomic_compare_and_swap_doubledi_pic): Rename from
3898         sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
3899         (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
3900         model parameter.
3901         (*atomic_fetch_add_cmp<SWI>): Similarly.
3902         (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
3903         (atomic_sub<SWI>): Similarly.  Use x86_maybe_negate_const_int.
3904         (sync_lock_test_and_set<SWI>): Merge with ...
3905         (atomic_exchange<SWI>): ... this.
3906
3907 2011-11-6  Richard Guenther  <rguenther@suse.de>
3908
3909         * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
3910
3911 2011-11-06  Ira Rosen  <ira.rosen@linaro.org>
3912
3913         * tree-vectorizer.h (vectorizable_condition): Add argument.
3914         * tree-vect-loop.c (vectorizable_reduction): Fail for condition
3915         in SLP.  Update calls to vectorizable_condition.
3916         * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
3917         the arguments.  Pass it to vect_is_simple_use_1.
3918         (vectorizable_condition): Add slp_node to the arguments.  Support
3919         vectorization of basic blocks.  Fail for reduction in SLP.  Update
3920         calls to vect_is_simple_cond and vect_is_simple_use.  Support SLP:
3921         call vect_get_slp_defs to get vector operands.
3922         (vect_analyze_stmt): Update calls to vectorizable_condition.
3923         (vect_transform_stmt): Likewise.
3924         * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
3925         (vect_get_and_check_slp_defs): Handle COND_EXPR.  Allow pattern
3926         def stmts.
3927         (vect_build_slp_tree): Handle COND_EXPR.
3928         (vect_analyze_slp_instance): Push pattern statements to root node.
3929         (vect_get_constant_vectors): Fix comments.  Handle COND_EXPR.
3930
3931 2011-11-05  David S. Miller  <davem@davemloft.net>
3932
3933         * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
3934         (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
3935         (*zero_extend_v8qi_<P:mode>_insn,
3936         *zero_extend_v4hi_<P:mode>_insn): New insns.
3937         * config/sparc/sparc.c (vector_init_move_words,
3938         vector_init_prepare_elts, sparc_expand_vector_init_vis2,
3939         sparc_expand_vector_init_vis1): New functions.
3940         (vector_init_bshuffle): Rewrite to handle more cases and make use
3941         of locs[] array prepared by vector_init_prepare_elts.
3942         (vector_init_fpmerge, vector_init_faligndata): Delete.
3943         (sparc_expand_vector_init): Rewrite using new infrastructure.
3944
3945 2011-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
3946
3947         * config.gcc (epiphany-*-*): New architecture.
3948         (epiphany-*-elf): New configuration.
3949         * config/epiphany, common/config/epiphany : New directories.
3950         * doc/extend.texi (disinterrupt attribute): Add Epiphany.
3951         (interrupt attribute): Add Epiphany.
3952         (long_call, short_call attribute): Add Epiphany.
3953         * doc/invoke.texi (Options): Add Epiphany options.
3954         * doc/md.texi (Machine Constraints): Add Epiphany constraints.
3955         * doc/install.texi (Options specification):
3956         Add --with-stack-offset=@var{num} description.
3957         (host/target specific issues): Add epiphany-*-elf.
3958         * doc/contrib.texi (Contributors): Mention Epiphany port.
3959
3960 2011-11-05  Jakub Jelinek  <jakub@redhat.com>
3961
3962         PR tree-optimization/50693
3963         * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
3964         non-forced user labels.
3965         (gimple_merge_blocks): Turn non-forced user labels into
3966         debug bind stmt with the label as first operand and reset value.
3967         (gimple_duplicate_bb): Don't duplicate label debug stmts.
3968         * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
3969         * final.c (final_scan_insn): Likewise.
3970         (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
3971         * var-tracking.c (debug_label_num): New variable.
3972         (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
3973         instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
3974         * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
3975         NOTE_INSN_DELETED_DEBUG_LABEL.
3976         (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
3977         * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
3978         * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
3979         * gengtype.c (adjust_field_rtx_def): Likewise.
3980         * config/i386/i386.c (ix86_output_function_epilogue): For MachO
3981         clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
3982         if their are at the end of function and nop hasn't been emitted.
3983         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
3984
3985 2011-11-05  Georg-Johann Lay  <avr@gjlay.de>
3986
3987         PR rtl-optimization/50448
3988         * cprop.c (try_replace_reg): Also try to replace uses of FROM that
3989         appear in SET_DEST.
3990
3991 2011-11-05  Peter Dufault  <dufault@hda.com>,
3992             Sebastian Huber  <sebastian.huber@embedded-brains.de>
3993
3994         * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3995         Extend rs6000_spe handling.
3996
3997 2011-11-05  Ralf Corsépius  <ralf.corsepius@rtems.org>
3998
3999         * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
4000         Remove -mcpu=601 multilib.
4001         Remove -Dmpc8260 multilib.
4002         * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
4003         on E500 targets.
4004
4005 2011-11-05  Quentin Neill  <quentin.neill@amd.com>
4006
4007         Piledriver f16cintrin.h fix.
4008         * config/i386/f16cintrin.h: Contents moved from immintrin.h.
4009         * config/i386/immintrin.h: Include f16cintrin.h.
4010         * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
4011
4012
4013 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
4014
4015         PR c++/50608
4016         * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
4017         to fold_offsetof.
4018         * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
4019
4020 2011-11-04  Alan Modra  <amodra@gmail.com>
4021
4022         * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
4023         * print-rtl.c (print_rtx): Don't segfault on negative regno.
4024
4025 2011-11-04  David S. Miller  <davem@davemloft.net>
4026
4027         PR target/49965
4028         * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
4029         fact that sparc_emit_float_lib_cmp modifies the comparison in
4030         operands[1].
4031
4032 2011-11-04  Ralf Corsépius  <ralf.corsepius@rtems.org>
4033
4034         * config/lm32/t-rtems: New.
4035         * config.gcc (lm32-*-rtems*): Add t-rtems.
4036
4037 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
4038
4039         PR target/50979
4040         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
4041
4042 2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
4043
4044         PR rtl-optimization/38644
4045         * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
4046         for epilogue having stack adjustment.
4047
4048 2011-11-04  Georg-Johann Lay  <avr@gjlay.de>
4049
4050         PR target/50931
4051         * config/avr/avr-modes.def: New file defining PSImode.
4052         * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
4053         __UINT24_MAX__): New built-in defines.
4054         * config/avr/avr.md (adjust_len): Add tstpsi, mov24,  reload_in24,
4055         ashlpsi, ashrpsi, lshrpsi.
4056         (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
4057         (MOVMODE): New mode iterator.
4058         (movpsi): New expander.
4059         (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
4060         (*reload_inpsi, *movpsi): New insns.
4061         (*reload_inpsi): New RTL peephole.
4062         (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
4063         *addpsi3_sign_extend.hi): New insns.
4064         (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
4065         *subpsi3_sign_extend.hi): New insns.
4066         (divmodpsi4, udivmodpsi4): New define insn-and-split.
4067         (*divmodpsi4_call, *udivmodpsi4_call): New insns.
4068         (andpsi3, iorpsi3, xorpsi3): New insns.
4069         (*rotlpsi2.1, *rotlpsi2.23): New insns.
4070         (*rotw<mode>): Insn condition only allow even-sized modes.
4071         (*rotb<mode>): Insn condition allows odd-sized modes.
4072         (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
4073         (negpsi2, one_cmplpsi2): New insns.
4074         (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
4075         (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
4076         insn-and-splits.
4077         (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
4078         (cbranchpsi4): New expander.
4079         * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
4080         * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
4081         avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
4082         avr_out_reload_inpsi): New prototypes.
4083
4084         * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
4085         (avr_scalar_mode_supported_p): ...this new static function.
4086         (avr_asm_len): Always return "".
4087         (avr_out_load_psi, avr_out_store_psi): New static functions.
4088         (avr_out_movpsi, avr_out_reload_inpsi): New functions.
4089         (avr_out_tstpsi): New function.
4090         (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
4091         (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
4092         (avr_simplify_comparison_p): Ditto.
4093         (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
4094         ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
4095         ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
4096         (avr_rtx_costs_1): Report PSI costs.
4097         (avr_libcall_value): Handle odd-sized parameters.
4098         (avr_init_builtin_int24): New static function to define built-in
4099         24-bit types __int24 and __uint24.
4100         (avr_init_builtins): Use it.
4101
4102 2011-11-04  Thomas Doerfler <thomas.doerfler@embedded-brains.de>
4103
4104         PR target/50989
4105         * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
4106         support for VFP floating point model.
4107
4108 2011-11-04  Tristan Gingold  <gingold@adacore.com>
4109
4110         * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
4111
4112 2011-11-04  Ira Rosen  <ira.rosen@linaro.org>
4113
4114         Unrevert:
4115         2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
4116
4117         PR tree-optimization/50730
4118         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
4119         analysis if encountered unsupported data-ref.
4120
4121 2011-11-04  Jakub Jelinek  <jakub@redhat.com>
4122
4123         * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
4124         function.
4125         * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
4126         New prototype.
4127         * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
4128         For floatunsv8siv8sf2 require TARGET_AVX2.
4129
4130         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
4131         XORP argument.  Subtract 0x1p31 instead of 0x1p32.  Use normal
4132         signalling comparison instead of non-signalling.  Store into
4133         *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
4134         subtracted and 0 otherwise.
4135         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
4136         Adjust prototype.
4137         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
4138         already for TARGET_SSE2.  Xor in vector initialized by
4139         ix86_expand_adjust_ufix_to_sfix_si at the end.
4140         (vec_pack_ufix_trunc_<mode>): Likewise.
4141
4142         * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
4143         not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
4144         WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
4145         vectorizable_type_demotion and vectorizable_type_promotion did.
4146         Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
4147         is {,un}signed {char,short}.
4148         (vect_create_vectorized_demotion_stmts): Fix comment typo.  For
4149         recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
4150         Push vec_dest back to the vec_dsts vector at the end.
4151         (vect_create_vectorized_promotion_stmts): Don't recurse, do just
4152         one step.  Removed multi_step_cvt, vec_dsts, slp_node and
4153         prev_stmt_info arguments, add vec_dest argument.  Push always
4154         into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
4155         with vec_tmp at the end after freeing old *vec_oprnd0 vector.
4156         (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
4157         (vect_analyze_stmt): Don't call vectorizable_type_demotion and
4158         vectorizable_type_promotion.  Call vectorizable_conversion even
4159         for SLP bb vectorization.
4160         (vect_transform_stmt): Call vectorizable_conversion instead of
4161         vectorizable_type_demotion and vectorizable_type_promotion.
4162         (supportable_widening_operation): Clear *multi_step_cvt first,
4163         simplify c1/c2 computation, free *interm_types vector on failure.
4164         (supportable_narrowing_operation): Clear *multi_step_cvt first,
4165         free *interm_types vector on failure, handle multi-step
4166         FIX_TRUNC_EXPR.
4167
4168 2011-11-04  Tristan Gingold  <gingold@adacore.com>
4169
4170         * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
4171         argument.  Conditionally generate crash debug info.  Adjust
4172         for alpha_funcs_tree removal.
4173         (machine_function): Add links field.
4174         (alpha_start_function): Conditionally generate crash debug info.
4175         (alpha_end_function): Adjust call to alpha_write_linkage.
4176         (alpha_funcs): Remove.
4177         (links_kind): Remove.
4178         (alpha_links): Remove num, target and lkind field.  Add func field.
4179         (alpha_links_tree): Remove.
4180         (alpha_funcs_tree): Remove.
4181         (alpha_need_linkage): Remove.
4182         (alpha_use_linkage): Change prototype.  Adjust.
4183         (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
4184         Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
4185         * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
4186         (alpha_need_linkage): Remove.
4187         * config/alpha/alpha.md: Update calls to alpha_use_linkage.
4188         Adjust calls to alpha_need_linkage.
4189
4190 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
4191
4192         * sched-vis.c (print_value): Handle STRICT_LOW_PART.
4193
4194 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
4195
4196         * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
4197         rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
4198         btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
4199
4200 2011-11-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4201
4202         PR target/50978
4203         * config/arm/t-bpabi: New file.
4204         * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
4205         arm*-*-linux-*eabi.
4206         (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
4207         arm*-*-uclinux*eabi.
4208         (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
4209         for arm*-*-eabi*.
4210
4211 2011-11-03  Michael Matz  <matz@suse.de>
4212
4213         PR bootstrap/50857
4214         * configure.ac: Check for -fno-exceptions -fno-rtti.
4215         * configure: Regenerate.
4216         * Makefile.in (NOEXCEPTION_FLAGS): New flag.
4217         (ALL_CXXFLAGS): Use it.
4218
4219 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
4220
4221         * config/i386/i386.md: Use {} for multi-line preparation statements.
4222
4223 2011-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4224
4225         * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
4226         (movtf_insn_sp32): ...this.
4227         (movtf_insn_sp64_no_fpu): Consolidate into...
4228         (movtf_insn_sp64): ...this.
4229         (movtf_insn_sp64_hq): Do not test TARGET_FPU.
4230         * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
4231
4232 2011-11-03  Tristan Gingold  <gingold@adacore.com>
4233
4234         * config/vms/vms.c (vms_patch_builtins): Fix typo.
4235
4236 2011-11-03  Richard Guenther  <rguenther@suse.de>
4237
4238         PR lto/44965
4239         * lto-opts.c: Re-implement.
4240         * lto-streamer.h (lto_register_user_option): Remove.
4241         (lto_read_file_options): Likewise.
4242         (lto_reissue_options): Likewise.
4243         (lto_clear_user_options): Likewise.
4244         (lto_clear_file_options): Likewise.
4245         * opts-global.c (post_handling_callback): Remove.
4246         (set_default_handlers): Do not set post_handling_callback.
4247         (decode_options): Remove LTO specific code.
4248         * lto-wrapper.c (merge_and_complain): New function.
4249         (run_gcc): Read all input file options and
4250         prepend a merged set before the linker driver options.
4251         * gcc.c (driver_post_handling_callback): Remove.
4252         (set_option_handlers): Do not set post_handling_callback.
4253         * opts-common.c (handle_option): Do not call post_handling_callback.
4254         * opts.h (struct cl_option_handlers): Remove post_handling_callback.
4255
4256 2011-11-03  Richard Guenther  <rguenther@suse.de>
4257
4258         * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
4259
4260 2011-11-03  Martin Jambor  <mjambor@suse.cz>
4261
4262         * ipa-prop.c (type_change_info): New fields offset, object,
4263         known_current_type and multiple_types_encountered.
4264         (extr_type_from_vtbl_ptr_store): New function.
4265         (check_stmt_for_type_change): Use it, set multiple_types_encountered if
4266         the result is different from the previous one.
4267         (detect_type_change): Renamed to detect_type_change_1. New parameter
4268         comp_type.  Set up new fields in tci, build known type jump
4269         functions if the new type can be identified.
4270         (detect_type_change): New function.
4271         * tree.h (DECL_CONTEXT): Comment new use.
4272
4273 2011-11-03  Richard Guenther  <rguenther@suse.de>
4274
4275         PR lto/48217
4276         * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
4277         decode an encoded literal '.
4278
4279 2011-11-03  Tristan Gingold  <gingold@adacore.com>
4280
4281         * collect2.c (main): Add support of -f (response file) on AIX.
4282
4283 2011-11-03  Ira Rosen  <ira.rosen@linaro.org>
4284
4285         PR tree-optimization/50912
4286         * tree-vectorizer.h (slp_void_p): New.
4287         (struct _slp_tree): Replace left and right with children.  Update
4288         documentation.
4289         (struct _slp_oprnd_info): New.
4290         (vect_get_vec_defs): Declare.
4291         (vect_get_slp_defs): Update arguments.
4292         * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
4293         vect_get_vec_defs instead of vect_get_slp_defs.
4294         (vectorizable_reduction): Likewise.
4295         * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
4296         Update call to vect_get_slp_defs.
4297         (vectorizable_conversion): Update call to vect_get_vec_defs.
4298         (vectorizable_assignment, vectorizable_shift,
4299         vectorizable_operation): Likewise.
4300         (vectorizable_type_demotion): Call vect_get_vec_defs instead of
4301         vect_get_slp_defs.
4302         (vectorizable_type_promotion, vectorizable_store): Likewise.
4303         (vect_analyze_stmt): Fix typo.
4304         * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
4305         (vect_print_slp_tree, vect_mark_slp_stmts,
4306         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4307         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4308         vect_schedule_slp_instance): Likewise.
4309         (vect_create_new_slp_node): New.
4310         (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
4311         (vect_get_and_check_slp_defs): Pass information about defs using
4312         oprnds_info, allow any number of operands.
4313         (vect_build_slp_tree): Likewise.  Update calls to
4314         vect_get_and_check_slp_defs.  Fix comments.
4315         (vect_analyze_slp_instance): Move node creation to
4316         vect_create_new_slp_node.
4317         (vect_get_slp_defs): Allow any number of operands.
4318
4319 2011-11-02  Peter Bergner  <bergner@vnet.ibm.com>
4320             Iain Sandoe  <iains@gcc.gnu.org>
4321
4322         * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
4323         (get_ppc476_thunk_name): Use it.
4324         (rs6000_code_end): Likewise.
4325         (macho_branch_islands): Fix typo.
4326
4327 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
4328             Jason Merrill  <jason@redhat.com>
4329
4330         PR c++/50810
4331         * configure.ac: Add -Wno-narrowing to warning options.
4332         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4333
4334 2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
4335
4336         PR target/50945
4337         * config/sparc/sparc.md (movsf_insn): Reindent constraints.
4338         (movdf_insn_sp32): Likewise.  Remove redundant G constraint.
4339         (movdf_insn_sp64): Likewise.
4340         (DFmode splitter): Do not test TARGET_FPU.
4341         (movtf_insn_sp32): Reindent constraints.
4342         (movtf_insn_sp32_no_fpu): Likewise.
4343         (movtf_insn_sp64): Likewise.
4344         (movtf_insn_sp64_hq): Likewise.
4345         (movtf_insn_sp64_no_fpu): Likewise.
4346
4347 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
4348
4349         PR c++/50956
4350         * builtins.c (fold_builtin_memchr): Fix cast.
4351
4352 2011-11-02  Teresa Johnson  <tejohnson@google.com>
4353
4354         * config/i386/predicates.md (promotable_binary_operator): Add minus
4355         to the list of promotable operators.
4356
4357 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4358
4359         * gthr-single.h, gthr.h: Move to ../libgcc.
4360         * gthr-aix.h: Move to ../libgcc/config/rs6000.
4361         * gthr-dce.h: Move to ../libgcc/config/pa.
4362         * gthr-lynx.h: Move to ../libgcc/config.
4363         * gthr-mipssde.h: Move to ../libgcc/config/mips.
4364         * gthr-posix.h: Move to ../libgcc/config.
4365         * gthr-rtems.h: Likewise.
4366         * gthr-tpf.h: Move to ../libgcc/config/s390.
4367         * gthr-vxworks.h: Move to ../libgcc/config.
4368         * gthr-win32.h: Move to ../libgcc/config/i386.
4369         * configure.ac (gthread_flags): Remove
4370         (gthr-default.h): Don't create.
4371         (thread_file): Don't substitute.
4372         * configure: Regenerate.
4373         * Makefile.in (GCC_THREAD_FILE): Remove.
4374         (GTHREAD_FLAGS): Remove.
4375         (libgcc.mvars): Remove GTHREAD_FLAGS.
4376         * config/t-vxworks (EXTRA_HEADERS): Remove.
4377
4378 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4379             Paolo Bonzini  <bonzini@gnu.org>
4380
4381         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
4382         * configure: Regenerate.
4383         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
4384         (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
4385         (libgcc_tm.h, cs-libgcc_tm.h): Remove.
4386         (clean): Remove libgcc_tm.h
4387         * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
4388         * config.gcc (libgcc_tm_file): Remove.
4389         (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
4390         (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
4391         (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
4392         (avr-*-rtems*): Likewise.
4393         (avr-*-*): Likewise.
4394         (frv-*-elf): Likewise.
4395         (frv-*-*linux*): Likewise.
4396         (h8300-*-rtems*): Likewise.
4397         (h8300-*-elf*): Likewise.
4398         (i[34567]86-*-darwin*): Likewise.
4399         (x86_64-*-darwin*): Likewise.
4400         (rx-*-elf*): Likewise.
4401         (tic6x-*-elf): Likewise.
4402         (tic6x-*-uclinux): Likewise.
4403         (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
4404
4405 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4406
4407         * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
4408         (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
4409         (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
4410         (INCLUDES_FOR_TARGET): Remove.
4411         (LIBGCC2_CFLAGS): Don't export.
4412         (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
4413         Remove.
4414         (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
4415         (libgcc.mvars): Likewise.
4416         Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
4417         LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
4418         TARGET_LIBGCC2_CFLAGS.
4419         Emit GTHREAD_FLAGS.
4420         * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
4421         * config/darwin-64.c: Move to ../libgcc/config.
4422         * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
4423         config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
4424         config/udivmodsi4.c: Move to ../libgcc/config.
4425         * config/gthr-posix.c: Move to ../libgcc/config/alpha.
4426         * config/memcmp.c, config/memcpy.c, config/memmove.c,
4427         config/memset.c: Move to ../libgcc/config.
4428         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
4429         * config/t-freebsd: Remove.
4430         * config/t-freebsd-thread: Move to ../libgcc/config.
4431         * config/t-libgcc-pic: Move to ../libgcc/config.
4432         * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
4433         * config/t-linux: Remove.
4434         * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
4435         Remove.
4436         * config/t-openbsd-thread: Move to ../libgcc/config.
4437         * config/t-rtems (LIBGCC2_INCLUDES): Remove.
4438         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
4439         * config/t-svr4: Remove.
4440         * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
4441         (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
4442         * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
4443         * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
4444         * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
4445         * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
4446         * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
4447         * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
4448         config/arm/fp16.c, config/arm/linux-atomic.c,
4449         config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
4450         * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
4451         (TARGET_LIBGCC2_CFLAGS): Remove.
4452         * config/arm/t-bpabi, config/arm/t-linux: Remove.
4453         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
4454         (LIB2FUNCS_STATIC_EXTRA): Remove.
4455         * config/arm/t-netbsd: Remove.
4456         * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
4457         (TARGET_LIBGCC2_CFLAGS): Remove.
4458         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
4459         * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
4460         (TARGET_LIBGCC2_CFLAGS): Remove.
4461         * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
4462         (LIBGCC, INSTALL_LIBGCC): Remove.
4463         * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
4464         * config/bfin/t-bfin-linux: Likewise.
4465         * config/bfin/t-bfin-uclinux: Likewise.
4466         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4467         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4468         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4469         config/c6x/ltf.c: Move to ../libgcc/config/c6x.
4470         * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
4471         * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
4472         * config/cris/arit.c: Move to ../libgcc/config/cris.
4473         * config/cris/cris_abi_symbol.c: Remove.
4474         * config/cris/cris.h: Remove obsolete comment.
4475         * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
4476         * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
4477         ($(LIB2FUNCS_EXTRA)): Remove.
4478         * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
4479         (LIBGCC): Remove.
4480         * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
4481         * config/fr30/t-fr30: Remove.
4482         * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
4483         config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
4484         config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
4485         to ../libgcc/config/frv.
4486         * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
4487         (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
4488         (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
4489         * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
4490         * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
4491         config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
4492         config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
4493         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
4494         (LIBGCC, INSTALL_LIBGCC): Remove.
4495         * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
4496         * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
4497         * config/i386/t-cygwin: Remove.
4498         * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
4499         (LIB2FUNCS_EXCLUDE): Remove.
4500         * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
4501         (LIBGCC, INSTALL_LIBGCC): Remove.
4502         * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
4503         * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
4504         * config/i386/t-mingw-w32: Likewise.
4505         * config/i386/t-mingw-w64: Likewise.
4506         * config/i386/t-openbsd: Likewise.
4507         * config/i386/t-nto: Remove.
4508         * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
4509         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
4510         (quadlib.c): Remove.
4511         * config/ia64/t-ia64: Remove comment.
4512         * config/iq2000/lib2extra-funcs.c: Move to
4513         ../libgcc/config/iq2000/lib2funcs.c.
4514         * config/iq2000/t-iq2000: Remove.
4515         * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
4516         * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
4517         * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
4518         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
4519         * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4520         (INSTALL_LIBGCC): Remove.
4521         * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
4522         * config/m68k/t-floatlib: Remove.
4523         * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
4524         * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
4525         Fix typo.
4526         (LIBGCC, INSTALL_LIBGCC): Remove.
4527         * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
4528         * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
4529         * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
4530         * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4531         (INSTALL_LIBGCC): Remove.
4532         * config/mips/t-isa3264: Likewise.
4533         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
4534         * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4535         (INSTALL_LIBGCC): Remove.
4536         * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
4537         * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4538         (INSTALL_LIBGCC): Remove.
4539         * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
4540         (LIB2FUNCS_STATIC_EXTRA): Remove.
4541         * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
4542         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
4543         * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
4544         * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
4545         ../libgcc/config/pa.
4546         * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
4547         * config/pa/quadlib.c: Move to ../libgcc/config/pa.
4548         * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
4549         * config/pa/t-linux, config/pa/t-linux64: Remove.
4550         * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
4551         config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
4552         * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
4553         Remove.
4554         * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
4555         * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
4556         (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
4557         * config/rs6000/crtresfpr.asm: Move to
4558         ../libgcc/config/rs6000/crtresfpr.S.
4559         * config/rs6000/crtresgpr.asm: Move to
4560         ../libgcc/config/rs6000/crtresgpr.S.
4561         * config/rs6000/crtresxfpr.asm: Move to
4562         ../libgcc/config/rs6000/crtresxfpr.S.
4563         * config/rs6000/crtresxgpr.asm: Move to
4564         ../libgcc/config/rs6000/crtresxgpr.S.
4565         * config/rs6000/crtsavfpr.asm: Move to
4566         ../libgcc/config/rs6000/crtsavfpr.S.
4567         * config/rs6000/crtsavgpr.asm: Move to
4568         ../libgcc/config/rs6000/crtsavgpr.S.
4569         * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
4570         * config/rs6000/darwin-fpsave.asm: Move to
4571         ../libgcc/config/rs6000/darwin-fpsave.S.
4572         * config/rs6000/darwin-gpsave.asm: Move to
4573         ../libgcc/config/rs6000/darwin-gpsave.S.
4574         * config/rs6000/darwin-tramp.asm: Move to
4575         ../libgcc/config/rs6000/darwin-tramp.S.
4576         * config/rs6000/darwin-vecsave.asm: Move to
4577         ../libgcc/config/rs6000/darwin-vecsave.S.
4578         * config/rs6000/darwin-world.asm: Move to
4579         ../libgcc/config/rs6000/darwin-world.S.
4580         * config/rs6000/e500crtres32gpr.asm: Move to
4581         ../libgcc/config/rs6000/e500crtres32gpr.S.
4582         * config/rs6000/e500crtres64gpr.asm: Move to
4583         ../libgcc/config/rs6000/e500crtres64gpr.S.
4584         * config/rs6000/e500crtres64gprctr.asm: Move to
4585         ../libgcc/config/rs6000/e500crtres64gprctr.S.
4586         * config/rs6000/e500crtrest32gpr.asm: Move to
4587         ../libgcc/config/rs6000/e500crtrest32gpr.S.
4588         * config/rs6000/e500crtrest64gpr.asm: Move to
4589         ../libgcc/config/rs6000/e500crtrest64gpr.S.
4590         * config/rs6000/e500crtresx32gpr.asm: Move to
4591         ../libgcc/config/rs6000/e500crtresx32gpr.S.
4592         * config/rs6000/e500crtresx64gpr.asm: Move to
4593         ../libgcc/config/rs6000/e500crtresx64gpr.S.
4594         * config/rs6000/e500crtsav32gpr.asm: Move to
4595         ../libgcc/config/rs6000/e500crtsav32gpr.S.
4596         * config/rs6000/e500crtsav64gpr.asm: Move to
4597         ../libgcc/config/rs6000/e500crtsav64gpr.S.
4598         * config/rs6000/e500crtsav64gprctr.asm: Move to
4599         ../libgcc/config/rs6000/e500crtsav64gprctr.S.
4600         * config/rs6000/e500crtsavg32gpr.asm: Move to
4601         ../libgcc/config/rs6000/e500crtsavg32gpr.S.
4602         * config/rs6000/e500crtsavg64gpr.asm: Move to
4603         ../libgcc/config/rs6000/e500crtsavg64gpr.S.
4604         * config/rs6000/e500crtsavg64gprctr.asm: Move to
4605         ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
4606         * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
4607         * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
4608         (TARGET_LIBGCC2_CFLAGS): Remove.
4609         * config/rs6000/t-aix52: Likewise.
4610         * config/rs6000/t-darwin: Remove.
4611         * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
4612         (LIB2FUNCS_EXTRA): Remove.
4613         * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
4614         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
4615         * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
4616         (INSTALL_LIBGCC): Remove.
4617         * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
4618         (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
4619         (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
4620         (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
4621         ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
4622         ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
4623         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
4624         (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
4625         * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
4626         * config/rs6000/t-vxworks: Remove comment.
4627         * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
4628         * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
4629         * config/sh/linux-atomic.asm: Move to
4630         ../libgcc/config/sh/linux-atomic.S.
4631         * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
4632         * config/sh/t-netbsd: Remove.
4633         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
4634         Remove.
4635         * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
4636         * config/sparc/t-leon: Likewise.
4637         * config/sparc/t-leon3: Likewise.
4638         * config/sparc/t-linux64: Likewise.
4639         * config/sparc/t-netbsd64: Fix typo.
4640         Remove comment.
4641         * config/spu/divmodti4.c, config/spu/divv2df3.c,
4642         config/spu/float_disf.c, config/spu/float_unsdidf.c,
4643         config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
4644         config/spu/mfc_multi_tag_release.c,
4645         config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
4646         config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
4647         config/spu/multi3.c: Move to ../libgcc/config/spu.
4648         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
4649         (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
4650         (INSTALL_LIBGCC): Remove.
4651         * config/stormy16/stormy16-lib2.c: Move to
4652         ../libgcc/config/stormy16/lib2.c.
4653         * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
4654         ../libgcc/config/stormy16/ashlsi3.c.
4655         * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
4656         ../libgcc/config/stormy16/ashrsi3.c.
4657         * config/stormy16/stormy16-lib2-clzhi2.c: Move to
4658         ../libgcc/config/stormy16/clzhi2.c.
4659         * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
4660         ../libgcc/config/stormy16/cmpsi2.c.
4661         * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
4662         ../libgcc/config/stormy16/ctzhi2.c.
4663         * config/stormy16/stormy16-lib2-divsi3.c: Move to
4664         ../libgcc/config/stormy16/divsi3.c.
4665         * config/stormy16/stormy16-lib2-ffshi2.c: Move to
4666         ../libgcc/config/stormy16/ffshi2.c.
4667         * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
4668         ../libgcc/config/stormy16/lshrsi3.c.
4669         * config/stormy16/stormy16-lib2-modsi3.c: Move to
4670         ../libgcc/config/stormy16/modsi3.c.
4671         * config/stormy16/stormy16-lib2-parityhi2.c: Move to
4672         ../libgcc/config/stormy16/parityhi2.c.
4673         * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
4674         ../libgcc/config/stormy16/popcounthi2.c.
4675         * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
4676         ../libgcc/config/stormy16/ucmpsi2.c.
4677         * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
4678         ../libgcc/config/stormy16/udivmodsi4.c.
4679         * config/stormy16/stormy16-lib2-udivsi3.c: Move to
4680         ../libgcc/config/stormy16/udivsi3.c.
4681         * config/stormy16/stormy16-lib2-umodsi3.c: Move to
4682         ../libgcc/config/stormy16/umodsi3.c.
4683         * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
4684         * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
4685         * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
4686         * config/xtensa/t-elf: Remove.
4687         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
4688         * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
4689         from tmake_file.
4690         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
4691         *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
4692         (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
4693         (*-*-openbsd*): Likewise.
4694         Remove t-openbsd-thread for posix threads.
4695         (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
4696         (alpha*-*-freebsd*): Likewise.
4697         (alpha*-*-netbsd*): Likewise.
4698         (alpha*-*-openbsd*): Likewise.
4699         (alpha64-dec-*vms*): Likewise.
4700         (alpha*-dec-*vms*): Likewise.
4701         (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
4702         (arm*-*-linux*): Remove t-linux from tmake_file.
4703         Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
4704         (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
4705         arm*-*-uclinux*eabi.
4706         (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
4707         tmake_file for arm*-*-eabi*.
4708         (fr30-*-elf): Remove tmake_file.
4709         (hppa*64*-*-linux*): Remove tmake_file.
4710         (hppa*-*-linux*): Likewise.
4711         (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
4712         tmake_file.
4713         (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
4714         (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
4715         tmake_file.
4716         (i[34567]86-*-elf*): Remove tmake_file.
4717         (x86_64-*-elf*): Likewise.
4718         (i[34567]86-*-nto-qnx*): Likewise.
4719         (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
4720         (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
4721         from tmake_file if using win32 threads.
4722         (iq2000*-*-elf*): Remove tmake-file.
4723         (microblaze*-linux*): Likewise.
4724         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
4725         (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
4726         (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
4727         (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
4728         sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
4729         (xtensa*-*-elf*): Remove tmake_file.
4730
4731 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4732
4733         * Makefile.in (LIB1ASMSRC): Don't export.
4734         (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
4735         * config/arm/arm.c: Update lib1funcs.asm filename.
4736         * config/arm/linux-eabi.h: Likewise.
4737         * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
4738         config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
4739         ../libgcc/config/arm.
4740         * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
4741         * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4742         * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
4743         * config/arm/t-bpabi: Likewise.
4744         * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4745         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
4746         * config/arm/t-strongarm-elf: Likewise.
4747         * config/arm/t-symbian: Likewise.
4748         * config/arm/t-vxworks: Likewise.
4749         * config/arm/t-wince-pe: Likewise.
4750         * config/avr/libgcc.S: Move to ../libgcc/config/avr.
4751         * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4752         * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
4753         * config/bfin/t-bfin: Remove.
4754         * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4755         * config/bfin/t-bfin-linux: Likewise.
4756         * config/bfin/t-bfin-uclinux: Likewise.
4757         * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
4758         * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4759         * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
4760         * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4761         * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
4762         * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4763         * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
4764         * config/h8300/lib1funcs.asm: Move to
4765         ../libgcc/config/h8300/lib1funcs.S.
4766         * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4767         * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
4768         * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4769         * config/i386/t-interix: Likewise.
4770         * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
4771         * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
4772         * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4773         * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
4774         * config/m32c/m32c.c: Update m32c-lib1.S filename.
4775         * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
4776         * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4777         * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
4778         * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
4779         * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
4780         * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
4781         * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4782         * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
4783         * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4784         * config/mips/mips16.S: Move to ../libgcc/config/mips.
4785         * config/mips/t-libgcc-mips16: Remove.
4786         * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
4787         * config/pa/milli64.S: Move to ../libgcc/config/pa.
4788         * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
4789         * config/pa/t-linux64: Likewise.
4790         * config/picochip/libgccExtras/fake_libgcc.asm: Move to
4791         ../libgcc/config/picochip/lib1funcs.S.
4792         * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
4793         * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
4794         * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
4795         * config/sh/sh.h: Update lib1funcs.asm filename.
4796         * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
4797         * config/sh/t-netbsd: Likewise.
4798         * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
4799         Remove.
4800         * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
4801         * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
4802         * config/sparc/lb1spl.asm: Remove.
4803         * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4804         * config/sparc/t-leon: Likewise.
4805         * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
4806         * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
4807         * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
4808         * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
4809         * config/vax/t-linux: Remove.
4810         * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
4811         ../libgcc/config/xtensa.
4812         * config/xtensa/lib1funcs.asm: Move to
4813         ../libgcc/config/xtensa/lib1funcs.S.
4814         * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4815         * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
4816         (bfin*-*): Likewise.
4817         (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
4818         mips/t-libgcc-mips16 from tmake_file.
4819         (mips*-*-linux*): Likewise.
4820         (mips*-sde-elf*): Likewise.
4821         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
4822         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
4823         (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
4824         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
4825         (mips-*-elf*, mipsel-*-elf*): Likewise.
4826         (mips64-*-elf*, mips64el-*-elf*): Likewise.
4827         (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
4828         (mips*-*-rtems*): Likewise.
4829         (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
4830         (vax-*-linux*): Remove vax/t-linux from tmake_file.
4831
4832 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4833
4834         * config.gcc (extra_parts): Remove.
4835         (*-*-freebsd*): Remove extra_parts.
4836         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
4837         *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
4838         (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
4839         Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
4840         *-*-netbsdelf[2-9]*.
4841         (*-*-openbsd*): Remove t-libc-ok from tmake_file.
4842         (alpha*-*-linux*): Remove extra_parts.
4843         (alpha*-*-freebsd*): Likewise.
4844         (bfin*-linux-uclibc*): Likewise.
4845         (fr30-*-elf): Likewise.
4846         (moxie-*-elf): Likewise.
4847         (moxie-*-uclinux*): Likewise.
4848         (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
4849         (h8300-*-elf*): Likewise.
4850         (hppa*64*-*-hpux11*): Remove extra_parts.
4851         (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
4852         tmake_file.
4853         (x86_64-*-elf*): Likewise.
4854         (i[34567]86-*-freebsd*): Remove tmake_file.
4855         (x86_64-*-freebsd*): Likewise.
4856         (x86_64-*-netbsd*): Likewise.
4857         (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
4858         t-libc-ok from tmake_file.
4859         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4860         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4861         i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
4862         tmake_file.
4863         Remove extra_parts.
4864         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
4865         Remove i386/t-crtstuff from tmake_file.
4866         (i[34567]86-*-lynxos*): Likewise.
4867         Remove extra_parts.
4868         (ia64*-*-elf*): Remove extra_parts.
4869         (ia64*-*-freebsd*): Likewise.
4870         (ia64*-*-linux*): Likewise.
4871         (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
4872         (m32r-*-elf*): Remove extra_parts.
4873         (m32rle-*-elf*): Likewise.
4874         (m32r-*-rtems*): Likewise.
4875         (m68k-*-elf*, fido-*-elf*): Likewise.
4876         (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
4877         (m68k-*-rtems*): Remove extra_parts.
4878         (mep-*-*): Likewise.
4879         (microblaze*-linux*): Likewise.
4880         (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
4881         (mips*-*-linux*): Likewise.
4882         (powerpc-*-lynxos*): Likewise.
4883         (s390x-ibm-tpf*): Likewise.
4884         (score-*-elf): Likewise.
4885         Remove tmake_file.
4886         (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
4887         sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
4888         sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
4889         Remove sh/t-superh from tmake_file for sh*-superh-elf.
4890         Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
4891         (sh-*-rtems*): Remove sh/t-elf from tmake_file.
4892         (sh-wrs-vxworks): Likewise.
4893         (sparc-*-linux*): Remove extra_parts.
4894         (sparc64-*-linux*): Likewise.
4895         (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
4896         (xstormy16-*-elf): Likewise.
4897         (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
4898         (am33_2.0-*-linux*): Remove extra_parts.
4899         * configure.ac (extra_parts): Don't substitute.
4900         * configure: Regenerate.
4901         * crtstuff.c: Move to ../libgcc.
4902         * Makefile.in (CRTSTUFF_CFLAGS): Remove.
4903         (EXTRA_PARTS): Remove.
4904         (CRTSTUFF_T_CFLAGS): Remove.
4905         (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
4906         (GCC_EXTRA_PARTS): Remove.
4907         (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
4908         CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
4909         Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
4910         ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
4911         ($(T)crtbeginT.o): Remove.
4912         * config/alpha/t-vms (EXTRA_PARTS): Remove.
4913         ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
4914         * config/alpha/vms-dwarf2.asm: Move to
4915         ../libgcc/config/alpha/vms-dwarf2.S.
4916         * config/alpha/vms-dwarf2eh.asm: Move to
4917         ../libgcc/config/alpha/vms-dwarf2eh.S.
4918         * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
4919         * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
4920         * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
4921         ($(T)crti.o, $(T)crtn.o): Remove.
4922         * config/arm/t-linux: Remove comment.
4923         * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
4924         * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
4925         ($(T)crti.o, $(T)crtn.o): Remove.
4926         * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
4927         * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
4928         * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
4929         * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
4930         * config/bfin/t-bfin (EXTRA_PARTS): Remove.
4931         ($(T)crti.o, $(T)crtn.o): Remove.
4932         * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
4933         ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
4934         (EXTRA_MULTILIB_PARTS): Remove.
4935         * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
4936         EXTRA_MULTILIB_PARTS): Remove.
4937         * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
4938         ($(T)crtlibid.o): Remove.
4939         (EXTRA_MULTILIB_PARTS): Remove.
4940         * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
4941         * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
4942         * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
4943         (EXTRA_MULTILIB_PARTS): Remove.
4944         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
4945         * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
4946         CRTSTUFF_T_CFLAGS_S): Remove.
4947         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
4948         * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
4949         * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
4950         * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
4951         * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
4952         * config/frv/frvbegin.c, config/frv/frvend.c: Move to
4953         ../libgcc/config/frv.
4954         * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
4955         (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
4956         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
4957         (CRTSTUFF_T_CFLAGS): Remove.
4958         * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
4959         * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
4960         * config/h8300/t-elf: Remove.
4961         * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
4962         Move to ../libgcc/config/i386.
4963         * config/i386/t-crtstuff: Remove.
4964         * config/i386/t-i386elf: Remove.
4965         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
4966         * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
4967         * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
4968         * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
4969         * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
4970         * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
4971         * config/ia64/t-vms: Remove.
4972         * config/ia64/vms-crtinit.asm: Move to
4973         ../libgcc/config/ia64/vms-crtinit.S.
4974         * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
4975         * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
4976         * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
4977         * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
4978         ($(T)crtinit.o, $(T)crtfini.o): Remove.
4979         (m32rx, m32r2): Remove.
4980         (EXTRA_MULTILIB_PARTS): Remove.
4981         * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
4982         * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
4983         * config/m68k/t-crtstuff: Remove.
4984         * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
4985         * config/m68k/t-m68kelf: Remove.
4986         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
4987         * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
4988         * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
4989         * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
4990         (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
4991         * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
4992         (EXTRA_MULTILIB_PARTS): Remove.
4993         * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
4994         * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
4995         * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
4996         EXTRA_PARTS): Remove.
4997         ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
4998         * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
4999         * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
5000         * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
5001         ($(T)crti.o, $(T)crtn.o): Remove.
5002         (EXTRA_MULTILIB_PARTS): Remove.
5003         * config/mips/t-isa3264: Likewise.
5004         * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
5005         * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
5006         (CRTSTUFF_T_CFLAGS): Remove.
5007         * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
5008         ($(T)crti.o, $(T)crtn.o): Remove.
5009         (EXTRA_MULTILIB_PARTS): Remove.
5010         * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
5011         Remove.
5012         ($(T)crti.o, $(T)crtn.o): Remove.
5013         * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
5014         * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
5015         (EXTRA_MULTILIB_PARTS): Remove.
5016         ($(T)crti.o, $(T)crtn.o): Remove.
5017         * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
5018         * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
5019         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
5020         * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
5021         * config/pa/stublib.c: Move to libgcc/config/pa.
5022         * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
5023         * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
5024         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
5025         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
5026         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
5027         ($(T)libgcc_stub.a): Remove.
5028         * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
5029         (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
5030         (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
5031         (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
5032         ($(T)libgcc_stub.a): Remove.
5033         * config/rs6000/eabi-cn.asm: Move to
5034         ../../../libgcc/config/rs6000/eabi-cn.S.
5035         * config/rs6000/eabi-ci.asm: Move to
5036         ../../../libgcc/config/rs6000/eabi-ci.S.
5037         * config/rs6000/sol-ci.asm: Move to
5038         ../../../libgcc/config/rs6000/sol-ci.S.
5039         * config/rs6000/sol-cn.asm: Move to
5040         ../../../libgcc/config/rs6000/sol-cn.S.
5041         * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
5042         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5043         * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
5044         Remove.
5045         (EXTRA_MULTILIB_PARTS): Remove.
5046         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
5047         (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
5048         ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
5049         ($(T)ncrtn$(objext)): Remove.
5050         (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5051         * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
5052         * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
5053         * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
5054         * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
5055         * config/score/t-score-elf: Remove.
5056         * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
5057         * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
5058         * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
5059         * config/sh/lib1funcs-4-300.asm: Move to
5060         ../../../libgcc/config/sh/lib1funcs-4-300.S.
5061         * config/sh/lib1funcs-Os-4-200.asm: Move to
5062         ../libgcc/config/sh/lib1funcs-Os-4-200.S.
5063         * config/sh/t-elf: Remove.
5064         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
5065         * config/sh/t-linux64: Remove.
5066         * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
5067         * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
5068         (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
5069         ($(T)ic_invalidate_array_4-100.o)
5070         ($(T)libic_invalidate_array_4-100.a)
5071         ($(T)ic_invalidate_array_4-200.o)
5072         ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
5073         ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
5074         ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
5075         ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
5076         ($(T)libgcc-4-300.a): Remove.
5077         * config/sh/t-superh: Remove.
5078         * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
5079         * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
5080         * config/spu/cache.S: Move to ../libgcc/config/spu.
5081         * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
5082         * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
5083         (EXTRA_MULTILIB_PARTS): Remove.
5084         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
5085         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
5086         ($(T)cache64k.o, $(T)cache128k.o): Remove.
5087         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
5088         * config/t-libc-ok: Remove.
5089         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
5090         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
5091         * config/t-netbsd: Remove.
5092         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
5093         * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
5094         * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
5095         ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
5096         * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
5097         * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
5098         * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
5099         * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5100         (EXTRA_MULTILIB_PARTS): Remove.
5101         * config/xtensa/t-linux: Remove.
5102         * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
5103
5104 2011-11-02  Uros Bizjak  <ubizjak@gmail.com>
5105
5106         * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
5107         CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
5108
5109 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5110
5111         PR translation/45116
5112         * Makefile.in (slibdir): Remove, don't export.
5113         (SHLIB_NM_FLAGS): Remove.
5114         (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
5115         SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
5116         SHLIB_MAPFILES, SHLIB_NM_FLAGS.
5117         (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
5118         (gcc.o): Pass SHLIB instead of SHLIB_LINK.
5119         (gccspec.o): Likewise.
5120         (installdirs): Don't create $(DESTDIR)$(slibdir).
5121         * configure.ac (slibdir): Remove.
5122         * configure: Regenerate.
5123         * libgcc-libsystem.ver: Move to ../libgcc/config.
5124         * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
5125         * config/libgcc-glibc.ver: Move to ../libgcc/config.
5126         * config/t-libunwind (SHLIB_LC): Remove.
5127         * config/t-linux (SHLIB_MAPFILES): Remove.
5128         * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
5129         * config/t-slibgcc-elf-ver: Remove.
5130         * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
5131         ../libgcc/config.
5132         * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
5133         to ../libgcc/config/alpha.
5134         * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
5135         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
5136         SHLIB_SYMVECX2, SHLIB_LINK): Remove.
5137         * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
5138         * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
5139         * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
5140         SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
5141         * config/arm/t-symbian (SHLIB_LC): Remove.
5142         * config/bfin/libgcc-bfin.ver: Move to
5143         ../libgcc/config/bfin/libgcc-glibc.ver.
5144         * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
5145         * config/c6x/libgcc-c6xeabi.ver: Move to
5146         ../libgcc/config/c6x/libgcc-eabi.ver.
5147         * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
5148         * config/cris/libgcc.ver: Move to
5149         ../libgcc/config/cris/libgcc-glibc.ver.
5150         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5151         * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
5152         * config/frv/t-linux (SHLIB_MAPFILES): Remove.
5153         * config/i386/darwin-libgcc.10.4.ver: Move to
5154         ../libgcc/config/i386/libgcc-darwin.10.4.ver.
5155         * config/i386/darwin-libgcc.10.5.ver: Move to
5156         ../libgcc/config/i386/libgcc-darwin.10.5.ver.
5157         * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
5158         * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
5159         SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
5160         SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
5161         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
5162         * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
5163         SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
5164         * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
5165         ../libgcc/config/i386.
5166         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
5167         ../libgcc/config/i386.
5168         * config/i386/t-linux: Move to ../libgcc/config/i386.
5169         * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
5170         * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
5171         * config/i386/t-mingw-w64: Likewise.
5172         * config/i386/t-mingw32: Remove.
5173         * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
5174         to ../libgcc/config/ia64.
5175         * config/ia64/t-glibc: Remove.
5176         * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
5177         * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
5178         * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
5179         SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
5180         * config/ia64/vms_symvec_libgcc_s.opt: Remove.
5181         * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
5182         * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
5183         * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
5184         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
5185         * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
5186         * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
5187         Move to ../libgcc/config/pa.
5188         * config/rs6000/darwin-libgcc.10.4.ver: Move to
5189         ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
5190         * config/rs6000/darwin-libgcc.10.5.ver: Move to
5191         ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
5192         * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
5193         SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
5194         * config/rs6000/t-aix52: Likewise.
5195         * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
5196         ../libgcc/config/sh.
5197         * config/sparc/libgcc-sparc-glibc.ver: Move to
5198         ../libgcc/config/sparc/libgcc-glibc.ver.
5199         * config/sparc/t-linux: Move to ../libgcc/config/sparc.
5200         * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
5201         * config/xtensa/libgcc-xtensa.ver: Move to
5202         ../libgcc/config/xtensa/libgcc-glibc.ver.
5203         * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
5204         t-slibgcc in tmake_file.
5205         Remove t-slibgcc-nolc-override for *-*-freebsd[34],
5206         *-*-freebsd[34].* with pthreads.
5207         (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
5208         *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
5209         t-slibgcc-elf-ver with t-slibgcc in tmake_file.
5210         (*-*-netbsd*): Likewise.
5211         (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
5212         (*-*-*vms*): Add t-slibgcc to tmake_file.
5213         (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
5214         (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
5215         tmake_file.
5216         (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
5217         arm*-*-linux-*eabi.
5218         (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
5219         tmake_file.
5220         (crisv32-*-linux*, cris-*-linux*): Likewise.
5221         (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
5222         pa/t-slibgcc-dwarf-ver from tmake_file.
5223         (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
5224         tmake_file.
5225         Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
5226         (hppa*64*-*-hpux11*): Likewise.
5227         (hppa[12]*-*-hpux11*): Likewise.
5228         (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
5229         tmake_file.
5230         (x86_64-*-darwin*): Likewise.
5231         (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
5232         Add t-slibgcc to tmake_file.
5233         (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5234         Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
5235         i[34567]86-w64-*.
5236         Remove i386/t-mingw-pthread from tmake_file.
5237         (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
5238         (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
5239         (ia64-hp-*vms*): Likewise.
5240         (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
5241         tmake_file.
5242         (m32rle-*-linux*): Likewise.
5243         (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
5244         (microblaze*-linux*): Remove t-slibgcc-elf-ver,
5245         t-slibgcc-nolc-override from tmake_file.
5246         (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
5247         tmake_file.
5248         (powerpc-*-darwin*): Likewise.
5249         (powerpc64-*-darwin*): Likewise.
5250         (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
5251         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
5252         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
5253         t-slibgcc to tmake_file.
5254         (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
5255         (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
5256         (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
5257         (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
5258         (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
5259         (sparc64-*-linux*): Likewise.
5260         (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
5261         tmake_file.
5262         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5263         x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
5264         from tmake_file.
5265
5266 2011-11-02  Richard Guenther  <rguenther@suse.de>
5267
5268         PR tree-optimization/50902
5269         * tree-vect-stmts.c (vectorizable_load): Properly convert
5270         an invariant initializer element.
5271
5272 2010-11-02  Richard Guenther  <rguenther@suse.de>
5273
5274         PR tree-optimization/50890
5275         * gimple.h (gimple_fold_call): Remove.
5276         * gimple-fold.c (fold_stmt_1): Move all call related code to ...
5277         (gimple_fold_call): ... here.  Make static.  Update the
5278         cannot-inline flag on direct calls.
5279         * ipa-inline.c (early_inliner): Copy the cannot-inline flag
5280         from the statements to the edges.
5281
5282 2011-11-01  Ian Lance Taylor  <iant@google.com>
5283
5284         * godump.c (struct macro_hash_value): Define.
5285         (macro_hash_hashval): New static function.
5286         (macro_hash_eq, macro_hash_del): New static functions.
5287         (go_define): Use macro_hash_value to store values in macro_hash.
5288         Replace an old value on a redefinition.  Don't print anything to
5289         go_dump_file.
5290         (go_undef): Delete the entry from the hash table.
5291         (go_output_typedef): For an enum, use macro_hash_value, and don't
5292         print anything to go_dump_file.
5293         (go_print_macro): New static function.
5294         (go_finish): Traverse macro_hash with go_print_macro.
5295         (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
5296
5297 2011-11-02  Alan Modra  <amodra@gmail.com>
5298
5299         * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
5300
5301 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
5302
5303         PR c++/44277
5304         * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
5305
5306 2011-11-01  Andrew Stubbs  <ams@codesourcery.com>
5307
5308         * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
5309
5310 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
5311
5312         * config/i386/i386.md (splitters for int-float conversion): Use
5313         SUBREG_REG on SUBREGs in splitter constraints.
5314
5315 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
5316
5317         * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
5318         prototype.
5319         * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
5320         function.
5321         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
5322         (ssepackfltmode): New mode attr.
5323         (vec_pack_ufix_trunc_<mode>): New expander.
5324
5325 2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
5326
5327         PR target/50940
5328         * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
5329         Compare <ssevecmode>mode to V4SFmode, not V4SImode.
5330
5331 2011-11-01  Peter Bergner  <bergner@vnet.ibm.com>
5332
5333         * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
5334         * config/rs6000/476.h: New file.
5335         * config/rs6000/476.opt: Likewise.
5336         * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
5337         (SET_TARGET_LINK_STACK): Likewise.
5338         (TARGET_ASM_CODE_END): Define.
5339         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
5340         TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
5341         (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
5342         code if TARGET_LINK_STACK.
5343         (rs6000_emit_load_toc_table): Likewise.
5344         (output_function_profiler): Likewise
5345         (macho_branch_islands): Likewise
5346         (machopic_output_stub): Likewise
5347         (get_ppc476_thunk_name): New function.
5348         (rs6000_code_end): Likewise.
5349         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
5350         Convert to a define_expand.
5351         (load_toc_v4_PIC_1_normal): New define_insn.
5352         (load_toc_v4_PIC_1_476): Likewise.
5353         (load_toc_v4_PIC_1b_normal): Likewise.
5354         (load_toc_v4_PIC_1b_476): Likewise.
5355
5356 2011-11-01  Georg-Johann Lay  <avr@gjlay.de>
5357
5358         PR target/50910
5359         * config/avr/avr.opt (-mbranch-cost=): New option.
5360         * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
5361         * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
5362         * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
5363         (*addhi3_zero_extend1): Remove % in constraint of operand 1.
5364         (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
5365
5366 2011-11-01  Tom de Vries  <tom@codesourcery.com>
5367
5368         PR tree-optimization/50908
5369         * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
5370         before update_vuses, test for 1 predecessor rather than two.
5371         (delete_block_update_dominator_info): New function, part of it factored
5372         out of ...
5373         (replace_block_by): Use delete_block_update_dominator_info.  Call
5374         update_vuses after deleting bb1 and updating dominator info, instead of
5375         before.
5376
5377 2011-11-01  David S. Miller  <davem@davemloft.net>
5378
5379         * config/sparc/sparc.c (vector_init_faligndata): New function.
5380         (sparc_expand_vector_init): Use it for V4HImode on VIS1.
5381
5382         * config/sparc/sparc.c (sparc_expand_vcond): New function.
5383         * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
5384         * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
5385         (vconduv8qiv8qi): Likewise.
5386
5387 2011-11-01  Alexandre Oliva  <aoliva@redhat.com>
5388
5389         PR debug/50869
5390         * cselib.c (cfa_base_preserved_regno): Initialize.
5391         (cselib_expand_value_rtx_1): Don't expand it.
5392         * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
5393         Check it's only zero if result is NULL.
5394
5395 2011-11-01  Jakub Jelinek  <jakub@redhat.com>
5396
5397         * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
5398         expander.
5399
5400         * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
5401         (sseintvecmodelower): New mode iterator.
5402         (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
5403         (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
5404         (floatunsv4siv4sf2): Macroize into...
5405         (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
5406
5407 2011-10-31  David S. Miller  <davem@davemloft.net>
5408
5409         * config/sparc/sparc.md (cmask patterns): Allow zero operand.
5410
5411         * dwarf2out.c (cached_next_real_insn): New.
5412         (dwarf2out_end_epilogue): Set it to NULL_RTX.
5413         (dwarf2out_var_location): Remove cached_next_real_insn local static.
5414
5415 2011-10-31  Richard Henderson  <rth@redhat.com>
5416
5417         * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
5418         (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
5419         (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
5420         (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
5421         (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
5422         (floatv4siv4df2): Rename from avx_cvtdq2pd256.
5423         (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
5424         (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
5425         * config/i386/i386.md (splitters for int-float conversion): Likewise.
5426         * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
5427         (bdesc_args): Likewise.
5428         (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
5429         (ix86_vectorize_builtin_conversion): Remove.
5430         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
5431
5432 2011-10-31  Martin Jambor  <mjambor@suse.cz>
5433
5434         * ipa-prop.c (mark_modified): Moved up in the file.
5435         (is_parm_modified_before_call): Renamed to
5436         is_parm_modified_before_stmt, moved up in the file.
5437         (load_from_unmodified_param): New function.
5438         (compute_complex_assign_jump_func): Also attempt to create pass
5439         through jump functions for values loaded from (addressable)
5440         parameters.
5441
5442 2011-10-31  Jakub Jelinek  <jakub@redhat.com>
5443
5444         * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
5445         in a loop and has different type from op0, cast it to op0's type
5446         before the loop first.  For slp give up.  Don't crash if op1_vectype
5447         is NULL.
5448
5449 2011-10-31  Paul Brook  <paul@codesourcery.com>
5450
5451         * cgraphunit.c: Don't mark clones as static constructors.
5452
5453 2011-10-31  David Edelsohn  <dje.gcc@gmail.com>
5454
5455         * gcc-ar: Do not include stdio.h.
5456
5457 2011-10-31  Diego Novillo  <dnovillo@google.com>
5458
5459         * tree-streamer-out.c (pack_ts_base_value_fields): Emit
5460         TYPE_ADDR_SPACE.
5461         * tree-streamer-in.c (unpack_ts_base_value_fields): Read
5462         TYPE_ADDR_SPACE.
5463
5464 2011-10-30  David S. Miller  <davem@davemloft.net>
5465
5466         * config/sparc/sparc.c (vector_init_bshuffle): New function.
5467         (vector_init_fpmerge): New function.
5468         (sparc_expand_vector_init): Use them to improve non-const cases.
5469
5470         * dwarf2out.c (dwarf2out_var_location): When processing several
5471         consecutive location notes, cache the result of next_real_insn().
5472
5473 2011-10-30  Uros Bizjak  <ubizjak@gmail.com>
5474
5475         * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
5476         avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
5477         (vec_dupv4sf): Remove expander.
5478         (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
5479         (vec_dupv2df): Remove expander.
5480         (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
5481         (*vec_concatv2df): Merge *vec_concatv2df_sse3.
5482         (*vec_dupv4si): Merge *vec_dupv4si_avx.
5483         (*vec_dupv2di): Merge *vec_dupv2di_sse3.
5484
5485 2011-10-30  Dmitry Plotnikov  <dplotnikov@ispras.ru>
5486
5487         * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
5488         * optabs.c (supportable_convert_operation): New function.
5489         * optabs.h (supportable_convert_operation): New prototype.
5490         * tree-vect-stmts.c (vectorizable_conversion): Change condition and
5491         behavior for NONE modifier case.
5492         * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
5493
5494 2011-10-30  Jakub Jelinek  <jakub@redhat.com>
5495
5496         * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
5497         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
5498         function.
5499         (vect_vect_recog_func_ptrs): Add it.
5500
5501 2011-10-30  David S. Miller  <davem@davemloft.net>
5502
5503         * reorg.c (label_before_next_insn): New function.
5504         (relax_delay_slots): Use it instead of prev_label.
5505         * rtl.h (prev_label): Delete declaration.
5506         * emit-rtl.c (prev_label): Remove.
5507
5508 2011-10-30  Revital Eres  <revital.eres@linaro.org>
5509
5510         * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
5511         as BB_DISABLE_SCHEDULE.
5512         (mark_loop_unsched): New function.
5513         (sms_schedule): Call it.
5514
5515 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5516
5517         PR target/50617
5518         * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
5519         (cmpib_comparison_operator): Likewise.
5520         (following_cal, output_and, output_ior, output_move_double,
5521         output_fp_move_double, output_block_move, output_block_clear,
5522         output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
5523         output_movb, output_parallel_movb, output_parallel_addb, output_call,
5524         output_indirect_call, output_millicode_call, output_mul_insn,
5525         output_div_insn, output_mod_insn, singlemove_string,
5526         output_arg_descriptor, output_global_address, print_operand,
5527         legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
5528         fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
5529         emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
5530         hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
5531         attr_length_indirect_call, return_addr_rtx, function_arg_padding,
5532         insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
5533         output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
5534         hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
5535         compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
5536         reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
5537         exported functions and variables with "pa_".
5538         * config/pa/predicates.md: Likewise.
5539         * config/pa/pa64-hpux.h: likewise.
5540         * config/pa/som.h: Likewise.
5541         * config/pa/elf.h: Likewise.
5542         * config/pa/pa64-linux.h: Likewise.
5543         * config/pa/pa.md: Likewise.
5544         * config/pa/pa.c: Likewise.
5545         * config/pa/pa-linux.h: Likewise.
5546         * config/pa/pa.h: Likewise.
5547         * config/pa/constraints.md: Likewise.
5548
5549 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
5550
5551         * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
5552         Update all uses.
5553         (xop_shl<mode>3): Rename from xop_lshl<mode>3.  Update all uses.
5554         * config/i386/i386.c: Update all uses.
5555
5556 2011-10-29  Uros Bizjak  <ubizjak@gmail.com>
5557
5558         * config/i386/i386.md (lshlv16qi3): Remove expander.
5559         (lshrv16qi3): New expander.
5560         (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
5561         using any_shiftrt code iterator. Cleanup.
5562         (ashlv16qi3): Cleanup.
5563         (ashrv2di3): Ditto.
5564
5565 2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5566
5567         PR target/50691
5568         * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
5569         references.
5570         (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
5571         and TLS_MODEL_LOCAL_DYNAMIC symbol references.
5572
5573 2011-10-29  Georg-Johann Lay  <avr@gjlay.de>
5574
5575         PR target/50887
5576         * config/avr/avr.opt (-maccumulate-args): New option.
5577         * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
5578         avr_starting_frame_offset.
5579         (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
5580         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
5581         (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
5582         (UNSPECV_WRITE_SP): New constant.
5583         (*addhi3_sp_R): Rewrite to...
5584         (*addhi3_sp): ...this new insn.
5585         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
5586         (movhi_sp_r): ...this new insn.
5587         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
5588         (avr_starting_frame_offset): New.
5589         * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
5590         (avr_starting_frame_offset): New function.
5591         (avr_outgoing_args_size): New static function.
5592         (avr_initial_elimination_offset): Use it.
5593         (avr_simple_epilogue): Use it.
5594         (avr_asm_function_end_prologue): Use it.
5595         (expand_epilogue): Use it.
5596         (expand_prologue): Use it.  Break out code to...
5597         (avr_prologue_setup_frame): ...this new static function.
5598         (avr_can_eliminate): Allow eliminating to frame pointer if there
5599         is one.
5600         (avr_frame_pointer_required_p): Use frame pointer if target has a
5601         nonlocal label.
5602         * config/avr/constraints.md (R): Remove.
5603         (Csp): New constraint.
5604         * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
5605
5606 2011-10-29  Andi Kleen  <ak@linux.intel.com>
5607
5608         * gcc-ar.c (target_machine): Add.
5609
5610 2011-10-29  Anatoly Sokolov  <aesok@post.ru>
5611
5612         * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
5613         cris_constant_index_p, cris_base_p, cris_index_p,
5614         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
5615         cris_legitimate_address_p): New functions.
5616         (TARGET_LEGITIMATE_ADDRESS_P): Define.
5617         (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
5618         from rtx to const_rtx.
5619         (cris_print_operand_address, cris_address_cost,
5620         cris_side_effect_mode_ok):  Use
5621         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
5622         cris_biap_index_p and cris_bdap_index_p.
5623         * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
5624         BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
5625         REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5626         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
5627         cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
5628         cris_biap_index_p and cris_bdap_index_p.
5629         * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
5630         cris_base_p.
5631         * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
5632         cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
5633         prototype.
5634         (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
5635
5636 2011-10-21  Andi Kleen  <ak@linux.intel.com>
5637
5638         * ggc-page (PAGE_ALIGN): Add.
5639         (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
5640         Replace ROUND_UP with PAGE_ALIGN.
5641
5642 2011-10-20  Andi Kleen  <ak@linux.intel.com>
5643
5644         * ggc-page (alloc_anon): Add check argument.
5645         (alloc_page): Add fallback to 1 page allocation.
5646         Adjust alloc_anon calls to new argument.
5647
5648 2011-10-18  Andi Kleen  <ak@linux.intel.com>
5649
5650         * ggc-page (release_pages): First free large continuous
5651         chunks in the madvise path.
5652
5653 2011-10-18  Andi Kleen  <ak@linux.intel.com>
5654
5655         * ggc-page.c (alloc_pages): Always round up entry_size.
5656
5657 2011-10-19  Andi Kleen  <ak@linux.intel.com>
5658
5659         * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
5660         (native): Add gcc-ar, gcc-nm, gcc-ranlib.
5661         (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
5662         gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
5663         (install): Depend on install-gcc-ar.
5664         (install-gcc-ar): Add.
5665         (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
5666         * gcc-ar.c: Add new file.
5667
5668 2011-10-28  Pat Haugen <pthaugen@us.ibm.com>
5669
5670         * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
5671         * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
5672         type for V2DF.
5673         (VStype_div): Use vector types for V2DF/V4SF.
5674         (VStype_sqrt): Use *sqrt types.
5675         (VS_spdp_type): Change type to vecdouble.
5676         (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
5677         vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
5678         vsx_xvcvspuxds): Likewise.
5679         (*vsx_fms<mode>4): Set type via <VStype_mul>.
5680         (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
5681         <VStype_simple>.
5682         * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
5683         (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
5684         power7-dsqrt): Correct insn latency.
5685         (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
5686         (power7-veccmp): Delete.
5687         (power7-vecfloat): Correct latency/dispatch/VSU values.
5688         (define_bypass "power7-vecfloat"): Correct latency and types.
5689         (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
5690         (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
5691
5692 2011-10-28  Uros Bizjak  <ubizjak@gmail.com>
5693
5694         * config/i386/i386.md (shift_insn): Rename code attribute from
5695         shiftrt_insn.  Also handle ashift RTX.
5696         (shift): Rename code attribute from shiftrt.  Also handle ashift RTX.
5697         (vshift): New code attribute.
5698         (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
5699         (any_lshift): Move and rename code iterator from ...
5700         * config/i386/sse.md (lshift): ... here.
5701         (lshift_insn): Remove code attribute.
5702         (lshift): Remove code attribute.
5703         (vlshr<mode>3): Use lshiftrt RTX.
5704         (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
5705         (vashl<mode>3, ashlv16qi3): Use ashift RTX.
5706         (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>.  Use
5707         any_lshift code iterator.  Update asm template.
5708         (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
5709         usign any_lshift code iterator.
5710         * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
5711         mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
5712         * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
5713
5714 2011-10-28  Georg-Johann Lay  <avr@gjlay.de>
5715
5716         PR target/49313
5717         * config/avr/avr.md (parityhi2): Expand allowing pseudos.
5718         (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
5719         to the libgcc insn.
5720         (*parityqihi2): Same for 8-bit parity.
5721
5722 2011-10-28  Julian Brown  <julian@codesourcery.com>
5723
5724         PR rtl-optimization/47918
5725         * reload1.c (set_initial_label_offsets): Use initial offsets
5726         for labels on the nonlocal_goto_handler_labels chain.
5727
5728 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
5729
5730         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
5731         Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
5732         (LIB2FUNCS_EXTRA):  Add darwin-gpsave.asm.
5733         (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
5734         config/t-darwin.
5735         * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
5736         (GP_SAVE_INLINE): Likewise.
5737         (SAVE_FP_PREFIX,  SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
5738         RESTORE_FP_SUFFIX): Set to empty strings.
5739         * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
5740         (debug_stack_info): Print savres_strategy.
5741         (rs6000_savres_routine_name): Implement for Darwin.
5742         (rs6000_make_savres_rtx): Adjust used register for Darwin.
5743         (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
5744         (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
5745         (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
5746         * config/rs6000/darwin-gpsave.asm: New file.
5747
5748 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
5749
5750         * config/i386/sse.md (VI4SD_AVX2): Removed.
5751         (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
5752         (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
5753         Add another expander using VI48_128 iterator for
5754         TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
5755         for TARGET_AVX2.
5756         (vlshr<mode>3): Likewise.  Change register_operand predicate to
5757         nonimmediate_operand on last operand in the VI12_128 expander.
5758         (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
5759         (vashrv4si3, vashrv8si3): New expanders.
5760         (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
5761         avx2_<lshift>vv2di): Removed.
5762         (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
5763         (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
5764         iterator.  Simplify pattern.
5765
5766 2010-10-28  Richard Guenther  <rguenther@suse.de>
5767
5768         PR driver/50876
5769         * lto-wrapper.c (get_options_from_collect_gcc_options):
5770         Properly count arguments.
5771         (run_gcc): Use an obstack to collect argv, properly separate
5772         switches and their arguments.
5773
5774 2011-10-28  Jakub Jelinek  <jakub@redhat.com>
5775
5776         * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
5777         vector mode from vectype's mode.
5778
5779 2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
5780
5781         PR rtl-optimization/49720
5782         * simplify-rtx.c (simplify_relational_operation_1): Detect
5783         infinite recursion condition in "(eq/ne (plus x cst1) cst2)
5784         simplifies to (eq/ne x (cst2 - cst1))" case.
5785
5786 2011-10-27  David S. Miller  <davem@davemloft.net>
5787
5788         * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
5789         (*snedi_zero): Likewise.
5790         (*snedi_zero_trunc): Likewise.
5791         (snedi_special_vis3): New expander.
5792         (*snedi_zero_vis3): New insn.
5793         (*snedi_zero_trunc_vis3): Likewise.
5794         (*sltu_insn_vis3): Likewise.
5795         (*sltu_insn_vis3_trunc): Likewise.
5796         (addxc): Likewise.
5797         (*addxc_trunc_sp64_vis3): Likewise.
5798         * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
5799         gen_snedi_special_vis3 expander, and try GTU/LTU addx based
5800         sequences on DImode values.
5801
5802         * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
5803         constraint.
5804
5805         * regcprop.c (copyprop_hardreg_forward_1): Reject the
5806         transformation when we narrow the mode on big endian.
5807
5808 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
5809
5810         * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
5811         vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
5812         (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
5813
5814         * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
5815         overrides for -masm=intel memory.
5816         * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
5817         sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
5818         sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
5819         sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
5820         (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
5821         sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
5822         (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
5823
5824 2011-10-27  Martin Jambor  <mjambor@suse.cz>
5825
5826         * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
5827         to parm_ainfo.
5828         (ipa_compute_jump_functions_for_edge): Likewise.
5829         (ipa_compute_jump_functions): Likewise.
5830         (ipa_analyze_indirect_call_uses): Likewise.
5831         (ipa_analyze_call_uses): Likewise.
5832         (ipa_analyze_params_uses): Likewise.
5833         (ipa_analyze_node): Likewise.
5834
5835 2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
5836
5837         PR target/50875
5838         * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
5839         constraints.  Change alternative 1 to "x,m,1".
5840
5841 2011-10-27  Jakub Jelinek  <jakub@redhat.com>
5842
5843         * Makefile.in (build/gencheck.o): Depend on tree.def and
5844         c-family/c-common.def.
5845
5846         * tree-ssa-strlen.c: Include expr.h.
5847         (get_stridx): Don't use c_strlen, instead use string_constant
5848         and compute string length from it.
5849         * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
5850
5851 2011-10-27  Eric Botcazou  <ebotcazou@adacore.com>
5852
5853         PR rtl-optimization/46603
5854         PR bootstrap/50879
5855         * reload.c (push_reload): In the out case, restore previous behavior
5856         for subregs that don't have word mode.
5857
5858 2011-10-27  Ian Lance Taylor  <iant@google.com>
5859
5860         * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
5861         CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
5862         (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
5863         defined.
5864
5865 2011-10-27  Richard Henderson  <rth@redhat.com>
5866
5867         * optabs.c (expand_vec_perm): Use the correct mode for scaling the
5868         selector.  Save the qimode constant selector for later use by the
5869         qimode vec_perm pattern.
5870
5871 2011-10-27  Bernd Schmidt  <bernds@codesourcery.com>
5872
5873         * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
5874         to unit_req_factor to the right enum type.
5875         (get_unit_operand_masks, reshuffle_units, try_rename_operands,
5876         hwloop_optimize): Remove unused variables.
5877
5878 2010-10-27  Richard Guenther  <rguenther@suse.de>
5879
5880         PR middle-end/50731
5881         * tree-vect-generic.c (do_binop): Handle scalar operands.
5882
5883 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
5884
5885         PR target/37191
5886         * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
5887         from different units in a single alternative.
5888
5889 2011-10-26  David S. Miller  <davem@davemloft.net>
5890
5891         * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
5892         if we're comparing DImode and comparison is other than EQ or NE.
5893
5894         * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
5895         LEU/LTU/GEU/GTU is attempted.
5896         * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
5897         and split.
5898         (*neg_seqsi_sign_extend): Likewise.
5899         (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
5900         *neg_sgeu_extend_sp64): New insns.
5901
5902         * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
5903         * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
5904         (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
5905         (*mov<I:mode>_cc_reg_sp64): Likewise.
5906         (*movsf_cc_v9): Likewise.
5907         (*movsf_cc_reg_sp64): Likewise.
5908         (*movdf_cc_v9): Likewise.
5909         (*movdf_cc_reg_sp64): Likewise.
5910         (*movtf_cc_hq_v9): Likewise.
5911         (*movtf_cc_reg_hq_sp64): Likewise.
5912         (*movtf_cc_v9): Likewise.
5913         (*movtf_cc_reg_sp64): Likewise.
5914         * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
5915         (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
5916
5917 2011-10-26  Eric Botcazou  <ebotcazou@adacore.com>
5918
5919         * reload.c (reload_inner_reg_of_subreg): Change type of return value
5920         and type of OUTPUT parameter to bool and adjust.  Document MODE and
5921         OUTPUT parameters.  Use HARD_REGISTER_P.  Reorder final condition
5922         and improve associated comment.
5923         (push_reload): Clarify and update comments about reloading of subregs.
5924         Adjust calls to reload_inner_reg_of_subreg.  Compute the class upfront
5925         for the reloading of subregs in the out case as well.
5926
5927 2011-10-26  Alexandre Oliva  <aoliva@redhat.com>
5928
5929         PR debug/50826
5930         * var-tracking.c (rtx_debug_expr_p): New.
5931         (use_type): Don't use debug exprs to track non-VTA variables.
5932
5933 2011-10-26  Jeff Law  <law@redhat.com>
5934
5935         * doc/invoke.texi (sink-frequency-threshold): Document.
5936         * tree-ssa-sink.c: Include params.h.
5937         (select_best_block): New function.
5938         (statement_sink_location): Use it.
5939         * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
5940
5941 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
5942
5943         PR target/48108
5944         * config/darwin.c (top level): Amend comments concerning LTO output.
5945         (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
5946         (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
5947         (LTO_NAMES_SECTION): Rename.
5948         (darwin_asm_named_section): Record LTO section counts and switches
5949         in a vec of darwin_lto_section_e.
5950         (darwin_file_start): Remove unused code.
5951         (darwin_file_end): Put an LTO section termination label.  Handle
5952         output of the wrapped LTO sections, index and names table.
5953
5954 2011-10-26  Alan Modra  <amodra@gmail.com>
5955
5956         * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
5957         declaration.
5958         (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
5959         (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx.  Use
5960         simple_return in pattern, emit instruction, and set jump_label.
5961         (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx.  Use
5962         simple_return rather than return.
5963         (emit_cfa_restores): New function.
5964         (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
5965         Add missing cfa_restores for SAVE_WORLD.  Add missing LR cfa_restore
5966         when using out-of-line gpr restore.  Add missing LR and FP regs
5967         cfa_restores for out-of-line fpr restore.  Consolidate code setting
5968         up cfa_restores.  Formatting.  Use LR_REGNO define.
5969         (rs6000_output_mi_thunk): Use simple_return rather than return.
5970         * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
5971         (return_internal*): Likewise.
5972         (any_return, return_pred, return_str): New iterators.
5973         (return, conditional return insns): Provide both return and
5974         simple_return variants.
5975         * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
5976         (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
5977         Move r11 and r0 later to suit shrink-wrapping.
5978
5979 2011-10-26  Richard Guenther  <rguenther@suse.de>
5980
5981         * lto-wrapper.c (run_gcc): Properly init/free obstack.
5982
5983 2011-10-26  Jakub Jelinek  <jakub@redhat.com>
5984
5985         * config/i386/i386.md (UNSPEC_VSIBADDR): New.
5986         * config/i386/predicates.md (vsib_address_operand,
5987         vsib_mem_operator): New predicates.
5988         * config/i386/i386.c (ix86_print_operand_address): Handle
5989         UNSPEC_VSIBADDR addresses.
5990         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
5991         avx2_gatherdi<mode>256): Adjust expanders to use MEM with
5992         UNSPEC_VSIBADDR address.
5993         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
5994         Adjust insns to use MEM with UNSPEC_VSIBADDR address.
5995
5996 2011-10-26  Tom de Vries  <tom@codesourcery.com>
5997
5998         PR tree-optimization/50763
5999         * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
6000         phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
6001
6002 2011-10-26  Richard Guenther  <rguenther@suse.de>
6003
6004         PR lto/41844
6005         * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
6006         (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
6007         * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
6008         (run_gcc): Use it.  Filter out language specific options.
6009
6010 2011-10-26  Andreas Tobler  <andreast@fgznet.ch>
6011
6012         * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
6013         32-bit target does.
6014
6015 2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
6016
6017         PR driver/46617
6018         * gcc.c (main): Fix fatal_error string for translation.
6019
6020 2011-10-25  Ian Lance Taylor  <iant@google.com>
6021
6022         * tree-eh.c (do_return_redirection): Remove return_value_p
6023         parameter.  Change all callers.
6024         (lower_try_finally_nofallthru): Remove local return_val.
6025         (lower_try_finally_onedest): Likewise.
6026         (lower_try_finally_copy): Likewise.
6027         (lower_try_finally_switch): Likewise.
6028
6029 2011-10-25  H.J. Lu  <hongjiu.lu@intel.com>
6030
6031         * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
6032         remove "&& !TARGET_64BIT"
6033         (*mmx_maskmovq_rex): Removed.
6034
6035 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6036
6037         PR rtl-optimization/46603
6038         * reload.c (push_reload): In the out case, reload the subreg as well
6039         as the reg if it has word mode.
6040
6041 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6042
6043         * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
6044         suppress debug info for the parent type.
6045
6046 2011-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6047
6048         * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
6049
6050 2011-10-25  Richard Henderson  <rth@redhat.com>
6051
6052         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
6053         (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
6054
6055         * config/rs6000/altivec.md (vec_extract_evenv8hi,
6056         vec_extract_evenv16qi, vec_extract_oddv4si,
6057         vec_extract_oddv4sf): Remove.
6058
6059         * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
6060         vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
6061         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
6062         vec_interleave_highv4sf, vec_interleave_lowv4sf,
6063         vec_interleave_highv4si, vec_interleave_lowv4si,
6064         vec_interleave_highv8hi, vec_interleave_lowv8hi,
6065         vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
6066
6067         * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
6068         [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
6069         [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
6070         * optabs.c (expand_binop): Implement vec_interleave_high_optab,
6071         vec_interleave_low_optab, vec_extract_even_optab,
6072         vec_extract_odd_optab with expand_vec_perm.
6073         (can_vec_perm_for_code_p): New.
6074         * optabs.h: Update.
6075         * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
6076         fallback via can_vec_perm_for_code_p.
6077         (vect_strided_load_supported): Likewise.
6078         * tree-vect-generic.c (expand_vector_operations_1): Never lower
6079         VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
6080         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
6081
6082         * target.def (vec_perm_const_ok): Change parameters to mode and
6083         array of indicies.
6084         * doc/tm.texi: Rebuild.
6085         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
6086         parameters to mode and array of indicies.
6087         * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
6088         * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
6089         Change parameters to mode and array of indicies.
6090         (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
6091         (expand_vec_perm): Rename from expand_vec_perm_expr.  Change
6092         parameters to mode and rtx inputs.  Try lowering to QImode
6093         vec_perm_const before trying fully variable permutation.
6094         * optabs.h: Update decls.
6095         * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
6096         VECTOR_CST to pass to can_vec_perm_p.
6097         * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
6098         from int pointer to unsigned char pointer.
6099         (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
6100         * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
6101
6102         * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
6103         (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6104         VEC_INTERLEAVE_LOW_EXPR): Likewise.
6105
6106 2011-10-25  Mike Stump  <mikestump@comcast.net>
6107
6108         * reload.c (regno_clobbered_p): Fix typo.
6109
6110 2011-10-25  Dodji Seketeli  <dodji@redhat.com>
6111
6112         * input.c (expand_location): Rewrite using linemap_resolve_location
6113         and linemap_expand_location.  Add a comment.
6114
6115 2011-10-25  Jakub Jelinek  <jakub@redhat.com>
6116
6117         PR tree-optimization/50596
6118         * tree-vect-stmts.c (vect_mark_relevant): Only use
6119         FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
6120         (vectorizable_store): If is_pattern_stmt_p look through
6121         VIEW_CONVERT_EXPR on lhs.
6122         * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
6123         Use unsigned type instead of signed.
6124         (vect_recog_bool_pattern): Optimize also stores into bool memory in
6125         addition to casts from bool to integral types.
6126         (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
6127         created, don't create it again.
6128
6129 2011-10-25  Kai Tietz  <ktietz@redhat.com>
6130
6131         * config/i386/i386.c (ix86_frame_pointer_required): Require
6132         frame-pointer, if setjmp is used for 32-bit ms-abi.
6133
6134 2011-10-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6135
6136         * builtins.c (set_builtin_user_assembler_name): Remove extra
6137         newline added in October 11th, 2011 change.
6138
6139 2011-10-24  David S. Miller  <davem@davemloft.net>
6140
6141         * config/sparc/little-endian.opt: Delete.
6142         * config.gcc: Remove references to config/sparc/little-endian.opt
6143         * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
6144         * config/sparc/linux64.h: Delete references to -mlittle-endian.
6145         * config/sparc/netbsd-elf.h: Likewise.
6146         * config/sparc/openbsd64.h: Likewise.
6147         * config/sparc/sparc.h: Likewise.
6148         * config/sparc/sp64-elf.h: Likewise and delete overrides for
6149         BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6150         * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
6151         to MASK_LITTLE_ENDIAN.
6152         * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
6153
6154         * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
6155         Only use D, Y, and Z constraints in vector insns.
6156
6157         * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
6158         (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
6159         called *movsi_insn.
6160         (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
6161         into *movdi_insn_sp32.
6162         (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
6163         one pattern called *movdi_insn_sp64.
6164         (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
6165         Consolidate into one pattern called *movsf_insn.
6166         (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
6167         *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
6168         into *movdf_insn_sp32.
6169         (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
6170         *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
6171         *movdf_insn_sp64.
6172         (*zero_extendsidi2_insn_sp64_novis3,
6173         *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
6174         called *zero_extendsidi2_insn_sp64.
6175         (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
6176         Consolidate into one pattern named *sign_extendsidi2_insn.
6177         (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
6178         Consolidate into one pattern named *mov<VM32:mode>_insn.
6179         (*mov<VM64:mode>_insn_sp64_novis3,
6180         *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
6181         named *mov<VM64:mode>_insn_sp64.
6182         (*mov<VM64:mode>_insn_sp32_novis3,
6183         *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
6184         named *mov<VM64:mode>_insn_sp32.
6185
6186 2011-10-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6187
6188         * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
6189         (zero_length_string): Change assertion to accept strinfo without
6190         length but with stmt instead.
6191         Set the endptr pointer also if starting a new chain.
6192         (adjust_related_strinfos): Ignore strinfos marked for delayed
6193         length computation.
6194         (handle_builtin_strcpy): Mark earlier strinfo elements also for
6195         delayed length computation.
6196
6197 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
6198
6199         PR target/50820
6200         Port from 4.6 branch r180379
6201         * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
6202         handling and indirect jump/calls on devices > 128k.
6203
6204 2011-10-24  Anatoly Sokolov  <aesok@post.ru>
6205             Georg-Johann Lay  <avr@gjlay.de>
6206
6207         PR target/49824
6208         * doc/extend.texi (Declaring Attributes of Functions):
6209         Document OS_main and OS_task attributes.
6210         (Specifying Attributes of Variables): Move up
6211         subsection "AVR Variable Attributes" as of alphabetical order.
6212
6213 2011-10-24  Richard Guenther  <rguenther@suse.de>
6214
6215         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
6216         to vector element type.
6217         (vectorizable_assignment): Bail out for non-mode-precision operations.
6218         (vectorizable_shift): Likewise.
6219         (vectorizable_operation): Likewise.
6220         (vectorizable_type_demotion): Likewise.
6221         (vectorizable_type_promotion): Likewise.
6222         (vectorizable_store): Handle non-mode-precision stores.
6223         (vectorizable_load): Handle non-mode-precision loads.
6224         (get_vectype_for_scalar_type_and_size): Return a vector type
6225         for non-mode-precision integers.
6226         * tree-vect-loop.c (vectorizable_reduction): Bail out for
6227         non-mode-precision reductions.
6228
6229 2011-10-24  Julian Brown  <julian@codesourcery.com>
6230
6231         * config/m68k/m68k.c (notice_update_cc): Tighten condition for
6232         setting CC_REVERSED for FP comparisons.
6233
6234 2011-10-24  Richard Guenther  <rguenther@suse.de>
6235
6236         PR tree-optimization/50838
6237         * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
6238         a MEM_REF base if we change it.
6239
6240 2011-10-24  Bernd Schmidt  <bernds@codesourcery.com>
6241
6242         PR bootstrap/50836
6243         * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
6244
6245         PR rtl-optimization/50833
6246         * function.c (thread_prologue_and_epilogue_insns): Expect the
6247         return insn optimization only if optimize.
6248
6249 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
6250
6251         * config/avr/avr.c: Break long lines.
6252         Define target hooks on the fly if applicable.
6253         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
6254         overridden later.
6255         (targetm): Move definition to end of file.
6256         (avr_can_eliminate): Make static on the fly.
6257         (avr_frame_pointer_required_p): Ditto.
6258         (avr_hard_regno_scratch_ok): Ditto.
6259         (avr_builtin_setjmp_frame_value): Make static on the fly.
6260         Indent according to coding rules.
6261         (avr_case_values_threshold): Ditto.
6262         (avr_attribute_table): Move down.
6263
6264 2011-10-24  Ira Rosen  <ira.rosen@linaro.org>
6265
6266         PR tree-optimization/50730
6267         * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
6268         analysis if encountered unsupported data-ref.
6269
6270 2011-10-23  David S. Miller  <davem@davemloft.net>
6271
6272         * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
6273         cpu adjustment.
6274         * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
6275         append -mcpu=v9 when -mv8plus is given.
6276
6277         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
6278         between float and non-float regs when VIS3.
6279         * config/sparc/sparc.c (eligible_for_restore_insn): We can't
6280         use a restore when the source is a float register.
6281         (sparc_split_regreg_legitimate): When VIS3 allow moves between
6282         float and integer regs.
6283         (sparc_register_move_cost): Adjust to account for VIS3 moves.
6284         (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
6285         integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
6286         (sparc_secondary_reload): On 32-bit with VIS3 when moving between
6287         float and integer regs we sometimes need a FP_REGS class
6288         intermediate move to satisfy the reload.  When this happens
6289         specify an extra cost of 2.
6290         (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
6291         (*movdi_insn_sp32_v9): Likewise.
6292         (*movdi_insn_sp64): Likewise.
6293         (*movsf_insn): Likewise.
6294         (*movdf_insn_sp32_v9): Likewise.
6295         (*movdf_insn_sp64): Likewise.
6296         (*zero_extendsidi2_insn_sp64): Likewise.
6297         (*sign_extendsidi2_insn): Likewise.
6298         (*movsi_insn_vis3): New insn.
6299         (*movdi_insn_sp32_v9_vis3): New insn.
6300         (*movdi_insn_sp64_vis3): New insn.
6301         (*movsf_insn_vis3): New insn.
6302         (*movdf_insn_sp32_v9_vis3): New insn.
6303         (*movdf_insn_sp64_vis3): New insn.
6304         (*zero_extendsidi2_insn_sp64_vis3): New insn.
6305         (*sign_extendsidi2_insn_vis3): New insn.
6306         (TFmode reg/reg split): Make sure both REG operands are float.
6307         (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
6308         easy constant to integer reg alternatives.
6309         (*mov<VM64:mode>_insn_sp64): Likewise.
6310         (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
6311         (*mov<VM32:mode>_insn_vis3): New insn.
6312         (*mov<VM64:mode>_insn_sp64_vis3): New insn.
6313         (*mov<VM64:mode>_insn_sp32_vis3): New insn.
6314         (VM64 reg<-->reg split): New splitter for 32-bit.
6315
6316         * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
6317         * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
6318         Declare it.
6319         * config/sparc/sparc.md (DImode reg/reg split): Use it.
6320         (DFmode reg/reg split): Likewise.
6321
6322         * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
6323         generating fzero and fone instructions.
6324         (DImode const_int --> reg splitter): Only trigger for integer regs.
6325
6326         * config/sparc/predicates.md (input_operand): Disallow vector
6327         constants other than 0 and -1.
6328         * config/sparc/sparc.c (sparc_preferred_reload_class): Return
6329         NO_REGS for vector constants other than 0 and -1.
6330
6331         * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
6332         SPARC_INT_REG_P): Define.
6333         (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
6334         (REGNO_OK_FOR_INDEX_P): Likewise.
6335         * config/sparc/sparc.c (gen_df_reg): Likewise.
6336         (eligible_for_return_delay): Likewise.
6337         (eligible_for_sibcall_delay): Likewise.
6338         (sparc_legitimate_address_p): Likewise.
6339         (emit_save_or_restore_regs): Likewise.
6340         (registers_ok_for_ldd_peep): Likewise.
6341         * config/spac/sparc.md (DI mode splitters): Likewise.
6342         (SF mode const splitters): Likewise.
6343         (DF mode splitters): Likewise.
6344         (32-bit DI mode logical op splitters): Likewise.
6345
6346 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
6347
6348         PR c++/50841
6349         Revert:
6350         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
6351
6352         PR c++/50810
6353         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
6354
6355 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
6356
6357         * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
6358         (VI248_256): Remove mode iterator.
6359         * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
6360         instead of gen_avx2_lshlv4di3.
6361         (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
6362         CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
6363
6364 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
6365
6366         * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
6367         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
6368         (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
6369         pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
6370         *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
6371         iterator.  Use sseintprefix mode attribute.
6372         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
6373         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
6374         pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
6375         *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
6376         iterator.  Use sseintprefix mode attribute.
6377         (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
6378         attributes.
6379         (*avx2_gatherdi<mode>): Ditto.
6380         (*avx2_gatherdi<mode>256): Ditto.
6381         (VI48_AVX2): Remove mode iterator.
6382         (gthrlastfp): Remove mode attribute.
6383
6384 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
6385
6386         PR c++/50810
6387         * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
6388
6389 2011-10-23  Tom de Vries  <tom@codesourcery.com>
6390
6391         PR tree-optimization/50763
6392         * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
6393         out of ...
6394         (same_succ_flush_bbs): Use same_succ_flush_bb.
6395         (purge_bbs): Remove argument.  Remove calls to same_succ_flush_bbs,
6396         release_last_vdef and delete_basic_block.
6397         (unlink_virtual_phi): New function.
6398         (update_vuses): Add and use vuse1_phi_args argument.  Set var to
6399         SSA_NAME_VAR of vuse1 or vuse2, and use var.  Handle case that
6400         def_stmt2 is NULL.  Use phi result as phi arg in case vuse1 or vuse2
6401         is NULL_TREE.  Replace uses of vuse1 if vuse2 is NULL_TREE.  Fix code
6402         to limit replacement of uses.  Propagate phi argument for phis with a
6403         single argument.
6404         (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
6405         Set vuse1_phi_args if vuse1 is a phi defined in bb1.  Add
6406         vuse1_phi_args as argument to call to update_vuses.  Call
6407         release_last_vdef, same_succ_flush_bb, delete_basic_block.  Update
6408         CDI_DOMINATORS info.
6409         (tail_merge_optimize): Remove argument in call to purge_bbs.  Remove
6410         call to free_dominance_info.  Only call calculate_dominance_info once.
6411
6412 2011-10-23  Eric Botcazou  <ebotcazou@adacore.com>
6413
6414         * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
6415
6416         PR tree-optimization/44683
6417         * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
6418         we can be sure that there are no signed zeros involved.
6419
6420 2011-10-23  Jan Hubicka  <jh@suse.cz>
6421
6422         * ipa-inline.c (estimate_badness): Scale up and handle overflows.
6423
6424 2011-10-23  Uros Bizjak  <ubizjak@gmail.com>
6425
6426         PR target/50788
6427         * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
6428         Remove (match_dup 0).
6429         (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
6430         (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
6431         (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
6432         (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
6433         (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
6434         (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
6435
6436 2011-10-23  Ira Rosen  <ira.rosen@linaro.org>
6437
6438         PR tree-optimization/50819
6439         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
6440         the last argument.
6441         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
6442         vect_analyze_data_ref_dependences.
6443         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
6444         the last argument.  Check load-after-store dependence for unknown
6445         dependencies in basic blocks.
6446         (vect_analyze_data_ref_dependences): Update call to
6447         vect_analyze_data_ref_dependences.
6448         * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
6449         * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
6450         (vect_slp_analyze_bb_1): Update call to
6451         vect_analyze_data_ref_dependences.  Don't call
6452         vect_bb_vectorizable_with_dependencies.
6453
6454 2011-10-22  David S. Miller  <davem@davemloft.net>
6455
6456         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
6457         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
6458         * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
6459         (sparc_secondary_reload): New function.
6460
6461         * config/sparc/sparc.h (sparc_costs): Remove extern decl.
6462         (struct processor_costs): Move from here..
6463         * config/sparc/sparc.c (struct processor_costs): To here.
6464         (sparc_costs): Mark static.
6465
6466         * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
6467         * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
6468         Get rid of declarations.
6469
6470 2011-10-21  Paul Brook  <paul@codesourcery.com>
6471
6472         * config/c6x/c6x.c (c6x_asm_emit_except_personality,
6473         c6x_asm_init_sections): New functions.
6474         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
6475
6476 2011-10-21  Jakub Jelinek  <jakub@redhat.com>
6477
6478         PR target/50813
6479         * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
6480         V4DImode and V8SImode for !TARGET_AVX2.
6481
6482 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
6483
6484         PR bootstrap/50825
6485         * sched-deps.c (add_dependence): If not doing predication, promote
6486         REG_DEP_CONTROL to REG_DEP_ANTI.
6487
6488 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
6489
6490         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
6491         instead of X to avr_legitimize_reload_address.
6492         * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
6493         first argument's type from rtx to rtx*.
6494         * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
6495         Pass PX to push_reload instead of &X.  Change log messages for
6496         better distinction.
6497
6498 2011-10-21  Roland Stigge  <stigge@antcom.de>
6499
6500         PR translation/47064
6501         * params.def: Fix typo "compilatoin" -> "compilation".
6502
6503 2011-10-21  H.J. Lu  <hongjiu.lu@intel.com>
6504             Kirill Yukhin  <kirill.yukhin@intel.com>
6505
6506         PR target/50740
6507         * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
6508         if max_level allows that.
6509
6510 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
6511
6512         * reg-notes.def (DEP_CONTROL): New.
6513         * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
6514         not doing speculation.
6515         * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
6516         record_hard_reg_uses_1, record_hard_reg_uses): New functions.
6517         * function.c (record_hard_reg_sets, record_hard_reg_uses,
6518         record_hard_reg_uses_1): Remove; move to rtlanal.c.
6519         * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
6520         * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
6521         (MUST_RECOMPUTE_SPEC_P): New macro.
6522         (real_insn_for_shadow): New function.
6523         (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
6524         toggle_cancelled_flags): New static functions.
6525         (schedule_insn): Relax an assert to only check for empty hard back
6526         dependencies.  Skip cancelled dependencies.  Call
6527         check_clobbered_conditions.
6528         (copy_insn_list): Remove function, renamed moved to lists.c.
6529         (save_backtrack_point): Use new spelling copy_INSN_LIST.
6530         (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
6531         (restore_last_backtrack_point): Likewise.  Call toggle_cancelled_flags.
6532         (estimate_insn_tick): Ignore cancelled dependencies.
6533         (haifa_speculate_insn): Move declaration.
6534         (try_ready): Move code into recompute_todo_spec and call it.  Tweak
6535         some asserts.  Ensure predicated patterns are restored if necessary.
6536         Dump DEP_CONTROL flag.
6537         (haifa_change_pattern): Merge with sched_change_pattern.
6538         (sched_change_pattern): Remove function.
6539         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove.  All
6540         uses changed to simply not test NON_FLUSH_JUMP_P.
6541         (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
6542         REG_DEP_CONTROL.
6543         (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
6544         (reg_pending_control_uses, control_dependency_cache): New static
6545         variables.
6546         (sched_get_reverse_condition_uncached): New function.
6547         (sd_find_dep_between): Remove pointless assert.  Look in
6548         control_dependency_cache.
6549         (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
6550         extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
6551         and control_dependency_cache.
6552         (sd_unresolve_dep): Use dep_spec_p.
6553         (add_dependence): Now a wrapper around add_dependence_1, handling
6554         REG_DEP_CONTROL specially.
6555         (flush_pending_lists): Clear pending_jump_insns.
6556         (sched_analyze_1): Handle pending_jump_insns like a memory flush.
6557         (sched_analyze_2): Unconditionally add to pending memory flushes,
6558         keep previous behaviour but apply it to pending_jump_insns instead.
6559         (sched_analyze_insn): Defer adding jump reg dependencies using
6560         reg_pending_control_uses; add them to the control_uses list.  Handle
6561         pending_jump_insns and control_uses when adding dependence lists.
6562         (deps_analyze_insn): Update INSN_COND_DEPS.
6563         (deps_analyze_insn): Add jumps to pending_jump_insns rather than
6564         last_pending_memory_flush.
6565         (init_deps): Initialize pending_jump_insns.
6566         (free_deps): Free control_uses.
6567         (remove_from_deps): Remove from pending_jump_insns.
6568         (init_deps_global): Allocate reg_pending_control_uses).
6569         (finish_deps_global): Free it.
6570         (add_dependence_1): Renamed from add_dependence.  Handle
6571         REG_DEP_CONTROL.
6572         * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
6573         (copy_INSN_LIST, concat_INSN_LIST): Declare.
6574         * sched-int.h (struct deps_reg): Add control_uses.
6575         (struct deps_desc): Add pending_jump_insns.
6576         (struct _haifa_deps_insn_data): Add cond_deps.
6577         (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
6578         (INSN_COND_DEPS, PREDICATED_PAT): New macros.
6579         (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
6580         (DEP_CONTROL): New macro.
6581         (DEP_TYPES): Include it.
6582         (HARD_DEP): Adjust definition.
6583         (DEP_CANCELLED): New macro.
6584         (enum SCHED_FLAGS): Add DO_PREDICATION.
6585         (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
6586         * sched-rgn.c (concat_INSN_LIST): Remove function.
6587         (deps_join): Handle pending_jump_insns.
6588         (free_pending_lists): Likewise.
6589         * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
6590         schedule.
6591
6592 2011-10-21  Georg-Johann Lay  <avr@gjlay.de>
6593
6594         PR target/50820
6595         * config/avr/libgcc.S (__EIND__): New define to 0x3C.
6596         (__tablejump__): Consistently use EIND for indirect jump/call.
6597         (__tablejump_elpm__): Ditto.
6598
6599 2011-10-21  Bernd Schmidt  <bernds@codesourcery.com>
6600
6601         * config/c6x/c6x.md (attr "op_pattern"): New.
6602         (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
6603         * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
6604         Likewise.
6605         * config/c6x/c6x-mult.md: Regenerate.
6606         * config/c6x/c6x.c: Include "regrename.h".
6607         (unit_req_table): New typedef.
6608         (unit_reqs): Use it for the declaration.
6609         (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
6610         get_unit_operand_masks, try_rename_operands, reshuffle_units): New
6611         static functions.
6612         (count_unit_reqs): New arg reqs.  All callers changed.  Use
6613         get_unit_reqs, and don't merge here.
6614         (res_mii): New arg reqs.  All callers changed.  Rewrite to use a loop
6615         using unit_req_factor.
6616         (hwloop_optimize): Call reshuffle_units.  Call merge_unit_reqs after
6617         count_unit_reqs.
6618         (c6x_reorg): Add reg notes problem, and call df_analyze.
6619         * Makefile.in ($(out_object_file)): Depend on regrename.h.
6620
6621 2011-10-21  Kai Tietz  <ktietz@redhat.com>
6622
6623         * fold-const.c (simple_operand_p_2): Handle integral
6624         casts from boolean-operands.
6625
6626 2011-10-21  Jan Hubicka  <jh@suse.cz>
6627
6628         * cgraph.c (dump_cgraph_node): Dump alias flag.
6629         * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
6630         no destination.
6631         (get_alias_symbol): New function.
6632         (output_weakrefs): Output also weakrefs with no destinatoin.
6633         (lto_output_node): Output weakref alias flag when at function boundary.
6634
6635 2011-10-21  Andrew Stubbs  <ams@codesourcery.com>
6636
6637         PR target/50809
6638         * config/arm/driver-arm.c (vendors): Make static.
6639
6640 2011-10-21  Uros Bizjak  <ubizjak@gmail.com>
6641
6642         * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
6643         (ix86_emit_swsqrtsf): Force a into register.
6644
6645 2011-10-20  Mike Stump  <mikestump@comcast.net>
6646
6647         * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
6648         after validate_change wipes it out.
6649
6650 2011-10-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6651
6652         * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
6653         before using the shufb instruction.
6654
6655 2011-10-20  Kirill Yukhin  <kirill.yukhin@intel.com>
6656
6657         PR target/50766
6658         * config/i386/i386.md (bmi_bextr_<mode>): Update register/
6659         memory operand order.
6660         (bmi2_bzhi_<mode>3): Ditto.
6661         (bmi2_pdep_<mode>3): Ditto.
6662         (bmi2_pext_<mode>3): Ditto.
6663
6664 2011-10-20  Richard Henderson  <rth@redhat.com>
6665
6666         * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
6667         * optabs.c (can_vec_perm_expr_p): Update to match.
6668         (expand_vec_perm_expr): Likewise.
6669         * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
6670         from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
6671         * doc/tm.texi.in: Likewise.
6672
6673 2011-10-20  Sergey Ostanevich  <sergos.gnu@gmail.com>
6674
6675         PR target/50572
6676         * config/i386/i386.c (processor_target_table): Change Atom
6677         align_loops_max_skip to 15.
6678
6679 2011-10-20  Richard Henderson  <rth@redhat.com>
6680
6681         * target.def (builtin_vec_perm): Remove.
6682         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6683
6684         * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
6685         (IX86_BUILTIN_VEC_PERM_*): Remove.
6686         (bdesc_args): Remove vec_perm builtins
6687         (ix86_expand_builtin): Likewise.
6688         (ix86_expand_vec_perm_const_1): Rename from
6689         ix86_expand_vec_perm_builtin_1.
6690         (extract_vec_perm_cst): Merge into...
6691         (ix86_vectorize_vec_perm_const_ok): ... here.  Rename from
6692         ix86_vectorize_builtin_vec_perm_ok.
6693         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6694
6695         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
6696         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6697
6698         * config/spu/spu.c (spu_builtin_vec_perm): Remove.
6699         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6700
6701 2011-10-20  Uros Bizjak  <ubizjak@gmail.com>
6702
6703         PR target/47989
6704         * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
6705         * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
6706         * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
6707         implements vectorized single float division and vectorized sqrtf(x)
6708         with reciprocal sequence with additional Newton-Raphson step with
6709         -ffast-math.
6710
6711 2011-10-20  Dodji Seketeli  <dodji@redhat.com>
6712
6713         * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
6714         ggc_alloced_size_order_for_request into ggc_round_alloc_size like
6715         it was done in ggc-page.c.
6716
6717         PR other/50659
6718         * doc/cppopts.texi: Use @smallexample/@end smallexample in
6719         documentation for -fdebug-cpp instead of @quotation/@end quotation
6720         that is not supported by contrib/texi2pod.pl.
6721
6722 2011-10-19  Jan Hubicka  <jh@suse.cz>
6723
6724         * ipa-inline.c (inline_small_functions): Always update all calles after
6725         inlining.
6726
6727 2011-10-19  Jan Hubicka  <jh@suse.cz>
6728
6729         PR bootstrap/50709
6730         * ipa-inline.c (inline_small_functions): Fix checking code to not make
6731         effect on fibheap stability.
6732
6733 2011-10-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
6734
6735         * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
6736
6737 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6738
6739         PR target/50106
6740         * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
6741         reg size from 1-3.
6742
6743 2011-10-20  Richard Guenther  <rguenther@suse.de>
6744
6745         * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
6746         and rotates to the set of expensive operations.
6747
6748 2011-10-19  David S. Miller  <davem@davemloft.net>
6749
6750         * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
6751         (sparc_emit_set_const32): Likewise.
6752         (sparc_emit_set_const64_longway): Likewise.
6753         (sparc_emit_set_const64): Likewise.
6754         (sparc_legitimize_pic_address): Likewise.
6755         (memory_ok_for_ldd): Likewise.
6756
6757 2011-10-20  Dehao Chen  <dehao@google.com>
6758
6759         * profile.c (compute_branch_probabilities): Compute and dump the
6760         overlap between the static estimation and the instrumentation profile.
6761         (OVERLAP_BASE): New macro.
6762         (compute_frequency_overlap): New function
6763
6764 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
6765
6766         * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
6767         d->op1 instead of d->op0 for the second vpshufb.
6768         (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
6769         (ix86_expand_vec_perm_const): If mask indicates two operands are
6770         needed, but both are the same and expanding them as d.op0 == d.op1
6771         failed, retry with d.op0 != d.op1.
6772         (ix86_expand_vec_perm_builtin): Likewise.  Handle sorry printing
6773         also for d.nelt == 32.
6774
6775         PR middle-end/50754
6776         * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
6777         VEC_PERM_EXPR.
6778
6779 2011-10-19  Bernd Schmidt  <bernds@codesourcery.com>
6780
6781         * regrename.h: New file.
6782         * regrename.c: Include it.  Also include "emit-rtl.h".
6783         (struct du_head, struct du_chain, du_head_p DEF_VEC and
6784         DEF_VEC_ALLOC_P): Move to regrename.h.
6785         (do_replace): Remove declaration.
6786         (insn_rr): New variable.
6787         (cur_operand): New static variable.
6788         (regrename_chain_from_id): Renamed from chain_from_id and no longer
6789         static.  All callers changed.
6790         (record_operand_use): New static function.
6791         (scan_rtx_reg): Use it.
6792         (find_best_rename_reg): New function, broken out of rename_chains.
6793         (rename_chains): Use it.  Don't update chain regno and nregs here, ...
6794         (regrename_do_replace): ... do it here instead.  Renamed from
6795         do_replace, and no longer static.  All callers changed.
6796         (regrename_analyze): No longer static.  New arg bb_mask.
6797         All callers changed.  If bb_mask is nonzero, use it to limit the
6798         number of basic blocks we analyze.  If we failed to analyze a block,
6799         clear insn operand data.
6800         (record_out_operands): New arg insn_info.  Update cur_operand if it is
6801         nonnull.
6802         (build_def_use): If insn_rr is nonnull, pass an insn_info to
6803         record_out_operands, and update cur_operand here as well.
6804         (regrename_init, regrename_finish): New functions.
6805         (regrename_optimize): Use them.
6806         * Makefile.in (regrename.o): Adjust dependencies.
6807
6808 2011-10-19  Tom de Vries  <tom@codesourcery.com>
6809
6810         PR tree-optimization/50769
6811         * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
6812         unconditionally.  Handle case that phi_vuse2 is not an SSA_NAME.  Add
6813         dummy argument .MEM to phi when increasing number of arguments of phi by
6814         redirecting edges to the block with phi.
6815
6816 2011-10-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6817
6818         PR bootstrap/50777
6819         * configure.ac: Save and restore CXXFLAGS around
6820         gcc_AC_CHECK_DECLS uses.
6821         Check for madvise() declaration with g++ if --enable-build-with-cxx.
6822         * configure: Regenerate.
6823         * config.in: Regenerate.
6824         * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
6825
6826 2011-10-19  Alexandre Oliva  <aoliva@redhat.com>
6827
6828         PR debug/49310
6829         * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
6830         (variable_part): Replace offset with union.
6831         (enum onepart_enum, onepart_enum_t): New.
6832         (variable_def): Drop cur_loc_changed, add onepart.
6833         (value_chain_def, const_value_chain): Remove.
6834         (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
6835         (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
6836         (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
6837         (value_chain_pool, value_chains): Remove.
6838         (dropped_values): New.
6839         (struct parm_reg): Only if HAVE_window_save.
6840         (vt_stack_adjustments): Don't record register arguments.
6841         (dv_as_rtx): New.
6842         (dv_onepart_p): Return a onepart_enum_t.
6843         (onepart_pool): New.
6844         (dv_pool): Remove.
6845         (dv_from_rtx): New.
6846         (variable_htab_free): Release onepart aux data.  Reset flags.
6847         (value_chain_htab_hash, value_chain_htab_eq): Remove.
6848         (unshare_variable): Use onepart field.  Propagate onepart aux
6849         data or offset.  Drop cur_loc_changed.
6850         (val_store): Cope with NULL insn.  Rephrase dump output.  Check
6851         for unsuitable locs.  Add FIXME on using cselib locs.
6852         (val_reset): Remove FIXME of unfounded concerns.
6853         (val_resolve): Check for unsuitable locs.  Add FIXME on using
6854         cselib locs.
6855         (variable_union): Use onepart field, adjust access to offset.
6856         (NO_LOC_P): New.
6857         (VALUE_CHANGED, DECL_CHANGED): Update doc.
6858         (set_dv_changed): Clear NO_LOC_P when changed.
6859         (find_loc_in_1pdv): Use onepart field.
6860         (intersect_loc_chains): Likewise.
6861         (unsuitable_loc): New.
6862         (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
6863         (add_value_chain, add_value_chains): Remove.
6864         (add_cselib_value_chains, remove_value_chain): Likewise.
6865         (remove_value_chains, remove_cselib_value_chains): Likewise.
6866         (canonicalize_loc_order_check): Use onepart.  Drop cur_loc_changed.
6867         (canonicalize_values_star, canonicalize_vars_star): Use onepart.
6868         (variable_merge_over_cur): Likewise.  Adjust access to offset.
6869         Drop cur_loc_changed.
6870         (variable_merge_over_src): Use onepart field.
6871         (remove_duplicate_values): Likewise.
6872         (variable_post_merge_new_vals): Likewise.
6873         (find_mem_expr_in_1pdv): Likewise.
6874         (dataflow_set_preserve_mem_locs): Likewise.  Drop cur_loc_changed
6875         and value chains.
6876         (dataflow_set_remove_mem_locs): Likewise.  Use VAR_LOC_FROM.
6877         (variable_different_p): Use onepart field.  Move onepart test out
6878         of the loop.
6879         (argument_reg_set): Drop.
6880         (add_uses, add_stores): Preserve but do not record in dynamic
6881         tables equivalences for ENTRY_VALUEs and CFA_based addresses.
6882         Avoid unsuitable address expressions.
6883         (EXPR_DEPTH): Unlimit.
6884         (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
6885         (prepare_call_arguments): Use DECL_RTL_IF_SET.
6886         (dump_var): Adjust access to offset.
6887         (variable_from_dropped, recover_dropped_1paux): New.
6888         (variable_was_changed): Drop cur_loc_changed.  Use onepart.
6889         Preserve onepart aux in empty_var.  Recover empty_var and onepart
6890         aux from dropped_values.
6891         (find_variable_location_part): Special-case onepart.  Adjust
6892         access to offset.
6893         (set_slot_part): Use onepart.  Drop cur_loc_changed.  Adjust
6894         access to offset.  Initialize onepaux.  Drop value chains.
6895         (delete_slot_part): Drop value chains.  Use VAR_LOC_FROM.
6896         (VEC (variable, heap), VEC (rtx, stack)): Define.
6897         (expand_loc_callback_data): Drop dummy, cur_loc_changed,
6898         ignore_cur_loc.  Add expanding, pending, depth.
6899         (loc_exp_dep_alloc, loc_exp_dep_clear): New.
6900         (loc_exp_dep_insert, loc_exp_dep_set): New.
6901         (notify_dependents_of_resolved_value): New.
6902         (update_depth, vt_expand_var_loc_chain): New.
6903         (vt_expand_loc_callback): Revamped.
6904         (resolve_expansions_pending_recursion): New.
6905         (INIT_ELCD, FINI_ELCD): New.
6906         (vt_expand_loc): Use the new macros above.  Drop ignore_cur_loc
6907         parameter, adjust all callers.
6908         (vt_expand_loc_dummy): Drop.
6909         (vt_expand_1pvar): New.
6910         (emit_note_insn_var_location): Operate on non-debug decls only.
6911         Revamp multi-part cur_loc recomputation and one-part expansion.
6912         Drop cur_loc_changed.  Adjust access to offset.
6913         (VEC (variable, heap)): Drop.
6914         (changed_variables_stack, changed_values_stack): Drop.
6915         (check_changed_vars_0, check_changed_vars_1): Remove.
6916         (check_changed_vars_2, check_changed_vars_3): Remove.
6917         (values_to_stack, remove_value_from_changed_variables): New.
6918         (notify_dependents_of_changed_value, process_changed_values): New.
6919         (emit_notes_for_changes): Revamp onepart updates.
6920         (emit_notes_for_differences_1): Use onepart.  Drop cur_loc_changed
6921         and value chains.  Propagate onepaux.  Recover empty_var and onepaux
6922         from dropped_values.
6923         (emit_notes_for_differences_2): Drop value chains.
6924         (emit_notes_in_bb): Adjust.
6925         (vt_emit_notes): Drop value chains, changed_variables_stack.
6926         Initialize and release dropped_values.
6927         (create_entry_value): Revamp.
6928         (vt_add_function_parameter): Use new interface.
6929         (note_register_arguments): Remove.
6930         (vt_initialize): Drop value chains and register arguments.
6931         (vt_finalize): Drop value chains.  Release windowed_parm_regs only
6932         if HAVE_window_save.
6933         * rtl.h: Document various pass-local uses of RTL flags.
6934         * tree.h (DECL_RTL_KNOWN_SET): New.
6935         * doc/invoke.texi (param max-vartrack-expr-depth): Update
6936         description and default.
6937
6938 2011-10-19  Georg-Johann Lay  <avr@gjlay.de>
6939
6940         PR target/50447
6941         * config/avr/avr.md (cc): New alternative out_plus_noclobber.
6942         (adjust_len): Ditto.
6943         (addhi3): Don't pipe through short; use gen_int_mode instead.
6944         Prior to reload, expand to gen_addhi3_clobber.
6945         (*addhi3): Use avr_out_plus_noclobber if applicable, use
6946         out_plus_noclobber in cc and adjust_len attribute.
6947         (addhi3_clobber): 2 new RTL peepholes.
6948         (addhi3_clobber): New insn.
6949         * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
6950         * config/avr/avr.c (avr_out_plus_noclobber): New function.
6951         (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
6952         (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
6953         Set cc0 to set_zn for adiw on 16-bit values.
6954         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
6955         (expand_epilogue): No need to add 0 to frame_pointer_rtx.
6956
6957 2011-10-19  Richard Guenther  <rguenther@suse.de>
6958
6959         PR middle-end/50780
6960         * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
6961         the condition is properly gimple before using it.
6962         * tree-eh (stmt_could_throw_1_p): Properly extract the
6963         operation type from comparisons.
6964
6965 2011-10-19  Roland Stigge  <stigge@antcom.de>
6966
6967         PR translation/48638
6968         * plugin.c (add_new_plugin): Fix typo in fatal_error message.
6969
6970 2011-10-19  Roland Stigge  <stigge@antcom.de>
6971
6972         PR translation/49517
6973         * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
6974
6975 2011-10-19  Richard Guenther  <rguenther@suse.de>
6976
6977         PR middle-end/50768
6978         * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
6979
6980 2011-10-19  Andrey Belevantsev  <abel@ispras.ru>
6981
6982         PR rtl-optimization/50340
6983         * sel-sched-ir.c (update_target_availability): LHS register
6984         availability is not known if the unavailable LHS of the other
6985         expression is a different register.
6986
6987 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6988
6989         PR target/50310
6990         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
6991         floating-point comparisons.
6992
6993 2011-10-19  Jan Hubicka  <jh@suse.cz>
6994
6995         * cgraphunit.c (handle_alias_pairs): Also handle wekref with
6996         destination declared.
6997         (output_weakrefs): New function.
6998         * varpool.c (varpool_create_variable_alias): Handle external aliases.
6999
7000 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
7001
7002         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
7003         second argument instead of mode.
7004
7005 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
7006
7007         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
7008         mode SUBREG of operands[0] as target.
7009         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
7010         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
7011         (expand_vec_perm_1): Handle identity and some broadcast
7012         permutations.
7013         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
7014         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
7015         For d->testing_p return true earlier to avoid creating more GC
7016         garbage.
7017         (expand_vec_perm_vpermq_perm_1): New function.
7018         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
7019         earlier to avoid creating more GC garbage.  Fix handling of
7020         V16HImode.  Avoid some SUBREGs in SET_DEST.
7021         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
7022         vector modes.
7023         (expand_vec_perm_vpshufb4_vpermq2): New function.
7024         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
7025         and expand_vec_perm_vpshufb4_vpermq2.
7026
7027 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
7028
7029         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
7030         before exiting.
7031
7032 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
7033
7034         PR tree-optimization/50717
7035         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
7036         parameter.  Calculate 'type' from stmt.
7037         (convert_mult_to_widen): Update call the is_widening_mult_p.
7038         (convert_plusminus_to_widen): Likewise.
7039
7040 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7041
7042         * config/spu/spu.c (struct machine_function): New data structure.
7043         (spu_init_machine_status): New function.
7044         (spu_option_override): Install it.
7045         (get_pic_reg): Set and use cfun->machine->pic_reg.
7046         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
7047         (need_to_save_reg): Use cfun->machine->pic_reg instead of
7048         checking crtl->uses_pic_offset_table.
7049         (spu_expand_prologue): Likewise.
7050
7051 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
7052
7053         PR tree-optimization/50735
7054         * function.c (gimplify_parameters): Use create_tmp_var instead of
7055         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
7056         or vector type, set DECL_GIMPLE_REG_P.
7057
7058 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
7059
7060         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
7061         * config/arm/arm.opt: Add 'native' processor_type and
7062         arm_arch enum values.
7063         * config/arm/arm.h (host_detect_local_cpu): New prototype.
7064         (EXTRA_SPEC_FUNCTIONS): New define.
7065         (MCPU_MTUNE_NATIVE_SPECS): New define.
7066         (DRIVER_SELF_SPECS): New define.
7067         * config/arm/driver-arm.c: New file.
7068         * config/arm/x-arm: New file.
7069         * doc/invoke.texi (ARM Options): Document -mcpu=native,
7070         -mtune=native and -march=native.
7071
7072 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
7073
7074         PR rtl-optimization/50205
7075         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
7076         p->x is a register.  Forbid substitution when the same register is
7077         found in a different mode.
7078         (count_occurrences_equiv): Assert that 'what' is a register.
7079
7080 2011-10-18  Richard Guenther  <rguenther@suse.de>
7081
7082         PR tree-optimization/50767
7083         * tree-ssa-pre.c (create_expression_by_pieces): Update the
7084         folded statement.
7085
7086 2011-10-18  Julian Brown  <julian@codesourcery.com>
7087
7088         * config/arm/arm.c (arm_block_move_unaligned_straight)
7089         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
7090         (arm_movmemqi_unaligned): New.
7091         (arm_gen_movmemqi): Support unaligned block copies.
7092
7093 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
7094
7095         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
7096         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
7097         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
7098         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7099         (op_code_prio): Likewise.
7100         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
7101         * optabs.c (optab_for_tree_code): Handle
7102         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7103         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
7104         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
7105         * genopinit.c (optabs): Initialize the new optabs.
7106         * expr.c (expand_expr_real_2): Handle
7107         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7108         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
7109         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
7110         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
7111         VEC_WIDEN_LSHIFT_LO_EXPR): New.
7112         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
7113         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
7114         vect_recog_widen_shift_pattern.
7115         (vect_handle_widen_mult_by_const): Rename...
7116         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
7117         Add a new argument, update documentation.
7118         (vect_recog_widen_mult_pattern): Assume that only second
7119         operand can be constant.  Update call to
7120         vect_handle_widen_op_by_const.
7121         (vect_recog_over_widening_pattern): Fix typo.
7122         (vect_recog_widen_shift_pattern): New.
7123         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
7124         widening shifts.
7125         (supportable_widening_operation): Likewise.
7126         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
7127         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7128         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7129         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
7130         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
7131         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
7132         Likewise.
7133         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
7134         New.
7135         * config/arm/iterators.md (V_innermode): New.
7136         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
7137         for widening shift.
7138
7139 2011-10-18  Richard Guenther  <rguenther@suse.de>
7140
7141         * tree-ssa-alias.h (struct pt_solution): Remove
7142         vars_contains_restrict member.
7143         (pt_solutions_same_restrict_base): Remove.
7144         (pt_solution_set): Adjust.
7145         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
7146         vars_contains_restrict handling.
7147         (dump_points_to_solution): Likewise.
7148         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
7149         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
7150         field.
7151         (new_var_info): Do not initialize it.
7152         (ipa_escaped_pt): Adjust.
7153         (make_constraint_from_restrict): Make the tag global.
7154         (make_constraint_from_global_restrict): New function.
7155         (make_constraint_from_heapvar): Remove.
7156         (create_variable_info_for): Do not make restrict vars point
7157         to NONLOCAL.
7158         (intra_create_variable_infos): Likewise.
7159         (find_what_var_points_to): Remove vars_contains_restrict handling.
7160         (pt_solution_set): Adjust.
7161         (pt_solution_ior_into): Likewise.
7162         (pt_solutions_same_restrict_base): Remove.
7163         (compute_points_to_sets): Do not test is_restrict_var.
7164         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
7165         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7166
7167 2011-10-18  Tom de Vries  <tom@codesourcery.com>
7168
7169         PR tree-optimization/50672
7170         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
7171         factored out of ...
7172         (mark_virtual_phi_result_for_renaming): Use
7173         mark_virtual_operand_for_renaming.
7174         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
7175         * tree-ssa-tail-merge.c (release_last_vdef): New function.
7176         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
7177         deleted basic block.
7178         (tail_merge_optimize): Add argument to call to purge_bbs.
7179
7180 2011-10-18  Richard Guenther  <rguenther@suse.de>
7181
7182         PR middle-end/50716
7183         * expr.c (get_object_or_type_alignment): New function.
7184         (expand_assignment): Use it.
7185         (expand_expr_real_1): Likewise.
7186
7187 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
7188
7189         PR bootstrap/50760
7190         * input.c (dump_line_table_statistics): Use long, not size_t.
7191
7192 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
7193
7194         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
7195
7196 2011-10-17  Simon Baldwin  <simonb@google.com>
7197             Ian Lance Taylor  <iant@google.com>
7198
7199         * configure.ac: Add --with-native-system-header-dir.  Set and
7200         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
7201         when setting target_header_dir.
7202         * config.gcc: Always set native_system_header_dir.
7203         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
7204         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
7205         use i386/t-djgpp.
7206         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
7207         native_system_header_dir.
7208         (spu-*-elf*): Set native_system_header_dir.
7209         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
7210         @NATIVE_SYSTEM_HEADER_DIR@.
7211         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
7212         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
7213         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
7214         STANDARD_INCLUDE_COMPONENT.
7215         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
7216         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
7217         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
7218         STANDARD_INCLUDE_COMPONENT.
7219         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
7220         * config/i386/t-mingw-w32: Likewise.
7221         * config/i386/t-mingw-w64: Likewise.
7222         * config/spu/t-spu-elf: Likewise.
7223         * config/i386/t-djgpp: Remove.
7224         * config/t-gnu: Remove.
7225         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
7226         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
7227         STANDARD_INCLUDE_COMPONENT.
7228         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
7229         * config/spu/spu-elf.h: Likewise.
7230         * config/vms/xm-vms.h: Likewise.
7231         * config/gnu.h: Likewise.
7232         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
7233         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
7234         NATIVE_SYSTME_HEADER_COMPONENT.
7235         * doc/install.texi (Configuration): Document
7236         --with-native-system-header-dir.  Mention it in the documentation
7237         for --with-sysroot and --with-build-sysroot.
7238         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
7239         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
7240         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
7241         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
7242         * doc/fragments.texi (Target Fragment): Don't document
7243         NATIVE_SYSTEM_HEADER_DIR.
7244         * configure, doc/tm.texi: Rebuild.
7245
7246 2011-10-17  Richard Henderson  <rth@redhat.com>
7247
7248         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
7249         is the constraint.
7250
7251         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
7252         patterns.
7253         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
7254         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
7255
7256 2011-10-17  David S. Miller  <davem@davemloft.net>
7257
7258         * config/sparc/sparc-modes.def: Add single entry vector modes for
7259         DImode and SImode.
7260         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
7261         mode iterators.
7262         (mov<V32:mode>): Revert back to plain SFmode pattern.
7263         (*movsf_insn): Likewise.
7264         (mov<V64:mode>): Revert back to plain DFmode pattern.
7265         (*movdf_insn_sp32): Likewise.
7266         (*movdf_insn_sp32_v9): Likewise.
7267         (*movdf_insn_sp64): Likewise.
7268         (V64 mode splitters) Likewise.
7269         (addsi3): Remove VIS alternatives.
7270         (subsi3): Likewise.
7271         (and<V64I:mode>3): Revert to DImode only pattern.
7272         (and<V64I:mode>3_sp32): Likewise.
7273         (*and<V64I:mode>3_sp64): Likewise.
7274         (and<V32I:mode>3): Likewise.
7275         (*and_not_<V64I:mode>_sp32): Likewise.
7276         (*and_not_<V64I:mode>_sp64): Likewise.
7277         (*and_not_<V32I:mode>): Likewise.
7278         (ior<V64I:mode>3): Likewise.
7279         (*ior<V64I:mode>3_sp32): Likewise.
7280         (*ior<V64I:mode>3_sp64): Likewise.
7281         (ior<V32I:mode>3): Likewise.
7282         (*or_not_<V64I:mode>_sp32): Likewise.
7283         (*or_not_<V64I:mode>_sp64): Likewise.
7284         (*or_not_<V32I:mode>): Likewise.
7285         (xor<V64I:mode>3): Likewise.
7286         (*xor<V64I:mode>3_sp32): Likewise.
7287         (*xor<V64I:mode>3_sp64): Likewise.
7288         (xor<V32I:mode>3): Likewise.
7289         (V64I mode splitters): Likewise.
7290         (*xor_not_<V64I:mode>_sp32): Likewise.
7291         (*xor_not_<V64I:mode>_sp64): Likewise.
7292         (*xor_not_<V32I:mode>): Likewise.
7293         (one_cmpl<V64I:mode>2): Likewise.
7294         (*one_cmpl<V64I:mode>2_sp32): Likewise.
7295         (*one_cmpl<V64I:mode>2_sp64): Likewise.
7296         (one_cmpl<V32I:mode>2): Likewise.
7297         (VM32, VM64, VMALL): New mode iterators.
7298         (vbits, vconstr, vfptype): New mode attributes.
7299         (mov<VMALL:mode>): New expander.
7300         (*mov<VM32:mode>_insn): New insn.
7301         (*mov<VM64:mode>_insn_sp64): New insn.
7302         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
7303         specifically for the register to memory case.
7304         (vec_init<mode>): New expander.
7305         (VADDSUB): New mode iterator.
7306         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
7307         with...
7308         (<plusminus_insn><mode>3): New consolidated pattern.
7309         (VL): New mode iterator for logical operations.
7310         (vlsuf): New more attribute.
7311         (vlop): New code iterator.
7312         (vlinsn, vlninsn): New code attributes.
7313         (<code><mode>3): New insn to non-negated vector logical ops.
7314         (*not_<code><mode>3): Likewise for negated variants.
7315         (*nand<mode>_vis): New insn.
7316         (vlnotop): New code iterator.
7317         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
7318         (one_cmpl<mode>2): New insn.
7319         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
7320         (bshuffle<VM64:mode>_vis): Likewise.
7321         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
7322         (fp<plusminus_insn>64_vis): Use V1DI mode.
7323         (VASS mode iterator): Use V1SI not SI mode.
7324         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
7325         single-entry vector mode changes.
7326         (sparc_expand_builtin): Likewise.
7327         (sparc_expand_vector_init): New function.
7328         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
7329
7330 2011-10-17  Kai Tietz  <ktietz@redhat.com>
7331
7332         * fold-const.c (simple_operand_p_2): New function.
7333         (fold_truthop): Rename to
7334         (fold_truth_andor_1): function name.
7335         Additionally remove branching creation for logical and/or.
7336         (fold_truth_andor): Handle branching creation for logical and/or here.
7337
7338 2011-10-17  Andi Kleen  <ak@linux.intel.com>
7339
7340         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
7341
7342 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
7343
7344         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
7345         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
7346         (adjust_len): Add alternative "call".
7347         (isa, enabled): New insn attributes.
7348         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
7349         mcu_mega attribute.
7350         (*sbrx_branch<mode>): Ditto.
7351         (*sbrx_and_branch<mode>): Ditto.
7352         (*sbix_branch): Ditto.
7353         (*sbix_branch_bit7): Ditto.
7354         (*sbix_branch_tmp): Ditto.
7355         (*sbix_branch_tmp_bit7): Ditto.
7356         (jump): Ditto.
7357         (negsi2): Use attribute "isa" instead of assembler dialect.
7358         (extendhisi2): Ditto.
7359         (call_insn, call_value_insn): Set adjust_len attribute.
7360         (indirect_jump): Indent to coding rules.
7361         (call_prologue_saves): Use isa attribute instead of mcu_mega.
7362         (epilogue_restores): Ditto.  Fix setting of SP as described in the
7363         RTX pattern.
7364         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
7365         and *indirect_jump_avr6.
7366         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
7367         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
7368         (*tablejump_rjmp, *tablejump_lib): Remove.
7369         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
7370
7371 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
7372
7373         PR c++/50757
7374         * doc/invoke.texi ([Wnonnull]): Update.
7375
7376 2011-10-17  Richard Henderson  <rth@redhat.com>
7377
7378         PR 50746
7379         * optabs.c (expand_vec_perm_expr): Fix indexing error.
7380
7381 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
7382
7383         * configure.ac: Display `yes' if the SystemTap header has been found.
7384         * configure: Regenerate.
7385
7386 2011-10-08  Andi Kleen  <ak@linux.intel.com>
7387
7388         PR other/50636
7389         * config.in, configure: Regenerate.
7390         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
7391         * ggc-page.c (USING_MADVISE): Add.
7392         (page_entry): Add discarded field.
7393         (alloc_page): Check for discarded pages.
7394         (release_pages): Add USING_MADVISE branch.
7395
7396 2011-10-17  Richard Guenther  <rguenther@suse.de>
7397
7398         PR tree-optimization/50729
7399         * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
7400         (simplify_conversion_using_ranges): Properly test the
7401         intermediate result.
7402
7403 2011-10-15  Tom Tromey  <tromey@redhat.com>
7404             Dodji Seketeli  <dodji@redhat.com>
7405
7406         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
7407         * ggc-none.c (ggc_round_alloc_size): New public stub function.
7408         * ggc-page.c (ggc_alloced_size_order_for_request): New static
7409         function.  Factorized from ggc_internal_alloc_stat.
7410         (ggc_round_alloc_size): New public function.  Uses
7411         ggc_alloced_size_order_for_request.
7412         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
7413         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
7414         from ggc_internal_alloc_zone_stat.
7415         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
7416         * toplev.c (general_init): Initialize
7417         line_table->alloced_size_for_request.
7418
7419 2011-10-15  Tom Tromey  <tromey@redhat.com>
7420             Dodji Seketeli  <dodji@redhat.com>
7421
7422         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
7423         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
7424         new counters.
7425         (dump_line_table_statistics): Define new function.
7426         * input.h (dump_line_table_statistics): Declare new function.
7427         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
7428
7429 2011-10-15  Tom Tromey  <tromey@redhat.com>
7430             Dodji Seketeli  <dodji@redhat.com>
7431
7432         * doc/cppopts.texi: Document -fdebug-cpp.
7433         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
7434
7435 2011-10-15  Tom Tromey  <tromey@redhat.com>
7436             Dodji Seketeli  <dodji@redhat.com>
7437
7438         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
7439         location parameter.
7440         * diagnostic.c (diagnostic_report_current_module): Add a location
7441         parameter to the function definition.  Use it instead of
7442         input_location.  Resolve the virtual location rather than just
7443         looking up its map and risking to touch a resulting macro map.
7444         (default_diagnostic_starter): Pass the relevant diagnostic
7445         location to diagnostic_report_current_module.
7446         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
7447         (virt_loc_aware_diagnostic_finalizer): Likewise.
7448         (diagnostic_report_current_function): Pass the
7449         relevant location to diagnostic_report_current_module.
7450         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
7451         new function.
7452         * toplev.c (general_init): By default, use the new
7453         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
7454         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
7455
7456 2011-10-15  Tom Tromey  <tromey@redhat.com>
7457             Dodji Seketeli  <dodji@redhat.com>
7458
7459         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
7460         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
7461         preprocessor related options.
7462
7463 2011-10-15  Tom Tromey  <tromey@redhat>
7464             Dodji Seketeli  <dodji@redhat.com>
7465
7466         * input.h (struct expanded_location): Move to libcpp/line-map.h.
7467         (LOCATION_COLUMN): New accessor
7468         (in_system_header_at): Use linemap_location_in_system_header_p.
7469         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
7470         touching the internals of struct line_map.  Use the public API instead.
7471         (diagnostic_report_diagnostic): Don't use relational operator '<'
7472         on virtual locations.  Use linemap_location_before_p instead.
7473         * input.c (expand_location): Adjust to expand to the tokens'
7474         spelling location when macro location tracking is on.
7475
7476
7477 2011-10-08  Andi Kleen  <ak@linux.intel.com>
7478
7479         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
7480
7481 2011-10-13  Andi Kleen  <ak@linux.intel.com>
7482
7483         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
7484
7485 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
7486
7487         PR tree-optimization/50727
7488         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
7489         DEF_STMT to the list of statements to be replaced by the
7490         pattern statements.
7491
7492 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7493
7494         PR rtl-optimization/50615
7495         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
7496
7497 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
7498
7499         PR tree-optimization/50596
7500         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
7501         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
7502         vect_recog_bool_pattern.
7503         (check_bool_pattern, adjust_bool_pattern_cast,
7504         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
7505
7506 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
7507
7508         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
7509         treat the first load of the node as the first element in its
7510         interleaving chain.
7511         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
7512         necessary and possible.
7513         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
7514         in basic blocks.  Keep all the loads for further permutation check.
7515         Use the new argument to determine if there is a permutation.  Update
7516         the recursive calls.
7517         (vect_supported_load_permutation_p): Allow subchains of interleaving
7518         chains in basic block vectorization.
7519         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
7520         Check load permutation based on the new parameter.
7521         (vect_schedule_slp_instance): Don't start from the first element in
7522         interleaving chain unless the loads are permuted.
7523
7524 2011-10-15  Jan Hubicka  <jh@suse.cz>
7525
7526         PR target/48668
7527         PR target/50689
7528         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
7529         after function body.
7530
7531 2011-10-15  Richard Henderson  <rth@redhat.com>
7532
7533         * tree-vect-slp.c: Include langhooks.h.
7534         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
7535         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
7536         mask creation for VEC_PERM_EXPR.
7537         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
7538         not the builtin.
7539         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
7540         * Makefile.in (tree-vect-slp.o): Update dependency.
7541         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
7542
7543 2011-10-15  Alan Modra  <amodra@gmail.com>
7544
7545         PR bootstrap/50738
7546         * ifcvt.c (dead_or_predicable): Revert accidental commit with
7547         HAVE_simple_return test.
7548
7549 2011-10-15  Alan Modra  <amodra@gmail.com>
7550
7551         * ifcvt.c (dead_or_predicable): Disable if-conversion when
7552         doing so is likely to kill a shrink-wrapping opportunity.
7553
7554         PR rtl-optimization/49941
7555         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
7556
7557         * rtl.h (set_return_jump_label): Declare.
7558         * function.c (set_return_jump_label): New function, extracted..
7559         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
7560         another instance to set return jump_label.
7561         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
7562         * reorg.c (find_end_label): Likewise.
7563
7564 2011-10-14  David S. Miller  <davem@davemloft.net>
7565
7566         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
7567         with a more complete cpp test.
7568         * config/sparc/linux64.h: Likewise.
7569         * config/sparc/linux.h: Likewise.
7570         * config/sparc/sparc.opt (sparc_debug): New target variable.
7571         (mdebug): New target option.
7572         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
7573         TARGET_DEBUG_OPTIONS): New defines.
7574         * config/sparc/sparc.c (debug_target_flag_bits,
7575         debug_target_flags): New functions.
7576         (sparc_option_override): Add name strings back to cpu_table[].
7577         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
7578         out the target flags before and after override processing as well
7579         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
7580         cpu is at least v9.
7581
7582 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
7583
7584         PR target/49263
7585         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
7586         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
7587         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
7588         and instruction commutative.
7589         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
7590         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
7591         tstsi_t_zero_extract_subreg_xor_little,
7592         tstsi_t_zero_extract_subreg_xor_big): New insns.
7593         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
7594         asm output.
7595         (*andsi_compact): Reorder alternatives so that K08 is considered first.
7596
7597 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
7598
7599         PR target/50354
7600         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
7601         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
7602
7603 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
7604
7605         * invoke.texi (AVR Options): Avoid \leq{}.
7606
7607 2011-10-14  Kai Tietz  <ktietz@redhat.com>
7608
7609         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
7610         transformation the operands have compatible types.
7611
7612 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
7613
7614         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
7615         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
7616         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
7617         mode iterator and any_extend code iterator.
7618         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
7619         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
7620         also for TARGET_SSE4_1 using pmuldq insn.
7621         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
7622         (sse2_sse4_1): New code attr.
7623         (udot_prodv4si): Macroize using any_extend code iterator.
7624         (<s>dot_prodv8si): New expander.
7625
7626 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
7627
7628         * config/i386/i386.c (atom_cost): Changed cost for loading
7629         QImode using movzbl.
7630
7631 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7632
7633         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
7634         change on October 11th, 2011.
7635
7636 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
7637
7638         * config/i386/sse.md (vec_interleave_high<mode>,
7639         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
7640         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
7641         (ix86_expand_vec_perm_builtin_1): Call it.
7642
7643 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
7644
7645         Fix thinko from r179765
7646         * config/avr/avr.c (avr_option_override): Don't override
7647         flag_omit_frame_pointer if not actually needed.
7648
7649 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
7650
7651         PR target/46278
7652         * doc/invoke.texi (AVR Options): Document -mstrict-X.
7653
7654         * config/avr/avr.opt (-mstrict-X): New option.
7655         (avr_strict_X): New variable reflecting -mstrict-X.
7656         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
7657         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
7658         (avr_legitimate_address_p): Pass outer_code to
7659         avr_reg_ok_for_addr_p and use that function in case PLUS.
7660         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
7661         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
7662         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
7663
7664 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
7665
7666         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
7667         of VI_128.
7668
7669         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
7670         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
7671         Use <sseinsnmode> instead of TI in mode attr.
7672
7673 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
7674
7675         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
7676         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
7677         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
7678         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
7679
7680 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
7681
7682         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
7683         (arm_output_strex): Support strexd.
7684         (arm_output_it): New helper to output it in Thumb2 mode only.
7685         (arm_output_sync_loop): Support DI mode.  Change comment to
7686         not support const_int.
7687         (arm_expand_sync): Support DI mode.
7688         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
7689         and LDREXD.
7690         * config/arm/iterators.md (NARROW): move from sync.md.
7691         (QHSD): New iterator for all current ARM integer modes.
7692         (SIDI): New iterator for SI and DI modes only.
7693         * config/arm/sync.md (sync_predtab): New mode_attr.
7694         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
7695         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
7696         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
7697         (sync_nandsi): Fold into sync_nand<mode>.
7698         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
7699         (sync_new_nandsi): Fold into sync_new_nand<mode>.
7700         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
7701         (sync_old_nandsi): Fold into sync_old_nand<mode>.
7702         (sync_compare_and_swap<mode>): Support SI & DI.
7703         (sync_lock_test_and_set<mode>): Likewise.
7704         (sync_<sync_optab><mode>): Likewise.
7705         (sync_nand<mode>): Likewise.
7706         (sync_new_<sync_optab><mode>): Likewise.
7707         (sync_new_nand<mode>): Likewise.
7708         (sync_old_<sync_optab><mode>): Likewise.
7709         (sync_old_nand<mode>): Likewise.
7710         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
7711         (arm_sync_lock_test_and_setsi): Likewise.
7712         (arm_sync_new_<sync_optab>si): Likewise.
7713         (arm_sync_new_nandsi): Likewise.
7714         (arm_sync_old_<sync_optab>si): Likewise.
7715         (arm_sync_old_nandsi): Likewise.
7716         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
7717         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
7718         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
7719         (arm_sync_new_nand<mode> NARROW): Likewise.
7720         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
7721         (arm_sync_old_nand<mode> NARROW): Likewise.
7722
7723 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
7724
7725         PR target/48126
7726         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
7727
7728 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
7729
7730         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
7731
7732 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
7733
7734         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
7735
7736 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
7737
7738         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
7739         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
7740
7741 2011-10-14  Richard Guenther  <rguenther@suse.de>
7742
7743         PR tree-optimization/50723
7744         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
7745
7746 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7747
7748         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
7749         objc/objc-map.c.
7750
7751 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
7752
7753         PR c++/17212
7754         * doc/invoke.texi ([Wformat-zero-length]): Update.
7755
7756 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7757
7758         PR bootstrap/50699
7759         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
7760         build for powerpc targets.  (darwin_patch_builtins): Only build for
7761         powerpc targets.
7762
7763 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
7764
7765         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
7766         (avx_cvtdq2pd256_2): ... this.
7767         (sseunpackfltmode): New mode attr.
7768         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
7769         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
7770         using VI2_AVX2 iterator.
7771         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
7772
7773 2011-10-13  David S. Miller  <davem@davemloft.net>
7774
7775         * config/sparc/sparc.md (plusminus): New code iterator.
7776         (plusminus_insn): New code attr.
7777         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
7778         using plusminus and plusminus_insn.
7779         (fpadd64_vis, fpsub64_vis): Likewise.
7780
7781 2011-10-13  Richard Henderson  <rth@redhat.com>
7782
7783         * doc/md.texi (vec_perm): Document fallback to byte permutation.
7784         * genopinit.c (optabs): Add vec_perm_const.
7785         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
7786         Reject non-vector modes.  Allow fallback to byte permutation.
7787         (expand_vec_perm_expr_1): Split out from ...
7788         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
7789         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
7790         * tree-vect-generic.c (lower_vec_perm): Update for name change.
7791
7792 2011-10-13  Richard Henderson  <rth@redhat.com>
7793
7794         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
7795
7796         * config/rs6000/spu.md (vec_permv16qi): New pattern.
7797
7798         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
7799         * config/i386/i386-protos.h: Update.
7800         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
7801         (vec_perm_const<VEC_PERM_CONST>): New expander.
7802
7803         * optabs.c (expand_vector_broadcast): New.
7804         (expand_binop): Expand scalar shifts of vectors to vector shifts
7805         of vectors, if the former isn't supported.
7806         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
7807         here; always simplify to scalar shift of vector if possible.
7808
7809         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
7810         test for vector splat.
7811
7812 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
7813
7814         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
7815
7816 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
7817             Richard Guenther  <rguenther@suse.de>
7818
7819         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
7820         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
7821
7822 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
7823
7824         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
7825         * config/i386/i386.c (ix86_build_const_vector): Handle
7826         also V32QI, V16QI, V16HI and V8HI modes.
7827         (emit_reduc_half): New function.
7828         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
7829         Use emit_reduc_half helper function.
7830
7831 2011-10-13  Lawrence Crowl  <crowl@google.com>
7832             Diego Novillo  <dnovillo@google.com>
7833
7834         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
7835         (input_function): ... here.
7836         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
7837         (output_function): ... here.
7838
7839 2011-10-13  Gabriel Charette  <gchare@google.com>
7840             Diego Novillo  <dnovillo@google.com>
7841
7842         * streamer-hooks.h (struct streamer_hooks): Add hooks
7843         input_location and output_location.
7844         * lto-streamer-in.c (lto_input_location): Use
7845         streamer_hooks.input_location, if set.
7846         * lto-streamer-out.c (lto_output_location): Use
7847         streamer_hooks.output_location, if set.
7848
7849 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
7850
7851         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
7852         * config/sparc/sparc.opt (mfix-at697f): New option.
7853         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7854         (sparc_reorg): New function.
7855
7856 2011-10-13  Richard Guenther  <rguenther@suse.de>
7857
7858         PR tree-optimization/50712
7859         * ipa-split.c (split_function): Always re-gimplify parameters
7860         when they are not gimple vals before passing them.  Properly
7861         check for type compatibility.
7862
7863 2011-10-13  Tom de Vries  <tom@codesourcery.com>
7864
7865         * function.c (gimplify_parameters): Set number of arguments of call to
7866         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
7867
7868 2011-10-13  Tom de Vries  <tom@codesourcery.com>
7869
7870         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
7871         for static const strings.
7872         * varasm.c (build_constant_desc): Generate the memory location of the
7873         constant using gen_const_mem.
7874
7875 2011-10-13  Richard Guenther  <rguenther@suse.de>
7876
7877         PR tree-optimization/50698
7878         * tree-data-ref.c (split_constant_offset_1): Also process
7879         offsets of &MEM.
7880
7881 2011-10-12  David S. Miller  <davem@davemloft.net>
7882
7883         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
7884         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
7885         unspecs.
7886         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
7887         of a vec_concat.
7888         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
7889         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
7890         Reimplement as unspecs and remove inaccurate comments.
7891         (vis3_shift_patname): New code attr.
7892         (<vis3_shift_insn><vbits>_vis): Rename to
7893         "v<vis3_shift_patname><mode>3".
7894         (vis3_addsub_ss_patname): New code attr.
7895         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
7896         "<vis3_addsub_ss_patname><mode>3".
7897         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
7898         accommodate pattern name changes.
7899
7900         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
7901         to zero when assembler lacks support for such instructions.
7902         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
7903         and MASK_FMAF in defaults when assembler lacks necessary support.
7904
7905 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
7906
7907         * config/i386/sse.md (vec_unpacks_lo_<mode>,
7908         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
7909         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
7910         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
7911         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
7912
7913         * config/i386/sse.md (vec_avx2): New mode_attr.
7914         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
7915         (mul<mode>3): ... this.
7916
7917         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
7918         * config/i386/i386.c (ix86_expand_vec_perm): Handle
7919         V16QImode and V32QImode for TARGET_AVX2.
7920         (MAX_VECT_LEN): Increase to 32.
7921         (expand_vec_perm_blend): Add support for 32-byte integer
7922         vectors with TARGET_AVX2.
7923         (valid_perm_using_mode_p): New function.
7924         (expand_vec_perm_pshufb): Add support for 32-byte integer
7925         vectors with TARGET_AVX2.
7926         (expand_vec_perm_vpshufb2_vpermq): New function.
7927         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
7928         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
7929         with TARGET_AVX2.
7930         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
7931         and expand_vec_perm_vpshufb2_vpermq_even_odd.
7932         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
7933         32-byte integer vector modes.
7934         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
7935         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
7936         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
7937         4 new operands.
7938         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
7939         match_dup, instead add 4 new operands and require they have
7940         right cross-lane values.
7941         (avx2_permv4di): Change into define_expand.
7942         (avx2_permv4di_1): New instruction.
7943         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
7944         for "xm" constrained operand.
7945         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
7946
7947         * config/i386/sse.md (avx2_gathersi<mode>,
7948         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
7949         match_scratch, change memory_operand to register_operand,
7950         add (mem:BLK (scratch)) use.
7951         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
7952         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
7953         add earlyclobber to the output operand and match_scratch,
7954         add (mem:BLK (scratch)) use, change the other mem to match_operand.
7955         Use %p6 instead of %c6 in the pattern.
7956         * config/i386/i386.c (ix86_expand_builtin): Adjust for
7957         operand 2 being a Pmode register_operand instead of memory_operand.
7958
7959 2011-10-12  Kai Tietz  <ktietz@redhat.com>
7960
7961         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
7962
7963 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
7964
7965         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
7966
7967 2011-10-12  Richard Guenther  <rguenther@suse.de>
7968
7969         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
7970         of the first store we visit in a basic-block.
7971         (get_continuation_for_phi): Search for a candidate VUSE that
7972         might dominates all others.  Do pairwise disambiguation against
7973         that candidate.
7974
7975 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
7976
7977         PR tree-optimization/50189
7978         * tree-vrp.c (extract_range_from_assert): Use the type of
7979         the variable, not the limit.
7980
7981 2011-10-12  Richard Guenther  <rguenther@suse.de>
7982
7983         PR tree-optimization/50700
7984         * tree-object-size.c (addr_object_size): Simplify and treat
7985         MEM_REF bases consistently.
7986
7987 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
7988
7989         * function.c (prepare_shrink_wrap, bb_active_p): New function.
7990         (thread_prologue_and_epilogue_insns): Use bb_active_p.  Call
7991         prepare_shrink_wrap, then recompute bb_active_p for the last block.
7992
7993 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
7994
7995         PR c/50565
7996         * convert.c (convert_to_integer): Do not narrow operands of
7997         pointer subtraction.
7998
7999 2011-10-12  Nick Clifton  <nickc@redhat.com>
8000
8001         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
8002         emit a .eabi_attribute assembler directive, possibly with a
8003         comment attached.
8004         * config/arm/arm.c (arm_file_start): Use the new macro.
8005         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
8006
8007 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
8008
8009         PR target/49939
8010         * config/avr/avr.md (*movqi): Rename to movqi_insn.
8011         (*call_insn): Rename to call_insn.
8012         (*call_value_insn): Rename to call_value_insn.
8013         * config/avr/avr.c (avr_2word_insn_p): New static function.
8014         (jump_over_one_insn_p): Use it.
8015
8016 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
8017
8018         * expr.h (copy_blkmode_to_reg): Declare.
8019         * expr.c (copy_blkmode_to_reg): New function.
8020         (expand_assignment): Don't expand register RESULT_DECLs before
8021         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
8022         RESULT_DECL register.
8023         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
8024         * stmt.c (expand_return): Move BLKmode-to-register code into
8025         copy_blkmode_to_reg.
8026
8027 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
8028
8029         PR target/49965
8030         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
8031         (mov<F:mode>cc): Likewise.
8032
8033 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8034
8035         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
8036
8037 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8038
8039         * tree.h (built_in_decls): Delete old interface with two parallel
8040         arrays to hold standard builtin declarations, and replace it with
8041         a function based interface that can support creating builtins on
8042         the fly in the future.  Change all uses, and poison the old
8043         names.  Make sure 0 is not a legitimate builtin index.
8044         (implicit_built_in_decls): Ditto.
8045         (built_in_info): Ditto.
8046         (BUILTIN_VALID_P): Ditto.
8047         (builtin_decl_explicit): Ditto.
8048         (builtin_decl_implicit): Ditto.
8049         (set_builtin_decl): Ditto.
8050         (set_builtin_decl_implicit_p): Ditto.
8051         (builtin_decl_explicit_p): Ditto.
8052         (builtin_decl_implicit_p): Ditto.
8053         * tree-complex.c (expand_complex_libcall): Ditto.
8054         * tree-loop-distribution.c (generate_memset_zero): Ditto.
8055         * tree-ssa-strlen.c (get_string_length): Ditto.
8056         (handle_builtin_strcpy): Ditto.
8057         (handle_builtin_strcat): Ditto.
8058         * tree.c (iterative_hash_expr): Ditto.
8059         (local_define_builtin): Ditto.
8060         (build_common_builtin_nodes): Ditto.
8061         * builtins.c (built_in_decls): Ditto.
8062         (implicit_built_in_decls): Ditto.
8063         (built_in_info): Ditto
8064         (expand_builtin_classify_type): Ditto.
8065         (mathfn_built_in_1): Ditto.
8066         (expand_builtin_cexpi): Ditto.
8067         (expand_builtin_mempcpy_args): Ditto.
8068         (expand_builtin_stpcpy): Ditto.
8069         (gimplify_va_arg_expr): Ditto.
8070         (expand_builtin_sync_operation): Ditto.
8071         (build_builtin_expect_predicate): Ditto.
8072         (fold_builtin_memory_op): Ditto.
8073         (fold_builtin_strcpy): Ditto.
8074         (fold_builtin_stpcpy): Ditto.
8075         (fold_builtin_strncpy): Ditto.
8076         (fold_builtin_interclass_mathfn): Ditto.
8077         (fold_builtin_classify): Ditto.
8078         (fold_builtin_2): Ditto.
8079         (fold_builtin_strstr): Ditto.
8080         (fold_builtin_strrchr): Ditto.
8081         (fold_builtin_strpbrk): Ditto.
8082         (fold_builtin_strcat): Ditto.
8083         (fold_builtin_strncat): Ditto.
8084         (fold_builtin_strcspn): Ditto.
8085         (fold_builtin_fputs): Ditto.
8086         (fold_builtin_sprintf): Ditto.
8087         (fold_builtin_snprintf): Ditto.
8088         (expand_builtin_memory_chk): Ditto.
8089         (fold_builtin_memory_chk): Ditto.
8090         (fold_builtin_stxcpy_chk): Ditto.
8091         (fold_builtin_strncpy_chk): Ditto.
8092         (fold_builtin_strcat_chk): Ditto.
8093         (fold_builtin_strncat_chk): Ditto.
8094         (fold_builtin_sprintf_chk_1): Ditto.
8095         (fold_builtin_snprintf_chk_1): Ditto.
8096         (fold_builtin_printf): Ditto.
8097         (fold_builtin_fprintf): Ditto.
8098         (fold_call_stmt): Ditto.
8099         (set_builtin_user_assembler_name): Ditto.
8100         * tree-emutls.c (emutls_common_1): Ditto.
8101         * omp-low.c (scan_omp): Ditto.
8102         (lower_rec_input_clauses): Ditto.
8103         (lower_reduction_clauses): Ditto.
8104         (expand_parallel_call): Ditto.
8105         (expand_task_call): Ditto.
8106         (maybe_catch_exception): Ditto.
8107         (optimize_omp_library_calls): Ditto.
8108         (expand_omp_for_generic): Ditto.
8109         (expand_omp_for_static_nochunk): Ditto.
8110         (expand_omp_for_static_chunk): Ditto.
8111         (expand_omp_sections): Ditto.
8112         (expand_omp_atomic_fetch_op): Ditto.
8113         (expand_omp_atomic_pipeline): Ditto.
8114         (expand_omp_atomic_mutex): Ditto.
8115         (lower_omp_single_simple): Ditto.
8116         (lower_omp_single_copy): Ditto.
8117         (lower_omp_master): Ditto.
8118         (lower_omp_ordered): Ditto.
8119         (lower_omp_critical): Ditto.
8120         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
8121         * builtins.c (DEF_BUILTIN_STUB): Ditto.
8122         (BUILT_IN_NONE): Ditto.
8123         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
8124         * gimple-low.c (lower_function_body): Ditto.
8125         (lower_builtin_setjmp): Ditto.
8126         * c-decl.c (merge_decls): Ditto.
8127         * tree-eh.c (lower_resx): Ditto.
8128         (lower_resx): Ditto.
8129         (lower_eh_dispatch): Ditto.
8130         * function (gimplify_parameters): Ditto.
8131         * c-typeck.c (build_function_call_vec): Ditto.
8132         * gimplify.c (build_stack_save_restore): Ditto.
8133         (gimplify_vla_decl): Ditto.
8134         (gimplify_modify_expr_to_memcpy): Ditto.
8135         (gimplify_modify_expr_to_memset): Ditto.
8136         (gimplify_variable_sized_compare): Ditto.
8137         (gimplify_function_tree): Ditto.
8138         * calls.c (emit_call_1): Ditto.
8139         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
8140         * tree-nested.c (convert_nl_goto_reference): Ditto.
8141         (convert_tramp_reference_op): Ditto.
8142         (finalize_nesting_tree_1): Ditto.
8143         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
8144         (tree_ssa_prefetch_arrays): Ditto.
8145         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
8146         * system.h (built_in_decls): Ditto.
8147         (implicit_built_in_decls): Ditto.
8148         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
8149         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
8150         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
8151         (ix86_veclibabi_svml): Ditto.
8152         (ix86_veclibabi_acml): Ditto.
8153         * config/vms/vms.c (vms_patch_builtins): Ditto.
8154         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
8155         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
8156         (rs6000_builtin_vectorized_libmass): Ditto.
8157         (rs6000_init_builtins): Ditto.
8158         * config/darwin.c (darwin_override_options): Ditto.
8159         (darwin_patch_builtin): Ditto.
8160         (darwin_rename_builtins): Ditto.
8161         * config/pa/pa.c (pa_init_builtins): Ditto.
8162
8163 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8164
8165         * tree.h (copy_ref_info): Expose existing function.
8166         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
8167         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
8168
8169 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
8170
8171         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
8172         prototype.
8173         (avr_regno_mode_code_ok_for_base_p): New prototype.
8174         * config/avr/avr.h (BASE_REG_CLASS): Remove.
8175         (REGNO_OK_FOR_BASE_P): Remove.
8176         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
8177         (REG_OK_FOR_BASE_STRICT_P): Remove.
8178         (MODE_CODE_BASE_REG_CLASS): New define.
8179         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
8180         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
8181         (avr_regno_mode_code_ok_for_base_p): New function.
8182         (avr_reg_ok_for_addr_p): New static function.
8183         (avr_legitimate_address_p): Use it.  Beautify.
8184
8185 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
8186
8187         PR target/50447
8188         * config/avr/avr.md (cc): Add out_plus attribute alternative.
8189         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
8190         avr_out_plus for all CONST_INT addends.
8191         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
8192         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
8193         CC_OUT_PLUS.
8194         (avr_out_plus_1): Change prototype and report effect on cc0.
8195         (avr_out_plus): Ditto.
8196         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
8197
8198 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8199
8200         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
8201         the extra break.
8202
8203 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
8204
8205         * doc/invoke.texi: Document new warning.
8206         * common.opt (Wvector-operation-performance): Define new warning.
8207         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
8208         vector operation.
8209         (exapnd_vector_parallel): Warn about expanded vector operation.
8210         (lower_vec_shuffle): Warn about expanded vector operation.
8211         * c-typeck.c (c_build_vec_perm_expr): Store correct location
8212         when creating VEC_PERM_EXPR.
8213
8214 2011-10-11  Richard Guenther  <rguenther@suse.de>
8215
8216         PR tree-optimization/50204
8217         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
8218         two argument handling from ...
8219         (get_continuation_for_phi): ... here.  Handle arbitrary number
8220         of PHI args.
8221
8222 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
8223
8224         * modulo-sched.c: Fix comment typo.  Mention the possibility
8225         of using scheduling windows of II+1 cycles.
8226
8227 2011-10-11  Tristan Gingold  <gingold@adacore.com>
8228
8229         * doc/invoke.texi (C Dialect Options): Document
8230         -fallow-parameterless-variadic-functions.
8231         * c-parser.c (c_parser_parms_list_declarator): Handle it.
8232
8233 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
8234
8235         * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
8236         to 0 if frame pointer is needed for unwinding.
8237
8238 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
8239
8240         PR bootstrap/50665
8241         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
8242         optab_index to enum direct_optab_index.
8243         (vec_perm_optab): Update.
8244
8245 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
8246
8247         * config/cris/cris.c (cris_preferred_reload_class): New function.
8248         (TARGET_PREFERRED_RELOAD_CLASS): Define.
8249         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
8250
8251 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
8252
8253         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
8254         !AVR_HAVE_JMP_CALL.
8255         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
8256         (*tablejump_enh, *tablejump): Remove insns.
8257         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
8258         EIJMP for indirect jump.  Use LPM Z+ where available.
8259
8260 2011-10-10  Richard Henderson  <rth@redhat.com>
8261
8262         * doc/md.texi (vec_perm_const): Fix typo in cindex.
8263
8264 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
8265             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
8266
8267         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
8268
8269 2011-10-10  Richard Guenther  <rguenther@suse.de>
8270
8271         PR middle-end/50389
8272         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
8273         mark symbols for renaming.  Append the VUSE to all statements
8274         that possibly can have one.
8275
8276 2011-10-10  Richard Guenther  <rguenther@suse.de>
8277
8278         * ipa-split.c (pass_split_functions): Add verification TODOs.
8279         (pass_feedback_split_functions): Likewise.
8280
8281 2011-10-10  Richard Guenther  <rguenther@suse.de>
8282
8283         PR middle-end/50195
8284         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
8285         only when optimizing.
8286
8287 2011-10-10  Nick Clifton  <nickc@redhat.com>
8288
8289         PR middle-end/49801
8290         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
8291         df_get_live_out instead of accessing the bitmaps directly.
8292         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
8293         df_live_add_problem and df_analyze.
8294
8295 2011-10-10  Michael Matz  <matz@suse.de>
8296
8297         PR middle-end/50638
8298         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
8299
8300 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
8301
8302         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
8303         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
8304         (node_sched_params): Remove first_reg_move and nreg_moves.
8305         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
8306         (update_node_sched_params): Move up file.
8307         (print_node_sched_params): Print the stage.  Don't dump info related
8308         to first_reg_move and nreg_moves.
8309         (set_columns_for_row): New function.
8310         (set_columns_for_ps): Move up file and use set_columns_for_row.
8311         (schedule_reg_move): New function.
8312         (schedule_reg_moves): Call extend_node_sched_params and
8313         schedule_reg_move.  Extend size of uses bitmap.  Initialize
8314         num_consecutive_stages.  Return false if a move could not be
8315         scheduled.
8316         (apply_reg_moves): Don't emit moves here.
8317         (permute_partial_schedule): Handle register moves.
8318         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
8319         to the same stage-count test as ddg nodes.
8320         (generate_prolog_epilog): Update calls accordingly.
8321         (sms_schedule): Allow move-scheduling to add a new first stage.
8322
8323 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
8324
8325         * modulo-sched.c (ps_insn): Adjust comment.
8326         (ps_reg_move_info): New structure.
8327         (partial_schedule): Add reg_moves field.
8328         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
8329         (node_sched_params): Turn first_reg_move into an identifier.
8330         (ps_reg_move): New function.
8331         (ps_rtl_insn): Cope with register moves.
8332         (ps_first_note): Adjust comment and assert that the instruction
8333         isn't a register move.
8334         (node_sched_params): Replace with...
8335         (node_sched_param_vec): ...this vector.
8336         (set_node_sched_params): Adjust accordingly.
8337         (print_node_sched_params): Take a partial schedule instead of a ddg.
8338         Use ps_rtl_insn and ps_reg_move.
8339         (generate_reg_moves): Rename to...
8340         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
8341         move in the partial schedule, but don't emit it here.  Don't perform
8342         register substitutions here either.
8343         (apply_reg_moves): New function.
8344         (duplicate_insns_of_cycles): Use register indices directly,
8345         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
8346         (sms_schedule): Call schedule_reg_moves before committing to
8347         a partial schedule.  Try the next ii if the schedule fails.
8348         Use apply_reg_moves instead of generate_reg_moves.  Adjust
8349         call to print_node_sched_params.  Free node_sched_param_vec
8350         instead of node_sched_params.
8351         (create_partial_schedule): Initialize reg_moves.
8352         (free_partial_schedule): Free reg_moves.
8353
8354 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
8355
8356         * modulo-sched.c (ps_insn): Replace node field with an identifier.
8357         (SCHED_ASAP): Replace with..
8358         (NODE_ASAP): ...this macro.
8359         (SCHED_PARAMS): New macro.
8360         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
8361         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
8362         (node_sched_params): Remove asap.
8363         (ps_rtl_insn, ps_first_note): New functions.
8364         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
8365         asap values.
8366         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
8367         (generate_reg_moves): Pass ids to the SCHED_* macros.
8368         (update_node_sched_params): Take a ps insn identifier rather than
8369         a node as parameter.  Use ps_rtl_insn.
8370         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
8371         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
8372         (optimize_sc): Update for above field and SCHED_* macro changes.
8373         Update calls to try_scheduling_node_in_cycle and
8374         update_node_sched_params.
8375         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
8376         macro changes.  Use ps_rtl_insn and ps_first_note.
8377         (sms_schedule): Pass ids to the SCHED_* macros.
8378         (get_sched_window): Adjust for above field and SCHED_* macro changes.
8379         Use NODE_ASAP instead of SCHED_ASAP.
8380         (try_scheduling_node_in_cycle): Remove node parameter.  Update
8381         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
8382         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
8383         (ps_insert_empty_row): Adjust for above field changes.
8384         (compute_split_row): Use ids rather than nodes.
8385         (verify_partial_schedule): Adjust for above field changes.
8386         (print_partial_schedule): Use ps_rtl_insn.
8387         (create_ps_insn): Take an id rather than a node.
8388         (ps_insn_find_column): Adjust for above field changes.
8389         Use ps_rtl_insn.
8390         (ps_insn_advance_column): Adjust for above field changes.
8391         (add_node_to_ps): Remove node parameter.  Update call to
8392         create_ps_insn.
8393         (ps_has_conflicts): Use ps_rtl_insn.
8394         (ps_add_node_check_conflicts): Replace node parameter than an id.
8395
8396 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
8397
8398         * modulo-sched.c (undo_replace_buff_elem): Delete.
8399         (generate_reg_moves): Don't build and return an undo list.
8400         (free_undo_replace_buff): Delete.
8401         (sms_schedule): Adjust call to generate_reg_moves.
8402         Don't call free_undo_replace_buff.
8403
8404 2011-10-10  Matthias Klose <doko@ubuntu.com>
8405
8406         * common/config/m32c: Remove empty directory.
8407
8408 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
8409
8410         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
8411
8412 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
8413
8414         PR target/50652
8415         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
8416         atmega164a to 0x100.
8417
8418 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
8419
8420         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
8421         the replacement if the conversion to the LHS type is not useless.
8422
8423 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
8424
8425         PR tree-optimization/50635
8426         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
8427         DEF_STMT to the list of statements to be replaced by the
8428         pattern statements.
8429         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
8430
8431 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
8432
8433         * system.h: Commit forgotten hunk in previous patch.
8434         (OUTPUT_ADDR_CONST_EXTRA): Poison.
8435
8436 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
8437
8438         PR libobjc/50428
8439         * doc/objc.texi (Garbage Collection): Updated example to protect
8440         +initialize against execution in subclasses.
8441
8442 2011-10-07  Richard Henderson  <rth@redhat.com>
8443
8444         * doc/extend.texi (__builtin_shuffle): Improve the description to
8445         include the modulus of the selector.  Mention OpenCL.
8446         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
8447
8448         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
8449         * genopinit.c (optabs): Rename vshuffle to vec_perm.
8450         * c-typeck.c (c_build_vec_perm_expr): Rename from
8451         c_build_vec_shuffle_expr.  Update for name changes.
8452         * optabs.c (expand_vec_perm_expr_p): Rename from
8453         expand_vec_shuffle_expr_p.
8454         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
8455         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
8456         (vec_perm_optab): Rename from vshuffle_optab.
8457         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
8458         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
8459         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
8460
8461         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
8462         ix86_expand_vshuffle.
8463         * config/i386/i386-protos.h: Update.
8464         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
8465         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
8466
8467 2011-10-07  Richard Henderson  <rth@redhat.com>
8468
8469         * config/i386/predicates.md (avx2_pblendw_operand): New.
8470         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
8471         (avx2_pblendw, *avx2_pblendw): New expander and insn.
8472
8473 2011-10-07  Richard Henderson  <rth@redhat.com>
8474
8475         * config/i386/i386.c (bdesc_args): Update code for
8476         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
8477         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
8478         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
8479         * config/i386/sse.md (mode iterator V16): Add V2TI.
8480         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
8481         (mode attr ssse3_avx2): Add V2TI.
8482         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
8483
8484 2011-10-07  David S. Miller  <davem@davemloft.net>
8485
8486         PR 50655
8487         * configure.ac: Add .register directives to VIS3 test.
8488         * configure: Regenerate.
8489
8490 2011-10-07  Richard Henderson  <rth@redhat.com>
8491
8492         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
8493
8494 2011-10-07  Richard Henderson  <rth@redhat.com>
8495
8496         PR 49752
8497         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
8498
8499 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
8500
8501         * config/arm/predicates.md (shift_amount_operand): Remove constant
8502         range check.
8503         (shift_operator): Check range of constants for all shift operators.
8504
8505 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8506
8507         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
8508         Load GOT pointer for non-pic builds.
8509         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
8510         (s390_emit_call): Likewise.
8511
8512 2011-10-07  Tom de Vries  <tom@codesourcery.com>
8513
8514         PR middle-end/50527
8515         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
8516         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
8517         throw.
8518         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
8519         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
8520         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8521         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8522         * tree-ssa-ccp.c (evaluate_stmt): Set align for
8523         BUILT_IN_ALLOCA_WITH_ALIGN.
8524         (fold_builtin_alloca_for_var): Rename to ...
8525         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
8526         BUILT_IN_ALLOCA_WITH_ALIGN argument.
8527         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
8528         fold_builtin_alloca_with_align.
8529         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8530         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
8531         DEF_BUILTIN_STUB.
8532         * ipa-pure-const.c (special_builtin_state): Handle
8533         BUILT_IN_ALLOCA_WITH_ALIGN.
8534         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
8535         (call_may_clobber_ref_p_1): Same.
8536         * function.c (gimplify_parameters): Lower vla to
8537         BUILT_IN_ALLOCA_WITH_ALIGN.
8538         * gimplify.c (gimplify_vla_decl): Same.
8539         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8540         * tree-mudflap.c (mf_xform_statements): Same.
8541         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
8542         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
8543         * varasm.c (incorporeal_function_p): Same.
8544         * tree-object-size.c (alloc_object_size): Same.
8545         * gimple.c (gimple_build_call_from_tree): Same.
8546
8547 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
8548
8549         * function.c (frame_required_for_rtx): Remove function.
8550         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
8551         changed.  Compute a set of mentioned registers and compare against
8552         the new arg rather than calling frame_required_for_rtx.
8553         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
8554         reg set.  Convert the unconverted_simple_returns mechanism to store
8555         jump insns rather than their basic blocks.  Also check the
8556         orig_entry_edge destination for new blocks.
8557
8558 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
8559
8560         PR tree-optimization/50650
8561         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
8562         call vect_is_simple_cond here, instead fail if cond_expr isn't
8563         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
8564         for cond_expr's first operand.
8565         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
8566         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
8567
8568 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8569
8570         * config/s390/s390.md (DWH, dwh): New mode macros.
8571         ("umulsidi3"): Extend to support "umulditi3" as well.
8572
8573 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
8574             H.J. Lu  <hongjiu.lu@intel.com>
8575
8576         PR target/50603
8577         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
8578         integer PLUS RTX to a register to improve address combine.
8579
8580 2011-10-06  Richard Henderson  <rth@redhat.com>
8581
8582         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
8583         parameter; use it to decide whether to merge two notes.
8584         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
8585         for the deallocation case as well.
8586
8587 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
8588
8589         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
8590         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
8591         * doc/tm.texi: Regenerate.
8592         * target.def (output_addr_const_extra): Use
8593         hook_bool_FILEptr_rtx_false.
8594         * targhooks.c (default_asm_output_addr_const_extra): Remove.
8595         * targhooks.h (default_asm_output_addr_const_extra): Remove.
8596         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
8597         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
8598
8599 2011-10-06  David S. Miller  <davem@davemloft.net>
8600
8601         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
8602         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
8603         SI mode 64-bit code gen case explicitly zero-extend and truncate.
8604         (*popcount<mode>_sp64): Split up into...
8605         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
8606         SImode case use truncate.
8607         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
8608         subtract so the compiler can optimize it.
8609         (SIDI): Remove unused mode iterator.
8610
8611 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
8612
8613         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
8614         on the orig_entry_edge. Don't account for it in prologue_clobbered.
8615
8616 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
8617
8618         PR tree-optimization/50596
8619         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
8620         (NUM_PATTERNS): Change to 6.
8621         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
8622         function.
8623         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
8624         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
8625         if it already has one, and don't set STMT_VINFO_VECTYPE in it
8626         if it is already set.
8627         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
8628         COND_EXPR in pattern stmts.
8629         (vect_is_simple_cond): No longer static.
8630
8631 2001-10-06  Richard Henderson  <rth@redhat.com>
8632
8633         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
8634         * config/i386/sse.md (sseshuffint): Remove.
8635         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
8636         (VSHUFFLE_AVX2): New mode iterator.
8637         (vshuffle<mode>): Use it.
8638         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
8639
8640         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
8641         for vector_all_ones_operand.
8642         (ix86_expand_int_vcond): Distinguish between comparison mode
8643         and data mode.  Allow them to differ.
8644         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
8645
8646 2001-10-06  Richard Henderson  <rth@redhat.com>
8647
8648         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
8649         mask operand.  Tidy the code.
8650
8651 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
8652
8653         * tree-vect-patterns.c (vect_pattern_recog_1): Use
8654         vect_recog_func_ptr typedef for the first argument.
8655         (vect_pattern_recog): Rename vect_recog_func_ptr variable
8656         to vect_recog_func, use vect_recog_func_ptr typedef for it.
8657
8658         PR tree-optimization/49279
8659         * tree-ssa-structalias.c (find_func_aliases): Don't handle
8660         CAST_RESTRICT.
8661         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
8662         restrict propagation.
8663         * tree-ssa.c (useless_type_conversion_p): Don't return false
8664         if TYPE_RESTRICT differs.
8665
8666 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
8667
8668         * function.c (thread_prologue_and_epilogue_insns): Build a vector
8669         of unconverted simple return blocks rather than trying to
8670         recompute them later based on bb_flags bitmap tests.
8671
8672 2011-10-06  Michael Matz  <matz@suse.de>
8673
8674         * tree-flow.h (get_var_ann): Don't declare.
8675         * tree-flow-inline.h (get_var_ann): Remove.
8676         (set_is_used): Use var_ann, not get_var_ann.
8677         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
8678         * tree-profile.c (gimple_gen_edge_profiler): Call
8679         find_referenced_var_in.
8680         (gimple_gen_interval_profiler): Ditto.
8681         (gimple_gen_pow2_profiler): Ditto.
8682         (gimple_gen_one_value_profiler): Ditto.
8683         (gimple_gen_average_profiler): Ditto.
8684         (gimple_gen_ior_profiler): Ditto.
8685         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
8686         (gimple_gen_ic_func_profiler): Call add_referenced_var.
8687         * tree-mudflap.c (execute_mudflap_function_ops): Call
8688         add_referenced_var.
8689
8690 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
8691
8692         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
8693         don't set SSA_NAME_DEF_STMT that has been already set by
8694         gimple_build_assign_with_ops.
8695         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
8696         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
8697         Likewise.
8698
8699         * tree.h (avoid_folding_inline_builtin): New prototype.
8700         * builtins.c (avoid_folding_inline_builtin): No longer static.
8701         * gimple-fold.c (gimple_fold_builtin): Give up if
8702         avoid_folding_inline_builtin returns true.
8703
8704 2011-10-06  Richard Guenther  <rguenther@suse.de>
8705
8706         * tree-vect-generic.c (vector_element): Look at previous
8707         generated results.
8708
8709 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
8710
8711         PR target/39950
8712         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
8713         __powerpc__, __PPC__, __unix__.
8714
8715 2011-10-06  Michael Matz  <matz@suse.de>
8716
8717         * i386/i386.opt (recip_mask, recip_mask_explicit,
8718         x_recip_mask_explicit): New variables and cl_target member.
8719         (mrecip=): New option.
8720         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
8721         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
8722         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
8723         TARGET_RECIP_VEC_SQRT): New tests.
8724         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
8725         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
8726         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
8727         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
8728         * i386/i386.c (ix86_option_override_internal): Set recip_mask
8729         for -mrecip and -mrecip=options.
8730         (ix86_function_specific_save): Save recip_mask_explicit.
8731         (ix86_function_specific_restore): Restore recip_mask_explicit.
8732
8733         * doc/invoke.texi (ix86 Options): Document the new option.
8734
8735 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
8736
8737         PR target/49049
8738         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
8739
8740 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
8741
8742         PR target/50305
8743         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
8744         output of a previous pass through legitimize_reload_address.
8745         Do not attempt to optimize addresses if the base register is
8746         equivalent to a constant.
8747
8748 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8749
8750         * function.c (thread_prologue_and_epilogue_insns): Mark
8751         last_bb_active as possibly unused.  It is unused for targets which
8752         do neither have "return" nor "simple_return" expanders.
8753
8754 2011-10-06  Richard Guenther  <rguenther@suse.de>
8755
8756         * fold-const.c (fold_ternary_loc): Also fold non-constant
8757         vector CONSTRUCTORs.  Make more efficient.
8758         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
8759         (cprop_into_stmt): Don't propagate into virtual operands.
8760         (optimize_stmt): Really dump original statement.
8761
8762 2011-10-06  Nick Clifton  <nickc@redhat.com>
8763
8764         * config/rx/rx.md (smin3): Revert previous delta.
8765
8766 2011-10-06  Richard Guenther  <rguenther@suse.de>
8767
8768         PR tree-optimization/38884
8769         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
8770         reads from aggregate SSA names.
8771
8772 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
8773
8774         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
8775         argument, truncate it at the beginning instead of allocating there
8776         and freeing at the end.
8777         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
8778         pass its address to vect_pattern_recog_1.
8779
8780 2011-10-05  David S. Miller  <davem@davemloft.net>
8781
8782         * config/sparc/sparc.opt (POPC): New option.
8783         * doc/invoke.texi: Document it.
8784         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
8785         default on Niagara-2 and later.
8786         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
8787         * config/sparc/sparc.md (SIDI): New mode iterator.
8788         (ffsdi2): Delete commented out pattern and comments.
8789         (popcount<mode>2, clz<mode>2): New expanders.
8790         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
8791         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
8792
8793 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
8794
8795         PR middle-end/50607
8796         * c-tree.h (c_expr_t): New typedef for struct c_expr.
8797         (C_EXPR_APPEND): New macro.
8798         * c-parser.c (c_parser_get_builtin_args): Preserve
8799         original_tree_code of c_expr structure.
8800         (c_parser_postfix_expression): Adjust to the new function.
8801
8802 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
8803
8804         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
8805         if profiling after the prologue.
8806
8807 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
8808
8809         PR tree-optimization/50613
8810         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
8811         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
8812         and if it is neither that not SSA_NAME, give up.
8813
8814 2011-10-05  Richard Henderson  <rth@redhat.com>
8815
8816         * tree-vect-generic.c (vector_element): Never fail.  Use
8817         build_zero_cst.  Tidy up type references.
8818         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
8819         code duplication.  Do update_stmt here ...
8820         (expand_vector_operations_1): ... not here.
8821
8822         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
8823         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
8824         duplication.  Handle V2DI without SSE4.1.
8825         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
8826         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
8827
8828 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
8829
8830         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
8831         of "found".  Simplify return value calculation.
8832         (distance_agu_use): Ditto.
8833
8834 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
8835
8836         PR bootstrap/50621
8837         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
8838         if the function was not shrink-wrapped.
8839         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
8840         to an insn.
8841         * function.c (thread_prologue_and_epilogue_insns): Make sure the
8842         shrink_wrapped flag is set even if there is no dump file.
8843
8844 2011-10-05  DJ Delorie  <dj@redhat.com>
8845             Nick Clifton  <nickc@redhat.com>
8846
8847         * config/rx/rx.opt (mpid): Define.
8848         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
8849         (MULTILIB_DIRNAMES): Add pid.
8850         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
8851         (rx_num_interrupt_regs): New variable.
8852         (rx_gp_base_regnum): New function.  Returns the number of the
8853         small data area register.
8854         (rx_pid_base_regnum): New function.  Returns the number of the pid
8855         base register.
8856         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
8857         (rx_pid_data_operand): New function.  Returns whether an object is
8858         in the position independent data area.
8859         (rx_legitimize_address): New function.  Puts undecided PID
8860         objects in the PID data area.
8861         (rx_is_legitimate_address): Add support for PID operands.
8862         (rx_print_operand_address): Likewise.
8863         (rx_print_operand): Likewise.
8864         (rx_maybe_pidify_operand): New function.  Determine if an operand
8865         is suitable for PID addressing.
8866         (rx_gen_move_template): Add PID support.
8867         (rx_conditional_register_usage): Likewise.
8868         (rx_option_override): Initialise rx_num_interrupt_regs.
8869         (rx_is_legitimate_constant): Add support for PID constants.
8870         (TARGET_LEGITIMIZE_ADDRESS): Define.
8871         * config/rx/constraints.md (Rpid): Define.
8872         (Rpda): Define.
8873         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
8874         (tablejump): Add PID support.
8875         (mov<>): Likewise.
8876         (mov<>_internal): Likewise.
8877         (addsi3): Convert to an expander.  Add PID support.
8878         (pid_addr): New pattern.
8879         * config/rx/rx.h (CPP_SPEC): Define.
8880         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
8881         (CASE_VECTOR_PC_RELATIVE): Define.
8882         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
8883         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
8884         * doc/invoke.texi (RX Options): Document -mpid command line option.
8885
8886 2011-10-05  Richard Guenther  <rguenther@suse.de>
8887
8888         PR tree-optimization/38885
8889         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
8890         from constants.
8891
8892 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
8893
8894         * doc/invoke.texi (-fshrink-wrap): Document.
8895         * opts.c (default_options_table): Add it.
8896         * common.opt (fshrink-wrap): Add.
8897         * function.c (emit_return_into_block): Remove useless declaration.
8898         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
8899         requires_stack_frame_p, gen_return_pattern): New static functions.
8900         (emit_return_into_block): New arg simple_p.  All callers changed.
8901         Use gen_return_pattern.
8902         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
8903         * config/i386/i386.md (return): Expand into a simple_return.
8904         (simple_return): New expander):
8905         (simple_return_internal, simple_return_internal_long,
8906         simple_return_pop_internal_long, simple_return_indirect_internal):
8907         Renamed from return_internal, return_internal_long,
8908         return_pop_internal_long and return_indirect_internal; changed to use
8909         simple_return.
8910         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
8911         simple returns.
8912         (ix86_pad_returns): Likewise.
8913         * function.h (struct rtl_data): Add member shrink_wrapped.
8914         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
8915         are not jumps or sibcalls can't be compared.
8916
8917 2011-10-05  Richard Guenther  <rguenther@suse.de>
8918
8919         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
8920         vector type.
8921         (simplify_unary_expression): Handle BIT_FIELD_REFs.
8922         (try_to_simplify): Handle BIT_FIELD_REFs.
8923
8924 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
8925
8926         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
8927         * config/avr/avr.c (avr_out_addto_sp): New function.
8928         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
8929         * config/avr/avr.md (adjust_len): Add "addto_sp".
8930         (*movhi_sp): Remove insn.
8931         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
8932
8933 2011-10-05  Richard Guenther  <rguenther@suse.de>
8934
8935         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
8936         with an embedded expression valueize and fold that as well.
8937         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
8938         results from gimple_fold_stmt_to_constant_1.
8939
8940 2011-10-05  Nick Clifton  <nickc@redhat.com>
8941
8942         * config/rx/rx.md (tablejump): Add missing label.
8943         (adddi3_internal): Mark operand 0 as early-clobbered.
8944         (smaxsi3): Revert previous delta.
8945         (adc_internal): Fix whitespace in generated asm.
8946         (adc_flags): Likewise.
8947
8948 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8949
8950         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
8951         with the new widening_optab_handler.
8952
8953 2011-10-05  Richard Guenther  <rguenther@suse.de>
8954
8955         PR tree-optimization/50609
8956         * gimple-fold.c (fold_array_ctor_reference): Also handle
8957         vector typed constructors.
8958         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
8959         for vector typed constructors.
8960
8961 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
8962
8963         * config/i386/i386.c (ix86_emit_binop): New static function.
8964         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
8965         instructions.
8966         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
8967
8968 2011-10-04  David S. Miller  <davem@davemloft.net>
8969
8970         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
8971         UNSPEC_XMUL): New unspecs.
8972         (muldi3_v8plus): Use output_v8plus_mult.
8973         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
8974         New VIS 3.0 combiner patterns.
8975         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
8976         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
8977         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
8978         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
8979         builtins patterns.
8980         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
8981         (output_v8plus_mult): New function.
8982         * config/sparc/sparc-protos.h: Declare it.
8983         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
8984         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
8985         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
8986         * doc/extend.texi: Document new builtins.
8987
8988 2011-10-04  Richard Henderson  <rth@redhat.com>
8989
8990         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
8991         Avoid save_expr unless two_arguments.
8992
8993 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
8994
8995         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
8996         * config/i386/mingw32.h (CPP_SPEC): Likewise.
8997
8998 2011-10-04  David S. Miller  <davem@davemloft.net>
8999
9000         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
9001         under Linux.
9002
9003 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
9004
9005         PR tree-optimization/50604
9006         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
9007         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
9008         last argument to memcpy has size_type_node type instead of ssizetype.
9009         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
9010         instead of TREE_TYPE (len) as type for newlen.
9011
9012         PR tree-optimization/50522
9013         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
9014         TYPE_RESTRICT.
9015         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
9016         unconditionally.
9017
9018         * fold-const.c (fold_unary_loc): Don't optimize
9019         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
9020         casting the inner pointer if it isn't TYPE_RESTRICT.
9021         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
9022         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
9023
9024 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
9025
9026         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
9027
9028 2011-10-04  Jan Hubicka  <jh@suse.cz>
9029
9030         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
9031         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
9032         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
9033         * lto-cgraph.c (order_base): New static var.
9034         (lto_output_node): Stream in order.
9035         (lto_output_varpool_node): Stream out order.
9036         (input_node): Stream in order.
9037         (input_varpool_node): Stream out order.
9038         (input_cgraph_1): Initialize order base; update call of
9039         lto_input_toplevel_asms.
9040
9041 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
9042
9043         PR target/50566
9044         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
9045         prototype.
9046         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
9047         from here...
9048         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
9049         function.  Log if avr_log.legitimize_reload_address.
9050
9051 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
9052
9053         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
9054
9055 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9056
9057         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
9058         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
9059
9060 2011-10-03  David S. Miller  <davem@davemloft.net>
9061
9062         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
9063         GSR_REG an input operand to UNSPEC instead of a parallel USE.
9064         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
9065         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
9066         Reference GSR_REG in DI mode, simplify convoluted expressions by using
9067         zero_extract.
9068         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
9069
9070 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
9071
9072         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
9073
9074 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
9075             Ian Lance Taylor  <iant@google.com>
9076
9077         * godump.c (go_output_typedef): Support printing enum values that
9078         don't fit in a signed HOST_WIDE_INT.
9079
9080 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
9081
9082         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
9083         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9084         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9085         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
9086
9087 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
9088
9089         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
9090         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9091         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9092         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
9093
9094 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
9095
9096         PR target/49967
9097         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
9098         (gcc_cv_ld_static_option): Ditto.
9099         (gcc_cv_ld_dynamic_option): Ditto.
9100         * configure: Regenerate.
9101
9102 2011-10-03  David S. Miller  <davem@davemloft.net>
9103
9104         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
9105         and 'si' patterns which describe the GSR changes explicitly in the
9106         RTL using zero_extract.
9107         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
9108
9109         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
9110         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
9111
9112 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
9113
9114         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
9115         if given expression can be expanded by the target.
9116         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
9117         using target vector instructions.
9118         * optabs.h: New optab vshuffle.
9119         (expand_vec_shuffle_expr_p): New prototype.
9120         (expand_vec_shuffle_expr): New prototype.
9121         (vshuffle_optab): New optab.
9122         * genopinit.c: Adjust to support vecshuffle.
9123         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
9124         * expr.c (expand_expr_real_2): Adjust.
9125         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
9126         recognizing the cases of two and three arguments.
9127         (convert_arguments) (build_binary_op)
9128         (scalar_to_vector) (build_array_ref): Spurious whitespace.
9129         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
9130         * tree.def: New tree code VEC_SHUFFLE_EXPR.
9131         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
9132         * tree-vect-generic.c (vector_element): New function. Returns an
9133         element of the vector at the given position.
9134         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
9135         by the backend or expand an expression piecewise.
9136         (expand_vector_operations_1): Adjusted.
9137         (gate_expand_vector_operations_noop): New gate function.
9138         * Makefile.in (tree-vect-generic.o): New include.
9139         * gimple.c (get_gimple_rhs_num_ops): Adjust.
9140         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
9141         * passes.c: Move veclower down.
9142         * tree-pretty-print.c (dump_generic_node): Recognize
9143         VEC_SHUFFLE_EXPR as valid expression.
9144         * c-parser.c (c_parser_get_builtin_args): Helper function for the
9145         builtins with variable number of arguments.
9146         (c_parser_postfix_expression): Use a new helper function for
9147         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
9148         * tree-ssa-operands: Adjust.
9149         * c-family/c-common.c: New __builtin_shuffle keyword.
9150         * c-family/c-common.h: New __builtin_shuffle keyword.
9151         * gcc/doc/extend.texi: Adjust.
9152
9153         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
9154         between the vector and the type of the mask when shuffling.
9155         (vecshuffle<mode>): New expansion.
9156         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
9157         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
9158         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
9159
9160 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
9161
9162         PR tree-optimization/50587
9163         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
9164         arg0 is not a SSA_NAME.
9165
9166 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
9167
9168         * ipa-inline-analysis.c (MAX_TIME): Update comment.
9169
9170 2011-10-02  Richard Henderson  <rth@redhat.com>
9171             David S. Miller  <davem@davemloft.net>
9172
9173         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
9174         conditional insn type setting, we always emit a shift.
9175         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
9176         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
9177         * config/sparc/predicates.md (const_one_operand): Delete.
9178
9179 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
9180
9181         * invoke.texi (SPARC Options): Refer to GNU/Linux.
9182
9183 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
9184
9185         * config/mips/mips.c (mips_frame_barrier): New function.
9186         (mips_expand_prologue): Call it after allocating stack space.
9187         (mips_deallocate_stack): New function.
9188         (mips_expand_epilogue): Call mips_frame_barrier and
9189         mips_deallocate_stack.
9190
9191 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
9192
9193         PR target/49696
9194         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
9195         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
9196         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
9197
9198 2011-10-02  Jan Hubicka  <jh@suse.cz>
9199
9200         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
9201
9202         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
9203         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
9204         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
9205         functions are reachable when address is taken.
9206         * tree-sra.c (modify_function): Free dominance info.
9207
9208 2011-10-02  Jan Hubicka  <jh@suse.cz>
9209
9210         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
9211
9212         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
9213         (reset_inline_summary): New function.
9214         (compute_inline_parameters, inline_node_removal_hook,
9215         inline_edge_removal_hook): Use it.
9216         (inline_free_summary): Reset holders correctly.
9217         (inline_generate_summary): Free summary before computing it.
9218
9219 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
9220
9221         PR preprocessor/36819
9222         * incpath.c (merge_include_chains): Call free_path on
9223         heads[QUOTE] and tails[QUOTE].
9224
9225 2011-10-02  Jan Hubicka  <jh@suse.cz>
9226
9227         PR lto/47247
9228         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
9229         when resolution is already availbale from plugin.
9230         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
9231         * cgraph.c (ld_plugin_symbol_resolution): Add
9232         prevailing_def_ironly_exp.
9233         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
9234         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
9235         externally visible.
9236         * varasm.c (resolution_to_local_definition_p): Add
9237         LDPR_PREVAILING_DEF_IRONLY_EXP.
9238         (resolution_local_p): Likewise.
9239
9240 2011-10-01  David S. Miller  <davem@davemloft.net>
9241
9242         * config/sparc/sparc.opt (VIS3): New option.
9243         * doc/invoke.texi: Document it.
9244         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
9245         not capable of such instructions.
9246         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
9247         to 0x300 when TARGET_VIS3.
9248         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
9249         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
9250         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
9251         (V64N8, VASS): New mode iterators.
9252         (vis3_shift, vis3_addsub_ss): New code iterators.
9253         (vbits, vconstr): New mode attributes.
9254         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
9255         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
9256         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
9257         fmean16_vis, fpadd64_vis, fpsub64_vis,
9258         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
9259         VIS 3.0 instruction patterns.
9260         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
9261         default when targetting capable cpus.  TARGET_VIS3 implies
9262         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
9263         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
9264         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
9265         is ignored.
9266         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
9267         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
9268         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
9269         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
9270         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
9271         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
9272         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
9273         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
9274         * doc/extend.texi: Document new VIS 3.0 builtins.
9275
9276 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
9277
9278         * ira-color.c (assign_hard_reg): Fix typo.
9279
9280 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
9281
9282         * doc/extend.texi: Add missing ','.
9283
9284 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
9285
9286         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
9287         Enable -fmodulo-sched at -O2 and above.
9288         * config/c6x/c6x.md (doloop_end): New expander.
9289         (mvilc, sploop, spkernel, loop_end): New patterns.
9290         (loop_end with memory destination splitter): New.
9291         * config/c6x/c6x.c: Include "hw-doloop.h".
9292         (enum unitreqs): New.
9293         (unit_req_table): New typedef.
9294         (unit_reqs): New static variable.
9295         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
9296         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
9297         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
9298         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
9299         (struct c6x_sched_context): New member last_scheduled_iter0.
9300         (init_sched_state): Initialize it.
9301         (c6x_variable_issue): Update it.
9302         (sploop_max_uid_iter0): New static variable.
9303         (c6x_sched_reorder_1): Be careful about issuing sploop.
9304         (c6x_reorg): Call c6x_hwlooops before the final schedule.
9305
9306 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
9307
9308         PR target/50566
9309         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
9310         * config/avr/avr.c (avr_address_cost): Use it.
9311         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
9312         (avr_log_vadump): Unknown %-codes finish printing.
9313
9314 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
9315
9316         PR inline-asm/50571
9317         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
9318         input constraints allow mem and not reg, pass true instead of
9319         false as second argument to maybe_fold_reference.
9320
9321         PR tree-optimization/46309
9322         * fold-const.c (make_range, merge_ranges): Remove prototypes.
9323         (make_range_step): New function.
9324         (make_range): Use it.
9325         * tree.h (make_range_step): New prototypes.
9326         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
9327         * tree-ssa-reassoc.c: Include diagnostic-core.h.
9328         (struct range_entry): New type.
9329         (init_range_entry, range_entry_cmp, update_range_test,
9330         optimize_range_tests): New functions.
9331         (reassociate_bb): Call optimize_range_tests.
9332
9333 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
9334             Richard Guenther  <rguenther@suse.de>
9335
9336         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
9337         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
9338         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
9339         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
9340         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
9341         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
9342
9343 2011-09-30  Jan Beulich  <jbeulich@suse.com>
9344
9345         * lto-cgraph.c (output_cgraph): Remove processing of
9346         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
9347         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
9348         lto_input_toplevel_asms() instead.
9349         * lto-section-in.c (lto_section_name): Add "asm" entry.
9350         * lto-streamer-in.c (lto_input_toplevel_asms): New.
9351         * lto-streamer-out.c (lto_output_toplevel_asms): New.
9352         * lto-streamer.h (LTO_minor_version): Bump.
9353         (enum lto_section_type): Add LTO_section_asm.
9354         (struct lto_asm_header): New.
9355         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
9356         * tree-streamer.h (streamer_write_string_cst): Declare.
9357         * tree-streamer-out.c (write_string_cst): Rename to
9358         streamer_write_string_cst and make global. Handle incoming string
9359         being NULL.
9360         (streamer_write_tree_header): Adjust call to renamed function.
9361
9362 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
9363
9364         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
9365         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
9366         modulo_last_stage): New static variables.
9367         (set_modulo_params, discard_delay_pairs_above): New functions.
9368         (struct delay_pair): New member stages.
9369         (htab_i2_traverse, htab_i1_traverse): New static functions.
9370         (record_delay_slot_pair): New arg stages.  All callers changed.
9371         Record it.
9372         (pair_delay): Take stages into account.
9373         (add_delay_dependencies): Don't do so for stage pairs.
9374         (struct sched_block_state): New member modulo_epilogue.
9375         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
9376         (unschedule_insns_until): Decrease modulo_insns_scheduled.
9377         Set HARD_DEP without using or.
9378         (resolve_dependencies): New static function.
9379         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
9380         If it is true, allow only insns with INSN_EXACT_TICK set.
9381         (schedule_block): Return bool, always true for normal scheduling,
9382         true or false depending on modulo scheduling success otherwise.
9383         Add bookkeeping for modulo scheduling, and call resolve_dependencies
9384         on everything left over after a modulo schedule.
9385         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
9386         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
9387         declarations.
9388         (set_modulo_params, discard_delay_pairs_above): Declare.
9389         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
9390         * doc/invoke.texi (--param): Document it.
9391
9392         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
9393         New arg modulo_scheduling.  All callers changed.  Move note handling
9394         code here from schedule_ebbs.
9395         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
9396         out of schedule_ebbs.
9397         (schedule_ebbs): Call them.  Remove note handling code moved to
9398         schedule_ebb.
9399         * sched-int.h (schedule_ebb, schedule_ebbs_init,
9400         schedule_ebbs_finish): Declare.
9401
9402 2011-09-30  Richard Guenther  <rguenther@suse.de>
9403
9404         PR middle-end/50574
9405         * tree-cfg.c (verify_gimple_comparison): Compare component
9406         mode sizes for vector comparisons.
9407
9408 2011-09-30  Revital Eres  <revital.eres@linaro.org>
9409
9410         * ddg.c (autoinc_var_is_used_p): New function.
9411         (create_ddg_dep_from_intra_loop_link,
9412         add_cross_iteration_register_deps): Call it.
9413         * ddg.h (autoinc_var_is_used_p): Declare.
9414         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
9415         (sms_schedule): Handle instructions with REG_INC.
9416
9417 2011-09-30  Revital Eres  <revital.eres@linaro.org>
9418
9419         * modulo-sched.c (generate_reg_moves): Skip instructions that
9420         do not set a register and verify no regmoves are created for
9421         !single_set instructions.
9422
9423 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
9424
9425         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
9426         insns.
9427
9428 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9429
9430         PR target/50099
9431         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
9432         (qhs_zextenddi_op): New.
9433         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
9434         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
9435         Distinguish between ARM and Thumb2 states.
9436
9437 2011-09-30  David S. Miller  <davem@davemloft.net>
9438
9439         * config/sparc/sparc.opt (VIS2): New option.
9440         * doc/invoke.texi: Document it.
9441         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
9442         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
9443         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
9444         (define_attr type): New insn type 'edgen'.
9445         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
9446         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
9447         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
9448         patterns.
9449         * niagara.md: Handle edgen.
9450         * niagara2.md: Likewise.
9451         * ultra1_2.md: Likewise.
9452         * ultra3.md: Likewise.
9453         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
9454         to 0x200 when TARGET_VIS2.
9455         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
9456         default when targetting capable cpus.  TARGET_VIS2 implies
9457         TARGET_VIS, clear and it when TARGET_FPU is disabled.
9458         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
9459         (sparc_expand_builtin): Fix predicate indexing when builtin returns
9460         void.
9461         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
9462         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
9463         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
9464         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
9465         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
9466         * doc/extend.texi: Document new VIS 2.0 builtins.
9467
9468 2011-09-29  Nick Clifton  <nickc@redhat.com>
9469             Bernd Schmidt  <bernds@codesourcery.com>
9470
9471         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
9472         * config/frv/frvend.c: Likewise.
9473         * config/frv/frv.c (frv_function_prologue): Move misplaced
9474         CALL_ARG_LOCATION notes back to their proper locations.
9475
9476 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
9477
9478         PR target/50566
9479         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
9480         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
9481         from avr_rtx_costs.
9482         (avr_legitimate_address_p): Use avr_edump to print log information
9483         filtered by avr_log.
9484         (extra_constraint_Q): Ditto.
9485         (avr_legitimize_address): Ditto.
9486         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
9487         (final_prescan_insn): Use avr_log.rtx_costs as filter.
9488
9489 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
9490
9491         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
9492         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
9493         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
9494         NEON vector and structure modes to be tied.
9495
9496 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9497
9498         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
9499         forward declaration.
9500         (remove_duplicate_close_phi): Detect and repair creation of
9501         duplicate close-phis for a containing loop.
9502
9503 2011-09-27  Andi Kleen  <ak@linux.intel.com>
9504
9505         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
9506         /dev/urandom.  Add getpid call.
9507         (compare_debug_dump_opt_spec_function): Drop getpid call.
9508
9509 2011-09-26  Andi Kleen  <ak@linux.intel.com>
9510
9511         * toplev.c (init_local_tick): Try reading random seed
9512         from /dev/urandom.
9513
9514 2011-09-26  Andi Kleen  <ak@linux.intel.com>
9515
9516         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
9517         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
9518         Handle numerical random seed.
9519         * lto-streamer.h (lto_file_decl_data): Change id to
9520         unsigned HOST_WIDE_INT.
9521         * toplev.c (random_seed): Add.
9522         (init_random_seed): Change for numerical random seed.
9523         (get_random_seed): Return as HOST_WIDE_INT.
9524         (set_random_seed): Crc32 existing string.
9525         * toplev.h (get_random_seed): Change to numercal return.
9526         * tree.c (get_file_function_name): Remove CRC. Handle
9527         numerical random seed.
9528
9529 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
9530
9531         PR target/50566
9532         * config.gcc (extra_objs): Add avr-log.o for $target in:
9533         avr-*-rtems*, avr-*-*.
9534         * config/avr/t-avr (avr-log.o): New rule to compile...
9535         * config/avr/avr-log.c: ...this new file.
9536         * config/avr/avr.opt (mlog=): New option.
9537         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
9538         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
9539         (avr_log_set_avr_log): New prototype.
9540         (avr_log_t): New typedef.
9541         (avr_log): New declaration.
9542         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
9543
9544 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9545
9546         * expr.c (do_store_flag): Expand vector comparison by
9547         building an appropriate VEC_COND_EXPR.
9548         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
9549         (c_objc_common_truthvalue_conversion): Adjust.
9550         * tree-vect-generic.c (do_compare): Helper function.
9551         (expand_vector_comparison): Check if hardware supports
9552         vector comparison of the given type or expand vector piecewise.
9553         (expand_vector_operation): Treat comparison as binary
9554         operation of vector type.
9555         (expand_vector_operations_1): Adjust.
9556
9557 2011-09-29  Richard Guenther  <rguenther@suse.de>
9558
9559         * tree.c (build_opaque_vector_type): Make opaque vectors
9560         variant types of the corresponding non-opaque type.  Make
9561         sure to share opaque vector types properly.
9562
9563 2011-09-29  David S. Miller  <davem@davemloft.net>
9564
9565         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
9566         UNSPEC_ARRAY32): New unspec.
9567         (define_attr type): New type 'array'.
9568         (array{8,16,32}<P:mode>_vis): New patterns.
9569         * config/sparc/ultra1_2.md: Add reservations for 'array'.
9570         * config/sparc/ultra3.md: Likewise.
9571         * config/sparc/niagara.md: Likewise.
9572         * config/sparc/niagara2.md: Likewise.
9573         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
9574         array builtins.
9575         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
9576         __vis_array32): New.
9577         * doc/extend.texi: Document new VIS builtins.
9578
9579         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
9580         (VIS pixel-compare insn): Just use <gcond:name>.
9581
9582         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
9583         code iterator used, so just use <code>.  There are two mode iterators
9584         so explicitly use <GCM:gcm_name>.
9585
9586 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
9587
9588         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
9589         Darwin >= 9.
9590
9591 2011-09-28  David S. Miller  <davem@davemloft.net>
9592
9593         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
9594         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
9595         (UNSPEC_FCMP): New unspec.
9596         (gcond): New code iterator.
9597         (gcond_name): New code attr.
9598         (GCM): New mode iterator.
9599         (gcm_name): New mode attr.
9600         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
9601
9602 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
9603
9604         PR target/49486
9605         * config/sh/sh.md (negdi2): Move expansion into split to
9606         allow more combination options.  Add T_REG clobber.
9607         (abssi2): New expander.
9608         (*negdi2, *abssi2, *negabssi2): New insns.
9609         (cneg): Change from insn to insn_and_split.  Rename to
9610         negsi_cond.  Add alternative for non-SH4.
9611
9612 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
9613
9614         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
9615         (neon_move_hi_quad_<mode>): Likewise.
9616         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
9617
9618 2011-09-28  Nick Clifton  <nickc@redhat.com>
9619
9620         * config/rx/predicates.md (rx_minmax_operand): New predicate.
9621         Accepts immediates and a restricted subset of MEMs.
9622         * config/rx/rx.md (int_modes): New iterator.
9623         (smaxsi3, sminsi3): Delete and replace with...
9624         (smax<int_mode>3, smin<int_mode>3): New patterns.
9625         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
9626
9627 2011-09-28  Richard Guenther  <rguenther@suse.de>
9628
9629         PR middle-end/50460
9630         * fold-const.c (try_move_mult_to_index): Handle &a.array the
9631         same as &a.array[0].
9632
9633 2011-09-28  Kai Tietz  <ktietz@redhat.com>
9634
9635         * configure.ac: Add test for new section attribute
9636         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
9637         * config.in: Regenerated.
9638         * configure: Regenerated.
9639         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
9640         new section flag "e" for excluded sections, if supported.
9641         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
9642
9643 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
9644
9645         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
9646         throughout file.
9647
9648 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
9649
9650         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
9651         throughout file.
9652
9653 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
9654
9655         * output.h (SECTION_EXCLUDE): New macro.
9656         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
9657
9658 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
9659
9660         * fwprop.c (forward_propagate_and_simplify): After checking
9661         reg/subreg combinations, check whether the modes are the same.
9662
9663 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
9664             Richard Sandiford  <rdsandiford@googlemail.com>
9665
9666         * config/mips/mips.c (mips_add_cfa_restore): New function.
9667         (mips16e_save_restore_reg): Use it.
9668         (mips_restore_reg): Likewise.  Split double FPRs for
9669         REG_CFA_RESTORE notes.
9670
9671 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
9672
9673         PR middle-end/50386
9674         PR middle-end/50326
9675         * tree-sra.c (build_ref_for_model): Use the type of the field as
9676         the type of the COMPONENT_REF.
9677
9678 2011-09-27  Jeff Law  <law@redhat.com>
9679
9680         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
9681         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
9682         (find_if_case_1): Use the probability of the THEN clause when
9683         determining if speculation is profitable.
9684         (find_if_case_2): Similarly for the ELSE clause.
9685
9686 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
9687
9688         * common.opt: Add -foptimize-strlen option.
9689         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
9690         (tree-sssa-strlen.o): Add dependencies.
9691         * opts.c (default_options_table): Enable -foptimize-strlen
9692         by default at -O2 if not -Os.
9693         * passes.c (init_optimization_passes): Add pass_strlen
9694         after pass_object_sizes.
9695         * timevar.def (TV_TREE_STRLEN): New timevar.
9696         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
9697         * tree-pass.h (pass_strlen): Declare.
9698         * tree-ssa-strlen.c: New file.
9699         * c-decl.c (merge_decls): If compatible stpcpy prototype
9700         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
9701
9702 2011-09-27  Tom de Vries  <tom@codesourcery.com>
9703
9704         PR middle-end/43864
9705         * tree-ssa-tail-merge.c: New file.
9706         (struct same_succ_def): Define.
9707         (same_succ, const_same_succ): New typedef.
9708         (struct bb_cluster_def): Define.
9709         (bb_cluster, const_bb_cluster): New typedef.
9710         (struct aux_bb_info): Define.
9711         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
9712         (gvn_uses_equal): New function.
9713         (same_succ_print, same_succ_print_traverse, update_dep_bb)
9714         (stmt_update_dep_bb, local_def, same_succ_hash)
9715         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
9716         (same_succ_reset): New function.
9717         (same_succ_htab, same_succ_edge_flags)
9718         (deleted_bbs, deleted_bb_preds): New var.
9719         (debug_same_succ): New function.
9720         (worklist): New var.
9721         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
9722         (init_worklist, delete_worklist, delete_basic_block_same_succ)
9723         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
9724         (print_cluster, debug_cluster, update_rep_bb)
9725         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
9726         (all_clusters): New var.
9727         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
9728         (merge_clusters, set_cluster): New function.
9729         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
9730         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
9731         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
9732         (find_clusters_1, find_clusters): New function.
9733         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
9734         (update_bbs): New var.
9735         (apply_clusters): New function.
9736         (update_debug_stmt, update_debug_stmts): New function.
9737         (tail_merge_optimize): New function.
9738         tree-pass.h (tail_merge_optimize): Declare.
9739         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
9740         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
9741         (tree-ssa-tail-merge.o): New rule.
9742         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
9743         default at OPT_LEVELS_2_PLUS.
9744         * tree-ssa-sccvn.c (vn_valueize): Move to ...
9745         * tree-ssa-sccvn.h (vn_valueize): Here.
9746         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
9747         * common.opt (ftree-tail-merge): New switch.
9748         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
9749         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
9750         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
9751         (-ftree-tail-merge, max-tail-merge-comparisons)
9752         (max-tail-merge-iterations): New item.
9753
9754 2011-09-27  Jan Hubicka  <jh@suse.cz>
9755
9756         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
9757
9758 2011-09-27  Jan Hubicka  <jh@suse.cz>
9759
9760         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
9761         parameters passed by reference; handle loads from non-SSA scalars
9762         and update comments.
9763
9764 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
9765
9766         PR rtl-optimization/50249
9767         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
9768         instead of opnum and type.  All callers changed.  Remove useless
9769         declaration.
9770         Search forward for other reloads of the same type for the same operand
9771         using the same register; if any are found, return false.
9772         (reload_regs_reach_end_p): Same argument changes; all callers changed.
9773
9774 2011-09-27  Andi Kleen  <ak@linux.intel.com>
9775             Jan Hubicka  <jh@suse.cz>
9776
9777         * doc/invoke.texi (ffat-lto-objects): Document.
9778         * toplev.c (compile_file): Do not output assembly when doing slim lto;
9779         Output __gnu_slim_lto when doing slim lto.
9780         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
9781         (cgraph_optimize): Return early when doing slim lto.
9782         * opts.c (finish_options): Complain about lack of linker plugin
9783         when doing slim lto.
9784         * common.opt (ffat-lto-objects): New.
9785
9786 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
9787
9788         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
9789         between signed and unsigned.
9790
9791 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
9792
9793         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
9794         vectorization.
9795         (vectorizable_type_promotion): Likewise.
9796         (vect_analyze_stmt): Call vectorizable_type_demotion and
9797         vectorizable_type_promotion for basic blocks.
9798         (supportable_widening_operation): Don't assume loop vectorization.
9799         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
9800         basic blocks.  Update vectorization factor for basic block
9801         vectorization.
9802         (vect_analyze_slp_instance): Allow multiple types for basic block
9803         vectorization.  Recheck unrolling factor after construction of SLP
9804         instance.
9805
9806 2011-09-27  Richard Guenther  <rguenther@suse.de>
9807
9808         * tree-object-size.c (compute_object_sizes): Fix dumping of
9809         folded statement.
9810
9811 2011-09-27  Richard Guenther  <rguenther@suse.de>
9812
9813         PR tree-optimization/50363
9814         * tree-ssa-pre.c (create_expression_by_pieces): Handle
9815         pointer conversions in POINTER_PLUS_EXPRs properly.
9816
9817 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
9818
9819         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
9820         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
9821         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
9822         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
9823         that produce subreg moves.  Define using VQX iterators.
9824
9825 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
9826
9827         * config/avr/avr.md (ashrqi3): Split alternative "n"
9828         into its remaining parts C03, C04, C05, C06, C07 and describe
9829         impact in CC by attribute "cc" appropriately.
9830         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
9831         by digging RTX.
9832
9833 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
9834
9835         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
9836         from 3 x MAX_MACHINE_MODE.
9837         (CONSTM1_RTX): Define.
9838         * emit-rtl.c (const_tiny_rtx): Change into array of
9839         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
9840         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
9841         CONSTM1_RTX.
9842         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
9843         MODE_VECTOR_INT modes.
9844         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
9845         Optimize if one operand is CONSTM1_RTX.
9846         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
9847         into mask | x.
9848
9849 2011-09-26  David S. Miller  <davem@davemloft.net>
9850
9851         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
9852         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
9853         * config/sparc/visintrin.h: Update edge and pixel-compare
9854         intrinsics to return 'long' instead of 'int'.
9855         * doc/extend.texi: Update documentation to match.
9856         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
9857         flat, allow any instruction.  Otherwise, when V9 allow parallels
9858         which consist only of sets to registers outside of %o0 to %o5.
9859         (sparc_vis_init_builtins): Update VIS builtin types for edge
9860         and pixel-compare.
9861
9862         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
9863         is enabled, mark %gsr as global.
9864         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
9865         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
9866
9867         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
9868         which will now define __VIS and __VIS__ when -mvis is enabled.
9869         * config/sparc/t-sparc: Likewise.
9870         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
9871         and add t-sparc to tmake_file for all sparc targets.
9872         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
9873         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
9874
9875         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
9876         builtins for VIS vector addition and subtraction.
9877         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
9878         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
9879         __vis_fpsub32, __vis_fpsub32s): New.
9880         * doc/extend.texi: Document new VIS intrinsics.
9881
9882 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
9883
9884         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
9885         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
9886         EQ/NE comparisons against +/-1 in the case of unused-after,
9887         non-ld-regs target.
9888
9889 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
9890
9891         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
9892         gctx.into_ssa after push_gimplify_context.
9893
9894         * gimple.c (gimple_build_call_valist): New function.
9895         * gimple.h (gimple_build_call_valist): New prototype.
9896         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
9897         (update_gimple_call): Likewise.
9898         (update_call_from_tree): Use finish_update_gimple_call.
9899         * tree-ssa-propagate.h (update_gimple_call): New prototype.
9900
9901 2011-09-26  Richard Guenther  <rguenther@suse.de>
9902
9903         PR tree-optimization/50472
9904         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
9905         volatile references.
9906
9907 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
9908
9909         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
9910         * target.def: (addr_space_subset_p): Likewise.
9911
9912 2011-09-26  Tom de Vries  <tom@codesourcery.com>
9913
9914         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
9915         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
9916         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
9917         of new var.
9918
9919 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
9920
9921         PR target/50465
9922         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
9923         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
9924         output_reload_insisf.
9925         (adjust_len): Set default to "no".
9926         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
9927         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
9928         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
9929         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
9930         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
9931         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
9932         *lshrsi3_const): Set attribute "adjust_len".
9933         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
9934         (output_movsisf): Don't pass insn to output_reload_insisf.
9935         (adjust_insn_length): Handle new alternatives to adjust_len.
9936         Remove handling of ADJUST_LEN_YES.  Clean-up code.
9937
9938 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
9939
9940         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
9941         may_trap_p to detect loads that may trap of fault.
9942
9943 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
9944
9945         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
9946         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
9947         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
9948         prototype.
9949         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
9950         * config/avr/avr.c: Rename output_reload_insisf_1 to
9951         output_reload_in_const.
9952         (avr_popcount_each_byte): Handle SFmode, too.
9953         (output_reload_in_const): Change so it can handle HI loads, too.
9954         Use avr_popcount_each_byte to work out if scratch register must be
9955         created on the fly.
9956         (output_reload_inhi): Rewrite using output_reload_in_const and...
9957         (output_movhi): ...use it to print constants' loads.
9958         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
9959
9960 2011-09-25  David S. Miller  <davem@davemloft.net>
9961
9962         * config/sparc/constraints.md (C, P, Z): New constraints for
9963         const_doube, const_int, and const_vector "all ones" values.
9964         Make unused constraint letters comment match reality.
9965         * config/sparc/predicates.md (const_all_ones_operand,
9966         register_or_zero_or_all_ones_operand): New predicates.
9967         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
9968         as well as zero constants when VIS.
9969         (sparc_legitimate_constant_p): Likewise.
9970         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
9971         (movsf_insn): Likewise
9972         (movdi_insn_sp64): Add fone alternative.
9973         (movdf_insn_sp32_v9): Likewise.
9974         (movdf_insn_sp64): Likewise.
9975
9976         * configure.ac: Add feature check to make sure the assembler
9977         supports the FMAF, HPC, and VIS 3.0 instructions found on
9978         Niagara-3 and later cpus.
9979         * configure: Rebuild.
9980         * config.in: Likewise.
9981         * config/sparc/sparc.opt: New option '-mfmaf'.
9982         * config/sparc/sparc.md: Add float fused multiply-add patterns.
9983         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
9984         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
9985         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
9986         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
9987         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
9988         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
9989         disabled.
9990         (sparc_rtx_costs): Handle 'FMA'.
9991         * doc/invoke.texi: Document -mfmaf.
9992
9993 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
9994
9995         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
9996         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
9997         DECL_BY_REFERENCE parameters.
9998
9999 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
10000
10001         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
10002         if there is no outgoing edge.
10003
10004         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
10005         integral types.
10006
10007 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
10008
10009         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
10010         of vect_analyze_bb here.
10011         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
10012
10013 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
10014
10015         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
10016         Allow not simple iv if analyzing basic block.
10017         (create_data_ref): Update call to dr_analyze_innermost.
10018         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
10019         * tree-loop-distribution.c (generate_memset_zero): Likewise.
10020         * tree-predcom.c (find_looparound_phi): Likewise.
10021         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
10022
10023 2011-09-24  David S. Miller  <davem@davemloft.net>
10024
10025         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
10026         (SPARC_GSR_REG): Define.
10027         (FIXED_REGISTERS): Mark GSR as fixed.
10028         (CALL_USED_REGISTERS): Mark GSR as call used.
10029         (HARD_REGNO_NREGS): GSR is always 1 register.
10030         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
10031         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
10032         (REGISTER_NAMES): Add "%gsr".
10033         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
10034         (UNSPEC_WRGSR): New unspec.
10035         (GSR_REG): New constant.
10036         (type): Add new insn type 'gsr'.
10037         (fpack16_vis, fpackfix_vis, fpack32_vis,
10038         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
10039         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
10040         rdgsr_v8plus): New expanders and insns.
10041         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
10042         using patterns which show that this is a plus in addition to a
10043         modification of GSR_REG, instead of an unspec.
10044         * config/sparc/ultra1_2.md: Handle 'gsr'.
10045         * config/sparc/ultra3.md: Likewise.
10046         * config/sparc/niagara.md: Likewise.
10047         * config/sparc/niagara2.md: Likewise.
10048         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
10049         end of table.
10050         (sparc_option_override): Make -mvis imply -mv8plus.
10051         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
10052         for %gsr.
10053         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
10054         __builtin_vis_read_gsr.
10055         (sparc_expand_buildin): Handle builtins that take one argument and
10056         return void.
10057         (sparc_fold_builtin): Never fold writes to %gsr.
10058         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
10059         * doc/extend.texi: Document new VIS intrinsics.
10060
10061 2011-09-23  Jan Hubicka  <jh@suse.cz>
10062
10063         * ipa-inline-transform.c (inline_call): Add comment.
10064         * ipa-inline.h (inline_param_summary): New structure and vector.
10065         (struct inline_edge_summary): Add param field.
10066         * ipa-inline-analysis.c (CHANGED): New constant.
10067         (add_clause): Handle CHANGED and NOT_CONSTANT.
10068         (predicate_probability): New function.
10069         (dump_condition): Dump CHANGED predicate.
10070         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
10071         of unknown function wide invariant.
10072         (evaluate_conditions_for_edge): Handle change probabilities.
10073         (inline_edge_duplication_hook): Copy param summaries.
10074         (inline_edge_removal_hook): Free param summaries.
10075         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
10076         sizes; dump param summaries.
10077         (will_be_nonconstant_predicate): Use CHANGED predicate.
10078         (record_modified_bb_info): New structure.
10079         (record_modified): New function.
10080         (param_change_prob): New function.
10081         (estimate_function_body_sizes): Compute param summaries.
10082         (estimate_edge_size_and_time): Add probability argument.
10083         (estimate_node_size_and_time): Add inline_param_summary argument;
10084         handle predicate probabilities.
10085         (remap_predicate): Fix formating.
10086         (remap_edge_change_prob): New function.
10087         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
10088         (remap_edge_predicates): ... this one.
10089         (inline_merge_summary): Remap edge summaries; handle predicate
10090         probabilities; remove param summaries after we are done.
10091         (do_estimate_edge_time): Update.
10092         (do_estimate_edge_growth): Update.
10093         (read_inline_edge_summary): Read param info.
10094         (inline_read_summary): Fix formating.
10095         (write_inline_edge_summary): Write param summaries.
10096
10097 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
10098
10099         * config/i386/i386.c (ix86_print_operand): Handle %~.
10100         (ix86_print_operand_punct_valid_p): Return true also for '~'.
10101         * config/i386/sse.md (i128): New mode_attr.
10102         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
10103         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
10104         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
10105         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
10106         patterns, use "<sseinsnmode>" for "mode" attribute.
10107         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
10108         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
10109         %~128 in the patterns, use "OI" for "mode" attribute.
10110
10111 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
10112
10113         PR target/50447
10114         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
10115         "tstsi", "compare".
10116         (*cmpqi_sign_extend): Use s8_operand.
10117         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
10118         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
10119         prototypes.
10120         (out_tsthi, out_tstsi): Remove prototypes.
10121         (avr_out_tsthi, avr_out_tstsi): New prototypes.
10122         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
10123         (avr_asm_len): Negative length now sets *plen to -length.
10124         (compare_sign_p): Return bool instead of int.
10125         (compare_diff_p, compare_eq_p): Ditto and make static.
10126         (avr_out_tsthi): New function.
10127         (avr_out_tstsi): New function.
10128         (avr_out_compare): New function.
10129         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
10130         ADJUST_LEN_COMPARE.
10131
10132 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
10133
10134         PR target/50447
10135         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
10136         (addsi3): Rewrite using QI scratch register.  Adjust text
10137         peepholes using plus:SI.
10138         (*addsi3_zero_extend.hi): New insn.
10139         (*subsi3_zero_extend.hi): New insn.
10140         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
10141         (*subsi3_zero_extend): Ditto.
10142         (subsi3): Change predicate #2 to register_operand.
10143         * config/avr/avr-protos.h (avr_out_plus): New prototype.
10144         (avr_out_plus_1): New static function.
10145         (avr_out_plus): New function.
10146         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
10147
10148 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
10149
10150         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
10151         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
10152
10153 2011-09-23  Ian Lance Taylor  <iant@google.com>
10154
10155         * godump.c (go_define): Treat a single character in single quotes,
10156         or a string, as an operand.
10157
10158 2011-09-23  Martin Jambor  <mjambor@suse.cz>
10159
10160         * ipa-prop.h (jump_func_type): Updated comments.
10161         (ipa_known_type_data): New type.
10162         (ipa_jump_func): Use it to describe known type jump functions.
10163         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
10164         reflect the new known type jump function contents.
10165         (compute_known_type_jump_func): Likewise.
10166         (combine_known_type_and_ancestor_jfs): Likewise.
10167         (try_make_edge_direct_virtual_call): Likewise.
10168         (ipa_write_jump_function): Likewise.
10169         (ipa_read_jump_function): Likewise.
10170         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
10171         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
10172         (propagate_accross_jump_function): Likewise.
10173
10174 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
10175
10176         PR target/50446
10177         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
10178         (rotlqi3_4): Turn insn into expander.
10179         (*rotlqi3): New insn.
10180         (rotlhi3, rotlsi3): Support rotate left/right by 1.
10181         (*rotlhi2.1, *rotlhi2.15): New insns.
10182         (*rotlsi2.1, *rotlsi2.31): New insns.
10183         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
10184
10185 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
10186
10187         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
10188
10189 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10190
10191         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
10192
10193 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10194
10195         * reload.c (find_reloads): Set operand_mode to Pmode for address
10196         operands consisting of just a CONST_INT.
10197
10198 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
10199
10200         PR target/50482
10201         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
10202         blendv, force op_true to register if it doesn't satisfy
10203         nonimmediate_operand predicate.
10204
10205 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
10206
10207         PR middle-end/50113
10208         PR middle-end/50061
10209         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
10210         get the locate.where_pad value for register-only arguments.
10211         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
10212         (arm_pad_reg_upward): Handle null types.
10213
10214 2011-09-22  Jan Hubicka  <jh@suse.cz>
10215
10216         * ipa-inline-analysis.c: Fix overly long lines.
10217
10218 2011-09-22  Jan Hubicka  <jh@suse.cz>
10219
10220         * ipa-inline-transform.c (inline_call): Always update jump functions
10221         after inlining.
10222         * ipa-inline.c (ipa_inline): Likewise; do not call
10223         ipa_create_all_structures_for_iinln.
10224         (ipa_inline): Always free jump functions.
10225         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
10226         (remap_edge_predicates): Fix pasto.
10227         (inline_merge_summary): Remove nlined edge predicate; remove hack.
10228         (inline_analyze_function): Always initialize jump functions.
10229         (inline_generate_summary): Likewise.
10230         (inline_write_summary): Always write jump functions when ipa-cp
10231         is not doing that.
10232         (inline_read_summary): Always read jump functions when ipa-cp
10233         is not doing that.
10234         * ipa-prop.c (iinlining_processed_edges): Remove.
10235         (update_indirect_edges_after_inlining): Do not use
10236         iinlining_processed_edges; instead set param_index to -1.
10237         (propagate_info_to_inlined_callees): Only try to indirect inlining
10238         when asked to do so; update jump functions of indirect calls, too;
10239         remove jump functions of the inlined edge.
10240         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
10241         (ipa_create_all_structures_for_iinln): Remove.
10242         (ipa_free_all_structures_after_iinln): Do not free
10243         iinlining_processed_edges.
10244         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
10245
10246 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
10247
10248         * config/arm/predicates.md (expandable_comparison_operator): New
10249         predicate, extracted from...
10250         (arm_comparison_operator): ...here.
10251         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
10252         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
10253         (movdfcc): Use expandable_comparison_operator.
10254
10255 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
10256
10257         PR target/50447
10258         PR target/50465
10259         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
10260         (avr_popcount_each_byte): New prototype.
10261         * config/avr/avr.c (avr_popcount): New static function.
10262         (avr_popcount_each_byte): New function.
10263         (avr_out_bitop): New function.
10264         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
10265         avr_out_bitop.  Cleanup code.
10266         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
10267         (Ca4, Co4, Cx4): New constraints.
10268         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
10269         alternative.
10270         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
10271         (andsi3, iorsi3, xorsi3): Ditto.
10272         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
10273
10274 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
10275
10276         PR tree-optimization/50451
10277         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
10278         constant operands in reduction.
10279         (vect_get_slp_defs): Don't create vector operand for NULL scalar
10280         operand.
10281
10282 2011-09-22  David S. Miller  <davem@davemloft.net>
10283
10284         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
10285         fpack16, fpack32, fpackfix as const.
10286
10287         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
10288         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
10289         constants.  Use them everywhere.
10290
10291 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
10292
10293         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
10294         Added AND special case.  Adapted comments.
10295         (sh_rtx_costs): Added XOR and IOR case.
10296
10297 2011-09-21  Jan Hubicka  <jh@suse.cz>
10298
10299         * ipa-inline-analsis.c (compute_inline_parameters): Set
10300         cfun and current_function_decl.
10301
10302 2011-09-21  Jan Hubicka  <jh@suse.cz>
10303
10304         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
10305         handled components in parameter of builtin_constant_p.
10306         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
10307
10308 2011-09-21  Jan Hubicka  <jh@suse.cz>
10309
10310         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
10311         * ipa-inline.h (estimate_edge_time): Fix pasto.
10312         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
10313
10314 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
10315
10316         * config/i386/i386.c (ix86_expand_sse_movcc): Use
10317         blendvps, blendvpd and pblendvb if possible.
10318
10319 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
10320
10321         PR target/50464
10322         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
10323         operand 1 predicate to register_operand and operand 2 predicate
10324         to nonimmediate_operand.
10325         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
10326         xop_pcmov, force op_true to register.  Also, force op_false to
10327         register if it doesn't satisfy nonimmediate_operand predicate.
10328
10329 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
10330
10331         * config/i386/bmi2intrin.h (_mulx_u64): New.
10332         (_mulx_u32): Ditto.
10333
10334 2011-09-21  Jan Hubicka  <jh@suse.cz>
10335
10336         PR tree-optimization/50433
10337         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
10338         Use get_base_address.
10339
10340 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
10341
10342         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
10343         nonimmediate_operand instead of register_operand predicate for operands
10344         1 and 2, force them into registers if expanding them as comparison.
10345         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
10346         V8HImode force into register just operand 1.
10347
10348 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
10349
10350         PR target/45099
10351         * config/avr/avr.c (avr_function_arg_advance): Change error to
10352         warning if a fixed register is needed as function argument.
10353
10354 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
10355
10356         PR target/50449
10357         PR target/50465
10358         * config/avr/avr.md (adjust_len): New insn attribute.
10359         (*reload_insi, *reload_insf): Use it.
10360         (*movsi, *movsf): Use new interface of output_movsisf.
10361         * config/avr/avr-protos.h (output_movsisf): Change prototype.
10362         * config/avr/avr.c (output_movsisf): Ditto.
10363         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
10364         lengths of insns *reload_insi, *reload_insf.
10365         (output_reload_insisf_1): New static function.
10366         (output_reload_insisf): Use it.
10367
10368 2011-09-21  David S. Miller  <davem@davemloft.net>
10369
10370         * config/sparc/sparc.c (def_builtin): Change from macro into function.
10371         (def_builtin_const): New.
10372         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
10373         other than alignaddr and falignaddr.
10374
10375         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
10376         UNSPEC_FCMPEQ): New unspec codes.
10377         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
10378         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
10379         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
10380         new pixel compare VIS patterns.
10381         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
10382         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
10383         __vis_fcmpeq16, __vis_fcmpeq32): New.
10384         * doc/extend.texi: Document new pixel compare VIS intrinsics.
10385
10386 2011-09-21  Tom de Vries  <tom@codesourcery.com>
10387
10388         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
10389
10390 2011-09-20  David S. Miller  <davem@davemloft.net>
10391
10392         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
10393         (aligneddrl<P:mode>_vis): New pattern.
10394         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
10395         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
10396         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
10397         alignaddrl insn, and adjust edge operations for updated types.
10398         * config/sparc/visintrin.h: Likewise.
10399         * doc/extend.texi: Make typing in VIS documentation match reality.
10400
10401 2011-09-20  Terry Guo  <terry.guo@arm.com>
10402
10403         * config/arm/arm-arches.def: Add armv6s-m.
10404         * config/arm/arm-tables.opt: Regenerate.
10405
10406 2011-09-20  Wei Guozhi  <carrot@google.com>
10407
10408         PR rtl-optimization/49452
10409         * postreload.c (reload_combine): Invalidate use information when across
10410         volatile insn.
10411
10412 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
10413
10414         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
10415         Remove maintenance overhead.
10416         (haifa_sched_init, sched_finish): Update.
10417
10418 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
10419
10420         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
10421         to calculate unit, prefix_rep and prefix_data16 attributes.
10422         (*mov<mode>_internal): Ditto for unit attribute.
10423         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
10424         (*movv2sf_internal): Ditto.
10425         * config/i386/sse.md (VI1248_256): Remove mode iterator.
10426         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
10427         (*avx2_eq<mode>3): Ditto.
10428         (avx2_gt<mode>3): Ditto.
10429
10430 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
10431
10432         * config/i386/i386.md (maxmin): New code iterator.
10433         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
10434         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
10435         code iterator.
10436         (*avx2_<maxmin:code><mode>3): Macroize isn from
10437         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
10438         maxmin code iterator.
10439         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
10440         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
10441         <umaxmin:code>v16qi3.
10442
10443 2011-09-19  Alan Modra  <amodra@gmail.com>
10444             Michael Meissner  <meissner@linux.vnet.ibm.com>
10445
10446         PR target/50341
10447         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
10448         split the load of the indirect function's TOC from the call to
10449         prevent the compiler from moving the load of the new TOC above
10450         code that references the current function's TOC.
10451         (call_indirect_aix<ptrsize>_internal): Ditto.
10452         (call_indirect_aix<ptrsize>_nor11): Ditto.
10453         (call_indirect_aix<ptrsize>_internal2): Ditto.
10454         (call_value_indirect_aix<ptrsize>): Ditto.
10455         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10456         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10457         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10458
10459 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
10460
10461         * config/i386/sse.md (*sse4_1_extractps): Change into
10462         define_insn_and_split, add =x 0 n and =x x n alternatives
10463         and split them after reload.
10464
10465 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
10466
10467         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
10468
10469 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
10470
10471         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
10472
10473 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
10474
10475         PR tree-optimization/50413
10476         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
10477         a basic block if one of its data-refs can't be analyzed.
10478
10479 2011-09-19  Paul Brook  <paul@codesourcery.com>
10480
10481         * config/arm/predicates.md (shift_amount_operand): Check constant
10482         shift count is in range.
10483         (const_shift_operand): Remove.
10484
10485 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
10486             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
10487
10488         PR target/50091
10489         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
10490         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
10491
10492 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
10493
10494         * config/i386/bmiintrin.h: Remove tmp.
10495         * config/i386/tbmintrin.h: Likewise.
10496
10497 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
10498
10499         PR tree-optimization/50414
10500         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
10501         MIN_EXPR.
10502
10503 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
10504
10505         PR tree-optimization/50412
10506         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
10507         acceses that require epilogue loop if vectorizing outer loop.
10508
10509 2011-09-17  David S. Miller  <davem@davemloft.net>
10510
10511         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
10512         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
10513         New unspecs.
10514         (define_attr type): New type 'edge'.
10515         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
10516         edge32l_vis): New patterns.
10517         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
10518         * config/sparc/ultra3.md: Likewise.
10519         * config/sparc/niagara.md: Likewise.
10520         * config/sparc/niagara2.md: Likewise.
10521         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
10522         builtins for VIS edge instructions.
10523         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
10524         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
10525         intrinsics.
10526         (__v8qi, __v4qi): Make unsigned.
10527         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
10528         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
10529         __vis_fpack32): Fix types.
10530         * doc/extend.texi: Document new 'edge' VIS intrinsics.
10531
10532         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
10533         divide costs.
10534         (niagara3_costs): New.
10535         (sparc_option_override): Use it.
10536         * gcc/config/sparc/niagara2.md: Adjust with more accurate
10537         Niagara-3 reservations.
10538
10539 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
10540
10541         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
10542         (sse2_avx, sseinsnmode): Add V2TI.
10543         (REDUC_SMINMAX_MODE): New mode iterator.
10544         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
10545         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
10546         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
10547         (sse2_lshrv1ti3): Rename to...
10548         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
10549         iterator.  Move before umaxmin expanders.
10550         * config/i386/i386.h (VALID_AVX256_REG_MODE,
10551         SSE_REG_MODE_P): Accept V2TImode.
10552         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
10553         V16HImode, V8SImode and V4DImode.
10554
10555         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
10556         and V4DImode.
10557         (ix86_build_signbit_mask): Likewise.
10558         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
10559         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
10560         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
10561         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
10562         (<code><mode>3) ... this.
10563         (avx2_<code><mode>3 smaxmin expand): Rename to...
10564         (<code><mode>3) ... this.
10565         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
10566         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
10567         VI8_AVX2 mode iterator.
10568         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
10569         VI8_AVX2 mode iterator.
10570         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
10571         New expanders.
10572
10573 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
10574
10575         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
10576         throughout file.
10577
10578 2011-09-16  David S. Miller  <davem@davemloft.net>
10579
10580         * config/sparc/visintrin.h: New file.
10581         * config.gcc: Add it to extra_headers on sparc.
10582
10583 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
10584
10585         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
10586         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
10587         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
10588         reduc_smin_v4sf): Adjust callers.
10589         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
10590         New expanders.
10591
10592         * config/i386/sse.md (vec_extract_hi_<mode>,
10593         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
10594         vextracti128 instead of vextractf128 for -mavx2 and
10595         integer vectors.  For V4DFmode fix up mode attribute.
10596         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
10597         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
10598         instead of V8SF mode attribute.
10599         (avx2_extracti128): Change into define_expand.
10600         * config/i386/i386.c (ix86_expand_vector_extract): Handle
10601         32-byte vector modes if TARGET_AVX.
10602
10603 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
10604
10605         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
10606         (umulqi3_highpart, smulqi3_highpart): Ditto.
10607         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
10608         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
10609         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
10610
10611 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
10612
10613         PR target/50358
10614         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
10615         (*maddqi4, *maddqi4.const): New insns.
10616         (*msubqi4, *msubqi4.const): New insns.
10617         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
10618         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
10619         HImode by 1 in the case of multiplying with a CONST_INT.
10620         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
10621
10622 2011-09-15  Jan Hubicka  <jh@suse.cz>
10623
10624         PR lto/50430
10625         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
10626         error_mark_node in the DECL_INITIAL of vtable.
10627
10628 2011-09-15  Diego Novillo  <dnovillo@google.com>
10629
10630         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
10631         @SYSROOT_CFLAGS_FOR_TARGET@.
10632         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
10633         * configure: Regenerate.
10634         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
10635         Remove setting of GCC_UNDER_TEST.
10636
10637 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
10638
10639         * config/i386/i386.c (output_fp_compare): Return %v prefixed
10640         instruction mnemonics for TARGET_AVX.
10641
10642         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
10643         "type" attribute calculation.
10644         (*movdf_internal): Ditto.
10645         (*movsf_internal): Ditto.
10646
10647 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
10648
10649         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
10650
10651 2011-09-15  Jason Merrill  <jason@redhat.com>
10652
10653         PR c++/50361
10654         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
10655
10656 2011-09-15  Jan Hubicka  <jh@suse.cz>
10657
10658         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
10659         simplify obviously true clauses.
10660         (and_predicates, or_predicates): Add conditions parameter.
10661         (inline_duplication_hoook): Update.
10662         (mark_modified): New function.
10663         (unmodified_parm): New function.
10664         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
10665         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
10666         Use unmodified_parm.
10667         (estimate_function_body_sizes): Update.
10668         (remap_predicate): Update.
10669
10670 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
10671
10672         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
10673         read-after-read dependencies in basic block SLP.
10674
10675 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
10676
10677         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
10678         throughout file.
10679
10680 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
10681
10682         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
10683         throughout file.
10684
10685 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
10686
10687         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
10688         throughout file.
10689
10690 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
10691
10692         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
10693         throughout file.
10694         * config/rs6000/constraints.md: Likewise.
10695
10696 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
10697
10698         * config/microblaze/microblaze.md: Use match_test rather than
10699         eq/ne symbol_ref throughout file.
10700
10701 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
10702
10703         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
10704         throughout file.
10705
10706 2011-09-14  Tom de Vries  <tom@codesourcery.com>
10707
10708         PR middle-end/50251
10709         * explow.c (emit_stack_restore): Set crtl->need_drap if
10710         stack_restore is emitted.
10711
10712 2011-09-14  Julian Brown  <julian@codesourcery.com>
10713
10714         * config/arm/arm.c (arm_override_options): Add unaligned_access
10715         support.
10716         (arm_file_start): Emit attribute for unaligned access as appropriate.
10717         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
10718         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
10719         (insv, extzv): Add unaligned-access support.
10720         (extv): Change to expander. Likewise.
10721         (extzv_t1, extv_regsi): Add helpers.
10722         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
10723         (unaligned_storesi, unaligned_storehi): New.
10724         (*extv_reg): New (previous extv implementation).
10725         * config/arm/arm.opt (munaligned_access): Add option.
10726         * config/arm/constraints.md (Uw): New constraint.
10727         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
10728         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
10729         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
10730         volatile accesses when -fstrict-volatile-bitfields is in effect.
10731         (extract_bit_field_1): Likewise.
10732
10733 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
10734
10735         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
10736         a scalar integer before applying integer-only optimisations to
10737         inner arithmetic.
10738
10739 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
10740
10741         * config/mips/mips.c (mips_expand_epilogue): Generate a
10742         simple_return only if the return address is in r31.
10743
10744 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
10745
10746         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
10747         NULL for a jump that is a cc0 insn, pick the previous insn for
10748         move_before.
10749
10750 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
10751
10752         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
10753         throughout file.
10754
10755 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
10756
10757         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
10758         throughout file.
10759
10760 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
10761
10762         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
10763         symbol_ref throughout file.
10764
10765 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
10766
10767         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
10768         throughout file.
10769
10770 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
10771
10772         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
10773         throughout file.
10774
10775 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
10776
10777         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
10778         throughout file.
10779         * config/arm/neon.md: Likewise.
10780         * config/arm/vfp.md: Likewise.
10781         * config/arm/thumb2.md: Likewise.
10782         * config/arm/cortex-m4.md: Likewise.
10783
10784 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
10785
10786         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
10787         define_insn patterns for combine.
10788
10789 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
10790
10791         * reorg.c: Always define make_return_insns.
10792
10793 2011-09-13  Jan Hubicka  <jh@suse.cz>
10794
10795         PR other/49533
10796         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
10797
10798 2011-09-13  Jan Hubicka  <jh@suse.cz>
10799
10800         PR other/49533
10801         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
10802
10803 2011-09-13  Paul Brook  <paul@codesourcery.com>
10804
10805         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10806         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
10807         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
10808         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
10809         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
10810         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
10811         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
10812         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
10813         enabling unwind tables.
10814         (c6x_debug_unwind_info): New function.
10815         (TARGET_ARM_EABI_UNWINDER): Define.
10816         (TARGET_DEBUG_UNWIND_INFO): Define.
10817         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
10818         (TARGET_EXTRA_CFI_SECTION): Remove.
10819         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
10820         * ginclude/unwind-arm-common.h: New file.
10821
10822 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
10823
10824         PR target/50358
10825         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
10826         * config/avr/avr.md: (extend_s): New code attribute.
10827         (mul_r_d): New code attribute.
10828         (*maddqihi4, *umaddqihi4): New insns.
10829         (*msubqihi4, *umsubqihi4): New insns.
10830         (*usmaddqihi4, *sumaddqihi4): New insns.
10831         (*usmsubqihi4, *susubdqihi4): New insns.
10832         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
10833         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
10834         (*umsubqihi4.uconst.ashift): New insn-and-split.
10835         (*msubqihi4.sconst.ashift): New insn-and-split.
10836         (*sumaddqihi4.uconst): New insn-and-split.
10837         (*sumsubqihi4.uconst): New insn-and-split.
10838         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
10839         PLUS:HI and MINUS:HI.
10840
10841 2011-09-13  Revital Eres  <revital.eres@linaro.org>
10842
10843         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
10844         (optimize_sc): Adjust call to remove_node_from_ps.
10845         (sms_schedule): Add print info.
10846
10847 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
10848
10849         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
10850         flags specially.
10851
10852 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
10853
10854         PR bootstrap/50010
10855         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
10856         NOTE_INSN_CFI notes, with the exception of
10857         NOTE_INSN_SWITCH_TEXT_SECTIONS.
10858
10859 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
10860             Richard Sandiford  <rdsandiford@googlemail.com>
10861
10862         * config/mips/mips.c (mips_epilogue): New structure.
10863         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
10864         restoring registers.
10865         (mips_epilogue_emit_cfa_restores): New function.
10866         (mips_epilogue_set_cfa): Likewise.
10867         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
10868         the current CFA register from the stack, redefine the CFA in terms
10869         of the stack pointer.
10870         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
10871         to the epilogue instructions.
10872
10873 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
10874
10875         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
10876         argument.
10877         (mips16e_build_save_restore): Update accordingly.
10878
10879 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
10880
10881         PR rtl-optimization/50212
10882         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10883         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
10884
10885         PR debug/50299
10886         * calls.c (load_register_parameters): Use use_reg_mode instead
10887         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
10888         entry.
10889         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
10890         for stack CALL_INSN_FUNCTION_USAGE uses.
10891         * expr.h (use_reg_mode): New prototype.
10892         (use_reg): Changed into inline around use_reg_mode.
10893         * expr.c (use_reg): Renamed to...
10894         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
10895         mode to that mode instead of VOIDmode.
10896         * var-tracking.c (prepare_call_arguments): Don't track parameters
10897         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
10898         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
10899         EXPR_LIST mode.
10900
10901 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
10902
10903         PR target/43746
10904         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
10905         (progmem_section): New Variable.
10906         (avr_asm_init_sections): Initialize it.
10907         (TARGET_ASM_SELECT_SECTION): Define to...
10908         (avr_asm_select_section): ... this new Function.
10909         (avr_replace_prefix): New Function.
10910         (avr_asm_function_rodata_section): Use it.
10911         (avr_insert_attributes): Don't add section attribute for PROGMEM.
10912         (avr_section_type_flags): Use avr_progmem_p instead of section
10913         name to detect if object is in PROGMEM.
10914         (avr_asm_named_section): Set section name prefix for objects in
10915         PROGMEM.
10916
10917 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
10918
10919         PR bootstrap/50352
10920         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
10921         sprintf format string.
10922
10923 2011-09-12  Richard Guenther  <rguenther@suse.de>
10924
10925         PR tree-optimization/50343
10926         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
10927         that the reduction is over an SSA name before checking its definition.
10928
10929 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
10930
10931         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
10932         throughout file.
10933
10934 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
10935
10936         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
10937         throughout file.
10938         * config/mips/sb1.md: Likewise.
10939         * config/mips/predicates.md: Replace (match_test "!...")
10940         with (not (match_test "..."))
10941         * config/mips/constraints.md: Likewise.
10942
10943 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
10944
10945         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
10946         * config/arm/arm-tables.opt: Regenerate.
10947         * config/arm/arm-tune.md: Regenerate.
10948         * config/arm/arm.c (arm_file_start): Output .arch directive when
10949         user passes -mcpu=generic-*.
10950         (arm_issue_rate): Add genericv7a support.
10951         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
10952         (ASM_CPU_SPEC): New define.
10953         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
10954         * config/arm/semi.h (ASM_SPEC): Likewise.
10955         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
10956         and -mtune=generic-*.
10957
10958 2011-09-09  Richard Guenther  <rguenther@suse.de>
10959
10960         PR tree-optimization/50328
10961         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
10962         constant or default-def operand.
10963
10964 2011-09-09  Richard Guenther  <rguenther@suse.de>
10965
10966         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
10967         last statement.
10968
10969 2011-09-09  Richard Guenther  <rguenther@suse.de>
10970
10971         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
10972         instead of a statement.
10973         * gimple-fold.c (fold_stmt_inplace): Likewise.
10974         * sese.c (graphite_copy_stmts_from_block): Adjust.
10975         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
10976         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
10977         fold_stmt.
10978         (forward_propagate_addr_into_variable_array_index): Likewise.
10979         (forward_propagate_addr_expr_1): adjust.
10980         (associate_plusminus): Likewise.
10981         (ssa_forward_propagate_and_combine): Likewise.
10982         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
10983         (execute_cse_reciprocals): Likewise.
10984         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
10985
10986 2011-09-09  Nick Clifton  <nickc@redhat.com>
10987
10988         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
10989         Return a positive value to indicate that the bits at the
10990         bottom of the register should be cleared.
10991
10992 2011-09-09  Richard Guenther  <rguenther@suse.de>
10993
10994         * tree-ssa-operands.c (swap_tree_operands): Always adjust
10995         existing operand positions.
10996
10997 2011-09-09  Richard Guenther  <rguenther@suse.de>
10998
10999         PR middle-end/50333
11000         * tree-data-ref.c (split_constant_offset): Do not try to handle
11001         ternary ops.
11002
11003 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
11004
11005         PR tree-optimization/50318
11006         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
11007         typo in use of mult_rhs1 and mult_rhs2.
11008
11009 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
11010
11011         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
11012         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
11013
11014 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
11015
11016         * config/arm/arm.md (push_multi): Emit predicates.
11017         (push_fp_multi): Likewise.
11018         * config/arm/arm.c (vfp_output_fstmd): Likewise.
11019
11020 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
11021
11022         PR c++/33255 - Support -Wunused-local-typedefs warning
11023         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
11024         (pushdecl): Use the new record_locally_defined_typedef.
11025         (store_parm_decls): Allocate cfun->language.
11026         (finish_function): Use the new maybe_warn_unused_local_typedefs,
11027         and free cfun->language.
11028         (c_push_function_context): Allocate cfun->language here only if needed.
11029         (c_pop_function_context): Likewise, mark cfun->language
11030         for collection only when it should be done.
11031         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
11032         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
11033         maybe_record_local_typedef_use.
11034         * doc/invoke.texi: Update documentation for
11035         -Wunused-local-typedefs.
11036
11037 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
11038
11039         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
11040         (ix86_avoid_lea_for_add): Likewise.
11041         (ix86_avoid_lea_for_addr): Likewise.
11042         (ix86_split_lea_for_addr): Likewise.
11043
11044         * config/i386/i386.c (LEA_MAX_STALL): New.
11045         (increase_distance): Likewise.
11046         (insn_defines_reg): Likewise.
11047         (insn_uses_reg_mem): Likewise.
11048         (distance_non_agu_define_in_bb): Likewise.
11049         (distance_agu_use_in_bb): Likewise.
11050         (ix86_lea_outperforms): Likewise.
11051         (ix86_ok_to_clobber_flags): Likewise.
11052         (ix86_avoid_lea_for_add): Likewise.
11053         (ix86_avoid_lea_for_addr): Likewise.
11054         (ix86_split_lea_for_addr): Likewise.
11055         (distance_non_agu_define): Search in pred BBs added.
11056         (distance_agu_use): Search in succ BBs added.
11057         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
11058         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
11059         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
11060
11061         * config/i386/i386.md: Split added to transform non destructive
11062         add into move and add.
11063         (lea_1): transformed into insn_and_split to avoid AGU stalls.
11064         (lea<mode>_2): Likewise.
11065
11066 2011-09-08  Martin Jambor  <mjambor@suse.cz>
11067
11068         PR tree-optimization/50287
11069         * ipa-split.c (split_function): Do not create SSA names for
11070         non-gimple-registers.
11071
11072 2011-09-08  Richard Guenther  <rguenther@suse.de>
11073
11074         PR tree-optimization/19831
11075         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
11076         skip builtins with vdefs that do not really store something.
11077         (propagate_necessity): For calls to free that we can associate
11078         with an allocation function do not mark the freed pointer
11079         definition necessary.
11080         (eliminate_unnecessary_stmts): Remove a call to free if
11081         the associated call to an allocation function is not necessary.
11082
11083 2011-09-08  Richard Guenther  <rguenther@suse.de>
11084
11085         PR tree-optimization/19831
11086         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
11087         allocation functions as necessary.
11088
11089 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
11090
11091         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
11092         cut from ...
11093         (darwin_default_min_version): Amended to provide defaults
11094         for the cross directory case.
11095         (darwin_driver_init): call darwin_default_min_version unconditionally.
11096         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
11097         * config/darwin9.h: Likewise.
11098         * config/darwin10.h: Likewise.
11099         * config/rs6000/darwin7.h: Likewise.
11100
11101 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
11102
11103         PR target/50310
11104         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
11105         code early if TARGET_AVX.
11106         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
11107
11108 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
11109
11110         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
11111         duplicates.
11112
11113         PR target/50310
11114         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
11115         "mode" attribute computation.
11116
11117 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
11118
11119         * regrename.c (struct du_head): Make nregs signed.
11120         (closed_chains): Remove.
11121         (create_new_chain): Return the new chain.
11122         (chain_from_id): New static function.
11123         (dump_def_use_chain): Change argument to be an int, indicating
11124         the first ID to print.  All callers changed.
11125         (merge_overlapping_regs): Use chain_from_id.  Assert that
11126         chains don't conflict with themselves.
11127         (rename_chains): Take no argument.  Iterate over id_to_chain
11128         rather to find chains to rename.  Clear tick before the main loop.
11129         (struct incoming_reg_info): New struct.
11130         (struct bb_rename_info): New struct.
11131         (init_rename_info, set_incoming_from_chain, merge_chains): New
11132         static functions.
11133         (regrename_analyze): New static function, broken out of
11134         regrename_optimize.  Record and make use of open chain information
11135         at basic block boundaries, and merge chains where possible.
11136         (scan_rtx_reg): Make this_nregs signed.  Don't update
11137         closed_chains.
11138         (build_def_use): Return a bool to indicate success.  All callers
11139         changed.  Don't initialize global data here.
11140         (regrename_optimize): Move most code out of here into
11141         regrename_analyze.
11142         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
11143         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
11144         static inline functions.
11145         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
11146
11147         * bb-reorder.c (insert_section_boundary_note): Don't check
11148         optimize_function_for_speed_p.
11149         (gate_handle_partition_blocks): Do it here instead.
11150         (gate_handle_reorder_blocks): Move preliminary checks here ...
11151         (rest_of_handle_reorder_blocks): ... from here.
11152
11153 2011-09-07  Martin Jambor  <mjambor@suse.cz>
11154
11155         PR middle-end/50301
11156         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
11157         function index bounds.
11158         (perhaps_add_new_callers): Likewise.
11159
11160 2011-09-07  Martin Jambor  <mjambor@suse.cz>
11161
11162         PR tree-optimization/49911
11163         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
11164         enumerations to the corresponding plain integer type.
11165
11166 2011-09-07  Richard Guenther  <rguenther@suse.de>
11167
11168         PR tree-optimization/50319
11169         * tree-if-conv.c (set_bb_predicate): Assert we only set
11170         canonical predicates.
11171         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
11172         around canonical predicates.
11173         (predicate_bbs): Do not re-gimplify already canonical
11174         predicates.  Properly unshare them though.
11175         (find_phi_replacement_condition): Simplify.
11176
11177 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
11178
11179         PR target/49030
11180         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
11181         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
11182         reusing the old code from get_arm_condition_code.  Return ARM_NV
11183         for invalid comparison codes.
11184         (get_arm_condition_code): Redefine in terms of
11185         maybe_get_arm_condition_code.
11186         * config/arm/predicates.md (arm_comparison_operator): Use
11187         maybe_get_arm_condition_code.
11188
11189 2011-09-07  Richard Guenther  <rguenther@suse.de>
11190
11191         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11192         Canonicalize negated predicates by swapping edges.
11193         (forward_propagate_into_cond): Likewise.
11194
11195 2011-09-07  Richard Guenther  <rguenther@suse.de>
11196
11197         PR tree-optimization/50213
11198         * tree-flow.h (simple_iv_increment_p): Declare.
11199         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
11200         POINTER_PLUS_EXPR.
11201         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
11202         not propagate simple IV counter increments.
11203
11204 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
11205             Iain Sandoe  <iains@gcc.gnu.org>
11206
11207         * config/rs6000/rs6000.c (compute_save_world_info): Test
11208         cfun->has_nonlocal_label to determine if the out-of-line save
11209         world call may be used.
11210
11211 2011-09-07  Nick Clifton  <nickc@redhat.com>
11212
11213         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
11214         label on the parallel part of the insn.
11215
11216 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
11217
11218         PR debug/50191
11219         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
11220         avoid_constant_pool_reference first instead of last.
11221
11222 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11223
11224         * doc/configfiles.texi (Configuration Files): Update documentation
11225         about tm_p.h and remove FIXME comment.
11226
11227 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
11228
11229         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
11230         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
11231
11232 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
11233
11234         * config/darwin10.h Remove duplicate LIB_SPEC.
11235
11236 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
11237
11238         PR middle-end/44382
11239         * target.def (reassociation_width): New hook.
11240
11241         * doc/tm.texi.in (reassociation_width): Likewise.
11242
11243         * doc/tm.texi (reassociation_width): Likewise.
11244
11245         * doc/invoke.texi (tree-reassoc-width): New param documented.
11246
11247         * hooks.h (hook_int_uint_mode_1): New default hook.
11248
11249         * hooks.c (hook_int_uint_mode_1): Likewise.
11250
11251         * config/i386/i386.h (ix86_tune_indices): Add
11252         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
11253
11254         (TARGET_REASSOC_INT_TO_PARALLEL): New.
11255         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
11256
11257         * config/i386/i386.c (initial_ix86_tune_features): Add
11258         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
11259
11260         (ix86_reassociation_width): New function.
11261
11262         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
11263
11264         * tree-ssa-reassoc.c (get_required_cycles): New function.
11265         (get_reassociation_width): Likewise.
11266         (swap_ops_for_binary_stmt): Likewise.
11267         (rewrite_expr_tree_parallel): Likewise.
11268
11269         (rewrite_expr_tree): Refactored.  Part of code moved into
11270         swap_ops_for_binary_stmt.
11271
11272         (reassociate_bb): Now checks reassociation width to be used and
11273         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
11274
11275 2011-09-06  Richard Guenther  <rguenther@suse.de>
11276
11277         PR tree-optimization/47025
11278         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
11279         uses nothing.
11280         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
11281         BUILT_IN_FREE.
11282         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
11283         definitely points to.
11284         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11285         BUILT_IN_VA_START doesn't let its va_list argument escape.
11286         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
11287         not make any previous stores necessary.
11288
11289 2011-09-06  Martin Jambor  <mjambor@suse.cz>
11290
11291         * ipa-inline.h (struct inline_summary): Move versionable flag...
11292         * cgraph.h (struct cgraph_local_info): ...here
11293         * ipa-cp.c (determine_versionability): Use the new versionable flag.
11294         (determine_versionability): Likewise.
11295         (ipcp_versionable_function_p): Likewise.
11296         (ipcp_generate_summary): Likewise.
11297         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
11298         versionable flag.
11299         (compute_inline_parameters): Do not clear the versionable flag.
11300         (inline_read_section): Do not stream the versionable flag.
11301         (inline_write_summary): Likewise.
11302         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
11303         (input_overwrite_node): Likewise.
11304
11305 2011-09-06  Richard Guenther  <rguenther@suse.de>
11306
11307         PR tree-optimization/48149
11308         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
11309         (vn_valueize): Move earlier.
11310         (valueize_expr): Use vn_valueize.
11311         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
11312         operands.
11313         (simplify_unary_expression): Simplify.
11314
11315 2011-09-06  Richard Guenther  <rguenther@suse.de>
11316
11317         PR tree-optimization/48317
11318         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
11319         trailing array.
11320         (sizeof_vn_nary_op): New inline function.
11321         (vn_nary_op_lookup_pieces): Adjust.
11322         (vn_nary_op_insert_pieces): Likewise.
11323         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
11324         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
11325         any number of operands.
11326         (vn_nary_length_from_stmt): New function.
11327         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
11328         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
11329         sized temporary.
11330         (vn_nary_op_lookup): Likewise.
11331         (vn_nary_op_lookup_stmt): Likewise.
11332         (vn_nary_op_insert_into): Likewise.
11333         (vn_nary_op_insert_stmt): Likewise.
11334         (visit_use): Handle CONSTRUCTOR as nary.
11335         * tree-ssa-pre.c (phi_translate_1): Adjust.
11336         (create_expression_by_pieces): Likewise.
11337         (compute_avail): Likewise.
11338
11339 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
11340
11341          * config/arm/arm.c (arm_preferred_simd_mode): Check
11342         TARGET_NEON_VECTORIZE_DOUBLE instead of
11343         TARGET_NEON_VECTORIZE_QUAD.
11344         (arm_autovectorize_vector_sizes): Likewise.
11345         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
11346         mask of mvectorize-with-neon-double.  Add RejectNegative.
11347         (mvectorize-with-neon-double): New.
11348
11349 2011-09-06  Richard Guenther  <rguenther@suse.de>
11350
11351         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
11352
11353 2011-09-06  Tom de Vries  <tom@codesourcery.com>
11354
11355         * recog.c (asm_labels_ok): New function.
11356         (check_asm_operands): Use asm_labels_ok.
11357
11358 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
11359
11360         PR target/49606
11361         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
11362         (PMODE_INSN): New macro.
11363         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
11364         (mips_got_load, mips_expand_synci_loop): Likewise.
11365         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
11366         cprestore patterns.
11367         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
11368         copygp_mips16 patterns.
11369         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
11370         and use_cprestore patterns.
11371         (mips_override_options): Check for incompatible -mabi and -mlong
11372         combinations.
11373         * config/mips/mips.md (unspec_got<mode>): Rename to...
11374         (unspec_got_<mode>): ...this.
11375         (copygp_mips16): Use the Pmode iterator.
11376         (potential_cprestore, cprestore, use_cprestore): Likewise.
11377         (clear_cache, indirect_jump): Use PMODE_INSN.
11378         (indirect_jump<mode>): Rename to...
11379         (indirect_jump_<mode>): ...this.
11380         (tablejump): Use PMODE_INSN.
11381         (tablejump<mode>): Rename to...
11382         (tablejump_<mode>): ...this.
11383         (exception_receiver): Handle restore_gp_si and restore_gp_di.
11384         (restore_gp): Use the Pmode iterator.
11385         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
11386         PMODE_INSN.
11387
11388 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
11389
11390         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
11391         Fix the type of the BIT_AND_EXPR.
11392
11393 2011-09-05  David S. Miller  <davem@davemloft.net>
11394
11395         * config.host: Add driver-sparc.o and sparc/x-sparc on
11396         native sparc*-*-linux* builds.
11397         * config/sparc/driver-sparc.c: Correct Linux strings.
11398         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
11399         * config/sparc/linux64.h: Likewise.
11400         * doc/invoke.texi: Document that Linux also supports
11401         -mcpu=native and -mtune=native on sparc.
11402
11403         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
11404         PROCESSOR_NIAGARA4): New.
11405         * config/sparc/sparc.opt: Handle new processor types.
11406         * config/sparc/sparc.md: Add to "cpu" attribute.
11407         * config/sparc/sparc.h (TARGET_CPU_niagara3,
11408         TARGET_CPU_niagara4): New, treat as niagara2.
11409         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
11410         * config/sparc/sol2.h: Likewise.
11411         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
11412         * config/sparc/sparc.c (sparc_option_override): Add
11413         niagara3 and niagara4 handling.
11414         (sparc32_initialize_trampoline): Likewise.
11415         (sparc64_initialize_trampoline): Likewise.
11416         (sparc_use_sched_lookahead): Likewise.
11417         (sparc_issue_rate): Likewise.
11418         (sparc_register_move_cost): Likewise.
11419         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
11420         and niagara4 as appropriate.
11421         * doc/invoke.texi: Document new processor types.
11422         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
11423         and --with-tune options.
11424
11425         * config/sparc/sol2-64.h: Move ...
11426         * config/sparc/default-64.h: ... to here.  Update comment.
11427         * config.gcc: Update Solaris sparc to use default-64.h, also
11428         prefix this header into the list on sparc64-*-linux.
11429         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
11430         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
11431         to MASK_HARD_QUAD.
11432
11433 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
11434
11435         PR target/50289
11436         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
11437         that contain global register variable.
11438
11439 2011-09-05  Richard Guenther  <rguenther@suse.de>
11440
11441         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
11442
11443 2011-09-05  Richard Guenther  <rguenther@suse.de>
11444
11445         * stor-layout.c (layout_type): Use size_binop for array size
11446         calculations.
11447
11448 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
11449
11450         * config/avr/avr.h (progmem_section): Remove Declaration.
11451         * config/avr/avr.c (progmem_section): Make static and rename to
11452         progmem_swtable_section.
11453         (avr_output_addr_vec_elt): No need to switch sections.
11454         (avr_asm_init_sections): Use output_section_asm_op as section
11455         callback for progmem_swtable_section.
11456         (avr_output_progmem_section_asm_op): Remove Function.
11457         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
11458         (avr_asm_function_rodata_section): New static Function.
11459         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
11460         alignment 2**1 for jump tables.
11461
11462 2011-09-04  Jan Hubicka  <jh@suse.cz>
11463
11464         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
11465         parameter is SSA name.
11466
11467 2011-09-04  Richard Guenther  <rguenther@suse.de>
11468
11469         Revert
11470         2011-08-31  Richard Guenther  <rguenther@suse.de>
11471
11472         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
11473         special-casing.
11474
11475 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
11476
11477         PR debug/49901
11478         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
11479
11480 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
11481             Ira Rosen  <ira.rosen@linaro.org>
11482
11483         PR tree-optimization/50208
11484         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
11485         argument.  Check that def_stmt is inside the loop.
11486         (vect_recog_widen_mult_pattern): Update calls to
11487         vect_handle_widen_mult_by_cons.
11488         (vect_operation_fits_smaller_type): Check that def_stmt is
11489         inside the loop.
11490
11491 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
11492
11493         * tree-vectorizer.c (vect_print_dump_info): Print line
11494         number when dumping to a file.
11495         (vectorize_loops): Add new messages to dump file.
11496
11497 2011-09-03  Martin Jambor  <mjambor@suse.cz>
11498
11499         * ipa-prop.h (ipa_jump_func_t): New typedef.
11500         (struct ipa_edge_args): Removed field argument_count, field
11501         jump_functions turned into a vector.
11502         (ipa_set_cs_argument_count): Removed.
11503         (ipa_get_cs_argument_count): Updated to work on vectors.
11504         (ipa_get_ith_jump_func): Likewise.
11505         * ipa-prop.c (ipa_count_arguments): Removed.
11506         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
11507         jump functions.  Update caller.
11508         (compute_pass_through_member_ptrs): Likewise.
11509         (compute_cst_member_ptr_arguments): Likewise.
11510         (ipa_compute_jump_functions_for_edge): Get number of arguments from
11511         the statement, allocate vector.
11512         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
11513         (duplicate_ipa_jump_func_array): Removed.
11514         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
11515         (ipa_read_node_info): Allocate vector.
11516
11517 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11518
11519         PR middle-end/50232
11520         * config/pa/pa.md (return): Define "return" insn pattern.
11521         (epilogue): Use it when no epilogue is needed.
11522         * config/pa/pa.c (pa_can_use_return_insn): New function.
11523         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
11524
11525 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
11526
11527         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
11528         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
11529         Force at least BITS_PER_UNIT alignment on the new variable.
11530
11531 2011-09-02  Gary Funck <gary@intrepid.com>
11532
11533         * opts.c (print_specific_help): Fix off-by-one compare in
11534         assertion check.
11535         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11536         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
11537         Increase by +5 to allow for more languages.
11538         * optc-gen.awk: Generate #if that ensures that the number of
11539         languages is within the implementation-defined limit.
11540
11541 2011-09-02  Michael Matz  <matz@suse.de>
11542
11543         PR middle-end/50260
11544         * ipa-split.c (split_function): Call add_referenced_var.
11545
11546         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
11547         (cond_if_else_store_replacement_1): Ditto.
11548         * tree-ssa-pre.c (get_representative_for): Ditto.
11549         (create_expression_by_pieces): Ditto.
11550         (insert_into_preds_of_block): Ditto.
11551         * tree-sra.c (create_access_replacement): Ditto.
11552         (get_replaced_param_substitute): Ditto.
11553
11554 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
11555
11556         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
11557         automata_options.
11558         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
11559         (l1w, s1w, l2w, s2w): Define in the main automaton.
11560         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
11561         units.
11562         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
11563         (c6x_unit_names): Add the new units.
11564         (c6x_unit_codes): New static array.
11565         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
11566         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
11567         UNIT_QID_SIDE_OFFSET): New macros.
11568         (RESERVATION_S2): Adjust value.
11569         (c6x_option_override): Compute c6x_unit_codes.
11570         (assign_reservations): Take the unit_mask of the last instruction
11571         into account.  Detect floating point reservations by looking for
11572         the new units.  Don't assign reservations if the field is already
11573         nonzero.
11574         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
11575         (init_sched_state): Initialize it.
11576         (c6x_clear_sched_context): Free it.
11577         (insn_set_clock): Clear reservation.
11578         (prev_cycle_state): New static variable.
11579         (c6x_init_sched_context): Save it.
11580         (c6x_sched_init): Allocate space for it and clear it.
11581         (c6x_sched_dfa_pre_cycle_insn): New static function.
11582         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
11583         (c6x_variable_issue): Only record units in the unit_mask that
11584         were not set at the start of the cycle.
11585         (c6x_variable_issue): Compute and store the unit_mask from the
11586         current state.
11587         (reorg_split_calls): Ensure the new information remains correct.
11588         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
11589         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
11590         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
11591         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
11592         Add special reservations.
11593         * config/c6x/c6x-sched.md: Regenerate.
11594
11595 2011-09-02  Martin Jambor  <mjambor@suse.cz>
11596
11597         * ipa-prop.h (ipa_node_params): Removed fields
11598         called_with_var_arguments and node_versionable.
11599         (ipa_set_called_with_variable_arg): Removed.
11600         (ipa_is_called_with_var_arguments): Likewise.
11601         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
11602         (determine_versionability): Do not check for type attributes and va
11603         builtins.  Record versionability into inline summary.
11604         (initialize_node_lattices): Do not check
11605         ipa_is_called_with_var_arguments.
11606         (propagate_constants_accross_call): Likewise, ignore arguments we do
11607         not have PARM_DECLs for, set variable flag for parameters that were
11608         not passed a value.
11609         (create_specialized_node): Dump info that we cannot change signature.
11610         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
11611         number of arguments.
11612         (ipa_make_edge_direct_to_target): Likewise.
11613         (ipa_update_after_lto_read): Likewise.
11614         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
11615         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
11616         they were remapped.
11617
11618 2011-09-02  Richard Guenther  <rguenther@suse.de>
11619
11620         PR tree-optimization/27460
11621         PR middle-end/29269
11622         * doc/md.texi (vcond): Document.
11623         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
11624         optab with two modes.
11625         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
11626         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
11627         (vcond_optab): Adjust.
11628         (vcondu_optab): Likewise.
11629         (expand_vec_cond_expr_p): Adjust prototype.
11630         * optabs.c (get_vcond_icode): Adjust.
11631         (expand_vec_cond_expr_p): Likewise.
11632         (expand_vec_cond_expr): Likewise.
11633         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
11634         vector type.
11635         (vectorizable_condition): Allow differing types for comparison
11636         and result.
11637         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
11638         for the comparison.
11639         * config/i386/sse.md (vcond<mode>): Split to
11640         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
11641         vcond<V_128:mode><VI124_128:mode> and
11642         vcondu<V_128:mode><VI124_128:mode>.
11643         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
11644         (vconduv2di): Likewise.
11645         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
11646         (vcondu<mode>): Likewise.
11647         * config/ia64/vect.md (vcond<mode>): Likewise.
11648         (vcondu<mode>): Likewise.
11649         (vcondv2sf): Likewise.
11650         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
11651         * config/rs6000/paired.md (vcondv2sf): Likewise.
11652         * config/rs6000/vector.md (vcond<mode>): Likewise.
11653         (vcondu<mode>): Likewise.
11654         * config/spu/spu.md (vcond<mode>): Likewise.
11655         (vcondu<mode>): Likewise.
11656
11657 2011-09-02  Richard Guenther  <rguenther@suse.de>
11658
11659         * pretty-print.h (pp_unsigned_wide_integer): New.
11660         * tree-pretty-print.c (dump_generic_node): Print unsigned
11661         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
11662
11663 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
11664
11665         PR target/49987
11666         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
11667         valid CONST_VECTOR operands.
11668         (rs6000_expand_vector_init): Likewise.
11669
11670 2011-09-02  Martin Jambor  <mjambor@suse.cz>
11671
11672         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
11673         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
11674         BINFO_VTABLE.  Parameter delta removed, all callers updated.
11675         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
11676         BINFO_VTABLE.
11677         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
11678         all calls.
11679         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
11680         handling of thunk_delta.
11681         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
11682         (devirtualization_time_bonus): Do not handle thunk deltas.
11683         (ipcp_discover_new_direct_edges): Likewise.
11684         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11685         (try_make_edge_direct_simple_call): Likewise.
11686         (try_make_edge_direct_virtual_call): Likewise.
11687         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
11688         parameter set as unused.
11689         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
11690         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
11691         parameter set as unused.
11692         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
11693         (input_edge_opt_summary): Likewise.
11694         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
11695         BINFO_VIRTUALS at all.
11696         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
11697
11698 2011-09-02  Richard Guenther  <rguenther@suse.de>
11699
11700         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
11701         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
11702
11703 2011-08-31  Richard Guenther  <rguenther@suse.de>
11704
11705         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
11706         handling here, from ...
11707         (expand_expr_real_1): ... here.
11708         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
11709         and VEC_COND_EXPR.
11710         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
11711         a GIMPLE_TERNARY_RHS.
11712         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
11713         and VEC_COND_EXPR here ...
11714         (verify_gimple_assign_single): ... not here.
11715         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
11716         * tree-object-size.c (cond_expr_object_size): Adjust.
11717         (collect_object_sizes_for): Likewise.
11718         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
11719         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
11720         (ssa_forward_propagate_and_combine): Adjust.
11721         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
11722         as ternary.
11723         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
11724         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
11725         * tree-vect-stmt.c (vectorizable_condition): Likewise.
11726         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
11727         (extract_range_from_assignment): Likewise.
11728
11729 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
11730
11731         * config/i386/i386.md: Use (match_test ...) for attribute tests.
11732         * config/i386/mmx.md: Likewise.
11733         * config/i386/sse.md: Likewise.
11734         * config/i386/predicates.md (call_insn_operand): Use
11735         (not (match_test "...")) instead of (match_test "!...")
11736         * config/i386/constraints.md (w): Likewise.
11737
11738 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
11739
11740         * doc/md.texi: Describe the use of match_tests in attribute tests.
11741         * rtl.def (MATCH_TEST): Update commentary.
11742         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
11743         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
11744
11745 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
11746
11747         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
11748         (attr_string): Use copy_md_ptr_loc.
11749
11750 2011-08-31  Martin Jambor  <mjambor@suse.cz>
11751
11752         PR middle-end/49886
11753         * ipa-inline-analysis.c (compute_inline_parameters): Set
11754         can_change_signature of noes with typde attributes.
11755         * ipa-split.c (split_function): Do not skip any arguments if
11756         can_change_signature is set.
11757
11758 2011-08-31  Martin Jambor  <mjambor@suse.cz>
11759
11760         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
11761         check removed.
11762
11763 2011-08-31  Richard Guenther  <rguenther@suse.de>
11764
11765         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
11766         special-casing.
11767
11768 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
11769
11770         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
11771
11772 2011-08-31  Tom de Vries  <tom@codesourcery.com>
11773
11774         PR middle-end/43513
11775         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
11776         * tree-ssa-ccp.c (params.h): Include.
11777         (fold_builtin_alloca_for_var): New function.
11778         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
11779
11780 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
11781
11782         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11783         Handle FMA option.
11784
11785 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
11786
11787         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
11788         b3 and b4 unsigned.
11789
11790 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
11791
11792         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
11793         when code is SET.
11794
11795 2011-08-30  Richard Guenther  <rguenther@suse.de>
11796
11797         PR middle-end/48571
11798         * gimple.h (maybe_fold_offset_to_address): Remove.
11799         (maybe_fold_offset_to_reference): Likewise.
11800         (maybe_fold_stmt_addition): Likewise.
11801         (may_propagate_address_into_dereference): Likewise.
11802         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
11803         array references.
11804         * gimple-fold.c (canonicalize_constructor_val): Likewise.
11805         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
11806         addresses instead.
11807         (may_propagate_address_into_dereference): Remove.
11808         (maybe_fold_offset_to_array_ref): Likewise.
11809         (maybe_fold_offset_to_reference): Likewise.
11810         (maybe_fold_offset_to_address): Likewise.
11811         (maybe_fold_stmt_addition): Likewise.
11812         (fold_gimple_assign): Do not reconstruct array references but
11813         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
11814         MEM_REF addresses.
11815         (gimple_fold_stmt_to_constant_1): Likewise.
11816         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11817         * gimplify.c (gimplify_conversion): Likewise.
11818         (gimplify_expr): Likewise.
11819
11820 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
11821
11822         * config/i386/fmaintrin.h: New.
11823         * config.gcc: Add fmaintrin.h.
11824         * config/i386/i386.c
11825         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
11826         <IX86_BUILTIN_VFMADDSD3>: Likewise.
11827         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
11828         (*fmai_fmadd_<mode>): Likewise.
11829         (*fmai_fmsub_<mode>): Likewise.
11830         (*fmai_fnmadd_<mode>): Likewise.
11831         (*fmai_fnmsub_<mode>): Likewise.
11832         * config/i386/immintrin.h: Add fmaintrin.h.
11833
11834 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
11835
11836         * genautomata.c (NO_COMB_OPTION): New macro.
11837         (no_comb_flag): New static variable.
11838         (gen_automata_option): Handle NO_COMB_OPTION.
11839         (comb_vect_p): False if no_comb_flag.
11840         (add_vect): Move computation of min/max values.  Return early if
11841         no_comb_flag.
11842         * doc/md.texi (automata_option): Document no-comb-vect.
11843
11844         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
11845         "__x86.get_pc_thunk".
11846
11847         * bb-reorder.c (insert_section_boundary_note): Only do it if
11848         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
11849
11850 2011-08-30  Christian Bruel  <christian.bruel@st.com>
11851
11852         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
11853         flag_profile_use.
11854
11855 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
11856
11857         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
11858         to off.  Document switch.
11859         * doc/invoke.texi (-msave-toc-indirect): Ditto.
11860
11861 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
11862
11863         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
11864         conditionals and comments inside macro arguments.
11865
11866 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
11867             Richard Guenther  <rguenther@suse.de>
11868
11869         * tree.h (constant_boolean_node): Adjust prototype.
11870         * fold-const.c (fold_convert_loc): Move aggregate conversion
11871         leeway down.
11872         (constant_boolean_node): Make value parameter boolean, add
11873         vector type handling.
11874         (fold_unary_loc): Use constant_boolean_node.
11875         (fold_binary_loc): Preserve types properly when folding
11876         COMPLEX_EXPR <__real x, __imag x>.
11877         * gimplify.c (gimplify_expr): Handle vector comparison.
11878         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
11879         comparison.
11880         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
11881         comparisons.
11882
11883 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
11884
11885         PR middle-end/48722
11886         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
11887         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
11888         (verify_rtl_sharing): Likewise and verify_rtx_sharing
11889         in there too.
11890         (unshare_all_rtl_in_chain): For CALL_INSNs
11891         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
11892
11893 2011-08-29  Richard Guenther  <rguenther@suse.de>
11894
11895         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
11896         on the built ADDR_EXPR.
11897
11898 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
11899
11900         PR debug/50215
11901         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
11902         before adding ENTRY_VALUE to val->locs.
11903
11904 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
11905
11906         PR bootstrap/50218
11907         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
11908         comp.
11909
11910 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
11911
11912         * doc/rtl.texi (simple_return): Document.
11913         (parallel, PATTERN): Here too.
11914         * doc/md.texi (return): Mention it's allowed to expand to simple_return
11915         in some cases.
11916         (simple_return): Document standard pattern.
11917         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
11918         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
11919         * reorg.c (function_return_label, function_simple_return_label):
11920         New static variables, replacing...
11921         (end_of_function_label): ... this.
11922         (simplejump_or_return_p): New static function.
11923         (optimize_skip, steal_delay_list_from_fallthrough,
11924         fill_slots_from_thread): Use it.
11925         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
11926         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
11927         (find_end_label): Take a new arg which is one of the two return
11928         rtxs.  Depending on which, set either function_return_label or
11929         function_simple_return_label.  All callers changed.
11930         (make_return_insns): Make both kinds.
11931         (dbr_schedule): Adjust for two kinds of end labels.
11932         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
11933         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
11934         (gen_expand, gen_split): Use ANY_RETURN_P.
11935         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
11936         * rtl.def (SIMPLE_RETURN): New code.
11937         * ifcvt.c (find_if_case_1): Be more careful about
11938         redirecting jumps to the EXIT_BLOCK.
11939         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
11940         returnjump_p_1): Handle SIMPLE_RETURNs.
11941         * print-rtl.c (print_rtx): Likewise.
11942         * rtl.c (copy_rtx): Likewise.
11943         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
11944         * combine.c (simplify_set): Likewise.
11945         * resource.c (find_dead_or_set_registers, mark_set_resources):
11946         Likewise.
11947         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
11948         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
11949         (init_emit_regs): Initialize simple_return_rtx.
11950         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
11951         force_nonfallthru_and_redirect.
11952         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
11953         (GR_SIMPLE_RETURN): New enum value.
11954         (simple_return_rtx): New macro.
11955         * basic-block.h (force_nonfallthru_and_redirect): Adjust
11956         declaration.
11957         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
11958         argument.  All callers changed.  Be careful about what kinds of
11959         returnjumps to generate.
11960         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
11961         ix86_pad_short_function): Likewise.
11962         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
11963         of return.
11964         * config/mips/mips.md (any_return): New code_iterator.
11965         (optab): Add cases for return and simple_return.
11966         (return): Expand to a simple_return.
11967         (simple_return): New pattern.
11968         (*<optab>, *<optab>_internal for any_return): New patterns.
11969         (return_internal): Remove.
11970         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
11971         a simple_return_internal.
11972
11973 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
11974
11975         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
11976         (vec_extract_lo_<mode>): Prevent both operands in memory.
11977         (vec_extract_lo_v16hi): Ditto.
11978         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
11979
11980 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
11981
11982         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
11983         (*sse2_mulv4si3): Ditto.
11984         (mulv2di3): Ditto.
11985         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
11986         notes to REG_EQUAL.
11987
11988 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
11989
11990         PR target/50202
11991         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
11992         when all outputs are unused.
11993         (sse4_2_pcmpistr): Ditto.
11994
11995 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
11996
11997         * config/i386/i386.md (round<mode>2): New expander.
11998         * config/i386/i386.c (enum ix86_builtins): Add
11999         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
12000         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
12001         descriptions.
12002         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
12003         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
12004
12005 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
12006
12007         PR middle-end/50083
12008         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
12009         only when TARGET_C99_FUNCTIONS.
12010         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
12011         <BUILT_IN_RINT{,F,L}>: Ditto.
12012
12013 2011-08-26  Michael Matz  <matz@suse.de>
12014             Jakub Jelinek  <jakub@redhat.com>
12015
12016         PR lto/50165
12017         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
12018         don't call strlen twice, use memcpy.
12019
12020 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12021
12022         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
12023         * config/i386/bmiintrin.h: Likewise.
12024         * config/i386/lzcntintrin.h: Likewise.
12025
12026         * config/i386/immintrin.h: Include <lzcntintrin.h>,
12027         <bmiintrin.h> and <bmi2intrin.h>.
12028
12029 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12030
12031         PR target/50166
12032         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
12033         * configure: Regenerate.
12034
12035 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
12036
12037         PR c/50179
12038         * c-typeck.c (c_process_expr_stmt): Skip over nops and
12039         call mark_exp_read even if exprv is ADDR_EXPR.
12040
12041 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
12042
12043         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
12044         to df_set_dead_notes_for_mw.
12045
12046 2011-08-26  Richard Guenther  <rguenther@suse.de>
12047
12048         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
12049
12050 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
12051             Tom de Vries  <tom@codesourcery.com>
12052
12053         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
12054         (struct ivopts_data): Add loop_single_exit_p field.
12055         (niter_for_exit): Change parameter desc_p into return value.  Return
12056         desc if desc->may_be_zero.  Free desc if unused.
12057         (niter_for_single_dom_exit): Change return type.
12058         (find_induction_variables): Handle changed return type of
12059         niter_for_single_dom_exit.  Dump may_be_zero.
12060         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
12061         (set_use_iv_cost): Add and handle comp parameter.
12062         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
12063         comp argument to set_use_iv_cost.
12064         (strip_wrap_conserving_type_conversions, expr_equal_p)
12065         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
12066         (may_eliminate_iv): Add comp parameter.  Handle new return type of
12067         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
12068         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
12069         and may_eliminate_iv.
12070         (rewrite_use_compare): Move call to iv_elimination_compare to ...
12071         (may_eliminate_iv): Here.
12072         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
12073
12074 2011-08-26  Tom de Vries  <tom@codesourcery.com>
12075
12076         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
12077         accessing TREE_TYPE.
12078
12079 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
12080
12081         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
12082         (*ior_scc_scc_cmp): Likewise
12083         (*and_scc_scc): Likewise.
12084         (*and_scc_scc_cmp): Likewise.
12085         (*and_scc_scc_nodom): Likewise.
12086         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
12087
12088 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
12089
12090         * rtlanal.c (nonzero_bits1): Handle CLRSB.
12091
12092 2011-08-26  Richard Guenther  <rguenther@suse.de>
12093
12094         * expr.c (string_constant): Handle &MEM_REF.
12095
12096 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
12097
12098         * config/arm/arm.c (struct four_ints): New type.
12099         (count_insns_for_constant): Delete function.
12100         (find_best_start): Delete function.
12101         (optimal_immediate_sequence): New function.
12102         (optimal_immediate_sequence_1): New function.
12103         (arm_gen_constant): Move constant splitting code to
12104         optimal_immediate_sequence.
12105         Rewrite constant negation/invertion code.
12106
12107 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
12108
12109         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
12110         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
12111         Remove prototype. Remove static function type.
12112         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
12113         Add arch attribute.
12114         * config/arm/constraints.md (Pj, PJ): New constraints.
12115
12116 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12117
12118         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
12119         ("cortex_a9_multiply_long"): New and use above.  Handle all
12120         long multiply cases.
12121         ("cortex_a9_multiply"): Handle smmul and smmulr.
12122         ("cortex_a9_mac"): Handle smmla.
12123
12124 2011-08-25  Richard Henderson  <rth@redhat.com>
12125
12126         PR 50132
12127         PR 49864
12128         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
12129         non-constant stack adjutment.
12130         * expr.c (find_args_size_adjust): Break out from ...
12131         (fixup_args_size_notes): ... here.
12132         * rtl.h (find_args_size_adjust): Declare.
12133
12134 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
12135
12136         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
12137         sse4 and sse4_noavx.
12138         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
12139         (*pushdf_rex64): Change Y2 register constraint to x.
12140         (*movdf_internal_rex64): Ditto.
12141         (*zero_extendsidi2_rex64): Ditto.
12142         (*movdi_internal): Change Y2 register constraint to x
12143         and update "isa" attribute.
12144         (*pushdf): Ditto.
12145         (*movdf internal): Ditto.
12146         (zero_extendsidi2_1): Ditto.
12147         (*truncdfdf_mixed): Ditto.
12148         (*truncxfdf2_mixed): Ditto.
12149         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
12150         register constraint to x.
12151         (*movv2sf_internal_rex64): Ditto.
12152         (*mov<mode>_internal): Change Y2 register constraint to x
12153         and add "isa" attribute.
12154         (*movv2sf_internal): Ditto.
12155         (*vec_extractv2si_1): Ditto.
12156         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
12157         constraints to x and update "isa" attribute.
12158         (*vec_interleave_highv2df): Change Y3 registerconstraint
12159         to x and update "isa" attribute.
12160         (*vec_interleave_lowv2df): Ditto.
12161         (*vec_concatv2df): Change Y2 register constraint to x and
12162         update "isa" attribute.
12163         (sse2_loadld): Ditto.
12164         (*vec_extractv2di_1): Ditto.
12165         (*vec_dupv4si): Ditto.
12166         (*vec_dupv2di): Ditto.
12167         (*vec_concatv4si): Ditto.
12168         (vec_concatv2di): Ditto.
12169         * config/i386/constraints.md (Y2): Remove.
12170         (Y3): Ditto.
12171         (Y4): Ditto.
12172
12173 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
12174
12175         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
12176         dump_def_use_chain): Don't declare.
12177         (mark_conflict, create_new_chain): Move before users.
12178         (regrename_optimize): Move to near end of file.
12179
12180 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
12181
12182         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
12183         (secondary_input_reload_class): Remove Prototype.
12184         * config/avr/avr.c (byte_immediate_operand): Remove Function.
12185         * config/avr/avr.md (setmemhi): Use u8_operand.
12186         (strlenhi): Use const0_rtx for comparison.
12187         * config/avr/avr.h (avr_reg_order): Remove Declaration.
12188
12189 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
12190
12191         * config/avr/avr.c (reg_class_tab): Make local to
12192         avr_regno_reg_class.  Return smallest register class available.
12193
12194 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
12195
12196         * config/avr/avr.c (STR_PREFIX_P): New Define.
12197         (avr_asm_declare_function_name): Use it.
12198         (avr_asm_named_section): Use it.
12199         (avr_section_type_flags): Use it.
12200
12201 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
12202
12203         * doc/md.texi (automata_option): Document collapse-ndfa.
12204         * genautomata.c (COLLAPSE_OPTION): New macro.
12205         (collapse_flag): New static variable.
12206         (struct description): New member normal_decls_num.
12207         (struct automaton): New members advance_ainsn and collapse_ainsn.
12208         (gen_automata_option): Check for COLLAPSE_OPTION.
12209         (collapse_ndfa_insn_decl): New static variable.
12210         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
12211         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
12212         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
12213         necessary.  Use normal_decls_num rather than decls_num, remove
12214         test for special decls.
12215         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
12216         (make_automaton); Likewise.  Use the new advance_cycle_insn member
12217         of struct automaton.
12218         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
12219         is set.
12220         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
12221         transition.  Create the necessary transitions for it.
12222         (create_ainsns): Return void.  Take an automaton_t argument, and
12223         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
12224         callers changed.
12225         (COLLAPSE_NDFA_VALUE_NAME): New macro.
12226         (output_tables): Output code to define it.
12227         (output_internal_insn_code_evaluation): Output code to accept
12228         const0_rtx as collapse-ndfa transition.
12229         (output_default_latencies, output_print_reservation_func,
12230         output_print_description): Reorganize loops to use normal_decls_num
12231         as loop bound; remove special case for advance_cycle_insn_decl.
12232         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
12233         (check_automata_insn_issues): Check for collapse_ainsn.
12234         (expand_automate): Allocate sufficient space.  Initialize
12235         normal_decls_num.
12236
12237 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
12238
12239         * config/avr/avr.md: Fix indentation from r177991.
12240
12241 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
12242
12243         * regrename.c (struct du_head): Remove member terminated.
12244         (create_new_chain): Don't initialize it.
12245         (scan_rtx_reg): Don't set or test it, test the open_chains_set
12246         bitmap instead.
12247         (tick, this_tick): New global variables, moved out of
12248         regrename_optimize.
12249         (current_id, open_chains, closed_chains, open_chains_set,
12250         live_in_chains, live_hard_regs): Reorder declarations.
12251         (dump_def_use_chain): Move function earlier in the file.
12252         (rename_chains): New static function, broken out of
12253         regrename_optimize.
12254         (regrename_optimize): Use it.  Remove #if 0'ed code.
12255
12256 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12257
12258         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
12259
12260 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
12261
12262         PR target/50172
12263         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
12264
12265 2011-08-24  Richard Guenther  <rguenther@suse.de>
12266
12267         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
12268         ref in the basic-block case.  Move stripping array-refs
12269         to the place we create an access-function for it.  Remove
12270         bogus stripping down a MEM_REF to its base.
12271
12272 2011-08-24  Richard Guenther  <rguenther@suse.de>
12273
12274         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
12275         with -fno-strict-overflow.
12276
12277 2011-08-24  Richard Guenther  <rguenther@suse.de>
12278
12279         * tree-vectorizer.c (vect_print_dump_info): Avoid the
12280         file and location clutter when dumping to dump files.
12281
12282 2011-08-24  Simon Baldwin  <simonb@google.com>
12283
12284         * gengtype-state.c (write_state): Remove timestamped header line.
12285
12286 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
12287
12288         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
12289         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
12290         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
12291         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
12292         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
12293         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
12294         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
12295         rules.
12296         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
12297
12298 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
12299
12300         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
12301
12302 2011-08-24  Richard Guenther  <rguenther@suse.de>
12303
12304         PR tree-optimization/50067
12305         * tree-data-ref.c (dr_analyze_indices): Do not add an access
12306         function for a MEM_REF base that has no evolution in the loop
12307         nest or that is not analyzable.
12308
12309 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
12310
12311         * ira.c (ira_init_register_move_cost): Check small subclasses
12312         through ira_reg_class_max_nregs and ira_available_class_regs.
12313
12314 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
12315
12316         * config/i386/constraints.md (Yp): New register constraint.
12317         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
12318         Yp register constraint.
12319         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
12320         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
12321         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
12322
12323 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12324
12325         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
12326
12327 2011-08-23  Mark Heffernan  <meheff@google.com>
12328
12329         PR middle-end/38509
12330         * common.opt (Wfree-nonheap-object): New option.
12331         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
12332         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
12333         to warning.
12334         (expand_builtin): Make warning conditional.
12335
12336 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
12337
12338         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
12339         (length_immediate): Handle imulx, ishiftx and rotatex.
12340         (imm_disp): Ditto.
12341         (isa): Add bmi2.
12342         (enabled): Handle bmi2.
12343         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
12344         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
12345         (*bmi2_umulditi3_1): New insn pattern.
12346         (*bmi2_umulsidi3_1): Ditto.
12347         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
12348         (*bmi2_ashl<mode>3_1): New insn pattern.
12349         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
12350         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
12351         (*bmi2_ashlsi3_1_zext): New insn pattern.
12352         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
12353         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
12354         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
12355         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
12356         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
12357         flags dependency.
12358         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
12359         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
12360         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
12361         flags dependency.
12362         (*bmi2_rorx<mode>3_1): New insn pattern.
12363         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
12364         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
12365         (*rotatert<mode>3_1 splitter): Ditto.
12366         (*bmi2_rorxsi3_1_zext): New insn pattern.
12367         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
12368         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
12369         (*rotatertsi3_1_zext splitter): Ditto.
12370
12371 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12372
12373         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
12374         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
12375         (ix86_handle_option): Handle OPT_mbmi2 case.
12376         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
12377         (x86_64-*-*): Likewise.
12378         * config/i386/bmi2intrin.h: New file.
12379         * config/i386/cpuid.h (bit_BMI2): New.
12380         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12381         BMI2 feature.
12382         * config/i386/i386-c.c (ix86_target_macros_internal):
12383         Conditionally define __BMI2__.
12384         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
12385         Handle BMI2 option.
12386         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
12387         (print_reg): New code.
12388         (ix86_print_operand): Likewise.
12389         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
12390         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
12391         IX86_BUILTIN_PEXT64.
12392         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
12393         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
12394         IX86_BUILTIN_PEXT64.
12395         * config/i386/i386.h (TARGET_BMI2): New.
12396         * config/i386/i386.md (UNSPEC_PDEP): New.
12397         (UNSPEC_PEXT): Likewise.
12398         (*bmi2_bzhi_<mode>3): Likewise.
12399         (*bmi2_pdep_<mode>3): Likewise.
12400         (*bmi2_pext_<mode>3): Likewise.
12401         * config/i386/i386.opt (mbmi2): New.
12402         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
12403         is defined.
12404         * doc/extend.texi: Document BMI2 built-in functions.
12405         * doc/invoke.texi: Document -mbmi2.
12406
12407 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
12408
12409         PR middle-end/50161
12410         * simplify-rtx.c (simplify_const_unary_operation): If
12411         op is CONST_INT, don't look at op_mode, but use instead mode.
12412         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
12413         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
12414         operation and TRUNCATE/ZERO_EXTEND if needed.
12415         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
12416         Document that operand mode must be same as operation mode,
12417         or VOIDmode.
12418         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
12419         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
12420         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
12421         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
12422         use the mode of operand for the operation and add truncate
12423         or zero_extend around if needed.
12424         * config/c6x/c6x.md (ctzdi2): Likewise.
12425         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
12426
12427 2011-08-12  Michael Matz  <matz@suse.de>
12428
12429         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
12430         (gimple_expand_cfg): Merge alignment info for coalesced pointer
12431         SSA names.
12432
12433 2011-08-23  Richard Guenther  <rguenther@suse.de>
12434
12435         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
12436         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
12437         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
12438         from ...
12439         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
12440         (mem_refs_may_alias_p): Adjust.
12441         * tree-data-ref.h (dr_may_alias_p): Adjust.
12442         * tree-data-ref.c: Include tree-affine.h.
12443         (dr_analyze_indices): Do nothing for the non-loop case.
12444         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
12445         more cases in the non-loop case.
12446         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
12447         calls to dr_may_alias_p.
12448         (write_alias_graph_to_ascii_ecc): Likewise.
12449         (write_alias_graph_to_ascii_dot): Likewise.
12450         (build_alias_set_optimal_p): Likewise.
12451
12452 2011-08-23  Richard Guenther  <rguenther@suse.de>
12453
12454         PR tree-optimization/50162
12455         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
12456
12457 2011-08-23  Richard Guenther  <rguenther@suse.de>
12458
12459         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
12460         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
12461         (create_data_ref): Also dump access functions for the created data-ref.
12462
12463 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
12464             Kirill Yukhin  <kirill.yukhin@intel.com>
12465
12466         PR target/50155
12467         * config/i386/sse.md (VI_AVX2): New.
12468         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
12469         (*<plusminus_insn><mode>3): Ditto.
12470         (<sse2_avx2>_andnot<mode>3): Ditto.
12471         (*andnot<mode>3): Fix order of cond operands.
12472         Add asserts for correct TARGET_xxx.
12473         (*<any_logic:code><mode>3): Ditto.
12474
12475 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
12476
12477         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
12478         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
12479         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
12480         regclass argument type to reg_class_t. Change 'max' and 'v' vars
12481         and return types to unsigned char. Use reg_class_contents instead
12482         of class_contents.
12483         (TARGET_CLASS_MAX_NREGS): Define.
12484
12485 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
12486
12487         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
12488         to make computed_jump_p return true.
12489
12490 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12491
12492         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
12493         (PICFLAG_FOR_TARGET): Substitute.
12494         * aclocal.m4: Regenerate.
12495         * configure: Regenerate.
12496
12497 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
12498
12499         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
12500         after reading in the pch.
12501
12502 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
12503
12504         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
12505         * configure: Regenerated.
12506
12507 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
12508
12509         PR tree-optimization/50133
12510         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
12511         from stmt instead of some statement around gsi.
12512
12513         PR middle-end/50141
12514         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
12515         innerdecl is a VAR_DECL.
12516
12517 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12518
12519         * config/i386/avx2intrin.h: New file.
12520         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
12521         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
12522         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
12523         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
12524         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
12525         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
12526         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
12527         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
12528         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
12529         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
12530         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
12531         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
12532         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
12533         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
12534         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
12535         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
12536         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
12537         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
12538         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
12539         VOID_FTYPE_PV8SI_V8SI_V8SI,
12540         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
12541         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
12542         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
12543         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
12544         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
12545         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
12546         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
12547         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
12548         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
12549         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
12550         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
12551         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
12552         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
12553         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
12554         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
12555         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
12556         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
12557         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
12558         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
12559         V4DI_FTYPE_V4DI_INT_CONVERT,
12560         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
12561         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
12562         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
12563         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
12564         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
12565         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
12566         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
12567         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
12568         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
12569         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
12570         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
12571         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
12572         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
12573         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
12574         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
12575         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
12576         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
12577         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
12578         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
12579         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
12580         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
12581         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
12582         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
12583         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
12584         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
12585         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
12586         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
12587         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
12588         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
12589         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
12590         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
12591         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
12592         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
12593         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
12594         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
12595         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
12596         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
12597         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
12598         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
12599         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
12600         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
12601         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
12602         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
12603         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
12604         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
12605         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
12606         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
12607         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
12608         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
12609         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
12610         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
12611         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
12612         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
12613         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
12614         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
12615         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
12616         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
12617         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
12618         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
12619         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
12620         IX86_BUILTIN_VBROADCASTSS_PS256,
12621         IX86_BUILTIN_VBROADCASTSD_PD256,
12622         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
12623         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
12624         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
12625         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
12626         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
12627         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
12628         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
12629         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
12630         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
12631         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
12632         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
12633         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
12634         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
12635         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
12636         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
12637         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
12638         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
12639         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
12640         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
12641         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
12642         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
12643         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
12644         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
12645         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
12646         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
12647         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
12648         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
12649         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
12650         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
12651         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
12652         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
12653         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
12654         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
12655         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
12656         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
12657         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
12658         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
12659         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
12660         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
12661         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
12662         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
12663         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
12664         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
12665         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
12666         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
12667         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
12668         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
12669         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
12670         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
12671         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
12672         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
12673         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
12674         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
12675         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
12676         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
12677         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
12678         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
12679         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
12680         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
12681         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
12682         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
12683         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
12684         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
12685         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
12686         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
12687         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
12688         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
12689         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
12690         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
12691         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
12692         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
12693         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
12694         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
12695         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
12696         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
12697         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
12698         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
12699         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
12700         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
12701         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
12702         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
12703         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
12704         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
12705         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
12706         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
12707         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
12708         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
12709         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
12710         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
12711         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
12712         IX86_BUILTIN_VBROADCASTSD_PD256,
12713         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
12714         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
12715         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
12716         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
12717         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
12718         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
12719         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
12720         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
12721         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
12722         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
12723         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
12724         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
12725         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
12726         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
12727         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
12728         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
12729         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
12730         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
12731         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
12732         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
12733         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
12734         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
12735         IX86_BUILTIN_GATHERDIV8SI.
12736         (ix86_preferred_simd_mode): Support AVX2 modes.
12737         (ix86_expand_args_builtin): Support AVX2 builtins.
12738         (ix86_expand_special_args_builtin): Likewise.
12739         (ix86_expand_builtin): Likewise.
12740         * config/i386/i386.md (UNSPEC_VPERMSI): New.
12741         (UNSPEC_VPERMDF): Likewise.
12742         (UNSPEC_VPERMSF): Likewise.
12743         (UNSPEC_VPERMDI): Likewise.
12744         (UNSPEC_VPERMTI): Likewise.
12745         (UNSPEC_GATHER): Likewise.
12746         (ssemodesuffix): Extend.
12747         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
12748         is defined.
12749         * config/i386/predicates.md (const1248_operand): New.
12750         * config/i386/sse.md (VI1_AVX2): New mode iterator.
12751         (VI2_AVX2): Likewise.
12752         (VI4_AVX2): Likewise.
12753         (VI8_AVX2): Likewise.
12754         (VIMAX_AVX2): Likewise.
12755         (SSESCALARMODE): Likewise.
12756         (VI12_AVX2): Likewise.
12757         (VI24_AVX2): Likewise.
12758         (VI124_AVX2): Likewise.
12759         (VI248_AVX2): Likewise.
12760         (VI48_AVX2): Likewise.
12761         (VI4SD_AVX2): Likewise.
12762         (V48_AVX2): Likewise.
12763         (AVX256MODE2P): Likewise.
12764         (AVXMODE48P_DI): Likewise.
12765         (sse2_avx2): New mode attribute.
12766         (ssse3_avx2): Likewise.
12767         (sse4_1_avx2): Likewise.
12768         (avx_avx2): Likewise.
12769         (ssebytemode): Likewise.
12770         (AVXTOSSEMODE): Likewise.
12771         (AVXMODE48P_DI): Likewise.
12772         (gthrfirstp): Likewise.
12773         (gthrlastp): Likewise.
12774         (lshift): New code_iterator
12775         (lshift): New code attribute.
12776         (lshift): Likewise.
12777         (ssescalarmodesuffix): Update.
12778         (sseunpackmode): Likewise.
12779         (ssepackmode): Likewise.
12780         (avx2_vec_dupv4sf): New insn pattern.
12781         (avx2_vec_dupv8sf): Likewise.
12782         (avx2_interleave_highv4di): Likewise.
12783         (avx2_interleave_lowv4di): Likewise.
12784         (avx2_umulv4siv4di3): Likewise
12785         (*avx2_umulv4siv4di3): Likewise
12786         (avx2_pmaddwd): Likewise.
12787         (*avx2_pmaddwd): Likewise.
12788         (avx2_lshrqv4di3): Likewise.
12789         (avx2_lshlqv4di3): Likewise.
12790         (avx2_lshl<mode>3): Likewise.
12791         (avx2_<umaxmin:code><mode>3): Likewise.
12792         (*avx2_<umaxmin:code><mode>3): Likewise.
12793         (avx2_<smaxmin:code><mode>3): Likewise.
12794         (*avx2_<smaxmin:code><mode>3): Likewise.
12795         (avx2_eq<mode>3): Likewise.
12796         (*avx2_eq<mode>3): Likewise.
12797         (avx2_gt<mode>3): Likewise.
12798         (avx2_interleave_highv32qi): New.
12799         (avx2_interleave_lowv32qi): Likewise.
12800         (avx2_interleave_highv16hi): Likewise.
12801         (avx2_interleave_lowv16hi): Likewise.
12802         (avx2_interleave_highv8si): Likewise.
12803         (avx2_interleave_lowv8si): Likewise.
12804         (avx2_pshufd): Likewise.
12805         (avx2_pshufd_1): Likewise.
12806         (avx2_pshuflwv3): Likewise.
12807         (avx2_pshuflw_1): Likewise.
12808         (avx2_pshufhwv3): Likewise.
12809         (avx2_pshufhw_1): Likewise.
12810         (avx2_uavgv32qi3): Likewise.
12811         (*avx2_uavgv32qi3): Likewise.
12812         (avx2_uavgv16hi3): Likewise.
12813         (*avx2_uavgv16hi3): Likewise.
12814         (avx2_pmovmskb): Likewise.
12815         (avx2_phaddwv16hi3): Likewise.
12816         (avx2_phadddv8si3): Likewise.
12817         (avx2_phaddswv16hi3): Likewise.
12818         (avx2_phsubwv16hi3): Likewise.
12819         (avx2_phsubdv8si3): Likewise.
12820         (avx2_phsubswv16hi3): Likewise.
12821         (avx2_pmaddubsw256): Likewise.
12822         (avx2_umulhrswv16hi3): Likewise.
12823         (*avx2_umulhrswv16hi3): Likewise.
12824         (avx2_packusdw): Likewise.
12825         (avx2_pblendd<mode>): Likewise.
12826         (avx2_<code>v16qiv16hi2): Likewise.
12827         (avx2_<code>v8qiv8si2): Likewise.
12828         (avx2_<code>v8hiv8si2): Likewise.
12829         (avx2_<code>v4qiv4di2): Likewise.
12830         (avx2_<code>v4hiv4di2): Likewise.
12831         (avx2_<code>v4siv4di2): Likewise.
12832         (avx2_pbroadcast<mode>): Likewise.
12833         (avx2_permvarv8si): Likewise.
12834         (avx2_permv4df): Likewise.
12835         (avx2_permvarv8sf): Likewise.
12836         (avx2_permv4di): Likewise.
12837         (avx2_permv2ti): Likewise.
12838         (avx2_vec_dupv4df): Likewise.
12839         (avx2_vbroadcasti128_<mode>): Likewise.
12840         (avx2_vec_set_lo_v4di): Likewise.
12841         (avx2_vec_set_hi_v4di): Likewise.
12842         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
12843         (avx2_extracti128): Likewise.
12844         (avx2_inserti128): Likewise.
12845         (avx2_ashrvv8si): Likewise.
12846         (avx2_ashrvv4si): Likewise.
12847         (avx2_<lshift>vv8si): Likewise.
12848         (avx2_<lshift>v<mode>): Likewise.
12849         (avx2_<lshift>vv2di): Likewise.
12850         (avx2_gathersi<mode>): Likewise.
12851         (*avx2_gathersi<mode>): Likewise.
12852         (avx2_gatherdi<mode>): Likewise.
12853         (*avx2_gatherdi<mode>): Likewise.
12854         (avx2_gatherdi<mode>256): Likewise.
12855         (*avx2_gatherdi<mode>256): Likewise.
12856         (<plusminus_insn><mode>3): Use VI mode iterator.
12857         (*<plusminus_insn><mode>3): Use VI mode iterator.
12858         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
12859         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
12860         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
12861         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
12862         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
12863         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
12864         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
12865         Use VI2_AVX2 mode iterator.
12866         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
12867         Use VI2_AVX2 mode iterator.
12868         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
12869         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
12870         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
12871         Use VI4_AVX2 mode iterator.
12872         (ashr<mode>3): Use VI24_AVX2 mode iterator.
12873         (lshr<mode>3): Use VI248_AVX2 mode iterator.
12874         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
12875         Use VIMAX_AVX2 mode iterator.
12876         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
12877         Use VI mode iterator.
12878         (*andnot<mode>3): Update for AVX2.
12879         (*<any_logic:code><mode>3): Likewise.
12880         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
12881         Use VI1_AVX mode iterator.
12882         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
12883         Use VI2_AVX mode iterator.
12884         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
12885         Use VI1_AVX mode iterator.
12886         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
12887         Use VI8_AVX2 mode iterator.
12888         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
12889         Use VI1_AVX2 mode iterator.
12890         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
12891         Use VI124_AVX2 mode iterator.
12892         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
12893         Use SSESCALARMODE mode iterator.
12894         (abs<mode>2): Use VI124_AVX2 mode iterator.
12895         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
12896         Use VI8_AVX2 mode iterator.
12897         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
12898         Use VI1_AVX2 mode iterator.
12899         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
12900         Use VI1_AVX2 mode iterator.
12901         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
12902         Use VI2_AVX2 mode iterator.
12903         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
12904         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
12905         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
12906         avx_maskstore<ssemodesuffix><avxsizesuffix>.
12907         Use V48_AVX2 mode iterator.
12908         * doc/extend.texi: Document AVX2 built-in functions.
12909         * doc/invoke.texi: Document -mavx2.
12910
12911 2011-08-22  Matthias Klose <doko@debian.org>
12912
12913         Revert:
12914         2011-07-11  Arthur Loiret  <aloiret@debian.org>
12915                     Matthias Klose <doko@debian.org>
12916         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
12917         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
12918         convention.
12919         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
12920
12921 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
12922
12923         PR bootstrap/50146
12924         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
12925         to #ifndef HONOR_REG_ALLOC_ORDER block.
12926
12927 2011-08-21  Richard Henderson  <rth@redhat.com>
12928
12929         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
12930         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
12931         * resource.c (next_insn_no_annul): Likewise.
12932         (mark_set_resources): Likewise.
12933         * reorg.c (delete_from_delay_slot): Likewise.
12934         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
12935         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
12936
12937 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
12938
12939         * config/i386/i386.md (any_div): Remove.
12940         (sgnprefix): Update for removal.
12941         (u): Ditto.
12942
12943 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
12944
12945         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
12946         for ira_reg_class_max_nregs.  Increase pressure by 1.
12947         (mark_pseudo_regno_subword_dead): Use allocno class
12948         for ira_reg_class_max_nregs.
12949
12950 2011-08-20  Richard Henderson  <rth@redhat.com>
12951
12952         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
12953         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
12954         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
12955         config/c6x/ltf.c: Adjust include path for soft-fp.
12956
12957 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12958
12959         PR other/46770
12960         * config.gcc (tm_file): Add initfini-array.h if
12961         .init_arrary/.fini_array are supported.
12962
12963         * crtstuff.c: Don't generate .ctors nor .dtors sections if
12964         USE_INITFINI_ARRAY is defined.
12965
12966         * output.h (default_elf_init_array_asm_out_constructor): New.
12967         (default_elf_fini_array_asm_out_destructor): Likewise.
12968         * varasm.c (elf_init_array_section): Likewise.
12969         (elf_fini_array_section): Likewise.
12970         (get_elf_initfini_array_priority_section): Likewise.
12971         (default_elf_init_array_asm_out_constructor): Likewise.
12972         (default_elf_fini_array_asm_out_destructor): Likewise.
12973
12974         * config/initfini-array.h: New.
12975
12976 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
12977
12978         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
12979         OK for ST_REGS and FP_REGS before taking those classes into account.
12980
12981 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
12982
12983         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
12984         before checking for annulled branches.
12985
12986 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
12987
12988         * config/i386/i386.c (ix86_binary_operator_ok): Use
12989         satisfies_constraint_L.
12990
12991 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
12992             Michael Matz  <matz@suse.de>
12993
12994         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
12995         trunc (a + copysign (nextafter (0.5, 0.0), a)).
12996
12997 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
12998
12999         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13000         * doc/tm.texi: Regenerate.
13001         * targhooks.c (default_preferred_output_reload_class): Don't use
13002         PREFERRED_OUTPUT_RELOAD_CLASS macro.
13003         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
13004
13005 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
13006
13007         PR tree-optimization/48739
13008         * tree-ssa.c: Include cfgloop.h.
13009         (execute_update_addresses_taken): When updating ssa, if in loop closed
13010         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
13011         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
13012
13013 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
13014
13015         PR rtl-optimization/49936
13016         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
13017         for calculation of max register move costs.
13018
13019 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
13020
13021         * c-parser.c (c_parser_postfix_expression): Convert operands of
13022         __builtin_complex to their semantic types.
13023
13024 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13025
13026         PR middle-end/49721
13027         * explow.c (convert_memory_address_addr_space): Also permute the
13028         conversion and addition of constant for zero-extend.
13029
13030 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
13031
13032         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
13033         * doc/extend.texi (__builtin_complex): Document.
13034
13035 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
13036
13037         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
13038         beyond conversions.
13039         (convert_mult_to_widen): Convert constant inputs to the right type.
13040         (convert_plusminus_to_widen): Don't automatically reject inputs that
13041         are not an SSA_NAME.
13042         Convert constant inputs to the right type.
13043
13044 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
13045
13046         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
13047         to the correct type.
13048
13049 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
13050
13051         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
13052         unsigned inputs of different modes.
13053         (convert_plusminus_to_widen): Likewise.
13054
13055 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
13056
13057         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
13058         'type'.
13059         Use 'type' from caller, not inferred from 'rhs'.
13060         Don't reject non-conversion statements. Do return lhs in this case.
13061         (is_widening_mult_p): Add new argument 'type'.
13062         Use 'type' from caller, not inferred from 'stmt'.
13063         Pass type to is_widening_mult_rhs_p.
13064         (convert_mult_to_widen): Pass type to is_widening_mult_p.
13065         (convert_plusminus_to_widen): Likewise.
13066
13067 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
13068
13069         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
13070         Ensure the the larger type is the first operand.
13071
13072 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
13073
13074         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
13075         unsupported unsigned multiplies to signed.
13076         (convert_plusminus_to_widen): Likewise.
13077
13078 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
13079
13080         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
13081         conversion statement separating multiply-and-accumulate.
13082
13083 2011-08-19  Richard Guenther  <rguenther@suse.de>
13084
13085         PR tree-optimization/50067
13086         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
13087         offset only if we accounted for it.
13088
13089 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
13090
13091         * config/arm/arm.md (maddhidi4): Remove '*' from name.
13092         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
13093         * optabs.c (find_widening_optab_handler_and_mode): New function.
13094         (expand_widen_pattern_expr): Use find_widening_optab_handler.
13095         (expand_binop_directly): Likewise.
13096         (expand_binop): Likewise.
13097         * optabs.h (find_widening_optab_handler): New macro define.
13098         (find_widening_optab_handler_and_mode): New prototype.
13099         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
13100         type precision rules.
13101         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
13102         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
13103         (is_widening_mult_rhs_p): Allow widening by more than one mode.
13104         Explicitly disallow mis-matched input types.
13105         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
13106         input types to fit the new handler.
13107         (convert_plusminus_to_widen): Likewise.
13108
13109 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
13110
13111         * expr.c (expand_expr_real_2): Use widening_optab_handler.
13112         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
13113         (gen_insn): $N now means $a must be wider than $b, not consecutive.
13114         * optabs.c (widened_mode): New function.
13115         (expand_widen_pattern_expr): Use widening_optab_handler.
13116         (expand_binop_directly): Likewise.
13117         (expand_binop): Likewise.
13118         * optabs.h (widening_optab_handlers): New struct.
13119         (optab_d): New member, 'widening'.
13120         (widening_optab_handler): New function.
13121         (set_widening_optab_handler): New function.
13122         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
13123         widening_optab_handler.
13124         (convert_plusminus_to_widen): Likewise.
13125
13126 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
13127
13128         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
13129         pedantic.
13130         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
13131         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
13132
13133 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
13134
13135         * opth-gen.awk: Do not declare target save/restore structures and
13136         functions if IN_RTS defined.
13137
13138 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
13139
13140         PR target/49437
13141         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
13142         when stack was realigned in interrupt handler prologue.
13143
13144 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
13145
13146         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
13147         (quals_from_declspecs): Assert _Noreturn not present.
13148         (grokdeclarator): Handle _Noreturn.
13149         (build_null_declspecs): Initialize noreturn_p.
13150         (declspecs_add_scspec): Handle RID_NORETURN.
13151         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
13152         (c_parser_attributes): Handle RID_NORETURN.
13153         * c-tree.h (struct c_declspecs): Add noreturn_p.
13154         * ginclude/stdnoreturn.h: New.
13155         * Makefile.in (USER_H): Add stdnoreturn.h.
13156
13157 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13158
13159         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
13160         (OPTION_MASK_ISA_AVX_UNSET): Update.
13161         (OPTION_MASK_ISA_AVX2_UNSET): New.
13162         (ix86_handle_option): Handle OPT_mavx2 case.
13163         * config/i386/cpuid.h (bit_AVX2): New.
13164         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13165         AVX2 feature.
13166         * config/i386/i386-c.c (ix86_target_macros_internal):
13167         Conditionally define __AVX2__.
13168         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
13169         Define "core-avx2" processor alias.  Handle avx2 option.
13170         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
13171         * config/i386/i386.h (TARGET_AVX2): New.
13172         * config/i386/i386.opt (mavx2): New.
13173         * doc/invoke.texi: Document -mavx2.
13174
13175 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
13176
13177         PR rtl-optimization/49890
13178         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
13179         subclasses of class which is superset of a pressure class.
13180
13181 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13182             Igor Zamyatin <igor.zamyatin@intel.com>
13183
13184         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
13185         with HOST_WIDE_INT for isa_flag.
13186         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
13187         isa variables.
13188
13189         * config/i386/i386.c (ix86_target_string): Replace int with
13190         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
13191         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
13192         (pta_flags): Removed.
13193         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
13194         (pta): Use HOST_WIDE_INT on flags.
13195         (builtin_isa): Use HOST_WIDE_INT on isa.
13196         (ix86_add_new_builtins): Likewise.
13197         (def_builtin): Use HOST_WIDE_INT on mask.
13198         (def_builtin_const): Likewise.
13199         (builtin_description): Likewise.
13200
13201         * config/i386/i386.opt (ix86_isa_flags): Replace int with
13202         HOST_WIDE_INT.
13203         (ix86_isa_flags_explicit): Likewise.
13204         (x_ix86_isa_flags_explicit): Likewise.
13205
13206 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
13207
13208         PR rtl-optimization/50107
13209         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
13210         (ira_hard_reg_in_set_p): New.
13211
13212         * ira-color.c (calculate_saved_nregs): New.
13213         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
13214         hard regs.
13215         (allocno_reload_assign, fast_allocation): Use
13216         ira_hard_reg_set_intersection_p instead of
13217         ira_hard_reg_not_in_set_p.
13218
13219         * ira.c (setup_reg_renumber): Use
13220         ira_hard_reg_set_intersection_p instead of
13221         ira_hard_reg_not_in_set_p.
13222         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
13223         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
13224
13225         * ira-costs.c (ira_tune_allocno_costs): Use
13226         ira_hard_reg_set_intersection_p instead of
13227         ira_hard_reg_not_in_set_p.
13228
13229 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13230             Igor Zamyatin <igor.zamyatin@intel.com>
13231
13232         * hwint.h (HOST_WIDE_INT_1): New.
13233
13234         * opt-functions.awk (switch_bit_fields): Initialize the
13235         host_wide_int field.
13236         (host_wide_int_var_name): New.
13237         (var_type_struct): Check and return HOST_WIDE_INT.
13238
13239         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
13240
13241         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
13242
13243         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
13244         check masks for HOST_WIDE_INT.
13245
13246         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
13247         (option_enabled): Likewise.
13248         (get_option_state): Likewise.
13249
13250         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
13251         to HOST_WIDE_INT.
13252
13253 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13254             Marc Glisse  <marc.glisse@normalesup.org>
13255
13256         PR libstdc++-v3/1773
13257         * target.def (decl_mangling_context): New C++ hook.
13258         * doc/tm.texi: Regenerate.
13259         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
13260         * config/sol2-protos.h: Group by source file.
13261         (solaris_cxx_decl_mangling_context): Declare.
13262         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
13263         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
13264         Use $<.
13265         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
13266         Add sol2-stubs.o to extra_objs.
13267
13268 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
13269
13270         PR target/50009
13271         * stor-layout.c (update_alignment_for_field): Don't ICE on
13272         packed flexible array members if ms_bitfield_layout_p.
13273
13274         PR target/50092
13275         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
13276         on the result before returning it.
13277
13278         PR debug/50017
13279         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
13280         is a debug stmt, use location of the first non-debug stmt after it.
13281
13282 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
13283
13284         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
13285         (arm_size_rtx_costs): Likewise.
13286
13287 2011-08-18  Richard Guenther  <rguenther@suse.de>
13288
13289         * tree.h (tree_int_cst_msb): Remove.
13290         * tree.c (tree_int_cst_msb): Likewise.
13291         (tree_int_cst_sign_bit): Move from ...
13292         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
13293
13294 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
13295
13296         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
13297         * doc/tm.texi: Regenerate.
13298         * target.def (rtx_costs): Add an opno parameter.
13299         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
13300         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
13301         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
13302         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
13303         * cse.c (COST_IN): Add an opno parameter.
13304         (notreg_cost): Likewise.  Update call to rtx_cost.
13305         (COST, fold_rtx): Update accordingly.
13306         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
13307         * expmed.c (emit_store_flag): Likewise.
13308         * optabs.c (avoid_expensive_constant): Add an opno parameter.
13309         Update call to rtx_cost.
13310         (expand_binop_directly, expand_binop): Likewise.
13311         (expand_twoval_binop, prepare_cmp_insn): Likewise.
13312         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
13313         (set_src_cost, get_full_set_src_cost): Update accordingly.
13314         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
13315         to target hook.
13316         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
13317         (default_adress_cost): Update calls to rtx_cost.
13318
13319         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
13320         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
13321         (arm_rtx_costs): Add an opno parameter.
13322         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
13323         adjust any recursive rtx-cost calls.
13324         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
13325         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13326         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13327         * config/cris/cris.c (cris_rtx_costs): Likewise.
13328         * config/frv/frv.c (frv_rtx_costs): Likewise.
13329         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13330         * config/i386/i386.c (ix86_rtx_costs): Likewise.
13331         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13332         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13333         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13334         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13335         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13336         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13337         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13338         * config/mep/mep.c (mep_rtx_cost): Likewise.
13339         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13340         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
13341         (mips_zero_extend_cost): Add an opno parameter.
13342         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13343         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
13344         to rtx_cost.
13345         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
13346         rtx-cost calls.
13347         * config/pa/pa.c (hppa_rtx_costs): Likewise.
13348         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13349         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
13350         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13351         (rs6000_debug_rtx_costs): Likewise.
13352         * config/s390/s390.c (s390_rtx_costs): Likewise.
13353         * config/score/score-protos.h (score_rtx_costs): Likewise.
13354         * config/score/score.c (score_rtx_costs): Likewise.
13355         * config/sh/sh.c (andcosts): Update call to rtx_cost.
13356         (sh_rtx_costs): Add an opno parameter.
13357         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13358         * config/spu/spu.c (spu_rtx_costs): Likewise.
13359         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13360         * config/v850/v850.c (v850_rtx_costs): Likewise.
13361         * config/vax/vax.c (vax_rtx_costs): Likewise.
13362         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13363
13364 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
13365
13366         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
13367         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
13368         rtx_cost.
13369         * calls.c (precompute_register_parameters): Likewise.
13370         * combine.c (expand_compound_operation, make_extraction): Likewise.
13371         (force_to_mode, distribute_and_simplify_rtx): Likewise.
13372         * dse.c (find_shift_sequence): Likewise.
13373         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
13374         * expr.c (compress_float_constant): Likewise.
13375         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13376         * gcse.c (want_to_gcse_p): Likewise.
13377         * ifcvt.c (noce_try_sign_mask): Likewise.
13378         * loop-doloop.c (doloop_optimize): Likewise.
13379         * loop-invariant.c (create_new_invariant): Likewise.
13380         * optabs.c (avoid_expensive_constant): Likewise.
13381         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
13382         (try_replace_in_use, reload_cse_move2add): Likewise.
13383         * reload1.c (calculate_elim_costs_all_insns): Likewise.
13384         (note_reg_elim_costly): Likewise.
13385         * rtlanal.c (insn_rtx_cost): Likewise.
13386         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13387         * stmt.c (lshift_cheap_p): Likewise.
13388         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
13389         * config/avr/avr.c (final_prescan_insn): Likewise.
13390         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13391         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
13392
13393 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
13394
13395         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
13396         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
13397         * cfgloopanal.c (seq_cost): Likewise.
13398         * loop-invariant.c (create_new_invariant): Likewise.
13399         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
13400         (reload_cse_move2add): Use get_full_set_rtx_cost.
13401
13402 2011-08-18  Richard Guenther  <rguenther@suse.de>
13403
13404         * expr.c (get_inner_reference): Fix typo in last change.
13405
13406 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
13407             Joseph Myers  <joseph@codesourcery.com>
13408
13409         PR tree-optimization/49963
13410         * hwint.c (absu_hwi): Define.
13411         * hwint.h (absu_hwi): Declare.
13412         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
13413         of abs_hwi.
13414         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
13415         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
13416
13417 2011-08-18  Richard Guenther  <rguenther@suse.de>
13418
13419         * expr.c (get_inner_reference): Sign-extend the constant
13420         twos-complement offset before doing arbitrary precision
13421         arithmetic on it.
13422         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13423         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
13424         to get_constraint_for_ptr_offset.
13425
13426 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
13427
13428         PR target/50068
13429         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
13430
13431 2011-08-17  Richard Guenther  <rguenther@suse.de>
13432
13433         * tree.h (convert_to_ptrofftype_loc): New function.
13434         (convert_to_ptrofftype): Define.
13435         * builtins.c (expand_builtin_bzero): Use size_type_node.
13436         (fold_builtin_bzero): Likewise.
13437         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
13438         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
13439         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
13440         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
13441         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
13442         * fold-const.c (build_range_check): Negate using the original type.
13443         (fold_unary_loc): Use fold_build_pointer_plus_loc.
13444         * gimple-fold.c (gimple_adjust_this_by_delta): Use
13445         convert_to_ptrofftype.
13446         * gimplify.c (gimplify_self_mod_expr): Likewise.
13447         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
13448         (graphite_create_new_loop_guard): Likewise.
13449         * graphite-sese-to-poly.c (my_long_long): Remove.
13450         (scop_ivs_can_be_represented): Adjust.
13451         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
13452         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
13453         * tree-loop-distribution.c (build_size_arg_loc): Use
13454         size_type_node.
13455         (generate_memset_zero): Simplify.
13456         * tree-mudflap.c: Use fold_convert, not convert.
13457         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
13458         its own type.
13459         (determine_offset): Likewise for DR_STEP.
13460         (valid_initializer_p): Likewise.
13461         * tree-profile.c (prepare_instrumented_value): Convert the pointer
13462         to an integer type of same size.
13463         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
13464         to sizetype without need.
13465         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
13466         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
13467         * tree-ssa-loop-manip.c (create_iv): Likewise.
13468         (determine_exit_conditions): Adjust comment.
13469         * tree-ssa-pre.c (create_expression_by_pieces): Use
13470         convert_to_ptrofftype.
13471         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
13472         * varasm.c (array_size_for_constructor): Compute using double_ints.
13473
13474 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13475
13476         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
13477         when generating an integer result where possible.  Short-cut
13478         comparison against 0 also for QImode.
13479
13480 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13481
13482         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
13483         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
13484         prototype.
13485         * config/spu/spu.c (spu_legitimize_reload_address): New function.
13486         (spu_legitimate_address_p): Do not check displacement if the base
13487         is an eliminable stack register.
13488
13489 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
13490
13491         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
13492         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
13493         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
13494         m32c_preferred_output_reload_class): Remove.
13495         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
13496         Change rclass argument and return types to reg_class_t. Use
13497         reg_class_subset_p instead of class_sizes.
13498         (m32c_preferred_output_reload_class): Make static. Change rclass
13499         argument and return types to reg_class_t.
13500         (TARGET_PREFERRED_RELOAD_CLASS,
13501         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13502
13503 2011-08-16  Kai Tietz  <ktietz@redhat.com>
13504
13505         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
13506
13507 2011-08-16  Richard GUenther  <rguenther@suse.de>
13508
13509         PR tree-optimization/50082
13510         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
13511         warnings here, instead of ...
13512         (ssa_forward_propagate_and_combine): ... here.
13513         (forward_propagate_into_comparison_1): Adjust.
13514         (forward_propagate_into_comparison): Likewise.
13515         (forward_propagate_into_gimple_cond): Likewise.
13516         (forward_propagate_into_cond): Likewise.
13517
13518 2011-08-16  Andreas Schwab  <schwab@redhat.com>
13519
13520         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
13521         instead of ggc_alloc_zone_vec_rtvec_def.
13522
13523 2011-08-16  Richard Guenther  <rguenther@suse.de>
13524
13525         * tree.h (ptrofftype_p): New helper function.
13526         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
13527         offset verification.
13528         (verify_gimple_assign_binary): Likewise.
13529         * tree.c (build2_stat): Likewise.
13530         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
13531         (reset_evolution_in_loop): Likewise.
13532         * tree-chrec.h (build_polynomial_chrec): Likewise.
13533
13534 2011-08-16  Liang Wang  <lwang1@marvell.com>
13535
13536         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
13537         ggc_alloc_zone_vec_rtvec_def.
13538
13539 2011-08-16  Richard Guenther  <rguenther@suse.de>
13540
13541         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
13542         helper factored out from ...
13543         (extract_range_from_binary_expr_1): ... here.  Re-structure
13544         to not glob handling too different tree codes.
13545
13546 2011-08-15  Richard Henderson  <rth@redhat.com>
13547
13548         PR middle-end/50006
13549         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
13550         setting out to include allocate_stack named pattern as well.
13551         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
13552         * stmt.c (expand_stack_restore): Likewise.
13553
13554 2011-08-15  Richard Guenther  <rguenther@suse.de>
13555
13556         PR middle-end/50082
13557         * fold-const.c (maybe_canonicalize_comparison_1): Properly
13558         convert the modified operand to the other operand type.
13559         (fold_comparison): Call maybe_canonicalize_comparison_1 with
13560         useless conversions stripped from comparison operands.
13561
13562 2011-08-15  Richard Guenther  <rguenther@suse.de>
13563
13564         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
13565         (extract_range_from_unary_expr_1): Restructure.
13566
13567 2011-08-15  Richard Guenther  <rguenther@suse.de>
13568
13569         PR tree-optimization/50058
13570         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
13571         copy matching.
13572
13573 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13574
13575         PR target/50022
13576         * config/arm/arm.c (output_move_double): Add 2 parameters
13577         to count the number of insns emitted and whether to emit or not.
13578         Use the flag to decide when to emit and count number of instructions
13579         that will be emitted.
13580         Handle case where output_move_double might be called for calculating
13581         lengths with an invalid constant.
13582         (arm_count_output_move_double_insns): Define.
13583         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
13584         (output_move_double): Adjust prototype.
13585         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
13586         output_move_double.
13587         ("*movdi_vfp_cortexa8"): Likewise and add attribute
13588         for ce_count.
13589         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
13590         ("*movdf_soft_insn"): Likewise.
13591         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
13592         ("*cirrus_thumb2_movdi"): Likewise.
13593         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
13594         ("*cirrus_movdf_hard_insn"): Likewise.
13595         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
13596         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
13597         ("mov<mode>_internal VMMX"): Likewise.
13598         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
13599
13600 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
13601
13602         * config/i386/i386.c (ix86_expand_round_sse4): New function.
13603         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
13604         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
13605         for TARGET_ROUND.
13606
13607         (rint<mode>2): Simplify TARGET_ROUND check.
13608         (floor<mode>2): Ditto.
13609         (ceil<mode>2): Ditto.
13610         (btrunc<mode>2): Ditto.
13611
13612 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
13613
13614         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
13615         as mmix_preferred_output_reload_class.
13616
13617 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
13618
13619         * PR target/49903
13620         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
13621         (branch_unspec): New insn.
13622         (branch): Beauty farm.
13623         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
13624         to be IF_THEN_ELSE.
13625         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
13626         New static functions.
13627         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
13628         Use CONST_INT_P.  Beauty.
13629
13630 2011-08-12  Richard Henderson  <rth@redhat.com>
13631
13632         PR rtl-opt/49994
13633         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
13634         * sched-deps.c (init_deps): Clear it.
13635         (deps_analyze_insn): Consume it.
13636         (sched_analyze_insn): Fill it.
13637
13638 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13639
13640         PR target/48328
13641         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
13642         for tbh instructions.
13643
13644 2011-08-12  Diego Novillo  <dnovillo@google.com>
13645
13646         * data-streamer.h (streamer_write_zero): Rename from output_zero.
13647         (streamer_write_uhwi): Rename from lto_output_uleb128.
13648         (streamer_write_hwi): Rename from output_sleb128.
13649         (streamer_write_string): Rename from lto_output_string.
13650         (streamer_string_index): Rename from lto_string_index.
13651         (streamer_write_string_with_length): Rename from
13652         lto_output_string_with_length.
13653         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
13654         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
13655         (streamer_read_string): Rename from lto_input_string.
13656         (streamer_read_indexed_string): Rename from input_string_internal.
13657         (streamer_read_uhwi): Rename from lto_input_uleb128.
13658         (streamer_read_hwi): Rename from lto_input_sleb128.
13659         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
13660         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
13661         (streamer_write_enum): Rename from lto_output_enum.
13662         (streamer_read_enum): Rename from lto_input_enum.
13663         (streamer_write_record_start): Rename from output_record_start.
13664         (streamer_read_record_start): Rename from input_record_start.
13665         (streamer_write_bitpack): Rename from lto_output_bitpack.
13666         (streamer_read_bitpack): Rename from lto_input_bitpack.
13667         (streamer_write_char_stream): Rename from lto_output_1_stream.
13668         (streamer_read_uchar): Rename from lto_input_1_unsigned.
13669         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
13670         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
13671         (streamer_read_string_cst): Rename from input_string_cst.
13672         (streamer_read_chain): Rename from lto_input_chain.
13673         (streamer_alloc_tree): Rename from lto_materialize_tree.
13674         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
13675         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
13676         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
13677         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
13678         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
13679         (streamer_write_chain): Rename from lto_output_chain.
13680         (streamer_write_tree_header): Rename from lto_output_tree_header.
13681         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
13682         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
13683         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
13684         (streamer_write_builtin): Rename from lto_output_builtin_tree.
13685         (streamer_check_handled_ts_structures): Rename from
13686         check_handled_ts_structures.
13687         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
13688         (streamer_tree_cache_insert_at): Rename from
13689         lto_streamer_cache_insert_at.
13690         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
13691         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
13692         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
13693         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
13694         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
13695         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
13696         (write_identifier): Rename from output_identifier.
13697         (write_ts_common_tree_pointers): Rename from
13698         lto_output_ts_common_tree_pointers.
13699         (write_ts_vector_tree_pointers): Rename from
13700         lto_output_ts_vector_tree_pointers.
13701         (write_ts_complex_tree_pointers): Rename from
13702         lto_output_ts_complex_tree_pointers.
13703         (write_ts_decl_minimal_tree_pointers): Rename from
13704         lto_output_ts_decl_minimal_tree_pointers.
13705         (write_ts_decl_common_tree_pointers): Rename from
13706         lto_output_ts_decl_common_tree_pointers.
13707         (write_ts_decl_non_common_tree_pointers): Rename from
13708         lto_output_ts_decl_non_common_tree_pointers.
13709         (write_ts_decl_with_vis_tree_pointers): Rename from
13710         lto_output_ts_decl_with_vis_tree_pointers.
13711         (write_ts_field_decl_tree_pointers): Rename from
13712         lto_output_ts_field_decl_tree_pointers.
13713         (write_ts_function_decl_tree_pointers): Rename from
13714         lto_output_ts_function_decl_tree_pointers.
13715         (write_ts_type_common_tree_pointers): Rename from
13716         lto_output_ts_type_common_tree_pointers.
13717         (write_ts_type_non_common_tree_pointers): Rename from
13718         lto_output_ts_type_non_common_tree_pointers.
13719         (write_ts_list_tree_pointers): Rename from
13720         lto_output_ts_list_tree_pointers.
13721         (write_ts_vec_tree_pointers): Rename from
13722         lto_output_ts_vec_tree_pointers.
13723         (write_ts_exp_tree_pointers): Rename from
13724         lto_output_ts_exp_tree_pointers.
13725         (write_ts_block_tree_pointers): Rename from
13726         lto_output_ts_block_tree_pointers.
13727         (write_ts_binfo_tree_pointers): Rename from
13728         lto_output_ts_binfo_tree_pointers.
13729         (write_ts_constructor_tree_pointers): Rename from
13730         lto_output_ts_constructor_tree_pointers.
13731         (write_ts_target_option): Rename from lto_output_ts_target_option.
13732         (write_ts_translation_unit_decl_tree_pointers): Rename from
13733         lto_output_ts_translation_unit_decl_tree_pointers.
13734         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
13735         Rename from lto_streamer_cache_add_to_node_array.
13736         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
13737         (record_common_node): Rename from lto_record_common_node.
13738
13739         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
13740         declarations.
13741         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
13742         function.
13743         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
13744         unused function.
13745         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
13746         (ipa-reference.o): Likewise.
13747         * lto-section-out.c: Include data-streamer.h.
13748         * ipa-reference.c: Include data-streamer.h.
13749
13750 2011-08-12  Nick Clifton  <nickc@redhat.com>
13751
13752         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
13753         * doc/md.texi (cmpstrn): Note that the comparison stops if both
13754         fetched bytes are zero.
13755         (cmpstr): Likewise.
13756         (cmpmem): Note that the comparison does not stop if both of the
13757         fetched bytes are zero.
13758
13759 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
13760
13761         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
13762         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
13763         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
13764         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
13765         to integer_type_node.
13766         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
13767         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
13768         * builtins.c (expand_builtin_in): Ditto.
13769         (mathfn_built_in_1): Ditto.
13770         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
13771         BUILT_IN_IFLOOR.
13772         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
13773         BUILT_IN_IROUND.
13774         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
13775         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
13776         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
13777
13778 2011-08-12  Richard Guenther  <rguenther@suse.de>
13779
13780         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
13781
13782 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
13783
13784         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
13785
13786 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
13787
13788         * config/arm/arm.c (get_label_padding): New function.
13789         (create_fix_barrier, arm_reorg): Use it.
13790
13791 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
13792
13793         PR target/49781
13794         * config/i386/i386.md (*lea_5_zext): New.
13795         (*lea_6_zext): Ditto.
13796         * config/i386/predicates.md (const_32bit_mask): New predicate.
13797         (lea_address_operand): Reject AND.
13798         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
13799         const_32bit_mask immediate.
13800         (ix86_print_operand_address): Handle AND.
13801         (memory_address_length): Ditto.
13802
13803 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
13804             Brian Hackett  <bhackett1024@gmail.com>
13805
13806         * plugin.def: Add event for finish_decl.
13807         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
13808         * c-decl.c (finish_decl): Invoke callbacks on above event.
13809         * doc/plugins.texi: Document above event.
13810
13811 2011-08-11  Richard Guenther  <rguenther@suse.de>
13812
13813         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
13814         lookups, make looking through aggregate copies stronger.
13815
13816 2011-08-11  Richard Henderson  <rth@redhat.com>
13817
13818         PR bootstrap/50018
13819         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
13820
13821 2011-08-11  Richard Guenther  <rguenther@suse.de>
13822
13823         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
13824         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
13825         (vrp_visit_stmt): Likewise.
13826
13827 2011-08-11  Richard Guenther  <rguenther@suse.de>
13828
13829         PR middle-end/50040
13830         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
13831         load of the other piece with TREE_NO_WARNING.
13832         * tree-flow.h (warn_uninit): Adjust prototype.
13833         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
13834         the base variable and the expression that is used separately.
13835         Properly query all TREE_NO_WARNING flags.
13836         (struct walk_data): Remove.
13837         (warn_uninitialized_var): Likewise.
13838         (warn_uninitialized_vars): Do not walk gimple pieces but simply
13839         look at all SSA uses of the statement.  Handle unused memory
13840         separately.
13841         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
13842
13843 2011-08-11  Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
13844
13845         * config/rx/rx.md (movsicc): Allow register to register transfers.
13846         (*movsicc): Likewise.
13847         (*stcc): Restrict this pattern to EQ and NE compares.
13848         (*stcc_reg): New pattern.  Works for any comparison but only for
13849         register transfers.
13850
13851 2011-08-11  Diego Novillo  <dnovillo@google.com>
13852
13853         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
13854         Call stream_write_tree instead of output_record_start.
13855         (lto_output_ts_binfo_tree_pointers): Likewise.
13856
13857         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
13858         Convert it to a macro.
13859         (stream_read_tree): Likewise.
13860
13861         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
13862         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
13863
13864         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
13865         and tree_read_bitfields.
13866         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
13867         (lto_write_tree): Call it.
13868         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
13869         * streamer-hooks.h (struct streamer_hooks): Remove fields
13870         name, is_streamable and alloc_tree. Update all users.
13871         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
13872         (lto_materialize_tree): ... here.
13873         Handle CALL_EXPR codes.
13874         Remove call to lto_streamer_cache_append.
13875         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
13876         * tree-streamer.h (tree_read_bitfields): Declare.
13877
13878         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
13879         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
13880         * tree-streamer.h (stream_read_tree): New.  Replace all calls
13881         to lto_input_tree with it.
13882         (stream_write_tree): New.  Replace all calls to lto_output_tree,
13883         lto_output_tree_ref and lto_output_tree_or_ref with it.
13884         * lto-streamer-in.c (lto_read_tree): Inline code from
13885         lto_streamer_read_tree.
13886         (lto_input_tree): Move from tree-streamer-in.c.
13887         * lto-streamer-out.c (lto_output_tree_ref): Make static.
13888         Remove handling of NULL values for EXPR.
13889         Do not handle EXPRs that are not indexable.
13890         (lto_write_tree): Move from tree-streamer-out.c.
13891         Inline lto_streamer_write_tree.
13892         (lto_output_tree): Move from tree-streamer-out.c.
13893         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
13894         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
13895         (lto_preload_common_nodes): Likewise.
13896         Remove assertions and adjustments for nodes
13897         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
13898         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
13899         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
13900         * lto-streamer.h (lto_input_tree): Declare.
13901         (lto_output_tree_ref): Remove.
13902         * streamer-hooks.h (struct streamer_hooks): Remove fields
13903         preload_common_nodes, indexable_with_decls_p,
13904         pack_value_fields, unpack_value_fields and output_tree_header.
13905         Update all users.
13906         * tree-streamer-in.c (lto_materialize_tree): Make extern.
13907         (lto_input_tree_pointers): Likewise.
13908         (lto_read_tree): Move to lto-streamer-in.c.
13909         (lto_input_integer_cst): Make extern.
13910         (lto_get_pickled_tree): Likewise.
13911         (lto_get_builtin_tree): Likewise.
13912         (lto_input_tree): Move to lto-streamer-in.c.
13913         * tree-streamer-out.c (pack_value_fields): Make extern.
13914         (lto_output_tree_or_ref): Remove.  Replace all callers with
13915         calls to stream_write_tree.
13916         (lto_output_builtin_tree): Make extern.
13917         (lto_streamer_write_tree): Inline into lto_write_tree.
13918         (lto_output_tree_pointers): Make extern.
13919         (lto_output_tree_header): Likewise.
13920         (lto_output_integer_cst): Likewise.
13921         (lto_write_tree): Move to lto-streamer-out.c.
13922         (lto_output_tree): Likewise.
13923         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
13924         (preload_common_nodes): Likewise.
13925         (lto_streamer_cache_create): Call it.
13926         * tree-streamer.h: Include streamer-hooks.h.
13927         (stream_write_tree): New.
13928         (stream_read_tree): New.
13929         (lto_input_tree): Remove.
13930         (lto_materialize_tree): Declare.
13931         (lto_input_tree_pointers): Declare.
13932         (lto_get_pickled_tree): Declare.
13933         (lto_get_builtin_tree): Declare.
13934         (lto_input_integer_cst): Declare.
13935         (lto_output_tree_header): Declare.
13936         (pack_value_fields): Declare.
13937         (lto_output_tree_pointers): Declare.
13938         (lto_output_integer_cst): Declare.
13939         (lto_output_builtin_tree): Declare.
13940
13941 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
13942
13943         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
13944         only if producer writes to the register given by regno.
13945
13946 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
13947             Alexander Monakov  <amonakov@ispras.ru>
13948
13949         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
13950         (sched_get_condition_with_rev_uncached): ... this.  Factor out
13951         condition caching logic into ...
13952         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
13953         attempt to use cache for instructions with zero luid.
13954         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
13955         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
13956
13957 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
13958
13959         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
13960         get_seqno_for_a_jump.  Update the caller.
13961         (get_seqno_by_succs): New.  Use it ...
13962         (get_seqno_for_a_jump): ... here to find a seqno if looking at
13963         predecessors was not sufficient.
13964         (get_seqno_by_preds): Include head in iteration range, exclude insn.
13965
13966 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
13967
13968         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
13969
13970 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
13971
13972         * sel-sched-ir.h (register_unavailable_p): Declare.
13973         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
13974         (set_unavailable_target_for_expr): ... here to properly test
13975         availability of a register.
13976         (speculate_expr): Ditto.
13977         * sel-sched.c (substitute_reg_in_expr): Ditto.
13978         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
13979
13980 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
13981
13982         * sel-sched.c (verify_target_availability): Fix usage of
13983         hard_regno_nregs.
13984
13985 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
13986
13987         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
13988         recognized by cannot_copy_insn_p hook and volatile instructions.
13989
13990 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
13991
13992         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
13993
13994 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
13995
13996         * doc/md.texi (define_bypass): Say that the instruction names can
13997         be filename-style globs.
13998         * Makefile.in (FNMATCH_H): Define.
13999         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
14000         * genattrtab.c: Include fnmatch.h.
14001         (bypass_list): Change field name from "insn" to "pattern".
14002         (gen_bypass_1): Update accordingly.
14003         (process_bypasses): Use fnmatch to check for matches between
14004         insn reservations and define_bypasses.
14005         * genautomata.c: Include fnmatch.h.
14006         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
14007         and out_pattern respectively.
14008         (gen_bypass, insert_bypass): Update accordingly.
14009         (for_each_matching_insn, process_bypass_2, process_bypass_1)
14010         (process_bypass): New functions.
14011         (process_decls): Use process_bypass.  Update after field name changes.
14012
14013 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
14014
14015         PR target/49687
14016         * config/avr/avr.md (smulqi3_highpart): New insn.
14017         (umulqi3_highpart): New insn.
14018         (*subqi3.ashiftrt7): New insn.
14019         (smulhi3_highpart): New expander.
14020         (umulhi3_highpart): Nex expander.
14021         (*smulhi3_highpart_call): New insn.
14022         (*umulhi3_highpart_call): New insn.
14023         (extend_u): New code attribute.
14024         (extend_prefix): Rename code attribute to extend_su.
14025         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
14026         widening QI/HI multiply.
14027
14028 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
14029
14030         PR tree-optimization/50039
14031         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
14032         that DEF_STMT has a stmt_vec_info.
14033
14034 2011-08-10  Richard Guenther  <rguenther@suse.de>
14035
14036         * tree.h (can_trust_pointer_alignment): Remove.
14037         * builtins.c (can_trust_pointer_alignment): Remove.
14038
14039 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
14040
14041         * c-typeck.c (scalar_to_vector): New function. Try scalar to
14042         vector conversion.
14043         (stv_conv): New enum for scalar_to_vector return type.
14044         (build_binary_op): Adjust.
14045         * doc/extend.texi: Description of scalar to vector expansion.
14046
14047 2011-08-10  Richard Guenther  <rguenther@suse.de>
14048
14049         * tree.h (get_pointer_alignment): Remove max-align argument.
14050         (get_object_alignment): Likewise.
14051         * builtins.c (get_object_alignment_1): Adjust.
14052         (get_object_alignment): Remove max-align argument.
14053         (get_pointer_alignment): Likewise.
14054         (expand_builtin_strlen): Adjust.
14055         (expand_builtin_memcpy): Likewise.
14056         (expand_builtin_mempcpy_args): Likewise.
14057         (expand_builtin_strncpy): Likewise.
14058         (expand_builtin_memset_args): Likewise.
14059         (expand_builtin_memcmp): Likewise.
14060         (expand_builtin_strcmp): Likewise.
14061         (expand_builtin_strncmp): Likewise.
14062         (get_builtin_sync_mem): Likewise.
14063         (fold_builtin_memset): Likewise.
14064         (fold_builtin_memory_op): Likewise.
14065         (expand_builtin_memory_chk): Likewise.
14066         * emit-rtl.c (get_mem_align_offset): Likewise.
14067         (set_mem_attributes_minus_bitpos): Likewise.
14068         * expr.c (expand_assignment): Likewise.
14069         (expand_expr_real_1): Likewise.
14070         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
14071         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
14072         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
14073         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
14074         * value-prof.c (gimple_stringops_transform): Likewise.
14075
14076 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
14077
14078         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
14079         * doc/tm.texi: Regenerate.
14080
14081 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
14082
14083         PR target/29560
14084         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
14085         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
14086         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
14087         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
14088         shift target is unused.
14089
14090 2011-08-10  Richard Guenther  <rguenther@suse.de>
14091
14092         PR tree-optimization/49937
14093         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
14094         using get_object_alignment_1.
14095
14096 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
14097
14098         * config/i386/i386.c (ix86_emit_i387_round): New function.
14099         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
14100         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
14101         Use ix86_emit_i387_round to expand round function for i387 math.
14102         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
14103         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
14104
14105 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14106
14107         * config/sync.c: Move to ../libgcc.
14108         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
14109         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
14110         Remove.
14111
14112 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
14113
14114         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
14115         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
14116         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
14117         Change 'from' and 'to' arguments type to reg_class_t.
14118         (TARGET_REGISTER_MOVE_COST): Define.
14119
14120 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
14121
14122         PR target/50026
14123         Revert:
14124         PR rtl-optimization/49990
14125         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
14126         ignore classes which can not change mode.
14127         (find_costs_and_classes): Ditto.
14128
14129 2011-08-09  Richard Guenther  <rguenther@suse.de>
14130
14131         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
14132         information for ranges with only negative values.
14133         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
14134         BIT_AND_EXPR handling to handle ranges with negative values.
14135
14136 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
14137
14138         * config/i386/i386.c: Remove traling spaces.
14139         * config/i386/sse.md: Likewise.
14140         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
14141         (*fma_fmsub_<mode>): Likewise.
14142         (*fma_fnmadd_<mode>): Likewise.
14143         (*fma_fnmsub_<mode>): Likewise.
14144
14145 2011-08-09  Nick Clifton  <nickc@redhat.com>
14146
14147         * config/rx/rx.md: Disable extender peepholes at -O3.
14148
14149 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
14150
14151         PR target/49781
14152         * config/i386/i386.md (reload_noff_load): New.
14153         (reload_noff_store): Ditto.
14154         * config/i386/i386.c (ix86_secondary_reload): Use
14155         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
14156         double-word moves from/to non-offsetable addresses instead of
14157         generating XMM temporary.
14158
14159 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
14160
14161         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
14162
14163 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
14164
14165         PR tree-optimization/50014
14166         * tree-vect-loop.c (vectorizable_reduction): Get def type before
14167         calling vect_get_vec_def_for_stmt_copy ().
14168
14169 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
14170
14171         PR rtl-optimization/49990
14172         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
14173         ignore classes which can not change mode.
14174         (find_costs_and_classes): Ditto.
14175
14176 2011-08-08  Richard Henderson  <rth@redhat.com>
14177
14178         PR middle-end/49990
14179         * config/i386/i386.c (ix86_expand_prologue): Call
14180         for SEH target gen_prologue_use instead of gen_blockage
14181         at prologue's end.
14182
14183 2011-08-08  Martin Jambor  <mjambor@suse.cz>
14184
14185         PR middle-end/49923
14186         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
14187         memory alignment.
14188
14189 2011-08-08  Diego Novillo  <dnovillo@google.com>
14190
14191         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
14192         (DATA_STREAMER_H): New.
14193         (GIMPLE_STREAMER_H): New.
14194         (TREE_STREAMER_H): New.
14195         (STREAMER_HOOKS_H): New.
14196         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
14197         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
14198         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
14199         (data-streamer.o): New.
14200         (data-streamer-in.o): New.
14201         (data-streamer-out.o): New.
14202         (gimple-streamer-in.o): New.
14203         (gimple-streamer-out.o): New.
14204         (streamer-hooks.o): New.
14205         (tree-streamer.o): New.
14206         (tree-streamer-in.o): New.
14207         (tree-streamer-out.o): New.
14208         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
14209         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
14210         GIMPLE_STREAMER_H and TREE_STREAMER_H.
14211         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
14212         GIMPLE_STREAMER_H and TREE_STREAMER_H.
14213         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
14214         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
14215         (ipa-inline-analysis.o): Likewise.
14216         (ipa-pure-const.o): Likewise.
14217         * data-streamer-in.c: New.
14218         * data-streamer-out.c: New.
14219         * data-streamer.c: New.
14220         * data-streamer.h: New.
14221         * gimple-streamer-in.c: New.
14222         * gimple-streamer-out.c: New.
14223         * gimple-streamer.h: New.
14224         * ipa-inline-analysis.c: Include data-streamer.h.
14225         * ipa-prop.c: Include data-streamer.h.
14226         * ipa-pure-const.c: Include data-streamer.h.
14227         * lto-cgraph.c: Include data-streamer.h.
14228         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
14229         (lto_input_widest_uint_uleb128): Likewise.
14230         (lto_input_sleb128): Likewise.
14231         (bp_unpack_var_len_unsigned): Likewise.
14232         (bp_unpack_var_len_int): Likewise.
14233         * lto-section-out.c (lto_output_uleb128_stream): Move to
14234         data-streamer-out.c.
14235         (lto_output_widest_uint_uleb128_stream): Likewise.
14236         (lto_output_sleb128_stream): Likewise.
14237         (bp_pack_var_len_unsigned): Likewise.
14238         (bp_pack_var_len_int): Likewise.
14239         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
14240         (struct string_slot): Remove.  Update all users.
14241         (lto_tag_check_set): Make extern.
14242         (lto_tag_check_range): Move to lto-streamer.h.
14243         (lto_tag_check): Likewise.
14244         (hash_string_slot_node): Remove.  Update all users.
14245         (eq_string_slot_node): Remove.  Update all users.
14246         (string_for_index): Move to data-streamer-in.c
14247         (input_string_internal): Likewise.
14248         (input_string_cst): Move to tree-streamer-in.c.
14249         (input_identifier): Likewise.
14250         (lto_input_string): Move to data-streamer-in.c
14251         (input_record_start): Move to data-streamer.h
14252         (canon_file_name): Use new definition of struct string_slot
14253         from data-streamer.h.  Set S_SLOT.LEN.
14254         (lto_input_location): Make extern.
14255         (lto_input_chain): Move to tree-streamer-in.c.
14256         (lto_init_eh): Make extern.
14257         (input_phi): Move to gimple-streamer-in.c.
14258         (input_gimple_stmt): Likewise.
14259         (input_bb): Likewise.
14260         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
14261         (unpack_ts_real_cst_value_fields): Likewise.
14262         (unpack_ts_fixed_cst_value_fields): Likewise.
14263         (unpack_ts_decl_common_value_fields): Likewise.
14264         (unpack_ts_decl_wrtl_value_fields): Likewise.
14265         (unpack_ts_decl_with_vis_value_fields): Likewise.
14266         (unpack_ts_function_decl_value_fields): Likewise.
14267         (unpack_ts_type_common_value_fields): Likewise.
14268         (unpack_ts_block_value_fields): Likewise.
14269         (unpack_ts_translation_unit_decl_value_fields): Likewise.
14270         (unpack_value_fields): Likewise.
14271         (lto_materialize_tree): Likewise.
14272         (lto_input_ts_common_tree_pointers): Likewise.
14273         (lto_input_ts_vector_tree_pointers): Likewise.
14274         (lto_input_ts_complex_tree_pointers): Likewise.
14275         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
14276         (lto_input_ts_decl_common_tree_pointers): Likewise.
14277         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
14278         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
14279         (lto_input_ts_field_decl_tree_pointers): Likewise.
14280         (lto_input_ts_function_decl_tree_pointers): Likewise.
14281         (lto_input_ts_type_common_tree_pointers): Likewise.
14282         (lto_input_ts_type_non_common_tree_pointers): Likewise.
14283         (lto_input_ts_list_tree_pointers): Likewise.
14284         (lto_input_ts_vec_tree_pointers): Likewise.
14285         (lto_input_ts_exp_tree_pointers): Likewise.
14286         (lto_input_ts_block_tree_pointers): Likewise.
14287         (lto_input_ts_binfo_tree_pointers): Likewise.
14288         (lto_input_ts_constructor_tree_pointers): Likewise.
14289         (lto_input_ts_target_option): Likewise.
14290         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
14291         (lto_input_tree_pointers): Likewise.
14292         (lto_get_pickled_tree): Likewise.
14293         (lto_get_builtin_tree): Likewise.
14294         (lto_read_tree): Likewise.
14295         (lto_input_integer_cst): Likewise.
14296         (lto_input_tree): Likewise.
14297         * lto-streamer-out.c: Include data-streamer.h,
14298         gimple-streamer.h and streamer-hooks.h.
14299         (struct string_slot): Move to data-streamer.h.
14300         (hash_string_slot_node): Likewise.
14301         (eq_string_slot_node): Likewise.
14302         (lto_string_index): Move to data-streamer-out.c.
14303         (lto_output_string_with_length): Likewise.
14304         (lto_output_string): Likewise.
14305         (output_string_cst): Move to tree-streamer-out.c.
14306         (output_identifier): Likewise.
14307         (output_zero): Move to data-streamer-out.c
14308         (output_uleb128): Likewise.
14309         (output_sleb128): Likewise.
14310         (output_record_start): Move to data-streamer.h
14311         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
14312         (pack_ts_real_cst_value_fields): Likewise.
14313         (pack_ts_fixed_cst_value_fields): Likewise.
14314         (pack_ts_decl_common_value_fields): Likewise.
14315         (pack_ts_decl_wrtl_value_fields): Likewise.
14316         (pack_ts_decl_with_vis_value_fields): Likewise.
14317         (pack_ts_function_decl_value_fields): Likewise.
14318         (pack_ts_type_common_value_fields): Likewise.
14319         (pack_ts_block_value_fields): Likewise.
14320         (pack_ts_translation_unit_decl_value_fields): Likewise.
14321         (pack_value_fields): Likewise.
14322         (lto_output_chain): Likewise.
14323         (lto_output_ts_common_tree_pointers): Likewise.
14324         (lto_output_ts_vector_tree_pointers): Likewise.
14325         (lto_output_ts_complex_tree_pointers): Likewise.
14326         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
14327         (lto_output_ts_decl_common_tree_pointers): Likewise.
14328         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
14329         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
14330         (lto_output_ts_field_decl_tree_pointers): Likewise.
14331         (lto_output_ts_function_decl_tree_pointers): Likewise.
14332         (lto_output_ts_type_common_tree_pointers): Likewise.
14333         (lto_output_ts_type_non_common_tree_pointers): Likewise.
14334         (lto_output_ts_list_tree_pointers): Likewise.
14335         (lto_output_ts_vec_tree_pointers): Likewise.
14336         (lto_output_ts_exp_tree_pointers): Likewise.
14337         (lto_output_ts_block_tree_pointers): Likewise.
14338         (lto_output_ts_binfo_tree_pointers): Likewise.
14339         (lto_output_ts_constructor_tree_pointers): Likewise.
14340         (lto_output_ts_target_option): Likewise.
14341         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
14342         (lto_output_tree_pointers): Likewise.
14343         (lto_output_tree_header): Likewise.
14344         (lto_output_builtin_tree): Likewise.
14345         (lto_write_tree): Likewise.
14346         (lto_output_integer_cst): Likewise.
14347         (lto_output_tree): Likewise.
14348         (output_phi): Move to gimple-streamer-out.c.
14349         (output_gimple_stmt): Likewise.
14350         (output_bb): Likewise.
14351         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
14352         (streamer_hooks): Move to streamer-hooks.c.
14353         (check_handled_ts_structures): Move to tree-streamer.c
14354         (lto_streamer_cache_add_to_node_array): Likewise.
14355         (lto_streamer_cache_insert_1): Likewise.
14356         (lto_streamer_cache_insert): Likewise.
14357         (lto_streamer_cache_insert_at): Likewise.
14358         (lto_streamer_cache_append): Likewise.
14359         (lto_streamer_cache_lookup): Likewise.
14360         (lto_streamer_cache_get): Likewise.
14361         (lto_record_common_node): Likewise.
14362         (lto_preload_common_nodes): Likewise.
14363         (lto_streamer_cache_create): Likewise.
14364         (lto_streamer_cache_delete): Likewise.
14365         (streamer_hooks_init): Move to streamer-hooks.c.
14366         * lto-streamer.h: Include diagnostic.h
14367         (struct output_block, struct lto_input_block,
14368         struct data_in, struct bitpack_d): Remove forward declarations.
14369         (struct bitpack_d): Move to data-streamer.h.
14370         (struct lto_streamer_cache_d): Move to tree-streamer.h.
14371         (struct streamer_hooks): Move to streamer-hooks.h.
14372         (bp_pack_var_len_unsigned): Move to data-streamer.h.
14373         (bp_pack_var_len_int): Likewise.
14374         (bp_unpack_var_len_unsigned): Likewise.
14375         (bp_unpack_var_len_int): Likewise.
14376         (lto_input_location): Declare.
14377         (lto_tag_check_set): Declare.
14378         (lto_init_eh): Declare.
14379         (lto_output_tree_ref): Declare.
14380         (lto_output_location): Declare.
14381         (bitpack_create): Move to data-streamer.h.
14382         (bp_pack_value): Likewise.
14383         (lto_output_bitpack): Likewise.
14384         (lto_input_bitpack): Likewise.
14385         (bp_unpack_value): Likewise.
14386         (lto_output_1_stream): Likewise.
14387         (lto_input_1_unsigned): Likewise.
14388         (lto_output_int_in_range): Likewise.
14389         (lto_input_int_in_range): Likewise.
14390         (bp_pack_int_in_range): Likewise.
14391         (bp_unpack_int_in_range): Likewise.
14392         (lto_output_enum): Likewise.
14393         (lto_input_enum): Likewise.
14394         (bp_pack_enum): Likewise.
14395         (bp_unpack_enum): Likewise.
14396         * streamer-hooks.c: New.
14397         * streamer-hooks.h: New.
14398         * tree-streamer-in.c: New.
14399         * tree-streamer-out.c: New.
14400         * tree-streamer.c: New.
14401         * tree-streamer.h: New.
14402
14403 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14404
14405         * gthr-posix95.h: Remove.
14406         * gthr.h [_PTHREADS95]: Remove.
14407         * configure.ac (enable_threads): Remove posix95.
14408         * configure: Regenerate.
14409         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
14410
14411 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
14412
14413         PR target/49781
14414         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
14415         SImode addresses.
14416         (ix86_print_operand_address): Handle zero-extended addresses.
14417         (memory_address_length): Add length of addr32 prefix for
14418         zero-extended addresses.
14419         (ix86_secondary_reload): Handle moves to/from double-word general
14420         registers from/to zero-extended addresses.
14421         * config/i386/predicates.md (lea_address_operand): Reject
14422         zero-extended operands.
14423
14424 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
14425
14426         PR other/48007
14427         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
14428
14429         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
14430         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
14431
14432         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
14433         (_Unwind_Context_Reg_Val): Likewise.
14434         (_Unwind_Get_Unwind_Word): Likewise.
14435         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
14436         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
14437         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
14438         for EXTENDED_CONTEXT_BIT.
14439         (__frame_state_for): Likewise.
14440         (uw_init_context_1): Likewise.
14441         (_Unwind_GetGR): Updated.
14442         (_Unwind_SetGR): Likewise.
14443         (_Unwind_GetGRPtr): Likewise.
14444         (_Unwind_SetGRPtr): Likewise.
14445         (_Unwind_SetGRValue): Likewise.
14446         (_Unwind_GRByValue): Likewise.
14447         (uw_install_context_1): Likewise.
14448
14449         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
14450         ASSUME_EXTENDED_UNWIND_CONTEXT.
14451         * doc/tm.texi: Regenerated.
14452
14453 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14454
14455         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
14456
14457 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14458
14459         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
14460         Linux/GNU-specific.
14461         (DEC Alpha Options, -mtune): Likewise.
14462         (MIPS Options, -march): native is supported on IRIX.
14463
14464 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14465
14466         * config/sparc/driver-sparc.c: New file.
14467         * config/sparc/x-sparc: New file.
14468         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
14469         * config/sparc/sparc.opt (native): New value for enum processor_type.
14470         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
14471         * config/sparc/sparc.c (sparc_option_override): Abort if
14472         PROCESSOR_NATIVE gets here.
14473         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
14474         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
14475         DRIVER_SELF_SPECS): Define.
14476         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
14477         (SPARC Options, -mtune): Likewise.
14478         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
14479         Substitute result.
14480         * configure: Regenerate.
14481         * Makefile.in (EXTRA_GCC_LIBS): Set.
14482         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
14483         (cpp$(exeext)): Likewise.
14484
14485 2011-08-08  Richard Guenther  <rguenther@suse.de>
14486
14487         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
14488         split out from ...
14489         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
14490         by composition.
14491
14492 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
14493
14494         PR tree-optimization/50005
14495         * ipa-inline-analysis (remap_predicate): Add cast to
14496         silence signed/unsigned comparison warning.
14497
14498 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
14499
14500         * modulo-sched.c (get_sched_window): Use a table for the debug output.
14501         Print the current ii.
14502         (sms_schedule_by_order): Reduce whitespace in dump line.
14503
14504 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
14505
14506         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
14507         and one loop for successors.  Fix upper bound of memory range.
14508
14509 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
14510
14511         PR target/50001
14512         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
14513         (TARGET_INSTANTIATE_DECLS): New define.
14514
14515 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
14516             Mikael Morin  <mikael.morin@sfr.fr>
14517
14518         * Makefile.in (INCLUDES_FOR_TARGET): New.
14519         (LIBGCC2_CFLAGS): Use it.
14520         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
14521
14522 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
14523
14524         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
14525         frame->save_regs_using_mov calculation.
14526
14527 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
14528
14529         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
14530         * config/i386/sse.md (castmode): New mode attribute.
14531         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
14532         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
14533
14534 2011-08-05  Jan Hubicka  <jh@suse.cz>
14535
14536         PR middle-end/49494
14537         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
14538
14539 2011-08-05  Jan Hubicka  <jh@suse.cz>
14540
14541         PR middle-end/49500
14542         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
14543         handle aliases.
14544         (create_emultls_var):New function.
14545         (ipa_lower_emutls): Handle aliases correctly.
14546
14547 2011-08-05  Jan Hubicka  <jh@suse.cz>
14548
14549         PR middle-end/49735
14550         * ipa-inline.c (recursive_inlining): Look through aliases.
14551
14552 2011-08-05  Jason Merrill  <jason@redhat.com>
14553
14554         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
14555         declarations to beginning of function.
14556
14557 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
14558
14559         PR rtl-optimization/49900
14560         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
14561         ensure basic blocks stay in the same order.
14562
14563 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
14564
14565         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
14566         store_bit_field.
14567         (s390_expand_atomic): Same.
14568
14569 2011-08-05  Richard Henderson  <rth@redhat.com>
14570
14571         PR rtl-opt/49977
14572         * dwarf2cfi.c (scan_insn_after): Split out of ...
14573         (scan_trace): ... here.  Correctly place notes wrt sequences.
14574
14575 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
14576             Richard Henderson  <rth@redhat.com>
14577
14578         PR rtl-opt/49982
14579         * expr.c (fixup_args_size_notes): Look through no-op moves.
14580
14581 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
14582
14583         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
14584         of "m" for operand 0.  Add type and mode attribute.
14585         (*pushxf_nointeger"): Use "<" constraint for operand 0.
14586         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
14587         constraint instead of "o" for opreand 1.
14588         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
14589         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
14590         operand 0, alternative 4.
14591         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
14592
14593 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
14594
14595         * config/i386/predicates.md (lea_address_operand): Rename from
14596         no_seg_address_operand.
14597         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
14598         (*lea_1_zext): Ditto.
14599         (*lea_2): Ditto.
14600         (*lea_2_zext): Ditto.
14601
14602 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
14603
14604         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
14605         parts.base and parts.index.
14606         * config/i386/predicates.md (aligned_operand): Ditto.
14607         (cmpxchg8b_pic_memory_operand): Ditto.
14608
14609 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14610
14611         * config/soft-fp: Move to ../libgcc.
14612         * Makefile.in (SFP_MACHINE): Remove.
14613         (libgcc-support): Remove $(SFP_MACHINE) dependency.
14614         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
14615         * config/arm/t-arm-softfp: Move to
14616         ../libgcc/config/arm/t-softfp.
14617         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
14618         * config/c6x/t-c6x-softfp: Remove.
14619         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
14620         * config/i386/t-fprules-softfp: Move to
14621         ../libgcc/config/t-softfp-tf.
14622         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
14623         * config/ia64/t-fprules-softfp: Remove.
14624         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
14625         * config/lm32/t-fprules-softfp: Remove.
14626         * config/moxie/sfp-machine.h: Remove.
14627         * config/moxie/t-moxie-softfp: Remove.
14628         * config/rs6000/darwin-ldouble-format: Move to
14629         ../libgcc/config/rs6000/ibm-ldouble-format.
14630         * config/rs6000/darwin-ldouble.c: Move to
14631         ../libgcc/config/rs6000/ibm-ldouble.c
14632         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
14633         * config/rs6000/libgcc-ppc64.ver: Likewise.
14634         * config/rs6000/sfp-machine.h: Likewise.
14635         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
14636         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
14637         (LIB2FUNCS_EXTRA): Remove.
14638         (TARGET_LIBGCC2_CFLAGS): Remove.
14639         * config/rs6000/t-aix52: Likewise
14640         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
14641         $(srcdir)/config/rs6000/darwin-ldouble.c.
14642         (SHLIB_MAPFILES): Remove.
14643         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
14644         $(srcdir)/config/rs6000/darwin-ldouble.c.
14645         * config/rs6000/t-fprules-softfp: Move to
14646         ../libgcc/config/t-softfp-sfdf.
14647         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
14648         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
14649         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
14650         $(srcdir)/config/rs6000/darwin-ldouble.c.
14651         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
14652         * config/score/t-score-softfp: Remove.
14653         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
14654         soft-fp/t-softfp from tmake_file.
14655         (arm*-*-uclinux*): Likewise.
14656         (arm*-*-ecos-elf): Likewise.
14657         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
14658         (arm*-*-rtems*): Likewise.
14659         (arm*-*-elf): Likewise.
14660         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
14661         tmake_file.
14662         (moxie-*-uclinux*): Likewise.
14663         (moxie-*-rtems*): Likewise.
14664         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
14665         tmake_file.
14666         (lm32-*-rtems*): Likewise.
14667         (lm32-*-uclinux*): Likewise.
14668         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
14669         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
14670         (powerpc-*-linux*, powerpc64-*-linux*): Remove
14671         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
14672         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
14673         tmake_file.
14674         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
14675         tmake_file.
14676         (tic6x-*-uclinux): Likewise.
14677         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
14678         soft-fp/t-softfp from tmake_file.
14679         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
14680         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
14681         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
14682         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
14683         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
14684
14685 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14686
14687         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
14688         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
14689         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
14690         TPBIT, TPBIT_FUNCS.
14691         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
14692         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
14693         Remove.
14694         * config/arm/t-vxworks: Likewise.
14695         * config/arm/t-wince-pe: Likewise.
14696         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
14697         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14698         * config/bfin/t-bfin-elf: Likewise.
14699         * config/bfin/t-bfin-linux: Likewise.
14700         * config/bfin/t-bfin-uclinux: Likewise.
14701         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
14702         Remove.
14703         * config/fr30/t-fr30: Likewise.
14704         * config/frv/t-frv: Likewise.
14705         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
14706         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14707         * config/m32c/t-m32c: Likewise.
14708         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
14709         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14710         * config/mcore/t-mcore: Likewise.
14711         * config/mep/t-mep: Likewise.
14712         * config/microblaze/t-microblaze: Likewise.
14713         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
14714         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14715         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
14716         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14717         * config/mn10300/t-linux: Remove.
14718         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14719         * config/pdp11/t-pdp11: Likewise.
14720         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
14721         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
14722         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14723         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
14724         * config/rs6000/t-aix52: Likewise.
14725         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
14726         $(srcdir)/config/rs6000/ppc64-fp.c.
14727         * config/rs6000/t-fprules-fpbit: Remove.
14728         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
14729         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14730         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
14731         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14732         * config/sparc/t-elf: Likewise.
14733         * config/sparc/t-leon: Likewise.
14734         * config/sparc/t-leon3: Likewise.
14735         * config/spu/t-spu-elf: Likewise.
14736         (DPBIT_FUNCS): Remove.
14737         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14738         * config/v850/t-v850: Likewise.
14739         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
14740         (avr-*-*): Likewise.
14741         (h8300-*-rtems*): Set libgcc_tm_file.
14742         (h8300-*-elf*): Likewise.
14743         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
14744         tmake_file.
14745         (powerpc-*-eabisim*): Likewise.
14746         (powerpc-*-elf*): Likewise.
14747         (powerpc-*-eabialtivec*): Likewise.
14748         (powerpc-xilinx-eabi*): Likewise.
14749         (powerpc-*-eabi*): Likewise.
14750         (powerpc-*-rtems*): Likewise.
14751         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
14752         (powerpcle-*-elf*): Likewise.
14753         (powerpcle-*-eabisim*): Likewise.
14754         (powerpcle-*-eabi*): Likewise.
14755         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
14756         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
14757         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
14758         Remove.
14759
14760 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14761
14762         * Makefile.in (UNWIND_H): Remove.
14763         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
14764         ../libgcc/Makefile.in.
14765         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
14766         (LIBUNWINDDEP): Remove.
14767         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
14768         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
14769         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
14770         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
14771         Don't copy $(UNWIND_H).
14772         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
14773         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
14774         * aclocal.m4: Regenerate.
14775         * configure: Regenerate.
14776         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
14777         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
14778         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
14779         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
14780         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
14781         * config/arm/libunwind.S, config/arm/pr-support.c,
14782         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
14783         ../libgcc/config/arm.
14784         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
14785         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
14786         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
14787         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
14788         ($(T)frvend$(objext)): Likewise.
14789         * config/ia64/t-glibc (LIB2ADDEH): Remove.
14790         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
14791         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
14792         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
14793         ../libgcc/config/ia64.
14794         * config/ia64/t-hpux (LIB2ADDEH): Remove.
14795         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
14796         * config/ia64/t-vms (LIB2ADDEH): Remove.
14797         * config/ia64/vms.h (UNW_IVMS_MODE,
14798         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
14799         * config/picochip/t-picochip (LIB2ADDEH): Remove.
14800         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
14801         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
14802         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
14803         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
14804         $(srcdir)/../libgcc to refer to unwinder sources.
14805         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
14806         * config/t-darwin (LIB2ADDEH): Remove.
14807         * config/t-freebsd (LIB2ADDEH): Remove.
14808         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
14809         * config/t-libunwind-elf: Move to ../libgcc/config.
14810         * config/t-linux (LIB2ADDEH): Remove.
14811         * config/t-sol2 (LIB2ADDEH): Remove.
14812         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
14813         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
14814
14815 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14816
14817         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
14818
14819         * doc/invoke.texi: Document core-avx-i.
14820
14821 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14822
14823         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
14824
14825 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
14826
14827         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
14828         result of multiple results reduction when extracting the final
14829         value using scalar code.
14830
14831 2011-08-05  Richard Guenther  <rguenther@suse.de>
14832
14833         PR tree-optimization/49984
14834         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
14835
14836 2011-08-05  Richard Guenther  <rguenther@suse.de>
14837
14838         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
14839         return true for constant integer ranges.
14840         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
14841         BIT_IOR_EXPR handling.
14842
14843 2011-08-04  Kai Tietz  <ktietz@redhat.com>
14844
14845         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
14846         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
14847
14848 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
14849
14850         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
14851         pattern def statement, and its access macro.
14852         (NUM_PATTERNS): Set to 5.
14853         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
14854         pattern def statement.
14855         (vect_transform_loop): Likewise.
14856         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
14857         function vect_recog_over_widening_pattern ().
14858         (vect_operation_fits_smaller_type): New function.
14859         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
14860         Likewise.
14861         (vect_pattern_recog_1): Move the code that marks pattern
14862         statements to vect_mark_pattern_stmts (), and call it.  Update
14863         documentation.
14864         * tree-vect-stmts.c (vect_supportable_shift): New function.
14865         (vect_analyze_stmt): Handle pattern def statement.
14866         (new_stmt_vec_info): Initialize pattern def statement.
14867
14868 2011-08-04  Richard Henderson  <rth@redhat.com>
14869
14870         PR target/49964
14871         * config/i386/i386.c (ix86_expand_call): Don't create nested
14872         PARALLELs for TARGET_VZEROUPPER.
14873         (ix86_split_call_vzeroupper): Fix extraction of the original call.
14874         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
14875         recognize nested PARALLELs.
14876         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
14877         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
14878         *sibcall_value_pop_vzeroupper): Likewise.
14879
14880 2011-08-04  Richard Henderson  <rth@redhat.com>
14881
14882         PR middle-end/49968
14883         * calls.c (expand_call): Use fixup_args_size_notes for
14884         emit_stack_restore.
14885         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
14886         in non-standard modes.
14887
14888 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
14889
14890         * gcc.c (self_spec): New variable.
14891         (static_specs): Add self_spec.
14892         (main): Call do_self_spec on "self_spec" specs after reading
14893         user specs files.  Move compare_debug handling right after that.
14894
14895 2011-08-04  Richard Guenther  <rguenther@suse.de>
14896
14897         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
14898         (value_range_nonnegative_p): New function.
14899         (ssa_name_nonnegative_p): Use it.
14900         (value_range_constant_singleton): New function.
14901         (op_with_constant_singleton_value_range): Use it.
14902         (extract_range_from_binary_expr_1): New function, split out from ...
14903         (extract_range_from_binary_expr): ... this.  Remove fallback
14904         constant folding done here.
14905
14906 2011-08-04  Richard Guenther  <rguenther@suse.de>
14907
14908         PR tree-optimization/49806
14909         * tree-vrp.c (op_with_boolean_value_range_p): New function.
14910         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
14911         a new statement for a final conversion to bool.
14912
14913 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
14914
14915         * gengtype-state.c: Include "bconfig.h" if
14916         GENERATOR_FILE is defined, "config.h" otherwise.
14917         * gengtype.c: Likewise.
14918         * gengtype-lex.l: Likewise.
14919         * gengtype-parse.c: Likewise.
14920         * Makefile.in (gengtype-lex.o-warn): New variable.
14921         (plugin_resourcesdir): Likewise.
14922         (plugin_bindir): Likewise.
14923         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
14924         (MOSTLYCLEANFILES): Add gengtype$(exeext).
14925         (native): Depend on gengtype$(exeext) is $enable_plugin
14926         is set to "yes".
14927         (gtype.state): Depend on s-gtype. Use temporary file.
14928         (gengtype-lex.o): New rule.
14929         (gengtype-parse.o): Likewise.
14930         (gengtype-state.o): Likewise.
14931         (gengtype$(exeext)): Likewise.
14932         (install-gengtype): Likewise.
14933         (gengtype.o): Likewise.
14934         (build/gengtype.o): Depend on version.h.
14935         (build/gengtype-state): Depend on double-int.h, version.h,
14936         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
14937         (install-plugin): Depend on install-gengtype.
14938
14939 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
14940
14941         PR middle-end/49905
14942         * tree.h (init_attributes): New prototype.
14943         * attribs.c (init_attributes): No longer static.
14944
14945 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14946
14947         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
14948         maybe_suffix.
14949
14950 2011-08-03  David Li  <davidxl@google.com>
14951
14952         * tree-optimize.c (execute_fixup_cfg): Fix up entry
14953         outgoing edge counts after inlining.
14954
14955 2011-08-03  David Li  <davidxl@google.com>
14956
14957         * profile.c (compute_branch_probabilities): Compute
14958         function frequency after profile annotation.
14959
14960 2011-08-04  Alan Modra  <amodra@gmail.com>
14961
14962         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
14963         use_backchain_to_restore_sp initialisation.
14964         (rs6000_legitimate_offset_address_p): Simplify offset test.
14965
14966 2011-08-03  Richard Henderson  <rth@redhat.com>
14967
14968         * config/spu/spu.md: Use define_c_enum instead of define_constants.
14969         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
14970         (UNSPECV_NOP): New.
14971
14972 2011-08-03  Richard Henderson  <rth@redhat.com>
14973
14974         PR target/34888
14975         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
14976
14977 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
14978
14979         PR tree-optimization/49948
14980         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
14981
14982 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
14983
14984         * config/m32c/m32c.c (class_sizes): Remove.
14985         (reduce_class): Change arguments and return type to reg_class_t.
14986         Change type cc var to HARD_REG_SET. Change type best var to
14987         reg_class_t. Change type best_size var to unsigned int. Remove
14988         initialization class_sizes var. Use reg_class_size array instead
14989         of class_sizes. Use reg_class_contents array instead
14990         of class_contents.
14991
14992 2011-08-03  Richard Guenther  <rguenther@suse.de>
14993
14994         PR middle-end/49958
14995         * fold-const.c (fold_binary_loc): Only associate
14996         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
14997         overflow wraps.
14998
14999 2011-08-03  Alan Modra  <amodra@gmail.com>
15000
15001         PR rtl-optimization/49941
15002         * jump.c (mark_jump_label): Comment.
15003         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
15004         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
15005         (mark_used_flags): Don't mark RETURN.
15006
15007 2011-08-03  Richard Guenther  <rguenther@suse.de>
15008
15009         PR tree-optimization/49938
15010         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
15011         deal with a POLYNOMIAL_CHREC.
15012
15013 2011-08-03  Revital Eres  <revital.eres@linaro.org>
15014
15015         * modulo-sched.c (calculate_stage_count,
15016         calculate_must_precede_follow, get_sched_window,
15017         try_scheduling_node_in_cycle, remove_node_from_ps): Add
15018         declaration.
15019         (update_node_sched_params, set_must_precede_follow, optimize_sc):
15020         New functions.
15021         (reset_sched_times): Call update_node_sched_params.
15022         (sms_schedule): Call optimize_sc.
15023         (get_sched_window): Change function arguments.
15024         (sms_schedule_by_order): Update call to get_sched_window.
15025         Call set_must_precede_follow.
15026         (calculate_stage_count): Add function argument.
15027
15028 2011-08-02  Richard Henderson  <rth@redhat.com>
15029
15030         PR target/49864
15031         PR target/49879
15032         * reg-notes.def (REG_ARGS_SIZE): New.
15033         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
15034         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
15035         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
15036         different stack levels.
15037         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
15038         (maybe_move_args_size_note): New.
15039         (combine_stack_adjustments_for_block): Use it.
15040         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
15041         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
15042         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
15043         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
15044         (cur_cfa): New.
15045         (queued_args_size): Remove.
15046         (add_cfi_args_size): Assert size is non-negative.
15047         (stack_adjust_offset, dwarf2out_args_size): Remove.
15048         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
15049         (notice_args_size, notice_eh_throw): New.
15050         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
15051         (dwarf2out_frame_debug_adjust_cfa): Likewise.
15052         (dwarf2out_frame_debug_cfa_offset): Likewise.
15053         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
15054         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
15055         (change_cfi_row): Don't emit args_size.
15056         (maybe_record_trace_start_abnormal): Split out from ...
15057         (maybe_record_trace_start): Here.  Set args_size_undefined.
15058         (create_trace_edges): Update to match.
15059         (scan_trace): Handle REG_ARGS_SIZE.
15060         (connect_traces): Connect args_size between EH insns.
15061         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
15062         * explow.c (suppress_reg_args_size): New.
15063         (adjust_stack_1): Split out from ...
15064         (adjust_stack): ... here.
15065         (anti_adjust_stack): Use it.
15066         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
15067         * expr.c (mem_autoinc_base): New.
15068         (fixup_args_size_notes): New.
15069         (emit_single_push_insn_1): Rename from emit_single_push_insn.
15070         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
15071         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
15072         * reload1.c (reload_as_needed): Likewise.
15073         * rtl.h (fixup_args_size_notes): Declare.
15074
15075 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
15076
15077         PR bootstrap/49914
15078         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
15079         of abs.
15080         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
15081         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
15082
15083 2011-08-02  Richard Henderson  <rth@redhat.com>
15084
15085         * config/h8300/h8300.c (push, pop): Return the insn.
15086         (h8300_swap_into_er6): Generate correct unwind info.
15087         (h8300_swap_out_of_er6): Likewise.
15088         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
15089         complex cfa expression.
15090         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
15091
15092 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
15093
15094         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15095
15096 2011-08-02  Richard Henderson  <rth@redhat.com>
15097
15098         PR target/49878
15099         * config/h8300/h8300.c (h8300_move_ok): New.
15100         * config/h8300/h8300-protos.h: Declare it.
15101         * config/h8300/h8300.md (P): New mode iterator.
15102         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
15103         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
15104         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
15105         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
15106         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
15107         and pushqi1_h8300hs_normal; use PRE_MODIFY and
15108         register_no_sp_elim_operand.
15109         (*pushhi1_h8300hs_<P>): Similarly.
15110         (pushqi1, pushhi1, pushhi1_h8300): Remove.
15111         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
15112
15113 2011-08-02  Richard Henderson  <rth@redhat.com>
15114
15115         PR target/49881
15116         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
15117
15118 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
15119
15120         * c-parser.c (enum c_parser_prec): New enum, moved from within
15121         c_parser_binary_expression.
15122         (c_parser_binary_expression): Add PREC argument.  Stop parsing
15123         if operator has lower or equal precedence than PREC.
15124         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
15125         callers.
15126         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
15127         Adjust c_finish_omp_atomic caller.
15128         (c_parser_omp_taskyield): New function.
15129         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
15130         (c_parser_omp_clause_name): Handle final and mergeable clauses.
15131         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
15132         functions.
15133         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
15134         and PRAGMA_OMP_CLAUSE_MERGEABLE.
15135         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
15136         (c_parser_omp_clause_reduction): Handle min and max.
15137         * c-typeck.c (c_finish_omp_clauses): Don't complain about
15138         const qualified predetermined vars in firstprivate clause.
15139         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15140         Handle MIN_EXPR and MAX_EXPR.
15141         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
15142         and OMP_CLAUSE_MERGEABLE.
15143         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
15144         and OMP_ATOMIC_CAPTURE_NEW.
15145         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
15146         OMP_CLAUSE_MERGEABLE.
15147         (omp_clause_code_name): Likewise.
15148         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15149         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
15150         and OMP_CLAUSE_MERGEABLE.
15151         (OMP_CLAUSE_FINAL_EXPR): Define.
15152         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
15153         OMP_CLAUSE_MERGEABLE.
15154         (expand_task_call): Likewise.
15155         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
15156         (expand_omp_atomic_fetch_op): Handle cases where old or new
15157         value is needed afterwards.
15158         (expand_omp_atomic): Call expand_omp_atomic_load resp.
15159         expand_omp_atomic_store.
15160         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
15161         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
15162         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
15163         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15164         * tree-nested.c (convert_nonlocal_omp_clauses,
15165         convert_local_omp_clauses): Likewise.
15166         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
15167         OMP_ATOMIC_CAPTURE_NEW): New.
15168         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
15169         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
15170         New inlines.
15171         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
15172         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
15173         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15174
15175 2011-08-02  Kai Tietz  <ktietz@redhat.com>
15176
15177         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
15178         boolean-type.
15179         (ssa_forward_propagate_and_combine): Interprete result of
15180         forward_propagate_comparison.
15181         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
15182         boolean-typed operands for comparisons.
15183
15184 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
15185
15186         * config/avr/libgcc.S: Gather related function in the
15187         same input section.
15188         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
15189         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
15190         references.
15191         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
15192         __udivmodsi4, __divmodsi4, __prologue_saves__,
15193         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
15194         __do_copy_data, __do_clear_bss, __do_global_ctors,
15195         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
15196
15197 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
15198
15199         PR target/47766
15200         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
15201         (stack_protect_test): The pattern compares ptr_mode value.
15202
15203 2011-08-02  Alan Modra  <amodra@gmail.com>
15204
15205         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
15206         note for save_LR_around_toc_setup sequence.
15207
15208 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
15209
15210         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
15211
15212 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
15213             Joseph Myers  <joseph@codesourcery.com>
15214
15215         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
15216         * hwint.c: Include diagnostic-core.h.
15217         (abs_hwi): New.
15218         (gcd): Moved here...
15219         (pos_mul_hwi): New.
15220         (mul_hwi): New.
15221         (least_common_multiple): Moved here...
15222         * hwint.h (gcd): ... from here.
15223         (least_common_multiple): ... from here.
15224         (HOST_WIDE_INT_MIN): New.
15225         (HOST_WIDE_INT_MAX): New.
15226         (abs_hwi): Declared.
15227         (gcd): Declared.
15228         (pos_mul_hwi): Declared.
15229         (mul_hwi): Declared.
15230         (least_common_multiple): Declared.
15231         * omega.c (check_pos_mul): Removed.
15232         (check_mul): Removed.
15233         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
15234         mul_hwi instead of check_mul.
15235
15236 2011-08-01  Richard Henderson  <rth@redhat.com>
15237
15238         PR target/49881
15239         * config/avr/avr.h (PUSH_ROUNDING): New.
15240         * config/avr/avr.md (pushqi1): Rename from *pushqi.
15241         (*pushhi, *pushsi, *pushsf): Remove.
15242         (MPUSH): New mode iterator.
15243         (push<MPUSH>1): New expander.
15244
15245 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
15246
15247         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
15248         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
15249         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
15250         mmix_preferred_output_reload_class): Remove.
15251         * config/mmix/mmix.c (mmix_preferred_reload_class,
15252         mmix_preferred_output_reload_class): Make static. Change rclass
15253         argument and return type to reg_class_t.
15254         (TARGET_PREFERRED_RELOAD_CLASS,
15255         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15256
15257 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
15258
15259         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
15260         handling.
15261
15262 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
15263
15264         PR target/47766
15265         * config/i386/i386.md (PTR): New.
15266         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
15267         (stack_protect_test): Likewise.
15268         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
15269         (stack_tls_protect_set_<mode>): Likewise.
15270         (stack_tls_protect_test_<mode>): Likewise.
15271
15272 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
15273
15274         PR target/49927
15275         * config/i386/i386.c (ix86_address_subreg_operand): New.
15276         (ix86_decompose_address): Use ix86_address_subreg_operand.
15277         (ix86_legitimate_address_p): Do not assert that subregs satisfy
15278         register_no_elim_operand in DImode.
15279
15280 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
15281
15282         PR tree-optimization/49926
15283         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
15284         in a chain doesn't have uses both inside and outside the loop.
15285
15286 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
15287
15288         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
15289         * config/avr/avr-devices.c (avr_mcu_types): Use it.
15290         * config/avr/avr-mcus.def (AVR_MCU): Use it.
15291         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
15292         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
15293         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
15294         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
15295         to detect if XJMP must not be skipped.
15296
15297 2011-08-02  Alan Modra  <amodra@gmail.com>
15298
15299         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
15300         Delete.
15301         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
15302         (rs6000_emit_prologue): Don't prematurely return when
15303         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
15304         save_toc_in_prologue case.
15305         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
15306         calls_alloca.
15307
15308 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
15309
15310         * config/avr/avr-devices.c: Delete SVN property svn:executable.
15311         * config/avr/predicates.md: Ditto.
15312         * config/avr/driver-avr.c: Ditto.
15313         * config/avr/genopt.sh: Set SVN property svn:executable to *.
15314
15315 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
15316
15317         * calls.c (emit_library_call_value_1): Declare size only if
15318         BLOCK_REG_PADDING is defined.
15319
15320 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
15321
15322         PR target/49547
15323         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
15324         (x86_64-*-*): Likewise.
15325         * config/i386/i386.opt (mlzcnt): New.
15326         * config/i386/abmintrin.h: File removed.
15327         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
15328         * config/i386/lzcntintrin.h: ... here.  New file.
15329         (__lzcnt): Rename to ...
15330         (__lzcnt32): ... this.
15331         * config/i386/bmiintrin.h (head): Update copyright year.
15332         (__lzcnt_u16): Removed.
15333         (__lzcnt_u32): Likewise.
15334         (__lzcnt_u64): Likewise.
15335         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
15336         is defined, remove abmintrin.h.
15337         * config/i386/cpuid.h (bit_LZCNT): New.
15338         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15339         LZCNT feature.
15340         * config/i386/i386-c.c (ix86_target_macros_internal): Define
15341         __LZCNT__ if needed.
15342         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
15343         (ix86_option_override_internal): Handle LZCNT option.
15344         (ix86_valid_target_attribute_inner_p): Likewise.
15345         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
15346         * config/i386/i386.h (TARGET_LZCNT): New.
15347         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
15348         * config/i386/i386.md (clz<mode>2): Update insn constraint.
15349         (clz<mode>2_lzcnt): Likewise.
15350         * doc/invoke.texi: Mention -mlzcnt option.
15351         * doc/extend.texi: Likewise.
15352
15353 2011-08-01  Julian Brown  <julian@codesourcery.com>
15354
15355         * configure.ac (fixed-point): Add ARM support.
15356         * configure: Regenerate.
15357         * config/arm/arm.c (arm_fixed_mode_set): New struct.
15358         (arm_set_fixed_optab_libfunc): New.
15359         (arm_set_fixed_conv_libfunc): New.
15360         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
15361         ARM-specific names.
15362         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
15363         return values in SImode.
15364         (arm_return_in_msb): Return fixed-point types in the msb.
15365         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
15366         upwards.
15367         (arm_scalar_mode_supported_p): Support fixed-point modes.
15368         (arm_vector_mode_supported_p): Support vector fixed-point modes.
15369         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
15370         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
15371         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
15372         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
15373         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
15374         New mode iterators.
15375         (qaddsub_suf): New mode attribute.
15376         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
15377         vector modes.
15378         * config/arm/predicates.md (sat_shift_operator): New predicate.
15379         * config/arm/arm-fixed.md: New.
15380         * config/arm/arm.md: Include arm-fixed.md.
15381         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
15382
15383 2011-08-01  Julian Brown  <julian@codesourcery.com>
15384
15385         * calls.c (emit_library_call_value_1): Support padding for libcall
15386         arguments and return values.
15387         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
15388         downwards in big-endian mode.
15389
15390 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15391
15392         PR debug/49887
15393         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
15394         * config/sol2-protos.h: Likewise.
15395         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
15396         solaris_code_end.
15397         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
15398         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
15399         solaris_file_end.
15400         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
15401
15402 2011-08-01  Julian Brown  <julian@codesourcery.com>
15403
15404         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
15405
15406 2011-08-01  Julian Brown  <julian@codesourcery.com>
15407
15408         * final.c (output_addr_const): Print fixed-point constants as
15409         decimal not hex.
15410
15411 2011-08-01  Richard Guenther  <rguenther@suse.de>
15412
15413         * stor-layout.c (initialize_sizetypes): Properly sign-extend
15414         bitsiztype TYPE_MAX_VALUE.
15415
15416 2011-08-01  Julian Brown  <julian@codesourcery.com>
15417
15418         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
15419         comparison helpers.
15420
15421 2011-07-31  Richard Henderson  <rth@redhat.com>
15422
15423         * config/h8300/crti.asm: Add flags to .section directive.
15424         * config/h8300/crtn.asm: Likewise.
15425
15426 2011-07-31  Richard Henderson  <rth@redhat.com>
15427
15428         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
15429         * tree.c (build_common_tree_nodes): Likewise.
15430
15431 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
15432
15433         PR target/49880
15434         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
15435         (divsi3_i1): Likewise.
15436
15437 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15438
15439         PR tree-optimization/49749
15440         * tree-ssa-reassoc.c (get_rank): New forward declaration.
15441         (PHI_LOOP_BIAS): New macro.
15442         (phi_rank): New function.
15443         (loop_carried_phi): Likewise.
15444         (propagate_rank): Likewise.
15445         (get_rank): Add calls to phi_rank and propagate_rank.
15446
15447 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
15448
15449         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
15450         of TARGET_64BIT.
15451         (PTRDIFF_TYPE): Likewise.
15452
15453 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
15454
15455         PR target/49920
15456         * config/i386/i386.md (strset): Do not expand strset_singleop
15457         when %eax or $edi are fixed.
15458         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
15459         (*strsetsi_1): Ditto.
15460         (*strsethi_1): Ditto.
15461         (*strsetqi_1): Ditto.
15462         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
15463         (*rep_stossi): Ditto.
15464         (*rep_stosqi): Ditto.
15465         (*strlenqi_1): Ditto.
15466         (cmpstrnsi): Also fail when %ecx is fixed.
15467         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
15468         (*cmpstrnqi_1): Ditto.
15469         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
15470         (*strmovsi_1): Ditto.
15471         (*strmovhi_1): Ditto.
15472         (*strmovqi_1): Ditto.
15473         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
15474         (*rep_movsi): Ditto.
15475         (*rep_movqi): Ditto.
15476
15477 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
15478
15479         PR target/47908
15480         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
15481         Disable instruction scheduling for non-ColdFire targets.
15482         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
15483
15484 2011-07-31  Revital Eres  <revital.eres@linaro.org>
15485
15486         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
15487         of anti-dep edge from a branch.
15488         (add_cross_iteration_register_deps): Create anti-dep edge from
15489         a branch.
15490
15491 2011-07-31  Revital Eres  <revital.eres@linaro.org>
15492
15493         * modulo-sched.c: Change comment.
15494         (reset_sched_times): Fix print message.
15495         (print_partial_schedule): Add print info.
15496
15497 2011-07-31  Tom de Vries  <tom@codesourcery.com>
15498
15499         PR middle-end/43513
15500         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
15501         get_object_alignment and TYPE_ALIGN.
15502
15503 2011-07-30  Tom de Vries  <tom@codesourcery.com>
15504
15505         PR middle-end/43513
15506         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
15507         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
15508
15509 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15510
15511         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
15512         <sys/sbd.h>.
15513         (cpu_types): New array.
15514         (cputype): New function.
15515         (host_detect_local_cpu): Only define buf, f if !__sgi__.
15516         Use scaninvent instead of /proc/cpuinfo if __sgi__.
15517         * config.host: Also use driver-native.o, mips/x-native on
15518         mips-sgi-irix*.
15519         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
15520         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
15521         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
15522
15523 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
15524
15525         PR middle-end/49897
15526         PR middle-end/49898
15527         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
15528         in nested parallel and outer is a gimple_reg, mark it as addressable
15529         and set its bit in task_shared_vars bitmap too.
15530
15531 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
15532
15533         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
15534
15535 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15536
15537         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
15538         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
15539         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
15540         AMASK_LOCKPFTCHOK): Define.
15541         (host_detect_local_cpu): Remove buf, f, cpu_names.
15542         Define cpu_types, implver, amask.
15543         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
15544         native CPU.
15545         * config.host: Also use driver-alpha.o, alpha/x-alpha on
15546         alpha*-dec-osf*.
15547         * config/alpha/osf5.h [__alpha__ || __alpha]
15548         (host_detect_local_cpu): Declare.
15549         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
15550         (DRIVER_SELF_SPECS): Define.
15551
15552 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
15553
15554         PR target/47715
15555         * config/i386/i386.md (*load_tp_x32): New.
15556         (*load_tp_x32_zext): Ditto.
15557         (*add_tp_x32): Ditto.
15558         (*add_tp_x32_zext): Ditto.
15559         (*load_tp_<mode>): Disable for TARGET_X32 targets.
15560         (*add_tp_<mode>): Ditto.
15561         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
15562         ptr_mode and convert to Pmode if needed.
15563
15564 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
15565
15566         PR target/49687
15567         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
15568         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
15569         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
15570         Add X to register footprint: Clobber r26/r27.
15571
15572 2011-07-29  Richard Guenther  <rguenther@suse.de>
15573
15574         * builtins.c (fold_builtin_signbit): Build the comparison
15575         with a proper type.
15576
15577 2011-07-29  Richard Guenther  <rguenther@suse.de>
15578
15579         PR tree-optimization/49893
15580         * tree-predcom.c (suitable_reference_p): Volatile references
15581         are not suitable.
15582
15583 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
15584
15585         PR target/49313
15586         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
15587         (__ctzsi2): Result for 0 may be undefined.
15588         (__ctzhi2): Result for 0 may be undefined.
15589         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
15590         (__popcountsi2): Ditto. And don't clobber r26.
15591         (__popcountdi2): Ditto. And don't clobber r27.
15592         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
15593         (parityhi2): New expand.
15594         (paritysi2): New expand.
15595         (popcounthi2): New expand.
15596         (popcountsi2): New expand.
15597         (clzhi2): New expand.
15598         (clzsi2): New expand.
15599         (ctzhi2): New expand.
15600         (ctzsi2): New expand.
15601         (ffshi2): New expand.
15602         (ffssi2): New expand.
15603         (copysignsf3): New insn.
15604         (bswapsi2): New expand.
15605         (*parityhi2.libgcc): New insn.
15606         (*parityqihi2.libgcc): New insn.
15607         (*paritysihi2.libgcc): New insn.
15608         (*popcounthi2.libgcc): New insn.
15609         (*popcountsi2.libgcc): New insn.
15610         (*popcountqi2.libgcc): New insn.
15611         (*popcountqihi2.libgcc): New insn-and-split.
15612         (*clzhi2.libgcc): New insn.
15613         (*clzsihi2.libgcc): New insn.
15614         (*ctzhi2.libgcc): New insn.
15615         (*ctzsihi2.libgcc): New insn.
15616         (*ffshi2.libgcc): New insn.
15617         (*ffssihi2.libgcc): New insn.
15618         (*bswapsi2.libgcc): New insn.
15619
15620 2011-07-29  Richard Guenther  <rguenther@suse.de>
15621
15622         * tree-vrp.c (get_value_range): Only set parameter default
15623         definitions to varying, leave others at undefined.
15624         (extract_range_from_binary_expr): Fix undefined handling.
15625         (vrp_visit_phi_node): Handle merged undefined state.
15626
15627 2011-07-29  Wei Guozhi  <carrot@google.com>
15628
15629         PR rtl-optimization/49799
15630         * combine.c (make_compound_operation): Check if the bit field is valid
15631         before change it to bit field extraction.
15632
15633 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
15634
15635         PR rtl-optimization/49891
15636         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
15637         newly created returnjumps.
15638
15639 2011-07-28  DJ Delorie  <dj@redhat.com>
15640
15641         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
15642         local frame in a naked function, and produce a suitable error for
15643         that specific case.
15644
15645         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
15646         registers to be reloaded in HI classes when the target is HI.
15647
15648 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
15649
15650         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
15651         bound_one, bound_two.
15652
15653 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
15654
15655         PR middle-end/48648
15656         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
15657         CLAST assignments.
15658         (translate_clast): Same.
15659         (translate_clast_assignment): New.
15660
15661 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
15662
15663         PR tree-optimization/49876
15664         * sese.c (rename_uses): Do not return false on gloog_error: set
15665         the new_expr to integer_zero_node and continue code generation.
15666         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
15667
15668 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
15669
15670         PR debug/49846
15671         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
15672         arguments also check if they aren't initialized with a MODE_INT
15673         mode of the same size.
15674
15675 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
15676
15677         * expr.c (get_bit_range): Handle *MEM_REF's.
15678
15679 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
15680
15681         * rtlanal.c (tablejump_p): False for returns.
15682         * reorg.c (first_active_target_insn): New static function.
15683         (find_end_label): Set JUMP_LABEL for a new returnjump.
15684         (optimize_skip, get_jump_flags, rare_destination,
15685         mostly_true_jump, get_branch_condition,
15686         steal_delay_list_from_target, own_thread_p,
15687         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
15688         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
15689         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
15690         * jump.c (delete_related_insns): Likewise.
15691         (jump_to_label_p): New function.
15692         (redirect_target): New static function.
15693         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
15694         (redirect_jump_1): Assert that the new label is nonnull.
15695         (redirect_jump): Likewise.
15696         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
15697         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
15698         exit block.
15699         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
15700         changed.  Ensure that the right label is passed to redirect_jump.
15701         * function.c (emit_return_into_block,
15702         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
15703         ret_rtx in their JUMP_LABEL.
15704         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
15705         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
15706         pass ret_rtx as label.
15707         * cfglayout.c (fixup_reorder_chain): Use
15708         force_nonfallthru_and_redirect rather than force_nonfallthru.
15709         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
15710         * rtl.h (ANY_RETURN_P): New macro.
15711         (jump_to_label_p): Declare.
15712         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
15713         JUMP_LABELs.
15714         (mark_target_live_regs): Likewise.
15715         * basic-block.h (force_nonfallthru_and_redirect): Declare.
15716         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
15717         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
15718         alpha_tablejump_best_label): Remove functions.
15719         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
15720         alpha_tablejump_best_label): Remove declarations.
15721         * config/sh/sh.c (barrier_align, split_branches): Adjust for
15722         ret_rtx in JUMP_LABELs.
15723         * config/arm/arm.c (is_jump_table): Likewise.
15724
15725 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
15726
15727         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
15728         special predicate.  Remove explicit mode checks.
15729
15730 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
15731
15732         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
15733         DW_AT_data_member_location containing just DW_OP_plus_uconst.
15734
15735         PR debug/49871
15736         * dwarf2out.c (size_of_die, value_format, output_die): Use
15737         DW_FORM_udata instead of DW_FORM_data[48] for
15738         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
15739
15740 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
15741
15742         * config/i386/i386.md (*tls_global_dynamic_64): Update
15743         length attribute.
15744
15745 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
15746
15747         PR target/47715
15748         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
15749         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
15750         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
15751         (tls_dynamic_gnu2_64): Ditto.
15752         (*tls_dynamic_gnu2_lea_64): Ditto.
15753         (*tls_dynamic_gnu2_call_64): Ditto.
15754         (*tls_dynamic_gnu2_combine_64): Ditto.
15755
15756 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
15757
15758         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
15759
15760 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
15761
15762         PR target/47364
15763         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
15764
15765 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15766
15767         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
15768         before the core constraints. Adjust attributes.
15769         ("*thumb2_movdf_vfp"): Likewise.
15770
15771 2011-07-28  Kai Tietz  <ktietz@redhat.com>
15772
15773         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
15774         (simplify_truth_ops_using_ranges): Likewise.
15775         (build_assert_expr_for): Likewise.
15776         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
15777         and handle BIT_NOT_EXPR for truth-operation.
15778
15779 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
15780
15781         PR target/49313
15782         Undo r176835 from trunk
15783         2011-07-27  Georg-Johann Lay
15784
15785 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
15786
15787         PR target/49687
15788         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
15789         Add _muluhisi3, _mulshisi3, _usmulhisi3.
15790         * config/avr/libgcc.S (__mulsi3): Rewrite.
15791         (__mulhisi3): Rewrite.
15792         (__umulhisi3): Rewrite.
15793         (__usmulhisi3): New.
15794         (__muluhisi3): New.
15795         (__mulshisi3): New.
15796         (__mulohisi3): New.
15797         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
15798         declare.
15799         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
15800         (pseudo_register_or_const_int_operand): New.
15801         (combine_pseudo_register_operand): New.
15802         (u16_operand): New.
15803         (s16_operand): New.
15804         (o16_operand): New.
15805         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
15806         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
15807         (any_extend, any_extend2): New code iterators.
15808         (extend_prefix): New code attribute.
15809         (mulsi3): Rewrite. Turn insn to expander.
15810         (mulhisi3): Ditto.
15811         (umulhisi3): Ditto.
15812         (usmulhisi3): New expander.
15813         (*mulsi3): New insn-and-split.
15814         (mulu<mode>si3): New insn-and-split.
15815         (muls<mode>si3): New insn-and-split.
15816         (mulohisi3): New insn-and-split.
15817         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
15818         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
15819         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
15820         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
15821         insn-and-split.
15822         (*mulsi3_call): Rewrite.
15823         (*mulhisi3_call): Rewrite.
15824         (*umulhisi3_call): Rewrite.
15825         (*usmulhisi3_call): New insn.
15826         (*muluhisi3_call): New insn.
15827         (*mulshisi3_call): New insn.
15828         (*mulohisi3_call): New insn.
15829         (extendqihi2): Use combine_pseudo_register_operand as predicate
15830         for operand 1.
15831         (extendqisi2): Ditto.
15832         (zero_extendqihi2): Ditto.
15833         (zero_extendqisi2): Ditto.
15834         (zero_extendhisi2): Ditto.
15835         (extendhisi2): Ditto. Don't early-clobber operand 0.
15836
15837 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
15838
15839         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
15840
15841 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
15842
15843         PR tree-optimization/49471
15844         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
15845         iv only when the largest type is unsigned.  Do not call
15846         lang_hooks.types.type_for_size.
15847
15848 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
15849
15850         PR middle-end/45450
15851         * graphite-poly.c (apply_poly_transforms): Disable legality check
15852         after an openscop read.
15853
15854 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
15855
15856         PR middle-end/47691
15857         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
15858         copy_bb_and_scalar_dependences.
15859         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
15860         (graphite_copy_stmts_from_block): Update call to rename_uses.
15861         (copy_bb_and_scalar_dependences): Update call to
15862         graphite_copy_stmts_from_block.
15863         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
15864
15865 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
15866
15867         PR target/49313
15868         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
15869         (__ctzsi2): Result for 0 may be undefined.
15870         (__ctzhi2): Result for 0 may be undefined.
15871         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
15872         (__popcountsi2): Ditto. And don't clobber r26.
15873         (__popcountdi2): Ditto. And don't clobber r27.
15874         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
15875         (parityhi2): New expand.
15876         (paritysi2): New expand.
15877         (popcounthi2): New expand.
15878         (popcountsi2): New expand.
15879         (clzhi2): New expand.
15880         (clzsi2): New expand.
15881         (ctzhi2): New expand.
15882         (ctzsi2): New expand.
15883         (ffshi2): New expand.
15884         (ffssi2): New expand.
15885         (copysignsf3): New insn.
15886         (bswapsi2): New expand.
15887         (*parityhi2.libgcc): New insn.
15888         (*parityqihi2.libgcc): New insn.
15889         (*paritysihi2.libgcc): New insn.
15890         (*popcounthi2.libgcc): New insn.
15891         (*popcountsi2.libgcc): New insn.
15892         (*popcountqi2.libgcc): New insn.
15893         (*popcountqihi2.libgcc): New insn-and-split.
15894         (*clzhi2.libgcc): New insn.
15895         (*clzsihi2.libgcc): New insn.
15896         (*ctzhi2.libgcc): New insn.
15897         (*ctzsihi2.libgcc): New insn.
15898         (*ffshi2.libgcc): New insn.
15899         (*ffssihi2.libgcc): New insn.
15900         (*bswapsi2.libgcc): New insn.
15901
15902 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
15903
15904         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
15905         the mode of symbolic_opreand RTXes.
15906
15907 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
15908
15909         * config/i386/predicates.md (x86_64_movabs_operand): Return false
15910         for pic_32bit_operand RTXes.
15911         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
15912         in DImode.
15913
15914 2011-07-27  Kai Tietz  <ktietz@redhat.com>
15915
15916         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
15917         for 32-bit, too.
15918         (ix86_handle_abi_attribute): Allow function attributes
15919         ms_abi/sysv_abi in 32-bit mode, too.
15920         * doc/extend.texi: Adjust attribute documentation.
15921
15922         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
15923         expression handling.
15924         (and_var_with_comparison_1): Likewise.
15925
15926 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
15927
15928         * params.h (ALLOW_STORE_DATA_RACES): New.
15929         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
15930         * Makefile.in (expr.o): Depend on PARAMS_H.
15931         * machmode.h (get_best_mode): Add argument.
15932         * fold-const.c (optimize_bit_field_compare): Add argument to
15933         get_best_mode.
15934         (fold_truthop): Same.
15935         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
15936         * expr.c (emit_group_store): Same.
15937         (copy_blkmode_from_reg): Same.
15938         (write_complex_part): Same.
15939         (optimize_bitfield_assignment_op): Add argument.
15940         Add argument to get_best_mode.
15941         (get_bit_range): New.
15942         (expand_assignment): Calculate maxbits and pass it down accordingly.
15943         (store_field): New argument.
15944         (expand_expr_real_2): New argument to store_field.  Include params.h.
15945         * expr.h (store_bit_field): New argument.
15946         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
15947         into account maxbits.
15948         * calls.c (store_unaligned_arguments_into_pseudos): New argument
15949         to store_bit_field.
15950         * expmed.c (store_bit_field_1): New argument.  Use it.
15951         (store_bit_field): Same.
15952         (store_fixed_bit_field): Same.
15953         (store_split_bit_field): Same.
15954         (extract_bit_field_1): Pass new argument to get_best_mode.
15955         (extract_bit_field): Same.
15956         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
15957         * doc/invoke.texi: Document parameter allow-store-data-races.
15958
15959 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
15960
15961         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
15962
15963 2011-07-27  Kai Tietz  <ktietz@redhat.com>
15964
15965         * tree-vrp.c (extract_range_from_binary_expr): Remove
15966         TRUTH-binary cases and add new bitwise-cases.
15967         (extract_range_from_assignment): Likewise.
15968         (register_edge_assert_for_1): Likeiwise.
15969         (register_edge_assert_for): Likewise.
15970         (simplify_truth_ops_using_ranges): Likewise.
15971         (simplify_stmt_using_ranges): Likewise.
15972
15973 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
15974
15975         PR target/47372
15976         * config/i386/i386.c (ix86_delegitimize_address): Call
15977         simplify_gen_subreg for PIC with mode of x only if modes of
15978         x and orig_x are different.
15979
15980 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
15981
15982         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
15983         to GC allocated copy of the string.
15984         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
15985         before .debug_line, not after it.
15986
15987 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
15988
15989         PR middle-end/47046
15990         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
15991         evolution_function_is_affine_p on CHREC_RIGHT.
15992
15993 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
15994
15995         * tree-data-ref.c (max_stmt_executions_tree): Do not call
15996         lang_hooks.types.type_for_size.
15997
15998 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
15999
16000         PR middle-end/47653
16001         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
16002         loops using wrapping semantics.
16003
16004 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
16005
16006         PR middle-end/48805
16007         * tree-scalar-evolution.c (instantiate_scev_r): Return
16008         chrec_dont_know for ADDR_EXPR.
16009
16010 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
16011             H.J. Lu  <hongjiu.lu@intel.com>
16012
16013         PR target/47369
16014         PR target/49853
16015         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
16016         if legitimize_tls_address returned operand in wrong mode. Allow
16017         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
16018         if legitimize_pic_address returned operand in wrong mode.
16019
16020 2011-07-26  Martin Jambor  <mjambor@suse.cz>
16021
16022         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
16023         return false for invariants.
16024
16025 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
16026
16027         * config/i386/i386.md (add->lea splitter): Implement using SWI
16028         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
16029         (add->lea zext splitter): Change operand 2 predicate to
16030         x86_64_nonmemory_operand.
16031
16032 2011-07-26  Richard Guenther  <rguenther@suse.de>
16033
16034         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
16035         frequency makes everything hot.
16036
16037 2011-07-26  Richard Guenther  <rguenther@suse.de>
16038
16039         PR tree-optimization/49840
16040         * tree-vrp.c (range_fits_type_p): Properly handle full
16041         double-int precision.
16042
16043 2011-07-26  Martin Jambor  <mjambor@suse.cz>
16044
16045         PR bootstrap/49786
16046         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
16047         counts.
16048         (update_specialized_profile): Likewise.
16049
16050 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
16051             H.J. Lu  <hongjiu.lu@intel.com>
16052
16053         PR target/47381
16054         PR target/49832
16055         PR target/49833
16056         * config/i386/i386.md (i): Change SImode attribute to "e".
16057         (g): Change SImode attribute to "rme".
16058         (di): Change SImode attribute to "nF".
16059         (general_operand): Change SImode attribute to x86_64_general_operand.
16060         (general_szext_operand): Change SImode attribute to
16061         x86_64_szext_general_operand.
16062         (immediate_operand): Change SImode attribute to
16063         x86_64_immediate_operand.
16064         (nonmemory_operand): Change SImode attribute to
16065         x86_64_nonmemory_operand.
16066         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
16067         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
16068         (*lea_1): Use SWI48 mode iterator.
16069         (*lea_1_zext): New insn pattern.
16070         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
16071         (*bt<mode>): Ditto.
16072         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
16073         Update operand constraints.
16074         (addsi_1_zext): Ditto.
16075         (*add<mode>2): Ditto.
16076         (*addsi_3_zext): Ditto.
16077         (*subsi_1_zext): Ditto.
16078         (*subsi_2_zext): Ditto.
16079         (*subsi_3_zext): Ditto.
16080         (*addsi3_carry_zext): Ditto.
16081         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
16082         (*mulsi3_1_zext): Ditto.
16083         (*andsi_1): Ditto.
16084         (*andsi_1_zext): Ditto.
16085         (*andsi_2_zext): Ditto.
16086         (*<any_or:code>si_1_zext): Ditto.
16087         (*<any_or:code>si_2_zext): Ditto.
16088         (*test<mode>_1): Use <general_operand> predicate for operand 1.
16089         (*and<mode>_2): Ditto.
16090         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
16091         (add->lea splitter): Check operand modes in insn constraint.  Extend
16092         operands less than SImode wide to SImode.
16093         (add->lea zext splitter): Do not extend input operands to DImode.
16094         (*lea_general_1): Handle only QImode and HImode operands.
16095         (*lea_general_2): Ditto.
16096         (*lea_general_3): Ditto.
16097         (*lea_general_1_zext): Remove.
16098         (*lea_general_2_zext): Ditto.
16099         (*lea_general_3_zext): Ditto.
16100         (*lea_general_4): Check operand modes in insn constraint.  Extend
16101         operands less than SImode wide to SImode.
16102         (ashift->lea splitter): Ditto.
16103         * config/i386/i386.c (ix86_print_operand_address): Print address
16104         registers with 'q' modifier on 64bit targets.
16105         * config/i386/predicates.md (pic_32bit_opreand): Define as special
16106         predicate.  Reject non-SI and non-DI modes.
16107
16108 2011-07-25  Andrew Pinski  <apinski@cavium.com>
16109
16110         PR tree-opt/49671
16111         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
16112         TREE_THIS_NOTRAP into the inner most MEM_REF.
16113         Always copy TREE_THIS_VOLATILE.
16114         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
16115         arguments are not volatile references.
16116
16117 2011-07-25  Richard Henderson  <rth@redhat.com>
16118
16119         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
16120         * final.c (final_scan_insn): Don't test for it.
16121         (rest_of_clean_state): Likewise.
16122
16123 2011-07-25  Richard Henderson  <rth@redhat.com>
16124
16125         PR debug/49841
16126         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
16127         (emit_frame_save): Likewise.
16128         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
16129         insn onto a dummy blockage insn after the join label.
16130
16131 2011-07-25  Richard Henderson  <rth@redhat.com>
16132
16133         * dwarf2cfi.c (dw_trace_info): Add ID member.
16134         (get_trace_index): Remove.  Change users to use ID member.
16135         (before_next_cfi_note): New.
16136         (connect_traces): Remove unreachable traces before the main loop.
16137         Look across one trace and generate remember/restore_state if needed.
16138
16139 2011-07-25  Richard Henderson  <rth@redhat.com>
16140
16141         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
16142
16143 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
16144
16145         * genattr.c (write_upcase, gen_attr <enum definition writing>):
16146         Move to ...
16147         * genattr-common.c ... here.
16148         (main): Call gen_attr.
16149         * optc-gen.awk: Make generated program include insn-attr-common.h .
16150         * Makefile.in (oprions.o): Depend on insn-attr-common.h
16151
16152 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
16153
16154         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16155         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
16156         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
16157         m32c_print_operand, m32c_print_operand_address): Remove.
16158         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
16159         Change return type to bool. Change argument type to bool.
16160         (m32c_print_operand, m32c_print_operand_address): Make static.
16161         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
16162         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16163
16164 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16165
16166         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
16167         attributes): Document mmap.
16168
16169 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
16170
16171         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16172         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
16173         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
16174         mmix_print_operand, mmix_print_operand_address): Remove.
16175         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
16176         Change return type to bool. Change argument type to bool.
16177         (mmix_print_operand, mmix_print_operand_address): Make static.
16178         (mmix_intval, mmix_output_condition): Change 'x' argument type
16179         to const_rtx.
16180         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
16181         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16182
16183 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
16184
16185         PR target/39386
16186         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
16187         shift counter for x << x and x >> x shifts.
16188
16189 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16190
16191         PR target/47124
16192         * config.gcc: Reject *-*-solaris2 configuration.
16193
16194 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
16195
16196         PR tree-optimization/49809
16197         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
16198         gimple_get_lhs instead of gimple_assign_lhs.
16199
16200 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16201
16202         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
16203
16204 2011-07-25  Richard Guenther  <rguenther@suse.de>
16205
16206         PR tree-optimization/49822
16207         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
16208         more.  Make sure to preserve stmts with side-effects.  Properly
16209         handle virtual defs, follow a longer def chain.
16210
16211 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
16212
16213         PR plugins/45348
16214         PR plugins/48425
16215         PR plugins/46577
16216         * Makefile.in: Do not flatten c-family directory when installing
16217         plugin headers.
16218
16219 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
16220
16221         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
16222         original nodes if we are dealing with virtual clones.
16223
16224 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
16225
16226         * common/config/c6x/c6x-common.c: New file.
16227
16228 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
16229
16230         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
16231
16232 2011-07-25  Richard Guenther  <rguenther@suse.de>
16233
16234         PR tree-optimization/49715
16235         * tree-vrp.c: Include expr.h and optabs.h.
16236         (range_fits_type_): New function.
16237         (simplify_float_conversion_using_ranges): Likewise.
16238         (simplify_stmt_using_ranges): Call it.
16239         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
16240         * optabs.c (can_float_p): Export.
16241         * optabs.h (can_float_p): Declare.
16242
16243 2011-07-25  Richard Guenther  <rguenther@suse.de>
16244
16245         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
16246         (get_value_range): For out-of-range SSA names or names created
16247         after propagation return a read-only varying range.
16248         (dump_all_value_ranges): Adjust.
16249         (vrp_initialize): Likewise.
16250         (vrp_finalize): Likewise.
16251
16252 2011-07-24  Richard Henderson  <rth@redhat.com>
16253
16254         PR debug/49831
16255         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
16256         them entirely.
16257
16258 2011-07-24  Richard Henderson  <rth@redhat.com>
16259
16260         PR debug/49825
16261         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
16262         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
16263
16264 2011-07-24  Richard Henderson  <rth@redhat.com>
16265
16266         PR debug/49827
16267         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
16268
16269 2011-07-24  Richard Henderson  <rth@redhat.com>
16270
16271         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
16272         Zero args_size for abnormal edges.  Adjust all callers.
16273
16274 2011-07-24  Richard Henderson  <rth@redhat.com>
16275
16276         PR debug/49825
16277         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
16278
16279 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16280
16281         PR bootstrap/49835
16282         * collect2.c (demangle_flag): Removed.
16283
16284 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
16285
16286         * configure.ac (demangler_in_ld): Default to yes.
16287         * configure: Regenerated.
16288         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
16289         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
16290         --no-demangle options straight through to ld.  When
16291         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
16292         way that has the intended effect on Windows.
16293
16294 2011-07-23  Richard Henderson  <rth@redhat.com>
16295
16296         * dwarf2cfi.c: Include basic-block.h.
16297         (dw_label_info): Remove.
16298         (trace_work_list, trace_index): New.
16299         (remember_row, emit_cfa_remember): Remove.
16300         (dw_trace_info_hash, dw_trace_info_eq): New.
16301         (get_trace_index, get_trace_info): New.
16302         (save_point_p): New.
16303         (free_cfi_row): Remove.
16304         (add_cfi): Do not emit DW_CFA_remember_state.
16305         (cfa_row_equal_p): New.
16306         (barrier_args_size): Remove.
16307         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
16308         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
16309         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
16310         (dwarf2out_cfi_begin_epilogue): Remove.
16311         (dwarf2out_frame_debug_restore_state): Remove.
16312         (connect_traces, create_pseudo_cfg): New.
16313         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
16314         * Makefile.in (dwarf2cfi.o): Update.
16315
16316 2011-07-23  Richard Henderson  <rth@redhat.com>
16317
16318         * dwarf2cfi.c (dw_trace_info): New.
16319         (dw_label_info): New.
16320         (cie_return_save): New.
16321         (cur_trace): New.
16322         (queued_args_size): Rename from args_size.  Update all users.
16323         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
16324         (def_cfa_1): Use cur_trace instead of cfa_*.
16325         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
16326         (clobbers_queued_reg_save, reg_saved_in): Likewise.
16327         (dwarf2out_frame_debug_expr): Likewise.
16328         (create_cie_data): Split out from ...
16329         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
16330
16331 2011-07-23  Richard Henderson  <rth@redhat.com>
16332
16333         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
16334         Update all users to match.
16335         (execute_dwarf2_frame): Free reg_saved_in_data.
16336
16337 2011-07-23  Richard Henderson  <rth@redhat.com>
16338
16339         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
16340         (queued_reg_saves): Don't GTY.  Change to a VEC.
16341         (queue_reg_save): Update to match.
16342         (dwarf2out_flush_queued_reg_saves): Likewise.
16343         (clobbers_queued_reg_save): Likewise.
16344         (reg_saved_in): Likewise.
16345         (execute_dwarf2_frame): Free queued_reg_saves.
16346
16347 2011-07-23  Richard Henderson  <rth@redhat.com>
16348
16349         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
16350
16351 2011-07-23  Richard Henderson  <rth@redhat.com>
16352
16353         * dwarf2cfi.c (add_cfi_args_size): Split out from...
16354         (dwarf2out_args_size): ... here.
16355         (add_cfi_restore): Split out from ...
16356         (dwarf2out_frame_debug_cfa_restore): ... here.
16357         (def_cfa_0): Split out from ...
16358         (def_cfa_1): ... here.
16359         (cfi_oprnd_equal_p, cfi_equal_p): New.
16360         (change_cfi_row): New.
16361         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
16362         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
16363         (output_cfis): Remove.
16364         * dwarf2out.c (output_fde): Simplify output_cfi loop.
16365         (dwarf2out_switch_text_section): Don't call output_cfis.
16366         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
16367         * dwarf2out.h: Update decls.
16368         (enum dw_val_class): Add dw_val_class_none.
16369
16370 2011-07-23  Richard Henderson  <rth@redhat.com>
16371
16372         * dwarf2cfi.c (update_row_reg_save): New.
16373         (dwarf2out_frame_debug_cfa_expression): Use it.
16374         (dwarf2out_frame_debug_cfa_restore): Likewise.
16375         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
16376
16377 2011-07-23  Richard Henderson  <rth@redhat.com>
16378
16379         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
16380
16381 2011-07-23  Richard Henderson  <rth@redhat.com>
16382
16383         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
16384         (cie_cfi_row): New.
16385         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
16386         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
16387         (cur_row, remember_row): New.
16388         (def_cfa_1): Use cur_row instead of the old_* variables.
16389         (dwarf2out_frame_debug_restore_state): Similarly.
16390         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
16391         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
16392         (dwarf2out_frame_debug_adjust_cfa): Likewise.
16393         (dwarf2out_frame_debug_cfa_offset): Likewise.
16394         (dwarf2out_frame_debug_expr): Likewise.
16395         (execute_dwarf2_frame): Set up cur_row.
16396         * dwarf2out.h (struct cfa_loc): Mark for GTY.
16397
16398 2011-07-23  Richard Henderson  <rth@redhat.com>
16399
16400         * basic-block.h (EDGE_PRESERVE): New.
16401         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
16402         * bb-reorder.c: Include except.h.
16403         (fix_up_crossing_landing_pad): New.
16404         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
16405         landing pads in the right partition.  Duplicate as necessary.
16406         (partition_hot_cold_basic_blocks): Fix up DF info after
16407         duplicating landing pads.
16408         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
16409         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
16410         is set properly.  Validate that EH edges are not CROSSING.
16411         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
16412         (dw2_build_landing_pads): ... here.
16413         (convert_to_eh_region_ranges): Remove code to fixup crossing
16414         landing pads.
16415         * except.h (expand_dw2_landing_pad_for_region): Declare.
16416         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
16417
16418 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
16419
16420         PR target/49816
16421         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
16422
16423 2011-07-22  Jason Merrill  <jason@redhat.com>
16424
16425         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
16426
16427 2011-07-22  Richard Henderson  <rth@redhat.com>
16428
16429         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
16430
16431 2011-07-22  Richard Henderson  <rth@redhat.com>
16432
16433         * jump.c (maybe_propagate_label_ref): Split out of...
16434         (mark_all_labels): ... here.  Do not attempt label_ref
16435         propagation while in cfglayout mode.
16436
16437 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
16438
16439         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
16440         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
16441         (dwarf_attr_name): Handle DW_AT_GNU_macros.
16442         (dwarf2out_define): If the vector is empty and
16443         lineno is 0, emit a dummy entry first.
16444         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
16445         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
16446         optimize_macinfo_range): New functions.
16447         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
16448         mergeable, optimize longer strings using
16449         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
16450         optimize longer sequences of define/undef ops from headers
16451         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
16452         emit a section headers.
16453         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
16454         and macinfo_section_label to DEBUG_MACRO_SECTION
16455         resp. DEBUG_MACRO_SECTION_LABEL.
16456         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
16457         instead of DW_AT_macro_info.
16458
16459         PR other/32998
16460         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
16461         options.
16462         * dwarf2out.c: Include opts.h.
16463         (dchar_p): New typedef.  Define heap VEC for it.
16464         (producer_string): New variable.
16465         (gen_producer_string): New function.
16466         (gen_compile_unit_die): Use it.
16467         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
16468         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
16469         * doc/invoke.texi: Document -grecord-gcc-switches and
16470         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
16471         to -frecord-gcc-switches description.
16472
16473 2011-07-22  Jason Merrill  <jason@redhat.com>
16474
16475         PR c++/30112
16476         * c-decl.c (c_linkage_bindings): Define.
16477
16478 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
16479
16480         PR debug/49815
16481         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
16482
16483 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
16484
16485         * config/i386/i386.c (ix86_option_override_internal): Disallow
16486         MS ABI in x32 mode.
16487         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
16488         only for TARGET_LP64.
16489         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
16490
16491 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
16492
16493         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
16494         avoid warnings when GCC is built with a C++ compiler.
16495
16496 2011-07-22  Martin Jambor  <mjambor@suse.cz>
16497
16498         PR lto/49796
16499         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
16500         if decl node is in another partition, call cgraph_get_node only once.
16501
16502 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
16503
16504         * config.gcc (x86_64-*-linux*): Set
16505         default_gnu_indirect_function to yes.
16506
16507 2011-07-22  Richard Guenther  <rguenther@suse.de>
16508
16509         PR tree-optimization/45819
16510         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
16511         preserve volatile and notrap flags.
16512
16513 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16514             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16515
16516         PR bootstrap/49794
16517         * configure.ac: Test AM_ICONV with CXX.
16518         * configure: Regenerate.
16519         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
16520
16521 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16522
16523         PR bootstrap/49797
16524         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
16525         (set_cloog_options): Use it.
16526
16527 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
16528
16529         PR c++/49756
16530         * gcc.c (main): Call stack_limit_increase (64MB).
16531         * toplev.c (toplev_main): Likewise.
16532
16533 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
16534
16535         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
16536         instead of force_reg.
16537
16538 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
16539
16540         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
16541         needed and use force_reg after convert.
16542         (ix86_expand_call): Likewise.
16543         (ix86_expand_special_args_builtin): Likewise.
16544         (ix86_expand_builtin): Likewise.
16545
16546 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16547
16548         PR middle-end/47654
16549         PR middle-end/49649
16550         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
16551         in parameter.  Initialize v1 and v2 based on the values returned
16552         by clast_name_to_lb_ub.
16553         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
16554         values.
16555         (type_for_clast_bin): Same.
16556         (type_for_clast_expr): Same.
16557         (type_for_clast_eq): Update calls to type_for_clast_expr.
16558         (type_for_clast_for): Same.
16559         (build_iv_mapping): Same.
16560         * graphite-ppl.h (value_min): New.
16561
16562 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16563
16564         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
16565         types whenever possible.
16566
16567 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16568
16569         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
16570         and ub fields.
16571         (new_clast_name_index): Add lb and ub parameters.
16572         (free_clast_name_index): New.
16573         (clast_name_to_lb_ub): New.
16574         (save_clast_name_index): Add lb and ub parameters.
16575         (compute_bounds_for_param): New.
16576         (type_for_level): Removed.
16577         (type_for_clast_for): Removed level parameter.  Do not call
16578         type_for_level.
16579         (graphite_create_new_loop): Store the lb and ub for the clast_name
16580         of the iterator of the loop that has been generated.
16581         (graphite_create_new_loop_guard): Remove parameter level.
16582         (create_params_index): Store the lb and ub of each parameter.
16583         (gloog): Use free_clast_name_index.  Pass to create_params_index
16584         the current scop.
16585
16586 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16587
16588         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
16589         (max_precision_type): Inline max_signed_precision_type.
16590         (type_for_clast_red): Use max_precision_type.
16591         (type_for_clast_bin): Same.
16592         (type_for_clast_for): Same.
16593
16594 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16595
16596         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
16597         type_for_interval.
16598         (gcc_type_for_value): Renamed type_for_value.
16599         (gcc_type_for_clast_term): Renamed type_for_clast_term.
16600         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
16601         (gcc_type_for_clast_red): Renamed type_for_clast_red.
16602         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
16603         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
16604         (graphite_translate_clast_equation): Update calls.
16605         (compute_type_for_level): Renamed type_for_level.
16606         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
16607         (build_iv_mapping): Update calls.
16608         (graphite_create_new_loop_guard): Same.
16609
16610 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16611
16612         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
16613         comment.
16614
16615 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16616
16617         * graphite-clast-to-gimple.c (struct ivs_params): New.
16618         (clast_name_to_gcc): Use ivs_params to pass around parameters.
16619         (clast_to_gcc_expression): Same.
16620         (clast_to_gcc_expression_red): Same.
16621         (gcc_type_for_clast_term): Same.
16622         (gcc_type_for_clast_expr): Same.
16623         (gcc_type_for_clast_red): Same.
16624         (gcc_type_for_clast_bin): Same.
16625         (gcc_type_for_clast_eq): Same.
16626         (graphite_translate_clast_equation): Same.
16627         (graphite_create_guard_cond_expr): Same.
16628         (graphite_create_new_guard): Same.
16629         (graphite_create_new_loop): Same.
16630         (build_iv_mapping): Same.
16631         (translate_clast_user): Same.
16632         (graphite_create_new_loop_guard): Same.
16633         (translate_clast): Same.
16634         (translate_clast_for_loop): Same.
16635         (translate_clast_for): Same.
16636         (translate_clast_guard): Same.
16637         (initialize_cloog_names): Fix typo.
16638         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
16639
16640 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16641
16642         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
16643         (new_clast_name_index): Add level parameter.
16644         (clast_name_to_level): New.
16645         (save_clast_name_index): Add level parameter.
16646         (newivs_to_depth_to_newiv): Removed.
16647         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
16648         (graphite_create_new_loop): Add level parameter.  Pass level to
16649         save_clast_name_index.
16650         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
16651         (create_params_index): Pass level to save_clast_name_index.
16652
16653 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16654
16655         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
16656         recompute type, lb, and ub.  Get them from...
16657         (graphite_create_new_loop_guard): ...here.  Pass in parameter
16658         pointers to type, lb, and ub.
16659         (translate_clast_for_loop): Update function calls.
16660         (translate_clast_for): Same.
16661
16662 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
16663
16664         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
16665         psct_dynamic_dim.
16666         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
16667         (gcc_type_for_iv_of_clast_loop): Update use of level.
16668         (gloog): Start counting nesting level from 0.
16669         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
16670         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
16671         psct_dynamic_dim on level.
16672
16673 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
16674
16675         * config/i386/i386.c (ix86_legitimize_address): Convert to
16676         Pmode if needed.
16677
16678 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
16679
16680         * config/i386/i386.c (function_value_64): Always return pointers
16681         in Pmode.
16682         (ix86_promote_function_mode): New.
16683         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
16684
16685 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16686
16687         PR tree-optimization/49749
16688         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
16689         remove no-longer-used maxrank variable.
16690
16691 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
16692
16693         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
16694
16695 2011-07-21  Jason Merrill  <jason@redhat.com>
16696
16697         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
16698         * recog.h (struct insn_data_d): Check it instead of
16699         HAVE_DESIGNATED_INITIALIZERS.
16700         * genoutput.c (output_insn_data): Likewise.
16701
16702 2011-07-21  Richard Guenther  <rguenther@suse.de>
16703
16704         PR tree-optimization/49770
16705         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
16706         valueized any operand.  Renamed from ...
16707         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
16708         (valueize_shared_reference_ops_from_ref): Return whether we
16709         valueized any operand.
16710         (vn_reference_lookup): Only when we valueized any operand
16711         use the valueized reference for alias analysis.  Do not preserve
16712         the original reference tree in this case.
16713
16714 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
16715
16716         * config/i386/i386.c (ix86_decompose_address): Reject all but
16717         register operands and subregs of DImode hard registers in index.
16718
16719 2011-07-21  Kai Tietz  <ktietz@redhat.com>
16720
16721         * fold-const.c (fold_unary_loc): Preserve indirect
16722         comparison cast to none-boolean type.
16723         * tree-ssa.c (useless_type_conversion_p): Preserve cast
16724         from/to boolean-type.
16725         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
16726         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
16727         * tree-cfg.c (verify_gimple_comparison): Check result
16728         type of comparison expression.
16729         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
16730         of condition result and disallow type-cast sinking into comparison.
16731
16732 2011-07-21  Richard Guenther  <rguenther@suse.de>
16733
16734         * tree-ssa-forwprop.c (combine_conversions): Return whether
16735         we have to run cfg-cleanup.  Properly remove dead stmts.
16736         (ssa_forward_propagate_and_combine): Adjust.
16737
16738 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
16739
16740         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
16741
16742 2011-07-21  Kai Tietz  <ktietz@redhat.com>
16743
16744         * tree-ssa-propagate.c (substitute_and_fold): Use
16745         do_dce flag to deside, if BB's statements are scanned
16746         in last to first, or first to last order.
16747
16748 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
16749
16750         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
16751
16752 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
16753             Uros Bizjak  <ubizjak@gmail.com>
16754             Richard Henderson  <rth@redhat.com>
16755
16756         * config/i386/constraints.md (w): New.
16757
16758         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
16759         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
16760
16761         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
16762         instead of TARGET_64BIT.
16763
16764         * config/i386/i386.md (indirect_jump): Replace
16765         nonimmediate_operand with indirect_branch_operand.
16766         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
16767         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
16768         Convert operand 0 to Pmode for x32 if not PIC.
16769         (*tablejump_1): Replace nonimmediate_operand with
16770         indirect_branch_operand.  Replace constraint "m" with "w".
16771         (*call_vzeroupper): Replace constraint "m" with "w".
16772         (*call): Likewise.
16773         (*call_rex64_ms_sysv_vzeroupper): Likewise.
16774         (*call_rex64_ms_sysv): Likewise.
16775         (*call_value_vzeroupper): Likewise.
16776         (*call_value): Likewise.
16777         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
16778         (*call_value_rex64_ms_sysv): Likewise.
16779         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
16780
16781         * config/i386/predicates.md (indirect_branch_operand): New.
16782         (call_insn_operand): Support x32.
16783
16784 2011-07-20  Michael Eager  <eager@eagercon.com>
16785
16786         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
16787
16788 2011-07-20  Richard Henderson  <rth@redhat.com>
16789
16790         * cfg.c (dump_bb_info): Dump basic_block->flags.
16791         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
16792
16793 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
16794
16795         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
16796         of DImode hard registers in index.
16797         (ix86_legitimate_address_p): Allow subregs of base and index to span
16798         more than a word.  Assert that subregs of base and index satisfy
16799         register_no_elim_operand predicates.  Reject addresses where
16800         base and index have different modes.
16801
16802 2011-07-20  Robert Millan  <rmh@gnu.org>
16803
16804         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
16805
16806 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16807
16808         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
16809         removing now-unnecessary assignment.
16810
16811 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16812
16813         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
16814         memory address space to the type's address space.
16815
16816 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
16817
16818         PR target/36467
16819         PR target/49687
16820         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
16821         and expand appropriately if there is a CONST_INT in operand2.
16822         (usmulqihi3): New insn.
16823         (*sumulqihi3): New insn.
16824         (*osmulqihi3): New insn.
16825         (*oumulqihi3): New insn.
16826         (*muluqihi3.uconst): New insn_and_split.
16827         (*muluqihi3.sconst): New insn_and_split.
16828         (*mulsqihi3.sconst): New insn_and_split.
16829         (*mulsqihi3.uconst): New insn_and_split.
16830         (*mulsqihi3.oconst): New insn_and_split.
16831         (*ashifthi3.signx.const): New insn_and_split.
16832         (*ashifthi3.signx.const7): New insn_and_split.
16833         (*ashifthi3.zerox.const): New insn_and_split.
16834         (mulsqihi3): New insn.
16835         (muluqihi3): New insn.
16836         (muloqihi3): New insn.
16837         * config/avr/predicates.md (const_2_to_7_operand): New.
16838         (const_2_to_6_operand): New.
16839         (u8_operand): New.
16840         (s8_operand): New.
16841         (o8_operand): New.
16842         (s9_operand): New.
16843         (register_or_s9_operand): New.
16844
16845 2011-07-20  Kai Tietz  <ktietz@redhat.com>
16846
16847         * builtins.c (fold_builtin_expect): See through the cast
16848         from truthvalue_type_node to long.
16849
16850 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
16851
16852         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
16853         where we can use them from the standard and altivec instruction
16854         sets, instead of always using the 3 operand VSX forms that require
16855         the destination to overlap one of the inputs.
16856         (vsx_fms*): Ditto.
16857         (vsx_fnma*): Ditto.
16858         (vsx_fnms*): Ditto.
16859
16860         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
16861         for DF types.
16862         (fmsdf4_fpr): Ditto.
16863         (nfmadf4_fpr): Ditto.
16864         (nfmsdf4_fpr): Ditto.
16865
16866 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
16867
16868         * genrecog.c (make_insn_sequence): Correct position numbering
16869         when filtering out match_scratch and match_dup.
16870
16871 2011-07-20  Richard Guenther  <rguenther@suse.de>
16872
16873         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
16874         against already removed statements.
16875         (forward_propagate_into_comparison): Remove dead defining stmts.
16876         (forward_propagate_into_gimple_cond): Likewise.
16877         (forward_propagate_into_cond): Simplify.
16878         (ssa_forward_propagate_and_combine): Handle changed cfg from
16879         forward_propagate_into_comparison.
16880         * tree-ssa-phiopt.c (conditional_replacement): Use proper
16881         locations for newly built statements.
16882
16883 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
16884
16885         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
16886
16887 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16888
16889         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
16890         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
16891
16892 2011-07-20  Richard Guenther  <rguenther@suse.de>
16893
16894         PR middle-end/18908
16895         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
16896         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
16897         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
16898
16899 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
16900
16901         * config/frv/frv.c (frv_register_move_cost): Define explicitly
16902         costs for subclasses of GR_REGS.
16903
16904 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
16905
16906         PR target/49780
16907         * config/i386/predicates.md (no_seg_addres_operand): No more special.
16908         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
16909         of DImode hard registers in base.
16910         (ix86_legitimate_address_p): Allow SImode and DImode base and index
16911         registers.
16912
16913 2011-07-20  Richard Guenther  <rguenther@suse.de>
16914
16915         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
16916         (unify_nodes): Deal with that.
16917         (solve_graph): Likewise.
16918
16919 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
16920
16921         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
16922         canonicalize left operand from ZERO_EXTEND to AND.
16923
16924 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
16925
16926         * target.def (class_max_nregs): New hook.
16927         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
16928         * doc/tm.texi: Regenerate.
16929         * targhooks.c (default_class_max_nregs): New function.
16930         * targhooks.h (default_class_max_nregs): Declare.
16931         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
16932         x_ira_reg_class_min_nregs arrays to unsigned char.
16933         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
16934         hook instead of CLASS_MAX_NREGS macro.
16935         * reginfo.c (restore_register_info): Ditto.
16936         * ira-conflicts.c (process_regs_for_copy): Use
16937         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
16938         Change type rclass and aclass vars to reg_class_t.
16939         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
16940         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
16941         reg_class_t.
16942         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
16943         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
16944
16945         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
16946         * config/i386/i386.c (ix86_class_max_nregs): New function.
16947         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
16948         instead of CLASS_MAX_NREGS macro.
16949         (TARGET_CLASS_MAX_NREGS): Define.
16950         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
16951         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
16952         * config/avr/avr.c (class_max_nregs): Remove function.
16953         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
16954         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
16955         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
16956         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
16957         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
16958         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
16959         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
16960         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
16961         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
16962         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
16963         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
16964         * config/score/score.h (CLASS_MAX_NREGS): Remove.
16965         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
16966         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
16967         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
16968
16969 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
16970
16971         * cif-code.def (OVERWRITABLE): Fix typo and move around.
16972         (TARGET_OPTIMIZATION_MISMATCH): Delete.
16973         (EH_PERSONALITY): Fix typo.
16974         (NON_CALL_EXCEPTIONS): Fix message.
16975         (OPTIMIZATION_MISMATCH): Adjust message.
16976         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
16977
16978 2011-07-19  Ian Lance Taylor  <iant@google.com>
16979
16980         * doc/install.texi (Configuration): Document
16981         --enable-build-poststage1-with-cxx.
16982
16983 2011-07-19  Robert Millan  <rmh@gnu.org>
16984
16985         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
16986         (GLIBC_DYNAMIC_LINKER): Remove.
16987
16988         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
16989         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
16990         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
16991         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
16992         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
16993         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
16994
16995         * config/mips/linux.h: Remove everything except for ...
16996         (GLIBC_DYNAMIC_LINKER): ... this macro.
16997
16998         * config/mips/linux64.h: Remove everything except for ...
16999         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
17000         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
17001         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
17002         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
17003         (GNU_USER_LINK_EMULATIONN32): New macros.
17004
17005         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
17006         Use the new headers.
17007
17008 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
17009
17010         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
17011         Add offset_known_p and size_known_p fields.
17012         (MEM_OFFSET_KNOWN_P): Update accordingly.
17013         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
17014         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
17015         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
17016         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
17017         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
17018         (init_emit_regs): Likewise.
17019
17020 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
17021
17022         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
17023         (MEM_OFFSET): Change from returning an rtx to returning a
17024         HOST_WIDE_INT.
17025         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
17026         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
17027         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
17028         (clear_mem_offset): Declare.
17029         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
17030         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
17031         MEM_OFFSET to get a HOST_WIDE_INT offset.
17032         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
17033         (adjust_offset_for_component_ref): Take a bool "known_p"
17034         parameter and a HOST_WIDE_INT "offset" parameter.
17035         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
17036         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
17037         than an rtx.  Use clear_mem_offset to clear the offset.
17038         * cfgcleanup.c (merge_memattrs): Likewise.
17039         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
17040         * function.c (assign_parm_find_stack_rtl): Likewise.
17041         (assign_parm_setup_stack): Likewise.
17042         * print-rtl.c (print_rtx): Likewise.
17043         * reload.c (find_reloads_subreg_address): Likewise.
17044         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
17045         * var-tracking.c (INT_MEM_OFFSET): Likewise.
17046         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17047         (get_mem_align_offset): Likewise.
17048         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
17049         (clear_mem_offset): New function.
17050         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
17051         offset rather than an rtx.  Assume both the expressio and offset
17052         are available.
17053         (r10k_needs_protection_p_1): Update accordingly, checking the
17054         expression and offset availability here instead.
17055
17056 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
17057
17058         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
17059         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
17060         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
17061         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
17062         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
17063         (clear_mem_size): Declare.
17064         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
17065         (clear_mem_size): New function.
17066         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
17067         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
17068         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
17069         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
17070         to clear the size.
17071         (nonoverlapping_memrefs_p): Likewise.
17072         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
17073         (expand_builtin_init_trampoline): Likewise.
17074         * calls.c (compute_argument_addresses): Likewise.
17075         * cfgcleanup.c (merge_memattrs): Likewise.
17076         * dce.c (find_call_stack_args): Likewise.
17077         * dse.c (record_store, scan_insn): Likewise.
17078         * dwarf2out.c (dw_sra_loc_expr): Likewise.
17079         * expr.c (emit_block_move_hints): Likewise.
17080         * function.c (assign_parm_find_stack_rtl): Likewise.
17081         * print-rtl.c (print_rtx): Likewise.
17082         * reload.c (find_reloads_subreg_address): Likewise.
17083         * rtlanal.c (may_trap_p_1): Likewise.
17084         * var-tracking.c (track_expr_p): Likewise.
17085         * varasm.c (assemble_trampoline_template): Likewise.
17086         * config/arm/arm.c (arm_print_operand): Likewise.
17087         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
17088         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
17089         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
17090         (expand_constant_setmem_prologue): Likewise.
17091         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
17092         * config/rs6000/rs6000.c (expand_block_move): Likewise.
17093         (adjacent_mem_locations): Likewise.
17094         * config/s390/s390.c (s390_expand_setmem): Likewise.
17095         (s390_expand_insv): Likewise.
17096         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
17097         (*extendqi<mode>2_short_displ): Likewise.
17098         * config/sh/sh.c (expand_block_move): Likewise.
17099         * config/sh/sh.md (extv, extzv): Likewise.
17100
17101 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
17102
17103         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
17104         (mem_attrs_htab_eq): ...here.
17105         (find_mem_attrs): Replace with...
17106         (set_mem_attrs): ...this function.  Take a mem_attrs structure
17107         rather than individual fields.
17108         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
17109         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
17110         (set_mem_size, change_address, adjust_address_1, offset_address)
17111         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
17112         Update accordingly.
17113
17114 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
17115
17116         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
17117         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
17118         Provide a dummy definition of MEM_ADDR_SPACE for generators.
17119         (target_rtl): Add x_mode_mem_attrs.
17120         (mode_mem_attrs): New macro.
17121         (get_mem_attrs): New function.
17122         * emit-rtl.c (get_mem_attrs): Rename to...
17123         (find_mem_attrs): ...this.
17124         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
17125         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
17126         (set_mem_size, change_address, adjust_address_1, offset_address)
17127         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
17128         Update accordingly.
17129         (init_emit_regs): Initialize mode_mem_attrs.
17130
17131 2011-07-19  Richard Guenther  <rguenther@suse.de>
17132
17133         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
17134         TRUTH_*_EXPR handling.
17135         * tree-ssa-operands.c (get_expr_operands): Likewise.
17136         * tree-ssa-pre.c (fully_constant_expression): Likewise.
17137         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
17138         Likewise.
17139         (is_and_or_or): Likewise.
17140         (is_norm_cond_subset_of): Likewise.
17141
17142 2011-07-19  Richard Guenther  <rguenther@suse.de>
17143
17144         * tree.h (fold_build_pointer_plus_loc): New helper function.
17145         (fold_build_pointer_plus_hwi_loc): Likewise.
17146         (fold_build_pointer_plus): Define.
17147         (fold_build_pointer_plus_hwi): Likewise.
17148         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
17149         (fold_builtin_memory_op): Likewise.
17150         (fold_builtin_stpcpy): Likewise.
17151         (fold_builtin_memchr): Likewise.
17152         (fold_builtin_strstr): Likewise.
17153         (fold_builtin_strchr): Likewise.
17154         (fold_builtin_strrchr): Likewise.
17155         (fold_builtin_strpbrk): Likewise.
17156         (fold_builtin_strcat): Likewise.
17157         (expand_builtin_memory_chk): Likewise.
17158         (fold_builtin_memory_chk): Likewise.
17159         * c-typeck.c (build_unary_op): Likewise.
17160         * cgraphunit.c (thunk_adjust): Likewise.
17161         * fold-const.c (build_range_check): Likewise.
17162         (fold_binary_loc): Likewise.
17163         * omp-low.c (extract_omp_for_data): Likewise.
17164         (expand_omp_for_generic): Likewise.
17165         (expand_omp_for_static_nochunk): Likewise.
17166         (expand_omp_for_static_chunk): Likewise.
17167         * tree-affine.c (add_elt_to_tree): Likewise.
17168         * tree-data-ref.c (split_constant_offset_1): Likewise.
17169         * tree-loop-distribution.c (generate_memset_zero): Likewise.
17170         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
17171         * tree-predcom.c (ref_at_iteration): Likewise.
17172         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
17173         (add_to_parts): Likewise.
17174         (create_mem_ref): Likewise.
17175         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
17176         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
17177         (number_of_iterations_le): Likewise.
17178         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
17179         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
17180         (vect_create_addr_base_for_vector_ref): Likewise.
17181         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
17182         (vect_create_cond_for_alias_checks): Likewise.
17183         * tree-vrp.c (extract_range_from_assert): Likewise.
17184         * config/alpha/alpha.c (alpha_va_start): Likewise.
17185         (alpha_gimplify_va_arg_1): Likewise.
17186         * config/i386/i386.c (ix86_va_start): Likewise.
17187         (ix86_gimplify_va_arg): Likewise.
17188         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17189         * config/mep/mep.c (mep_expand_va_start): Likewise.
17190         (mep_gimplify_va_arg_expr): Likewise.
17191         * config/mips/mips.c (mips_va_start): Likewise.
17192         (mips_gimplify_va_arg_expr): Likewise.
17193         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17194         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
17195         (rs6000_gimplify_va_arg): Likewise.
17196         * config/s390/s390.c (s390_va_start): Likewise.
17197         (s390_gimplify_va_arg): Likewise.
17198         * config/sh/sh.c (sh_va_start): Likewise.
17199         (sh_gimplify_va_arg_expr): Likewise.
17200         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
17201         * config/spu/spu.c (spu_va_start): Likewise.
17202         (spu_gimplify_va_arg_expr): Likewise.
17203         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
17204         Likewise.
17205         (xstormy16_gimplify_va_arg_expr): Likewise.
17206         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
17207         (xtensa_gimplify_va_arg_expr): Likewise.
17208
17209 2011-07-19  Richard Guenther  <rguenther@suse.de>
17210
17211         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
17212         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
17213         handling.
17214
17215         PR middle-end/18908
17216         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
17217         result of BIT_*_EXPR to bitfield precision.
17218
17219 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
17220
17221         PR tree-optimization/49742
17222         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
17223         as a potential write.
17224
17225 2011-07-19  Richard Guenther  <rguenther@suse.de>
17226
17227         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
17228         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
17229         (forward_propagate_comparison): Simplify, remove obsolete code.
17230
17231 2011-07-19  Richard Guenther  <rguenther@suse.de>
17232
17233         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
17234         BIT_XOR_EXPR, same as the RTL expander does.
17235         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
17236         (verify_gimple_assign_unary): Likewise.
17237         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
17238         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
17239         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
17240
17241 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
17242
17243         PR tree-optimization/49768
17244         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
17245         if offset is smaller than bitoffset, but offset+size is bigger
17246         than bitoffset.
17247
17248 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
17249
17250         PR tree-optimization/49771
17251         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
17252         zero step, set segment length to the size of the data-ref's type.
17253
17254 2011-07-18  Martin Jambor  <mjambor@suse.cz>
17255
17256         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
17257         comments.
17258         (ipcp_values_pool): Declare.
17259         (ipcp_sources_pool): Likewise.
17260         (ipcp_lattice): Changed to forward declaration.
17261         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
17262         cannot_devirtualize.
17263         (ipa_node_params): New fields descriptors, lattices, known_vals,
17264         clone_for_all_contexts and node dead, removed fields params and
17265         count_scale.
17266         (ipa_set_param_count): Removed.
17267         (ipa_get_param_count): Made to work with descriptors vector.
17268         (ipa_get_param): Updated.
17269         (ipa_param_cannot_devirtualize_p): Removed.
17270         (ipa_param_types_vec_empty): Likewise.
17271         (ipa_set_param_used): New function.
17272         (ipa_get_param_used): Updated to use descriptors vector.
17273         (ipa_func_list): Removed.
17274         (ipa_init_func_list): Removed declaration.
17275         (ipa_push_func_to_list_1): Likewise.
17276         (ipa_pop_func_from_list): Likewise.
17277         (ipa_push_func_to_list): Removed.
17278         (ipa_lattice_from_jfunc): Remove declaration.
17279         (ipa_get_jf_pass_through_result): Declare.
17280         (ipa_get_jf_ancestor_result): Likewise.
17281         (ipa_value_from_jfunc): Likewise.
17282         (ipa_get_lattice): Update.
17283         (ipa_lat_is_single_const): New function.
17284         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
17285         (ipa_init_func_list): Likewise.
17286         (ipa_pop_func_from_list): Likewise.
17287         (ipa_get_param_decl_index): Fix coding style.
17288         (count_formal_params): Removed.
17289         (count_formal_params_1): Renamed to count_formal_params.
17290         (ipa_populate_param_decls): Update to use descriptors vector.
17291         (ipa_initialize_node_params): Likewise.
17292         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
17293         (ipa_analyze_params_uses): Likewise.
17294         (ipa_free_node_params_substructures): Likewise and free also lattices
17295         and known values.
17296         (duplicate_array): Removed.
17297         (ipa_edge_duplication_hook): Add the new edge to the list of edge
17298         clones.
17299         (ipa_node_duplication_hook): Update to use new lattices.
17300         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
17301         (ipa_free_all_structures_after_iinln): Likewise.
17302         (ipa_write_node_info): Update to use new lattices.
17303         (ipa_read_node_info): Likewise.
17304         (ipa_get_jf_pass_through_result): New function.
17305         (ipa_get_jf_ancestor_result): Likewise.
17306         (ipa_value_from_jfunc): Likewise.
17307         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
17308         * ipa-cp.c: Reimplemented.
17309         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
17310         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
17311         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
17312         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
17313         * doc/invoke.texi (devirt-type-list-size): Removed description.
17314         (ipa-cp-value-list-size): Added description.
17315
17316 2011-07-18  Richard Henderson  <rth@redhat.com>
17317
17318         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
17319         before calling create_basic_block.
17320
17321 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
17322
17323         PR middle-end/49675
17324         * tree.c (build_common_builtin_nodes): Register
17325         __builtin_return_address, __cyg_profile_func_enter
17326         and __cyg_profile_func_exit.
17327
17328 2011-07-18  Richard Henderson  <rth@redhat.com>
17329
17330         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
17331         (add_labels_and_missing_jumps): ... here.
17332         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
17333
17334 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
17335
17336         PR target/47744
17337         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
17338         of DImode hard registers in PLUS address chains.
17339
17340 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17341
17342         PR bootstrap/49769
17343         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
17344         (alpha*-*-freebsd*): Likewise.
17345         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
17346         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
17347         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
17348         crtprec80.o, crtfastmath.o to extra_parts for all targets.
17349         (ia64*-*-elf*): Remove extra_parts.
17350         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
17351         (sparc64-*-linux*): Likewise.
17352         (sparc64-*-freebsd*): Likewise.
17353
17354         Revert:
17355         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
17356         (ia64*-*-linux*): Likewise.
17357         (mips64*-*-linux*): Likewise.
17358         (mips*-*-linux*): Likewise.
17359
17360 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
17361
17362         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
17363
17364 2011-07-18  Richard Guenther  <rguenther@suse.de>
17365
17366         * gimplify.c (gimplify_expr): Use input_location, not saved_location
17367         when building new trees.
17368
17369 2011-07-18  Richard Guenther  <rguenther@suse.de>
17370
17371         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
17372         expansion result to bitfield precision if required.
17373
17374 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17375
17376         * config.gcc (i[3456x]86-*-netware*): Remove.
17377
17378         * gthr-nks.h: Remove.
17379         * configure.ac (enable_threads): Remove nks.
17380         * configure: Regenerate.
17381
17382         * config/i386/i386.c (ix86_encode_section_info): Remove netware
17383         reference.
17384         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
17385         <netware.h> reference.
17386
17387         * config/i386/netware-libgcc.c,
17388         gcc/config/i386/netware-libgcc.def,
17389         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
17390         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
17391         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
17392         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
17393
17394         * doc/extend.texi (Function Attributes,
17395         callee_pop_aggregate_return): Remove i?86-netware reference.
17396         * doc/install.texi (Configuration, --enable-threads): Remove nks.
17397
17398 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17399
17400         PR target/49746
17401         Revert:
17402         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17403
17404         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
17405         patterns.
17406
17407 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
17408
17409         PR middle-end/49732
17410         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
17411
17412 2011-07-16  Matthias Klose  <doko@ubuntu.com>
17413
17414         * doc/install.texi: Document --enable-static-libjava.
17415
17416 2011-07-15  Richard Henderson  <rth@redhat.com>
17417
17418         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
17419         Replace all three arguments by returning a VEC of edges.
17420         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
17421         pointers and counts.
17422         (fix_edges_for_rarely_executed_code): Merge ...
17423         (rest_of_handle_partition_blocks): ... into...
17424         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
17425         any work was performed.
17426         (pass_partition_blocks): Clear todo_flags_finish.
17427
17428 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
17429             Jakub Jelinek  <jakub@redhat.com>
17430             Jonathan Wakely  <jwakely.gcc@gmail.com>
17431
17432         PR libstdc++/49745
17433         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
17434         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
17435
17436 2011-07-15  Jason Merrill  <jason@redhat.com>
17437
17438         PR testsuite/49741
17439         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
17440         rather than --tool_opts.
17441
17442 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
17443
17444         * doc/plugins.texi (Building GCC plugins): gengtype needs its
17445         corresponding gtype.state.
17446
17447 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17448
17449         PR target/49723
17450         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
17451
17452 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
17453
17454         PR target/48220
17455         * doc/md.texi (Standard Names): Document window_save.
17456         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
17457         expand_debug_expr and expand_debug_source_expr.  If the target has
17458         a window_save instruction, adjust the ENTRY_VALUE_EXP.
17459         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
17460         SSA_NAME_VAR is a parameter.
17461         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
17462         * var-tracking.c (parm_reg_t): New type and associated vector type.
17463         (windowed_parm_regs): New variable.
17464         (adjust_insn): If the target has a window_save instruction and this
17465         is the instruction, make its effect on parameter registers explicit.
17466         (next_non_note_insn_var_location): New function.
17467         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
17468         (vt_add_function_parameter): If the target has a window_save insn,
17469         adjust the incoming RTL and record that in windowed_parm_regs.
17470         (vt_finalize): Free windowed_parm_regs.
17471
17472 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
17473
17474         * doc/invoke.texi (C6X Options): New section.
17475         * doc/md.texi (TI C6X family): New section.
17476         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
17477         tic6x-*-uclinux.
17478         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
17479         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
17480         Provide C6X definitions.
17481         * config/c6x/c6x.md: New file.
17482         * config/c6x/constraints.md: New file.
17483         * config/c6x/predicates.md: New file.
17484         * config/c6x/c6x-sched.md.in: New file.
17485         * config/c6x/c6x-sched.md: New file.
17486         * config/c6x/gensched.sh: New file.
17487         * config/c6x/c6x-mult.md.in: New file.
17488         * config/c6x/genmult.sh: New file.
17489         * config/c6x/c6x-mult.md: New file.
17490         * config/c6x/sync.md: New file.
17491         * config/c6x/c6x-protos.h: New file.
17492         * config/c6x/sfp-machine.h: New file.
17493         * config/c6x/c6x.c: New file.
17494         * config/c6x/c6x.h: New file.
17495         * config/c6x/crti.s: New file.
17496         * config/c6x/crtn.s: New file.
17497         * config/c6x/lib1funcs.asm: New file.
17498         * config/c6x/c6x-modes.def: New file.
17499         * config/c6x/genopt.sh: New file.
17500         * config/c6x/c6x.opt: New file.
17501         * config/c6x/c6x-tables.opt: New file.
17502         * config/c6x/c6x-opts.h: New file.
17503         * config/c6x/c6x-isas.def: New file.
17504         * config/c6x/elf.h: New file.
17505         * config/c6x/elf-common.h: New file.
17506         * config/c6x/uclinux-elf.h: New file.
17507         * config/c6x/t-c6x: New file.
17508         * config/c6x/t-c6x-elf: New file.
17509         * config/c6x/t-c6x-uclinux: New file.
17510         * config/c6x/t-c6x-softfp: New file.
17511         * config/c6x/gtd.c: New file.
17512         * config/c6x/gtf.c: New file.
17513         * config/c6x/ltd.c: New file.
17514         * config/c6x/ltf.c: New file.
17515         * config/c6x/ged.c: New file.
17516         * config/c6x/gef.c: New file.
17517         * config/c6x/led.c: New file.
17518         * config/c6x/lef.c: New file.
17519         * config/c6x/eqd.c: New file.
17520         * config/c6x/eqf.c: New file.
17521         * config/c6x/libgcc-c6xeabi.ver: New file.
17522
17523         Revert
17524         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
17525         PR rtl-optimization/11320
17526         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
17527         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
17528         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
17529         current_sched_info->compute_jump_reg_dependencies. Record which
17530         registers are used and which registers are set by the jump.
17531         Clear deps->reg_conditional_sets after a barrier.
17532         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
17533         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
17534         (init_deps): Initialize reg_conditional_sets.
17535         (free_deps): Clear reg_conditional_sets.
17536         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
17537         Mark registers live on entry of the fallthrough block and conditionally
17538         set as set by the jump. Mark registers live on entry of non-fallthrough
17539         blocks as used by the jump.
17540         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
17541         Mark new parameters as unused.
17542
17543 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
17544
17545         PR tree-opt/49309
17546         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
17547         Use fold_build2_loc instead of build2.
17548         Use the correct type for the new tree.
17549
17550 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
17551
17552         PR rtl-optimization/11320
17553         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
17554         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
17555
17556 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
17557
17558         PR target/49487
17559         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
17560         of REG.
17561         (*rotw<mode>): Use const_int_operand for operand2.
17562         Use match_scatch for operand3.
17563         (*rotb<mode>): Ditto
17564         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
17565
17566 2011-07-14  Richard Guenther  <rguenther@suse.de>
17567
17568         PR tree-optimization/49651
17569         * tree-ssa-structalias.c (get_constraint_for_1): Properly
17570         handle dereferences with subvariables.
17571
17572 2011-07-14  Richard Guenther  <rguenther@suse.de>
17573
17574         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
17575         (fold_stmt_1): Do it here directly on gimple and as a first thing.
17576
17577 2011-07-14  Richard Guenther  <rguenther@suse.de>
17578
17579         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
17580         not bool_var when folding bool_var != 1 or bool_var == 0.
17581
17582 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
17583
17584         * haifa-sched.c (schedule_insns): Remove outdated comment.
17585         (schedule_block): When computing a known value for TODO_SPEC,
17586         just set it rather than using logical operations.
17587         (try_ready): Likewise.  Use a local variable rather than a
17588         pointer to TODO_SPEC.  Reorder an if statement to move the
17589         easy case to the then block.
17590         * sched-deps.c (dep_spec_p): New static function.
17591         (update_dep): Use it to decide whether to call
17592         change_spec_dep_to_hard.
17593         (get_back_and_forw_lists): Use it.
17594         (sd_resolve_dep): Likewise.
17595         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
17596         (haifa_note_mem_dep): Likewise.
17597         (check_dep): Likewise.
17598         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
17599         (sched_free_deps): Free in two passes.
17600
17601 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
17602
17603         PR middle-end/49736
17604         * expr.c (all_zeros_p): Undo bogus part of last change.
17605
17606 2011-07-14  Matthias Klose <doko@ubuntu.com>
17607
17608         * doc/extend.texi (optimize attribute): Fix typo.
17609
17610 2011-07-14  Richard Guenther  <rguenther@suse.de>
17611
17612         * gimplify.c (gimplify_expr): Only do required conversions.
17613
17614 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
17615
17616         PR target/43746
17617         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
17618         i.e. use default_elf_select_section.
17619         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
17620         (READONLY_DATA_SECTION_ASM_OP): Remove.
17621         (TARGET_ASM_NAMED_SECTION): Move from here...
17622         * config/avr/avr.c: ...to here.
17623         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
17624         (avr_asm_named_section): Make static.
17625
17626 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17627
17628         PR bootstrap/49739
17629         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
17630         and crtfastmath.o for Linux/x86.
17631
17632 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
17633
17634         * haifa-sched.c: Include "hashtab.h"
17635         (sched_no_dce): New global variable.
17636         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
17637         SHADOW_P): New macros.
17638         (last_clock_var, cycle_issued_insns): Move declarations.
17639         (must_backtrack): New static variable.
17640         (struct delay_pair): New structure.
17641         (delay_htab, delay_htab_i2): New static variables.
17642         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
17643         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
17644         functions.
17645         (dep_cost_1): If delay pairs exist, try to look up the insns and
17646         use the correct pair delay if we find them.
17647         (rank-for_schedule): Tweak priority for insns that must be scheduled
17648         soon to avoid backtracking.
17649         (queue_insn): Detect conditions which force backtracking.
17650         (ready_add): Likewise.
17651         (struct sched_block_state): Add member shadows_only_p.
17652         (struct haifa_save_data): New structure.
17653         (backtrack_queue): New static variable.
17654         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
17655         unschedule_insns_until, restore_last_backtrack_point,
17656         free_topmost_backtrack_point, free_backtrack_queue,
17657         estimate_insn_tick, estimate_shadow_tick): New functions.
17658         (prune_ready_list): New arg shadows_only_p.  All callers changed.
17659         If true, remove everything that isn't SHADOW_P.  Look up delay
17660         pairs and estimate ticks to avoid scheduling the first insn too early.
17661         (verify_shadows): New function.
17662         (schedule_block): Add machinery to enable backtracking.
17663         (sched_init): Take sched_no_dce into account when setting
17664         DF_LR_RUN_DCE.
17665         (free_delay_pairs): New function.
17666         (init_h_i_d): Initialize INSN_EXACT_TICK.
17667         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
17668         * sched-deps.c (sd_unresolve_dep): New function.
17669         * sched-int. (struct haifa_sched_info): New fields save_state
17670         and restore_state.
17671         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
17672         feeds_backtrack_insn and shadow_p.
17673         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
17674         (sched_no_dce): Declare variable.
17675         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
17676         sd_unresolve_dep): Declare functions.
17677         * modulo-sched.c (sms_sched_info): Clear the two new fields.
17678         * sched-rgn.c (rgn_const_sched_info): Likewise.
17679         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
17680         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
17681         (ebb_sched_info): Add them for the two new fields.
17682         (add_deps_for_risky_insns): Call add_delay_dependencies.
17683
17684 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
17685
17686         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
17687         Rename -mr11.
17688         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
17689         (rs6000_call_indirect_aix): Ditto.
17690         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
17691         (call_indirect_aix<ptrsize>_internal): Ditto.
17692         (call_indirect_aix<ptrsize>_nor11): Ditto.
17693         (call_indirect_aix<ptrsize>_internal2): Ditto.
17694         (call_value_indirect_aix<ptrsize>): Ditto.
17695         (call_value_indirect_aix<ptrsize>_internal): Ditto.
17696         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
17697         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
17698         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
17699
17700 2011-07-13  Jason Merrill  <jason@redhat.com>
17701
17702         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
17703
17704 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17705
17706         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
17707         * config/spu/spu.md ("clrsb<mode>2"): New expander.
17708
17709 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
17710
17711         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
17712         * configure: Regenerate.
17713
17714 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17715
17716         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
17717         (asm_file_start): Remove.
17718         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
17719         free_bb_for_insn around code that modifies insns before
17720         restarting df analysis.
17721
17722 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17723
17724         PR target/49541
17725         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
17726         (LINK_SPEC): ... here.
17727
17728 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
17729
17730         * haifa-sched.c (struct sched_block_state): New.
17731         (schedule_block): Move some local variables into such a structure.
17732
17733 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17734
17735         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
17736         * config/i386/t-crtpc: Remove.
17737         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
17738         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
17739         tmake_file.
17740         (x86_64-*-darwin*): Likewise.
17741         (i[34567]86-*-linux*): Likewise.
17742         (x86_64-*-linux*): Likewise.
17743
17744         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
17745         Handle -mpc32, -mpc64, -mpc80.
17746
17747 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17748
17749         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
17750         * config/alpha/t-crtfm: Remove.
17751         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
17752         * config/i386/t-crtfm: Remove.
17753         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
17754         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
17755         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
17756         * config/sparc/t-crtfm: Remove.
17757
17758         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
17759         (alpha*-*-freebsd*): Likewise.
17760         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
17761         (x86_64-*-darwin*): Likewise.
17762         (i[34567]86-*-linux*): Likewise.
17763         (x86_64-*-linux*): Likewise.
17764         (x86_64-*-mingw*): Likewise.
17765         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
17766         (ia64*-*-freebsd*): Likewise.
17767         (ia64*-*-linux*): Likewise.
17768         (mips64*-*-linux*): Likewise.
17769         (mips*-*-linux*): Likewise.
17770         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
17771         (sparc64-*-linux*): Likewise.
17772         (sparc64-*-freebsd*): Likewise.
17773
17774 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17775
17776         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
17777         * config/darwin-crt3.c: Move to ../libgcc/config.
17778         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
17779         ($(T)crt3$(objext)): Remove.
17780         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
17781         ($(T)crt2$(objext)): Remove.
17782         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
17783         (powerpc64-*-darwin*): Likewise.
17784
17785 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
17786
17787         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
17788
17789         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
17790         (addsi_1_zext): This.
17791
17792 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
17793
17794         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
17795         * doc/tm.texi: Regenerate.
17796         * target.def (mergeable_rodata_prefix): New defhookpod.
17797         * varasm.c (mergeable_string_section, mergeable_constant_section):
17798         Use it. Allocate name with alloca.
17799
17800 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
17801
17802         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
17803
17804 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
17805
17806         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
17807         overlap check.
17808
17809 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
17810
17811         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
17812         (count_type_elements): Delete.
17813         (complete_ctor_at_level_p): Declare.
17814         * expr.c (flexible_array_member_p): New function, split out from...
17815         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
17816         parameter with for_ctor_p.  When for_ctor_p is true, return the
17817         number of elements that should appear in the top-level constructor,
17818         otherwise return an estimate of the number of scalars.
17819         (categorize_ctor_elements): Replace p_must_clear with p_complete.
17820         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
17821         (complete_ctor_at_level_p): New function, borrowing union logic
17822         from old categorize_ctor_elements_1.
17823         (mostly_zeros_p): Return true if the constructor is not complete.
17824         (all_zeros_p): Update call to categorize_ctor_elements.
17825         * gimplify.c (gimplify_init_constructor): Update call to
17826         categorize_ctor_elements.  Don't call count_type_elements.
17827         Unconditionally prevent clearing for variable-sized types,
17828         otherwise rely on categorize_ctor_elements to detect
17829         incomplete initializers.
17830
17831 2011-07-13  Richard Guenther  <rguenther@suse.de>
17832
17833         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
17834         the final type is integral.
17835
17836 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
17837
17838         * sched-int.h (struct _dep): Add member cost.
17839         (DEP_COST, UNKNOWN_DEP_COST): New macros.
17840         * sched-deps.c (init_dep_1): Initialize DEP_COST.
17841         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
17842         (sched_change_pattern): Reset it for dependent insns.
17843
17844 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17845
17846         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
17847         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
17848         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
17849         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
17850         (CRT0_S, MCRT0_S): Remove.
17851         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
17852         Remove.
17853         (s-crt0): Remove.
17854         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
17855
17856 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
17857
17858         * cse.c (insert_with_costs): Put semi-colon after empty loop body
17859         on the next line.
17860         * emit-rtl.c (push_to_sequence): Likewise.
17861         * haifa-sched.c (max_issue): Likewise.
17862         * matrix-reorg.c (add_allocation_site): Likewise.
17863         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
17864         * reload.c (alternative_allows_const_pool_ref): Likewise.
17865         * sched-rgn.c (rgn_add_block): Likewise.
17866         (rgn_fix_recovery_cfg): Likewise.
17867         * tree.c (attribute_list_contained): Likewise.
17868
17869 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
17870
17871         * config/i386/i386.c: Tidy processor feature bitmasks.
17872         (m_P4_NOCONA): New.
17873
17874 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
17875
17876         PR rtl-opt/49474
17877         * cprop.c (find_implicit_sets): Correct the condition.
17878
17879 2011-07-12  Richard Henderson  <rth@redhat.com>
17880
17881         PR target/49713
17882         * dwarf2out.h (dwarf_frame_regnum): Remove.
17883         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
17884         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
17885         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
17886         (execute_dwarf2_frame): Initialize them.
17887         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
17888         users of the macros with the variables.
17889         (expand_builtin_dwarf_sp_column): Revert last change.
17890         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
17891         result of DWARF_FRAME_REGNUM into a local variable.
17892
17893 2011-07-12  Richard Henderson  <rth@redhat.com>
17894
17895         PR target/49714
17896         * config/i386/i386.c (x86_output_mi_thunk): Use
17897         machopic_indirect_call_target instead of machopic_indirection_name
17898         directly.
17899
17900 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
17901             Eric Botcazou  <ebotcazou@adacore.com>
17902
17903         * prefix.h: Wrap up in extern "C" block.
17904
17905 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
17906
17907         AMD bdver2 Enablement
17908         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
17909         (case ${target}): Add bdver2.
17910         * config/i386/driver-i386.c (host_detect_local_cpu): Let
17911         -march=native recognize bdver2 processors.
17912         * config/i386/i386-c.c (ix86_target_macros_internal): Add
17913         bdver2 def_and_undef
17914         * config/i386/i386.c (struct processor_costs bdver2_cost): New
17915         bdver2 cost table.
17916         (m_BDVER2): New definition.
17917         (m_AMD_MULTIPLE): Includes m_BDVER2.
17918         (initial_ix86_tune_features): Add bdver2 tuning.
17919         (processor_target_table): Add bdver2 entry.
17920         (static const char *const cpu_names): Add bdver2 entry.
17921         (ix86_option_override_internal): Add bdver2 instruction sets.
17922         (ix86_issue_rate): Add bdver2.
17923         (ix86_adjust_cost): Add bdver2.
17924         (has_dispatch): Add bdver2.
17925         * config/i386/i386.h (TARGET_BDVER2): New definition.
17926         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
17927         (enum processor_type): Add PROCESSOR_BDVER2.
17928         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
17929         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
17930         description.
17931
17932 2011-07-12  Richard Henderson  <rth@redhat.com>
17933
17934         PR target/49714
17935         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
17936         destination address in memory on some paths.
17937
17938 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
17939
17940         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
17941         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
17942         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
17943         * function.c (locate_and_pad_parm): Take it into account.
17944         * target.def (function_arg_round_boundary): New hook.
17945         * targhooks.c (default_function_arg_round_boundary): New function.
17946         * targhooks.h (default_function_arg_round_boundary): Declare.
17947         * doc/tm.texi: Regenerate.
17948
17949 2011-07-12  Richard Guenther  <rguenther@suse.de>
17950
17951         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
17952         Do not perform no-op changes.
17953
17954 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
17955
17956         * config/arm/predicates.md (neon_struct_operand): Make a normal
17957         predicate.
17958         (neon_struct_or_register_operand): New predicate.
17959         * config/arm/neon.md (movmisalign<mode>): Replace predicates
17960         with neon_struct_or_register_operand.
17961         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
17962         neon_struct_operand instead of memory_operand.
17963
17964 2011-07-12  Martin Jambor  <mjambor@suse.cz>
17965
17966         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
17967         * cgraph.c (cgraph_get_node_or_alias): Removed.
17968         (change_decl_assembler_name): Changed all calls to
17969         cgraph_get_node_or_alias to a call to cgraph_get_node.
17970         (cgraph_make_decl_local): Likewise.
17971         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
17972         * varasm.c (default_binds_local_p_1): Likewise.
17973         (decl_binds_to_current_def_p): Likewise.
17974
17975 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
17976
17977         PR tree-optimization/49712
17978         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
17979
17980 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
17981
17982         * genautomata.c (add_arc): Return void.  All callers changed.
17983         (make_automaton): Remove dead code.
17984
17985 2011-07-11  Richard Henderson  <rth@redhat.com>
17986
17987         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
17988         (DW_FRAME_POINTER_REGNUM): New.
17989         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
17990         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
17991         (dwf_regno): New.
17992         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
17993         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
17994         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
17995         Use it.
17996         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
17997         * dwarf2out.h (dwarf_frame_regnum): New.
17998         (struct cfa_loc): Document the domain of the reg member.
17999
18000 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
18001
18002         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
18003         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
18004
18005 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
18006
18007         PR debug/49676
18008         * dwarf2out.c (int_shift_loc_descriptor): New function.
18009         (int_loc_descriptor): If shorter, emit i as
18010         (i >> shift), shift, DW_OP_shl for suitable shift value.
18011         Similarly, try to optimize large negative values using
18012         DW_OP_neg of a positive value if shorter.
18013         (size_of_int_shift_loc_descriptor): New function.
18014         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
18015         changes.
18016         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
18017         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
18018         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
18019         is shorter.
18020         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
18021         addend as added DW_OP_plus if it is shorter.
18022
18023 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18024
18025         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
18026         (DTORS_SECTION_ASM_OP): Define.
18027
18028 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18029
18030         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
18031         * config/t-dfprules: Move to ../libgcc/config.
18032         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
18033         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
18034         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
18035         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
18036         Likewise.
18037         (i[34567]86-*-cygwin*): Likewise.
18038         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
18039         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
18040         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
18041         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
18042         D64PBIT_FUNCS, D128PBIT_FUNCS.
18043
18044 2011-07-11  Richard Guenther  <rguenther@suse.de>
18045
18046         * tree-vrp.c (simplify_conversion_using_ranges): Manually
18047         translate the source value-range through the conversion chain.
18048
18049 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
18050
18051         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
18052
18053 2011-07-11  Arthur Loiret  <aloiret@debian.org>
18054
18055         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
18056         a bi-arch compiler defaulting to 31-bit. In this case:
18057         (tmake_file): Add s390/t-linux64.
18058         * doc/install.texi: Add s390-linux to the list of targets supporting
18059         --enable-targets=all.
18060
18061 2011-07-11  Arthur Loiret  <aloiret@debian.org>
18062             Matthias Klose <doko@debian.org>
18063
18064         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
18065         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
18066         (tm_file): Add mips/linux64.h.
18067         (tmake_file): Add mips/t-linux64.
18068         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
18069         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
18070         instead of hardcoded mabi=n32.
18071         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
18072         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
18073         convention.
18074
18075 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18076
18077         * passes.c (init_optimization_passes): Add invariant motion pass
18078         after induction variable optimization.
18079
18080 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
18081
18082         PR target/39633
18083         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
18084         offsets 1..5 set cc0 in a usable way.
18085
18086 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
18087
18088         * tree.h (call_expr_arg): Remove.
18089         (call_expr_argp): Likewise.
18090
18091 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
18092
18093         * config/sparc/sparc.md (save_register_window_1): Rename to...
18094         (window_save): ...this.
18095         * config/sparc/sparc.c (emit_save_register_window): Rename to...
18096         (emit_window_save): ...this.
18097         (sparc_expand_prologue): Adjust to above renaming.
18098
18099 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
18100
18101         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
18102         of movabs for x32.
18103
18104 2011-07-10  Richard Henderson  <rth@redhat.com>
18105
18106         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
18107         run final, instead of emitting text directly.
18108
18109 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
18110
18111         * config/i386/i386.c (ix86_option_override_internal): Turn on
18112         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
18113         small PIC models for TARGET_X32.
18114
18115 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
18116
18117         PR target/49684
18118         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
18119         $(LIBGCC2_CFLAGS).
18120
18121         PR bootstrap/49680
18122         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
18123         stray notes and debug insns by using prev_nonnote_nondebug_insn
18124         instead of PREV_INSN.
18125
18126 2011-07-09  Richard Henderson  <rth@redhat.com>
18127
18128         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
18129         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
18130         * dwarf2out.c: ... here.
18131         (output_all_cfis): Remove.
18132         (dwarf2out_switch_text_section): Use output_cfis directly.
18133         (size_of_locs): Export.
18134         (output_loc_sequence, output_loc_sequence_raw): Export.
18135         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
18136         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
18137         output_cfa_loc_raw): Move to ...
18138         * dwarfcfi.c: ... here.
18139         * dwarf2out.h: Update decls.
18140
18141 2011-07-09  Richard Henderson  <rth@redhat.com>
18142
18143         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
18144         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
18145         * dwarf2cfi.c: ... here.
18146         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
18147         (DWARF_ROUND, DWARF_CIE_ID): Remove.
18148         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
18149         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
18150         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
18151
18152 2011-07-09  Richard Henderson  <rth@redhat.com>
18153
18154         * dwarf2cfi.c (cie_return_save): New.
18155         (queue_reg_save): Use compare_reg_or_pc.
18156         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
18157         (dwarf2out_frame_debug_expr): Likewise.
18158         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
18159         (initial_return_save): Likewise.
18160         (execute_dwarf2_frame): Save and restore initial return save from
18161         the cie to the fde.
18162         * config/mips/mips.c (mips_frame_set): Remove special case for
18163         DWARF_FRAME_RETURN_COLUMN.
18164
18165 2011-07-09  Richard Henderson  <rth@redhat.com>
18166
18167         * dwarf2cfi.c (lookup_cfa): Remove.
18168         (execute_dwarf2_frame): Assert queues are empty on entry.
18169         Setup initial cfa directly, not via lookup_cfa.
18170         Don't clear args_size state here.
18171
18172 2011-07-09  Richard Henderson  <rth@redhat.com>
18173
18174         * dwarf2cfi.c (add_cfi_vec): New.
18175         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
18176         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
18177         (execute_dwarf2_frame): Set add_cfi_vec.
18178
18179 2011-07-09  Richard Henderson  <rth@redhat.com>
18180
18181         * defaults.h (ASM_COMMENT_START): Move here...
18182         * dwarf2asm.c: ... from here.
18183         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
18184         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
18185         * varasm.c: Likewise.
18186
18187 2011-07-09  Richard Henderson  <rth@redhat.com>
18188
18189         PR debug/49686
18190         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
18191         (create_cfi_notes): ... do it here instead.
18192
18193 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
18194
18195         PR debug/49676
18196         * dwarf2out.c (size_of_int_loc_descriptor): New function.
18197         (address_of_int_loc_descriptor): Use it.
18198         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
18199
18200 2011-07-09  Richard Henderson  <rth@redhat.com>
18201
18202         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
18203         (prologue, epilogue): New.
18204         (return, *rts): New.
18205         (blockage, setd, seti): New.
18206         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
18207         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
18208         (pdp11_saved_regno): New.
18209         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
18210         generate rtl instead of text.
18211         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
18212         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
18213         * config/pdp11/pdp11-protos.h: Update.
18214
18215 2011-07-09  Richard Henderson  <rth@redhat.com>
18216
18217         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
18218         try to insert an rtl prologue here.
18219         (rs6000_output_function_epilogue): Similarly.
18220         * config/rs6000/rs6000.md (prologue): Emit a barrier to
18221         satisfy !TARGET_SCHED_PROLOG.
18222         (epilogue, sibcall_epilogue): Likewise.
18223
18224 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
18225
18226         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
18227         (FP_REG_P): Delete.
18228         (IN_OR_GLOBAL_P): Likewise.
18229
18230 2011-07-08  Jason Merrill  <jason@redhat.com>
18231
18232         PR c++/45437
18233         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
18234         compound assignment.
18235
18236         * cgraph.c (cgraph_add_to_same_comdat_group): New.
18237         * cgraph.h: Declare it.
18238         * ipa.c (function_and_variable_visibility): Make sure thunks
18239         have the right visibility.
18240
18241 2011-07-08  Richard Henderson  <rth@redhat.com>
18242
18243         PR bootstrap/49680
18244         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
18245         any tablejump vector.
18246
18247         PR bootstrap/49680
18248         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
18249         end of the prologue.
18250
18251 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
18252
18253         PR target/49621
18254         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
18255         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
18256         * config/rs6000/vector.md (vector_select_<mode>,
18257         vector_select_<mode>_uns): Change second operand of NE to
18258         CONST0_RTX (<MODE>mode) instead of const0_rtx.
18259         * config/rs6000/altivec.md (*altivec_vsel<mode>,
18260         *altivec_vsel<mode>_uns): Expect second operand of NE to be
18261         zero_constant of the corresponding vector mode.
18262         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
18263         Likewise.
18264
18265 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
18266
18267         * graphite-dependences.c (build_alias_set_powerset): Remove
18268         continue from loop, add one more assert.
18269
18270 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
18271
18272         PR target/46779
18273         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
18274         In particular, allow 8-bit values in r28 and r29.
18275         (avr_hard_regno_scratch_ok): Disallow any register that might be
18276         part of the frame pointer.
18277         (avr_hard_regno_rename_ok): Same.
18278         (avr_legitimate_address_p): Don't allow SUBREGs.
18279
18280 2011-07-08  Julian Brown  <julian@codesourcery.com>
18281
18282         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
18283         big-endian mode.
18284         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
18285         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
18286         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
18287         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
18288         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
18289         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
18290         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
18291         registers in big-endian mode.
18292
18293 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
18294
18295         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
18296         in terms of another.
18297         (write_attr_value): Write a cast if necessary.
18298
18299         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
18300         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
18301         (REG_WORDS_BIG_ENDIAN): Document.
18302         * doc/tm.texi: Regenerate.
18303         * reload.c (operands_match_p): Take it into account.
18304         (reload_adjust_reg_for_mode): Likewise.
18305         * rtlanal.c (subreg_get_info): Likewise.
18306
18307 2011-07-08  Richard Guenther  <rguenther@suse.de>
18308
18309         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
18310         folding.
18311
18312 2011-07-08  Kai Tietz  <ktietz@redhat.com>
18313
18314         * fold-const.c (fold_truth_andor): Factored out truth_andor
18315         label from fold_binary as function.
18316         (fold_binary_loc): Replace truth_andor lable
18317         by function fold_truth_andor.
18318
18319 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
18320
18321         PR middle-end/49519
18322         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
18323         check if address is stored in register. If so - give up.
18324         (check_sibcall_argument_overlap_1): Do not perform check of
18325         overlapping when it is call to address.
18326
18327 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
18328
18329         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
18330         of magic '31'.
18331
18332 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
18333
18334         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
18335         GET_MODE_BITSIZE where appropriate.
18336         (widen_leading, expand_parity, expand_ctz, expand_ffs,
18337         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
18338         expand_float, expand_fix): Likewise.
18339         * expr.c (convert_move, convert_modes, expand_expr_real_2,
18340         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
18341         * stor-layout.c (get_mode_bounds): Likewise.
18342         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
18343         Likewise.
18344         * convert.c (convert_to_integer): Likewise.
18345         * expmed.c (expand_shift_1): Likewise.
18346
18347         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
18348         a bitsize.
18349
18350         * optabs.c (expand_binop): Tighten conditions for doubleword
18351         expansions.
18352         (widen_bswap): Assert that mode bitsize and precision are the same.
18353         * stor-layout.c (get_best_mode): Skip modes that have lower
18354         precision than bitsize.
18355         * recog.c (simplify_while_replacing): Assert that bitsize and
18356         precision are the same.
18357
18358 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18359
18360         * Makefile.in (LIBGCOV): Remove.
18361         (libgcc.mvars): Remove LIBGCOV.
18362         * libgov.c: Move to ../libgcc.
18363
18364 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18365
18366         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
18367
18368 2011-07-08  Martin Jambor  <mjambor@suse.cz>
18369
18370         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
18371         is too big for total scalarization.
18372
18373 2011-07-07  Richard Henderson  <rth@redhat.com>
18374
18375         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
18376         (DBX_DEBUGGING_INFO): Undef.
18377
18378 2011-07-07  Richard Henderson  <rth@redhat.com>
18379
18380         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
18381         Handle some opcodes specially for debugging.
18382         * print-rtl.c: Include dwarf2out.h
18383         (print_rtx): Handle NOTE_INSN_CFI.
18384         * Makefile.in (print-rtl.o): Update.
18385
18386 2011-07-07  Richard Henderson  <rth@redhat.com>
18387
18388         * tree-pass.h (pass_dwarf2_frame): Declare.
18389         * passes.c (init_optimization_passes): Add it.
18390         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
18391         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
18392         make static, do not call add_cfis_to_fde.
18393         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
18394         dwarf2out_frame_init): Merge into...
18395         (execute_dwarf2_frame): ... here.  New function.
18396         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
18397         saved_do_cfi_asm to a tri-state variable.
18398         (gate_dwarf2_frame, pass_dwarf2_frame): New.
18399         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
18400         if it has yet to be done.  Don't call dwarf2cfi_function_init.
18401         * dwarf2out.h, debug.h: Update decls.
18402         * final.c (final_start_function): Don't call
18403         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
18404         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
18405         * toplev.c (lang_dependent_init): Likewise.
18406
18407 2011-07-07  Richard Henderson  <rth@redhat.com>
18408
18409         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
18410         FDE_TABLE_INCREMENT): Replace with...
18411         (fde_vec): ... this, a new vector.
18412         (current_fde): Remove.  Replace all users with cfun->fde.
18413         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
18414         (size_of_aranges, dwarf2out_finish): Likewise.
18415         (dwarf2out_alloc_current_fde): Break out from ...
18416         (dwarf2out_begin_prologue): ... here.
18417         (dwarf2out_frame_init): Remove.
18418         * dwarf2cfi.c: Update all users of current_fde.
18419         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
18420         * dwarf2out.h: Update decls.
18421         (dw_fde_node): Add fde_index member.
18422         * function.h (struct function): Add fde member.
18423
18424 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
18425             Richard Henderson  <rth@redhat.com>
18426
18427         * dwarf2cfi.c (add_cfi): Remove.
18428         (dwarf2out_cfi_label): Remove force argument.  Only generate the
18429         label name.
18430         (add_fde_cfi): Simplify the different code paths.
18431         (add_cie_cfi): New.
18432         (old_cfa, old_cfa_remember): New.
18433         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
18434         (last_reg_save_label): Remove.
18435         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
18436         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
18437         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
18438         dwarf2out_frame_debug_cfa_expression,
18439         dwarf2out_frame_debug_cfa_restore,
18440         dwarf2out_frame_debug_cfa_window_save,
18441         dwarf2out_frame_debug_expr): Remove label parameter.
18442         (cfi_label_required_p, add_cfis_to_fde): New.
18443         (dwarf2out_frame_debug_after_prologue): New.
18444         (dwarf2cfi_frame_init): Initialize old_cfa.
18445         (dwarf2out_frame_debug_restore_state): Likewise.
18446         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
18447         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
18448         * final.c (final_start_function): Call
18449         dwarf2out_frame_debug_after_prologue.
18450
18451 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
18452             Richard Henderson  <rth@redhat.com>
18453
18454         * dwarf2cfi.c (cfi_insn): New.
18455         (dwarf2out_cfi_label): Don't emit cfi label here.
18456         (add_fde_cfi): Create a NOTE_INSN_CFI.
18457         (dwarf2out_frame_debug): Setup cfi_insn.
18458         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
18459         (dwarf2out_cfi_begin_epilogue): Make static.
18460         (dwarf2out_frame_debug_restore_state): Make static.
18461         * dwarf2out.c (output_cfi_directive): Make static.
18462         (dwarf2out_emit_cfi): New.
18463         * dwarf2out.h: Update.
18464         * final.c (final): Remove CFI notes.
18465         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
18466         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
18467         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
18468         * insn-notes.def (NOTE_INSN_CFI): New.
18469         (NOTE_INSN_CFI_LABEL): New.
18470         * rtl.h (union rtunion_def): Add rt_cfi member.
18471         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
18472
18473 2011-07-07  Richard Henderson  <rth@redhat.com>
18474
18475         * dwarf2cfi.c: New file.
18476         * Makefile.in (OBJS): Add it.
18477         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
18478         * gengtype.c (open_base_files): Include dwarf2out.h.
18479         * coretypes.h (enum var_init_status): Move from ...
18480         * rtl.h: ... here.
18481         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
18482         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
18483         expand_builtin_dwarf_sp_column, init_return_column_size,
18484         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
18485         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
18486         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
18487         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
18488         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
18489         compute_barrier_args_size, dwarf2out_args_size,
18490         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
18491         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
18492         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
18493         queue_reg_save, dwarf2out_flush_queued_reg_saves,
18494         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
18495         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
18496         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
18497         dwarf2out_frame_debug_cfa_expression,
18498         dwarf2out_frame_debug_cfa_restore,
18499         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
18500         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
18501         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
18502         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
18503         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
18504         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
18505         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
18506         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
18507         dw_loc_descr_node): Move to dwarf2out.h.
18508         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
18509         mem_loc_descriptor): Export.
18510         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
18511         (dwarf2out_frame_init): Extract CIE generation code to
18512         dwarf2cfi_frame_init.
18513
18514 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
18515
18516         PR target/49660
18517         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
18518         MASK_V8PLUS, remove commented out flag and reorder.
18519
18520 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
18521
18522         PR c/49644
18523         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
18524         one non-complex and one complex argument, call c_save_expr on both
18525         operands.
18526
18527 2011-07-07  Martin Jambor  <mjambor@suse.cz>
18528
18529         PR middle-end/49495
18530         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
18531         (verify_cgraph_node): Some functinality moved to
18532         verify_edge_corresponds_to_fndecl, call it.
18533
18534 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
18535
18536         * config.gcc (*local*): Remove.
18537         * doc/install-old.texi: Don't mention local configurations.
18538
18539 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
18540
18541         PR debug/49522
18542         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
18543         referencing debug insns that have been reset.
18544         (dead_debug_insert_before): Don't assert reg is non-NULL,
18545         instead return immediately if it is NULL.
18546
18547 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
18548
18549         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
18550
18551 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
18552
18553         * hw-doloop.c: New file.
18554         * hw-doloop.h: New file.
18555         * Makefile.in (OBJS): Add hw-doloop.o.
18556         (hw-doloop.o): New rule.
18557         ($(obj_out_file)): Add hw-doloop.h dependency.
18558         * config/bfin/bfin.c: Include "hw-doloop.h".
18559         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
18560         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
18561         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
18562         type changed to hwloop_info.  Return bool, true if the loop was
18563         successfully optimized.  Remove code that was moved to
18564         hw-doloop.c, and adjust other parts.
18565         (hwloop_fail): New static function, containing parts that used
18566         to be in bfin_optimize_loop.
18567         (bfin_discover_loop, bfin_discover_loops, free_loops,
18568         bfin_reorder_loops): Remove.
18569         (hwloop_pattern_reg): New static function.
18570         (bfin_doloop_hooks): New variable.
18571         (bfin_reorg_loops): Remove most code, call reorg_loops.
18572         * config/bfin/bfin.md (doloop_end splitter): Also enable if
18573         loop counter is a memory_operand.
18574
18575 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
18576
18577         * config.gcc: Support --with-multilib-list for x86 Linux targets.
18578
18579         * configure.ac: Mention x86-64 for --with-multilib-list.
18580         * configure: Regenerated.
18581
18582         * config/i386/gnu-user64.h (SPEC_64): Support x32.
18583         (SPEC_32): Likewise.
18584         (ASM_SPEC): Likewise.
18585         (LINK_SPEC): Likewise.
18586         (TARGET_THREAD_SSP_OFFSET): Likewise.
18587         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
18588         (SPEC_X32): New.
18589
18590         * config/i386/i386.h (TARGET_X32): New.
18591         (TARGET_LP64): New.
18592         (LONG_TYPE_SIZE): Likewise.
18593         (POINTER_SIZE): Likewise.
18594         (POINTERS_EXTEND_UNSIGNED): Likewise.
18595         (OPT_ARCH64): Support x32.
18596         (OPT_ARCH32): Likewise.
18597
18598         * config/i386/i386.opt (mx32): New.
18599
18600         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
18601         (GLIBC_DYNAMIC_LINKERX32): Likewise.
18602         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
18603         (GLIBC_DYNAMIC_LINKERX32): Likewise.
18604
18605         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
18606         (BIONIC_DYNAMIC_LINKERX32): Likewise.
18607         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
18608
18609         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
18610
18611         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
18612
18613         * doc/invoke.texi: Document -mx32.
18614
18615 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
18616
18617         * doc/invoke.texi (mwords-little-endian): Deprecate.
18618         * config/arm/arm.opt (mwords-little-endian): Likewise.
18619         * config/arm/arm.c (arm_option_override): Warn about the deprecation
18620         of -mwords-little-endian.
18621
18622 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
18623
18624         * reload1.c (choose_reload_regs): Use mode sizes to check whether
18625         an old reload register completely defines the required value.
18626
18627 2011-07-07  Richard Guenther  <rguenther@suse.de>
18628
18629         * fold-const.c (fold_unary_loc): Do not strip sign-changes
18630         for NEGATE_EXPR.
18631
18632 2011-07-07  Richard Guenther  <rguenther@suse.de>
18633
18634         * tree-vrp.c (simplify_conversion_using_ranges): New function.
18635         (simplify_stmt_using_ranges): Call it.
18636
18637 2011-07-07  Kai Tietz  <ktietz@redhat.com>
18638
18639         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
18640         (lookup_logical_inverted_value): Likewise.
18641         (simplify_bitwise_binary_1): Likewise.
18642         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
18643
18644 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
18645
18646         * gcc.c (%[Spec]): Don't document.
18647         (struct spec_list): Update comment.
18648         (do_spec_1): Don't handle %[Spec].
18649         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
18650
18651 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
18652
18653         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
18654         default based on TARGET_ASM_NAMED_SECTION.
18655         * common/common-target.def (have_named_sections): Default to true.
18656         * common/config/default-common.c: Don't include tm.h.
18657         * common/config/picochip/picochip-common.c
18658         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
18659         * common/config/m32c/m32c-common.c: Remove.
18660         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
18661         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18662         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18663         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18664         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18665         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18666         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18667
18668 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
18669
18670         PR middle-end/49640
18671         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
18672         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
18673
18674 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18675
18676         PR libmudflap/49550
18677         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
18678
18679 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18680
18681         PR target/39150
18682         * configure.ac (gcc_cv_as_hidden): Also accept
18683         x86_64-*-solaris2.1[0-9]*.
18684         (gcc_cv_as_cfi_directive): Likewise.
18685         (gcc_cv_as_comdat_group_group): Likewise.
18686         (set_have_as_tls): Likewise.
18687         * configure: Regenerate.
18688         * config.gcc (i[34567]86-*-solaris2*): Also handle
18689         x86_64-*-solaris2.1[0-9]*.
18690         * config.host (i[34567]86-*-solaris2*): Likewise.
18691         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18692         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
18693         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
18694         (TARGET_LD_EMULATION): Use it.
18695         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
18696         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
18697         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
18698         (ASM_CPU64_DEFAULT_SPEC): Define.
18699         (ASM_CPU_SPEC): Use %(asm_cpu_default).
18700         (ASM_SPEC): Redefine.
18701         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
18702         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
18703         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
18704         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
18705         configuration.
18706         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
18707
18708 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18709
18710         * config/sol2.h (ASM_SPEC): Split into ...
18711         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
18712         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
18713         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
18714         (ASM_SPEC): Use ASM_SPEC_BASE.
18715         * config/sparc/sol2.h (ASM_SPEC): Redefine.
18716
18717 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
18718
18719         * config/avr/avr.md (*reload_insi): Change predicate #1 to
18720         const_int_operand.  Ditto for peep2 producing this insn.
18721         Add argument to output_reload_insisf call.
18722         (*movsi,*movsf): Add argument to output_movsisf call.
18723         (*reload_insf): New insn and new peep2 to produce it.
18724         * config/avr/avr-protos.h (output_movsisf): Change prototype.
18725         (output_reload_insisf): Change prototype.
18726         * config/avr/avr.c (avr_asm_len): New function.
18727         (output_reload_insisf): Rewrite.
18728         (output_movsisf): Change prototype.  output_reload_insisf for
18729         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
18730         (adjust_insn_length): Add argument to output_movsisf and
18731         output_reload_insisf call.
18732
18733 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
18734
18735         * emit-rtl.c (paradoxical_subreg_p): New function.
18736         * rtl.h (paradoxical_subreg_p): Declare.
18737         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
18738         apply_distributive_law, simplify_comparison, simplify_set): Use it.
18739         * cse.c (record_jump_cond, cse_insn): Likewise.
18740         * expr.c (force_operand): Likewise.
18741         * rtlanal.c (num_sign_bit_copies1): Likewise.
18742         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
18743         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
18744         (push_reload): Use precision to check for paradoxical subregs.
18745         * expmed.c (extract_bit_field_1): Likewise.
18746
18747         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
18748         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
18749         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
18750         simplify_set, simplify_logical, expand_compound_operation,
18751         make_extraction, force_to_mode, if_then_else_cond, extended_count,
18752         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
18753         record_value_for_reg): Likewise.
18754         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
18755         * simplify-rtx. c (simplify_unary_operation_1,
18756         simplify_binary_operation_1, simplify_const_relational_operation):
18757         Likewise.
18758
18759         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
18760         instead of GET_MODE_BITSIZE where appropriate.
18761         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
18762         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
18763         init_num_sign_bit_copies_in_rep): Likewise.
18764         * cse.c (fold_rtx, cse_insn): Likewise.
18765         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
18766         * simplify-rtx.c (simplify_unary_operation_1,
18767         simplify_const_unary_operation, simplify_binary_operation_1,
18768         simplify_const_binary_operation, simplify_ternary_operation,
18769         simplify_const_relational_operation, simplify_subreg): Likewise.
18770         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
18771         simplify_if_then_else, simplify_set, expand_compound_operation,
18772         expand_field_assignment, make_extraction, if_then_else_cond,
18773         make_compound_operation, force_to_mode, make_field_assignment,
18774         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
18775         extended_count, try_widen_shift_mode, simplify_shift_const_1,
18776         simplify_comparison, record_promoted_value, simplify_compare_const,
18777         record_dead_and_set_regs_1): Likewise.
18778
18779         Revert:
18780         * simplify-rtx.c (simplify_const_binary_operation): Use the
18781         shift_truncation_mask hook instead of performing modulo by width.
18782         Compare against mode precision, not bitsize.
18783         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
18784         Use shift_truncation_mask instead of constructing the value manually.
18785
18786 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18787
18788         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
18789         declaration.
18790         (rs6000_save_toc_in_prologue_p): Ditto.
18791
18792         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
18793         up the static chain (r11) during indirect function calls.
18794         (-msave-toc-indirect): New undocumented debug switch.
18795
18796         * config/rs6000/rs6000.c (struct machine_function): Add
18797         save_toc_in_prologue field to note whether the prologue needs to
18798         save the TOC value in the reserved stack location.
18799         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
18800         to save the TOC in the prologue, do so.
18801         (rs6000_trampoline_init): Don't allow creating AIX style
18802         trampolines if -mno-r11 is in effect.
18803         (rs6000_call_indirect_aix): New function to create AIX style
18804         indirect calls, adding support for -mno-r11 to suppress loading
18805         the static chain, and saving the TOC in the prologue instead of
18806         the call body.
18807         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
18808         TOC in the prologue.
18809
18810         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
18811         register numbers.
18812         (TOC_REGNUM): Ditto.
18813         (STATIC_CHAIN_REGNUM): Ditto.
18814         (ARG_POINTER_REGNUM): Ditto.
18815         (SFP_REGNO): Delete, unused.
18816         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
18817         function descriptor offsets.
18818         (TOC_SAVE_OFFSET_64BIT): Ditto.
18819         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
18820         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
18821         (AIX_FUNC_DESC_SC_32BIT): Ditto.
18822         (AIX_FUNC_DESC_SC_64BIT): Ditto.
18823         (ptrload): New mode attribute for the appropriate load of a pointer.
18824         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
18825         (call_indirect_aix64): Ditto.
18826         (call_value_indirect_aix32): Ditto.
18827         (call_value_indirect_aix64): Ditto.
18828         (call_indirect_nonlocal_aix32_internal): Ditto.
18829         (call_indirect_nonlocal_aix32): Ditto.
18830         (call_indirect_nonlocal_aix64_internal): Ditto.
18831         (call_indirect_nonlocal_aix64): Ditto.
18832         (call): Rewrite AIX indirect function calls.  Add support for
18833         eliminating the static chain, and for moving the save of the TOC
18834         to the function prologue.
18835         (call_value): Ditto.
18836         (call_indirect_aix<ptrsize>): Ditto.
18837         (call_indirect_aix<ptrsize>_internal): Ditto.
18838         (call_indirect_aix<ptrsize>_internal2): Ditto.
18839         (call_indirect_aix<ptrsize>_nor11): Ditto.
18840         (call_value_indirect_aix<ptrsize>): Ditto.
18841         (call_value_indirect_aix<ptrsize>_internal): Ditto.
18842         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
18843         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
18844         (call_nonlocal_aix32): Relocate in the rs6000.md file.
18845         (call_nonlocal_aix64): Ditto.
18846
18847         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
18848         -mno-r11 documentation.
18849
18850 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
18851
18852         PR other/49658
18853         * doc/extend.texi (Compound Literals): Fix typo.
18854
18855 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
18856
18857         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
18858
18859 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
18860
18861         * configure.ac (plugin-version.h): Generate
18862         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
18863         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
18864         macros.
18865
18866         * configure: Regenerate.
18867
18868         * doc/plugins.texi (Building GCC plugins): Mention
18869         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
18870
18871 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
18872
18873         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
18874         * combine.c (make_extraction, gen_lowpart_or_truncate,
18875         apply_distributive_law, simplify_comparison,
18876         reg_truncated_to_mode, record_truncated_value): Use it.
18877         * cse.c (notreg_cost): Likewise.
18878         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
18879         * expr.c (convert_move, convert_modes): Likewise.
18880         * optabs.c (expand_binop, expand_unop): Likewise.
18881         * postreload.c (move2add_last_label): Likewise.
18882         * regmove.c (optimize_reg_copy_3): Likewise.
18883         * rtlhooks.c (gen_lowpart_general): Likewise.
18884         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18885
18886 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
18887
18888         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
18889
18890 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
18891
18892         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
18893         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
18894         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
18895         (simplify_const_unary_operation, simplify_binary_operation_1,
18896         simplify_const_binary_operation, simplify_const_relational_operation):
18897         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
18898         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
18899         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
18900         simplify_shift_const_1, simplify_comparison): Likewise.
18901         * expr.c (convert_modes): Likewise.
18902         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
18903         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
18904         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
18905
18906         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
18907
18908 2011-07-06  Richard Guenther  <rguenther@suse.de>
18909
18910         PR tree-optimization/49645
18911         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
18912         register variables.
18913         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
18914         in type qualification here ...
18915         (copy_reference_ops_from_ref): ... not here.
18916         (vn_reference_lookup_3): ... or here.
18917         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
18918         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
18919
18920 2011-07-06  Ian Lance Taylor  <iant@google.com>
18921
18922         * doc/install.texi (Configuration): It's
18923         --enable-gnu-indirect-function, not --enable-indirect-function.
18924
18925 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
18926
18927         * simplify-rtx.c (simplify_const_binary_operation): Use the
18928         shift_truncation_mask hook instead of performing modulo by width.
18929         Compare against mode precision, not bitsize.
18930         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
18931         Use shift_truncation_mask instead of constructing the value manually.
18932
18933 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18934
18935         PR middle-end/47383
18936         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
18937         address computation and convert to address_mode if needed.
18938
18939 2011-07-06  Richard Guenther  <rguenther@suse.de>
18940
18941         * tree.c (build_common_tree_nodes_2): Merge with
18942         build_common_tree_nodes.
18943         * tree.h (build_common_tree_nodes): Adjust prototype.
18944         (build_common_tree_nodes_2): Remove.
18945         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
18946         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
18947
18948 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
18949
18950         PR tree-optimization/49618
18951         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
18952         t recurse on the decl.
18953         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
18954         return true if expr isn't known to be defined in current
18955         TU or some other LTO partition.
18956
18957 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
18958
18959         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
18960         override CASE_VALUES_THRESHOLD.
18961
18962         * stmt.c (toplevel): Include params.h.
18963         (case_values_threshold): Use the --param case-values-threshold
18964         value if non-zero, otherwise use machine dependent value.
18965         (expand_case): Use case_values_threshold.
18966
18967         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
18968
18969         * doc/invoke.texi (--param case-values-threshold): Document.
18970
18971 2011-07-05  Richard Henderson  <rth@redhat.com>
18972
18973         * dwarf2out.c (dwarf2out_cfi_label): Make static.
18974         (dwarf2out_flush_queued_reg_saves): Make static.
18975         (dwarf2out_reg_save): Remove.
18976         (dwarf2out_return_save): Remove.
18977         (dwarf2out_return_reg): Remove.
18978         (dwarf2out_reg_save_reg): Remove.
18979         (dwarf2out_def_cfa): Merge into ...
18980         (dwarf2out_frame_init): ... here.
18981         * dwarf2out.h, tree.h: Remove declarations as necessary.
18982
18983 2011-07-05  Richard Henderson  <rth@redhat.com>
18984
18985         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
18986         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
18987         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
18988         the alloc insn.
18989
18990         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
18991         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
18992         (process_epilogue): Don't call dwarf2out_def_cfa.
18993
18994         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
18995         indicate the return address save.
18996         (process_cfa_register): Likewise.
18997
18998         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
18999         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
19000
19001         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
19002         for ar.pfs save at alloc insn.
19003
19004 2011-07-05  Richard Henderson  <rth@redhat.com>
19005
19006         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
19007         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
19008         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
19009         stack pointer save.
19010         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
19011         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
19012         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
19013         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
19014
19015 2011-07-05  Richard Henderson  <rth@redhat.com>
19016
19017         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
19018         VUNSPEC_* constants here instead of via define_constants.
19019         (VUNSPEC_PEM): New constant.
19020         (procedure_entry_mask): New insn.
19021         (prologue): New expander.
19022         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
19023         (vax_expand_prologue): Rename from vax_output_function_prologue;
19024         emit rtl instead of text.
19025         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
19026         (print_operand): Add 'x' prefix.
19027
19028 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19029
19030         PR middle-end/47715
19031         * calls.c (precompute_register_parameters): Promote the function
19032         argument before checking non-legitimate constant.
19033
19034 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
19035
19036         PR tree-optimization/47654
19037         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
19038         (lst_do_strip_mine_loop): Return an int.
19039         (lst_do_strip_mine): Same.
19040         (scop_do_strip_mine): Same.
19041         (scop_do_block): Loop blocking should strip-mine at least two loops.
19042         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
19043         (scop_do_interchange): Same.
19044         * graphite-poly.h (scop_do_interchange): Update declaration.
19045         (scop_do_strip_mine): Same.
19046
19047 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
19048
19049         * graphite-clast-to-gimple.c (precision_for_value): Removed.
19050         (precision_for_interval): Removed.
19051         (gcc_type_for_interval): Use mpz_sizeinbase.
19052
19053 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
19054
19055         * graphite-ppl.h (value_max): Correct computation of max.
19056
19057 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
19058
19059         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
19060
19061 2011-07-05  Richard Guenther  <rguenther@suse.de>
19062
19063         * c-decl.c (c_init_decl_processing): Defer building common
19064         tree nodes to c_common_nodes_and_builtins.
19065
19066 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
19067
19068         PR tree-optimization/49580
19069         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
19070         the loop's number of iterations.
19071         * tree-parloops.c (transform_to_exit_first_loop): Add the
19072         handling of the loop's number of iterations before the call
19073         to gimple_duplicate_sese_tail.
19074         Insert the stmt caclculating the new rhs of the loop's
19075         condition stmt to the preheader instead of iters_bb.
19076
19077 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19078
19079         PR rtl-optimization/47449
19080         * fwprop.c (forward_propagate_subreg): Don't propagate hard
19081         register nor zero/sign extended hard register.
19082
19083 2011-07-05  Richard Guenther  <rguenther@suse.de>
19084
19085         PR tree-optimization/49518
19086         PR tree-optimization/49628
19087         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
19088         irrelevant and invariant data-references.
19089         (vect_analyze_data_ref_access): For invariant loads clear the
19090         group association.
19091
19092 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
19093
19094         PR rtl-optimization/49619
19095         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
19096         pass VOIDmode as op0_mode to recursive call, and return temp even
19097         when different from tor, just if it is not IOR of the original
19098         PLUS arguments.
19099
19100         PR rtl-optimization/49472
19101         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
19102         negating MULT, negate the second operand instead of first.
19103         (simplify_binary_operation_1) <case MULT>: If one operand is
19104         a NEG and the other is MULT, don't attempt to optimize by negation
19105         of the MULT operand if it only moves the NEG operation around.
19106
19107         PR debug/49602
19108         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
19109         get_current_def return value if it can't be trusted to be
19110         the current value of the variable in the current bb.
19111
19112 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
19113
19114         PR target/49600
19115         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
19116         general register to memory for !TARGET_INTER_UNIT_MOVES.
19117
19118 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
19119
19120         PR target/44643
19121         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
19122         instead of TREE_READONLY.
19123
19124 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
19125
19126         * doc/extend.texi (AVR Built-in Functions): Update documentation
19127         of __builtin_avr_fmul*.
19128         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
19129         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
19130         * config/avr/avr.md (fmul): Rename to fmul_insn.
19131         (fmuls): Rename to fmuls_insn.
19132         (fmulsu): Rename to fmulsu_insn.
19133         (fmul,fmuls,fmulsu): New expander.
19134         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
19135         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
19136         * config/avr/libgcc.S (__fmul): New function.
19137         (__fmuls): New function.
19138         (__fmulsu,__fmulsu_exit): New function.
19139
19140 2011-07-04  Richard Guenther  <rguenther@suse.de>
19141
19142         PR tree-optimization/49615
19143         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
19144         basic-block index check.
19145
19146 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
19147
19148         * longlong.h (count_leading_zeros, count_trailing_zeros,
19149         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
19150         resp. 64.
19151
19152 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
19153
19154         PR tree-optimization/49610
19155         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
19156         a basic block.
19157
19158 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
19159             Olivier Hainque  <hainque@adacore.com>
19160             Nicolas Setton  <setton@adacore.com>
19161
19162         * tree.h (TYPE_ARTIFICIAL): New flag.
19163         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
19164         the DIE of the type if it is artificial.
19165         (gen_array_type_die): Likewise.
19166         (gen_enumeration_type_die): Likewise.
19167         (gen_struct_or_union_type_die): Likewise.
19168         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
19169         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
19170
19171 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
19172
19173         * tree-object-size.c (pass_through_call): Handle
19174         BUILT_IN_ASSUME_ALIGNED.
19175
19176 2011-07-01  Martin Jambor  <mjambor@suse.cz>
19177
19178         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
19179
19180 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
19181
19182         PR middle-end/48016
19183         * explow.c (update_nonlocal_goto_save_area): Use proper mode
19184         for stack save area.
19185         * function.c (expand_function_start): Likewise.
19186
19187 2011-07-01  Richard Guenther  <rguenther@suse.de>
19188
19189         PR middle-end/49596
19190         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
19191         may have unknown refs.
19192
19193 2011-07-01  Kai Tietz  <ktietz@redhat.com>
19194
19195         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
19196
19197 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19198
19199         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
19200         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
19201         (Specific, mips-sgi-irix6): Likewise.
19202
19203 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19204
19205         PR libmudflap/49549
19206         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
19207
19208 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
19209
19210         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
19211         [idx]= and [idx1 ... idx2]= before initializers if needed for
19212         array initializers.
19213
19214 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
19215
19216         * config.gcc (score-*-elf): Remove score7.o.
19217         * config/score/t-score-elf: Likewise.
19218         * config/score/score.c: Merge score7 to score.c and
19219         remove forwarding functions.
19220         * config/score/score7.c: Deleted.
19221         * config/score/score7.h: Deleted.
19222
19223 2011-07-01  Richard Guenther  <rguenther@suse.de>
19224
19225         PR tree-optimization/49603
19226         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
19227
19228 2011-06-30  Martin Jambor  <mjambor@suse.cz>
19229
19230         * tree-sra.c (struct access): Rename total_scalarization to
19231         grp_total_scalarization
19232         (completely_scalarize_var): New function.
19233         (sort_and_splice_var_accesses): Set total_scalarization in the
19234         representative access.
19235         (analyze_access_subtree): Propagate total scalarization accross the
19236         tree, no holes in totally scalarized trees, simplify coverage
19237         computation.
19238         (analyze_all_variable_accesses): Call completely_scalarize_var instead
19239         of completely_scalarize_record.
19240
19241 2011-06-30  Richard Henderson  <rth@redhat.com>
19242
19243         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
19244         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
19245         * config/i386/i386.c: Don't include dwarf2out.h.
19246         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
19247         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
19248         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
19249         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
19250         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
19251
19252 2011-06-30  Richard Henderson  <rth@redhat.com>
19253
19254         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
19255         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
19256         * final.c (final_scan_insn): Look for it, and invoke
19257         dwarf2out_frame_debug before the insn if found.
19258
19259 2011-06-30  Richard Henderson  <rth@redhat.com>
19260
19261         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
19262         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
19263
19264 2011-06-30  Richard Henderson  <rth@redhat.com>
19265
19266         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
19267         Define a vector of this type.
19268         (regs_saved_in_regs): Use a VEC.
19269         (num_regs_saved_in_regs): Remove.
19270         (compare_reg_or_pc): New.
19271         (record_reg_saved_in_reg): Split out from...
19272         (dwarf2out_flush_queued_reg_saves): ... here.
19273         (clobbers_queued_reg_save): Update for VEC.
19274         (reg_saved_in): Likewise.
19275         (dwarf2out_frame_debug_init): Likewise.
19276         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
19277         (dwarf2out_frame_debug_cfa_register): Likewise.
19278
19279 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
19280
19281         PR tree-optimization/49572
19282         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
19283         type of the RHS instead of that of the LHS for the expression type.
19284
19285 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
19286
19287         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
19288         unconditionally.
19289
19290 2011-06-30  Richard Guenther  <rguenther@suse.de>
19291
19292         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
19293         * tree-ssa-structalias.c (create_variable_info_for): Do not
19294         add initial constraints for non-var-decls.  Properly handle
19295         globals in other ltrans partitions.
19296         (intra_create_variable_infos): Manually create constraints for
19297         the fake no-alias parameter.
19298         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
19299         and assert there are no clones.
19300
19301 2011-06-30  Richard Guenther  <rguenther@suse.de>
19302
19303         PR tree-optimization/46787
19304         * tree-data-ref.c (dr_address_invariant_p): Remove.
19305         (find_data_references_in_stmt): Invariant accesses are ok now.
19306         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
19307         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19308         invariant loads.
19309
19310 2011-06-30  Martin Jambor  <mjambor@suse.cz>
19311
19312         PR tree-optimization/49094
19313         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
19314         (build_accesses_from_assign): Use it.
19315
19316 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
19317
19318         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
19319         handling of BUILT_IN_ASSUME_ALIGNED.
19320
19321         PR debug/49364
19322         * dwarf2out.c (output_abbrev_section): Don't return early
19323         if abbrev_die_table_in_use is 1.
19324         (dwarf2out_finish): Instead don't call output_abbrev_section
19325         nor emit abbrev_section_label in that case.
19326
19327 2011-06-30  Nick Clifton  <nickc@redhat.com>
19328
19329         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
19330         for the V850E.
19331
19332 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
19333
19334         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
19335         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
19336
19337 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
19338
19339         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
19340         both pattern and original statements if necessary.
19341         (vect_transform_loop): Likewise.
19342         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
19343         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
19344         Mark the pattern statement only if the original statement doesn't
19345         have its own uses.
19346         (process_use): Call vect_mark_relevant with additional parameter.
19347         (vect_mark_stmts_to_be_vectorized): Likewise.
19348         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
19349         (vect_analyze_stmt): Handle both pattern and original statements
19350         if necessary.
19351         (vect_transform_stmt): Don't store vectorized pattern statement
19352         in the original statement.
19353         (vect_is_simple_use_1): Use related pattern statement only if the
19354         original statement is irrelevant.
19355         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
19356
19357 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
19358
19359         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
19360         option.
19361         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
19362         entry.
19363         (TARGET_AVX128_OPTIMAL): New definition.
19364         * config/i386/i386.c (initial_ix86_tune_features): Initialize
19365         X86_TUNE_AVX128_OPTIMAL entry.
19366         (ix86_option_override_internal): Enable the generation
19367         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
19368         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
19369         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
19370
19371 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
19372
19373         PR tree-optimization/49539
19374         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
19375         names by means of stmt_references_abnormal_ssa_name.
19376         (associate_plusminus): Call can_propagate_from before propagating
19377         from definition statements.
19378         (ssa_forward_propagate_and_combine): Remove superfluous newline.
19379
19380 2011-06-29  Richard Guenther  <rguenther@suse.de>
19381
19382         * doc/invoke.texi: Document -scev dump modifier.
19383         * tree-pass.h (TDF_SCEV): New dump flag.
19384         * tree-dump.c (dump_option_value_in): Add scev.
19385         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
19386         * tree-scalar-evolution.c: Likewise.
19387
19388 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
19389
19390         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
19391         (cxa_type_match): Correct declaration.
19392         (__gnu_unwind_pr_common): Reconstruct additional indirection
19393         when __cxa_type_match returns succeeded_with_ptr_to_base.
19394
19395 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19396
19397         PR rtl-optimization/49114
19398         * reload.c (struct replacement): Remove SUBREG_LOC member.
19399         (push_reload): Do not set it.
19400         (push_replacement): Likewise.
19401         (subst_reload): Remove dead code.
19402         (copy_replacements): Remove assertion.
19403         (copy_replacements_1): Do not handle SUBREG_LOC.
19404         (move_replacements): Likewise.
19405         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
19406         Detect subregs via recursive descent instead of via SUBREG_LOC.
19407
19408 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
19409
19410         * config/avr/avr.c (avr_encode_section_info): Dispatch to
19411         default_encode_section_info.
19412
19413 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
19414
19415         PR tree-optimization/49545
19416         * builtins.c (get_object_alignment_1): Update function comment.
19417         Do not use DECL_ALIGN for functions, but test
19418         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
19419         * fold-const.c (get_pointer_modulus_and_residue): Don't check
19420         for functions here.
19421         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
19422
19423 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
19424
19425         PR debug/49567
19426         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
19427         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
19428
19429 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
19430
19431         PR target/34734
19432         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
19433         about uninitialized data attributed 'progmem' from here...
19434         (avr_encode_section_info): ...to this new function.
19435         (TARGET_ENCODE_SECTION_INFO): New define.
19436         (avr_section_type_flags): For data in ".progmem.data", remove
19437         section flag SECTION_WRITE.
19438
19439 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
19440
19441         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
19442         _xmulhisi3_exit.
19443         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
19444         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
19445         (__umulhisi3): Ditto.
19446         * config/avr/avr.md (mulhisi3): New insn expender.
19447         (umulhisi3): New insn expender.
19448         (*mulhisi3_call): New insn.
19449         (*umulhisi3_call): New insn.
19450
19451 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
19452
19453         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
19454
19455 2011-06-28  Richard Henderson  <rth@redhat.com>
19456
19457         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
19458         all code and arguments that handled pushes.  Update all callers.
19459
19460 2011-06-28  Richard Henderson  <rth@redhat.com>
19461
19462         * config/arm/arm.c (arm_output_function_prologue): Don't call
19463         thumb1_output_function_prologue.
19464         (arm_expand_prologue): Avoid dead store.
19465         (number_of_first_bit_set): Use ctz_hwi.
19466         (thumb1_emit_multi_reg_push): New.
19467         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
19468         to emit the entire prologue as rtl.
19469         (thumb1_output_interwork): Split out from
19470         thumb1_output_function_prologue.
19471         (thumb1_output_function_prologue): Remove.
19472         (arm_attr_length_push_multi): Handle thumb1.
19473         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
19474         (prologue_thumb1_interwork): New.
19475         (*push_multi): Allow thumb1; use push_mult_memory_operand.
19476         * config/arm/predicates.md (push_mult_memory_operand): New.
19477
19478 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
19479
19480         * config/sparc/sync.md (*stbar): Delete.
19481         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
19482
19483 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
19484
19485         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
19486
19487 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19488
19489         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
19490         (TARGET_64BIT_DEFAULT): Define.
19491         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
19492         of tm_file.
19493         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
19494
19495 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
19496
19497         * common.opt (in_lto_p): New Variable entry.
19498         * flags.h (in_lto_p): Move to common.opt.
19499         * gcc.c: Include params.h.
19500         (set_option_handlers): Also use common_handle_option and
19501         target_handle_option.
19502         (main): Call global_init_params, finish_params and init_options_struct.
19503         * opts.c (debug_type_names): Move from toplev.c.
19504         (print_filtered_help): Access quiet_flag through opts pointer.
19505         (common_handle_option): Return early in the driver for some options.
19506         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
19507         opts pointer.
19508         * toplev.c (in_lto_p): Move to common.opt.
19509         (debug_type_names): Move to opts.c.
19510         * Makefile.in (OBJS): Remove opts.o.
19511         (OBJS-libcommon-target): Add opts.o.
19512         (gcc.o): Update dependencies.
19513
19514 2011-06-28  Kai Tietz  <ktietz@redhat.com>
19515
19516         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
19517
19518 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19519
19520         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
19521         with '=' constraint modifier.
19522         (*divdf3_vfp): Likewise.
19523         ("*mulsf3_vfp"): Likewise.
19524         ("*muldf3_vfp"): Likewise.
19525         ("*mulsf3negsf_vfp"): Likewise.
19526         ("*muldf3negdf_vfp"): Likewise.
19527
19528 2011-06-28  Nick Clifton  <nickc@redhat.com>
19529
19530         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
19531         relaxation when performing an incremental link.
19532
19533 2011-06-28  Kai Tietz  <ktietz@redhat.com>
19534
19535         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
19536         within BB from last to first.
19537
19538 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
19539
19540         * genattr-common.c: New.  Based on genattr.c.
19541         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
19542         (MOSTLYCLEANFILES): Add insn-attr-common.h.
19543         (opts.o): Update dependencies.
19544         (.PRECIOUS): Add insn-attr-common.h.
19545         (simple_rtl_generated_h): Add insn-attr-common.h.
19546         (build/genattr-common.o): New.
19547         (genprogrtl): Add attr-common.
19548         * genattr.c (main): Include insn-attr-common.h.  Don't generate
19549         definitions of DELAY_SLOTS or INSN_SCHEDULING.
19550         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
19551
19552 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
19553
19554         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
19555         avr-*-* and avr-*-rtems* targets.
19556
19557         * config/avr/elf.h: New file.
19558         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
19559         (TARGET_ASM_SELECT_SECTION): Define.
19560         (INIT_SECTION_ASM_OP): Undefine.
19561         (FINI_SECTION_ASM_OP): Undefine.
19562         (READONLY_DATA_SECTION_ASM_OP): Undefine.
19563         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
19564         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
19565         * config/avr/avr.h:
19566         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
19567         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
19568         (MAX_OFILE_ALIGNMENT): Move to elf.h.
19569         (STRING_LIMIT): Move to elf.h.
19570         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
19571         (ASM_DECLARE_OBJECT_NAME): Remove.
19572         (ESCAPES): Remove.
19573         (ASM_OUTPUT_SKIP): Remove.
19574         (DWARF2_DEBUGGING_INFO): Remove.
19575         (OBJECT_FORMAT_ELF): Remove.
19576         (USER_LABEL_PREFIX): Remove.
19577         (ASM_OUTPUT_EXTERNAL): Remove.
19578         (ASM_OUTPUT_ASCII): Remove.
19579         (TYPE_ASM_OP): Remove.
19580         (SIZE_ASM_OP): Remove.
19581         (WEAK_ASM_OP): Remove.
19582         (STRING_ASM_OP): Remove.
19583         (SET_ASM_OP): Remove.
19584         (ASM_WEAKEN_LABEL): Remove.
19585         (TYPE_OPERAND_FMT): Remove.
19586         (ASM_DECLARE_FUNCTION_SIZE): Remove.
19587         (ASM_FINISH_DECLARE_OBJECT): Remove.
19588         (NO_DOLLAR_IN_LABEL): Remove.
19589         (ASM_GENERATE_INTERNAL_LABEL): Remove.
19590         (ASM_OUTPUT_CASE_LABEL): Remove.
19591         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
19592         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
19593         (gas_output_ascii): Remove.
19594         (gas_output_limited_string): Remove.
19595         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
19596         * config/avr/avr-protos.h
19597         (gas_output_ascii): Remove prototye.
19598         (gas_output_limited_string): Remove prototype.
19599
19600 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
19601
19602         PR target/48637
19603         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
19604         asm operands.
19605
19606 2011-06-27  Jan Hubicka  <jh@suse.cz>
19607
19608         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
19609         node instead of references in node.
19610
19611 2011-06-27  Richard Henderson  <rth@redhat.com>
19612
19613         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
19614         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
19615         inside ifdef.
19616
19617 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
19618
19619         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
19620
19621         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
19622         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
19623         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
19624         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
19625         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
19626         (evaluate_stmt, execute_fold_all_builtins): Handle
19627         BUILT_IN_ASSUME_ALIGNED.
19628         * tree-ssa-dce.c (propagate_necessity): Likewise.
19629         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19630         call_may_clobber_ref_p_1): Likewise.
19631         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
19632         (expand_builtin_assume_aligned): New function.
19633         * doc/extend.texi (__builtin_assume_aligned): Document.
19634
19635         PR debug/49544
19636         * cselib.c (promote_debug_loc): If cselib_preserve_constants
19637         and l has two DEBUG_INSN owned locs instead of just one, adjust
19638         the second location's setting_insn too.
19639
19640 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19641
19642         PR libmudflap/38738
19643         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
19644
19645 2011-06-27  Nick Clifton  <nickc@redhat.com>
19646
19647         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
19648         bit position of highest bit set into a count of the high zero bits.
19649
19650 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
19651
19652         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
19653
19654 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
19655
19656         PR lto/48492
19657         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
19658         to a NULL parent.
19659
19660 2011-06-27  Richard Guenther  <rguenther@suse.de>
19661
19662         PR tree-optimization/49394
19663         * passes.c (execute_one_pass): Restore current_pass after
19664         applying IPA transforms.
19665
19666 2011-06-27  Kai Tietz  <ktietz@redhat.com>
19667
19668         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
19669         out of type precision after operation.
19670         (find_bswap): Take for limit value the integer auto-promotion
19671         into account.
19672
19673 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
19674
19675         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
19676         forward scan as well.
19677
19678 2011-06-27  Tristan Gingold  <gingold@adacore.com>
19679
19680         PR target/44241
19681         * config/vms/vms-protos.h: New file.
19682         * config/vms/vms-crtlmap.map: New file.
19683         * config/vms/vms.c: New file.
19684         * config/vms/make-crtlmap.awk: New file.
19685         * config/vms/vms-crtl.h: File removed.
19686         * config/vms/vms-crtl-64.h: File removed.
19687         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
19688         * config/alpha/vms64.h: Do not include vms-crtl-64.h
19689         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
19690         clear some builtins on VMS.  Calls vms_patch_builtins.
19691         (avms_asm_output_external): Remove.
19692         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
19693         (struct crtl_name_spec): Remove
19694         (DO_CTRL_NAMES): Remove.
19695         * config/ia64/vms.h (struct crtl_name_spec): Remove
19696         (DO_CTRL_NAMES): Remove.
19697         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
19698         clear some builtins on VMS.  Calls vms_patch_builtins.
19699         (ia64_asm_output_external): Remove DO_CRTL_NAME.
19700         * config/ia64/vms64.h: Do not include vms-crtl-64.h
19701         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
19702
19703 2011-06-27  Tristan Gingold  <gingold@adacore.com>
19704
19705         * config/alpha/alpha.c (alpha_end_function): Always generate .end
19706         directive on VMS.
19707
19708 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
19709
19710         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
19711         the function receives nonlocal gotos.
19712
19713 2011-06-27  Richard Guenther  <rguenther@suse.de>
19714
19715         PR tree-optimization/49536
19716         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19717         For non-scalar inner types use a scalar type according to
19718         the scalar inner mode.
19719
19720 2011-06-27  Richard Guenther  <rguenther@suse.de>
19721
19722         PR tree-optimization/49365
19723         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
19724
19725 2011-06-27  Richard Guenther  <rguenther@suse.de>
19726
19727         PR tree-optimization/49169
19728         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
19729         the alignment of function decls.
19730
19731 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
19732
19733         PR target/47997
19734         * config/darwin.c (darwin_mergeable_string_section): Place string
19735         constants in '.cstring' rather than '.const' when CF/NSStrings are
19736         active.
19737
19738 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
19739
19740         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
19741         (emit_save_register_window): Likewise.
19742         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
19743         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
19744         Swap back %o7/%i7 in register naming.
19745
19746 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
19747
19748         PR driver/49371
19749         * config/darwin.c (darwin_override_options): Improve warning when
19750         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
19751         is given with fpie/fPIE.
19752         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
19753         * config/darwin9.h (PIE_SPEC): New.
19754
19755 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
19756
19757         * timevar.c (timevar_print): Increase width for display of timevar
19758         name.
19759
19760 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
19761
19762         PR c++/46400
19763         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
19764         instead of TYPE_CHAIN for chain_next for types.
19765
19766 2011-06-24  Richard Henderson  <rth@redhat.com>
19767
19768         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
19769         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
19770         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
19771         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
19772         (sparc_flat_expand_prologue): Emit individual instructions
19773         instead of one of the above.
19774
19775 2011-06-24  Easwaran Raman  <eraman@google.com>
19776
19777         PR rtl-optimization/49429
19778         PR target/49454
19779         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
19780         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
19781         used to copy y into x.
19782         * calls.c (initialize_argument_information): Mark
19783         an argument addressable if it is passed by invisible reference.
19784         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
19785         if it is passed by reference.
19786
19787 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19788
19789         PR rtl-optimization/49504
19790         * rtlanal.c (nonzero_bits1): Properly handle addition or
19791         subtraction of a pointer in Pmode if pointers extend unsigned.
19792         (num_sign_bit_copies1): Likewise.
19793
19794 2011-06-24  Martin Jambor  <mjambor@suse.cz>
19795
19796         PR tree-optimizations/49516
19797         * tree-sra.c (sra_modify_assign): Choose the safe path for
19798         aggregate copies if we also did scalar replacements.
19799
19800 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19801
19802         PR target/49335
19803         * config/arm/predicates.md (add_operator): New.
19804         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
19805
19806 2011-06-24  Andi Kleen  <ak@linux.intel.com>
19807
19808         * tree-sra.c (type_internals_preclude_sra_p): Add msg
19809         parameter. Split up ifs and report reason in *msg.
19810         (reject): Add.
19811         (find_var_candiate): Add msg variable.
19812         Split up ifs and report reason to reject.
19813         (find_param_candidates): Add msg variable.
19814         Pass msg to type_internals_preclude_sra_p.
19815
19816 2011-06-23  Jeff Law  <law@redhat.com>
19817
19818         PR middle-end/48770
19819         * reload.h (reload): Change to return a bool.
19820         * ira.c (ira): If requested by reload, run a fast DCE pass after
19821         reload has completed.  Fix comment typo.
19822         * reload1.c (need_dce): New file scoped static.
19823         (reload): Set reload_completed here.  Return whether or not a DCE
19824         pass after reload is needed.
19825         (delete_dead_insn): Set need_dce as needed.
19826
19827         PR middle-end/49465
19828         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
19829         to detect threading through joiner block.  If there was already
19830         an edge to the new target, then do not change the PHI nodes.
19831
19832 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
19833
19834         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
19835         get_pointer_alignment to see if base isn't sufficiently aligned.
19836
19837 2011-06-23  Jan Hubicka  <jh@suse.cz>
19838
19839         PR tree-optimize/49373
19840         * tree-pass.h (all_late_ipa_passes): Declare.
19841         * cgraphunit.c (init_lowered_empty_function): Fix properties.
19842         (cgraph_optimize): Execute late passes; remove unreachable funcions
19843         after materialization.
19844         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
19845         LTOing.
19846         * passes.c (all_late_ipa_passes): Declare.
19847         (dump_passes, register_pass): Handle late ipa passes.
19848         (init_optimization_passes): Move ipa_pta to late passes; schedule
19849         fixup_cfg at beggining of all_passes.
19850         (apply_ipa_transforms): New function.
19851         (execute_one_pass): When doing simple ipa pass, apply all transforms.
19852
19853 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
19854
19855         * params.c: Include common/common-target.h.  Don't include tm.h.
19856         (lang_independent_params): Move from toplev.c.
19857         (global_init_params): New.
19858         * params.h (global_init_params): Declare.
19859         * target.def (default_params): Move to common-target.def.
19860         * toplev.c (lang_independent_options): Remove.
19861         (lang_independent_params): Move to params.c.
19862         (general_init): Use global_init_params.
19863         * common/common-target.def (option_default_params): Move from
19864         target.def.
19865         * common/config/ia64/ia64-common.c: Include params.h.
19866         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19867         from ia64.c.
19868         * common/config/rs6000/rs6000-common.c: Include params.h.
19869         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19870         from rs6000.c.
19871         * common/config/sh/sh-common.c: Include params.h.
19872         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19873         from sh.c.
19874         * common/config/spu/spu-common.c: Include params.h.
19875         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19876         from spu.c.
19877         * config/ia64/ia64.c (ia64_option_default_params,
19878         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
19879         * config/rs6000/rs6000.c (rs6000_option_default_params,
19880         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
19881         * config/sh/sh.c (sh_option_default_params,
19882         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
19883         * config/spu/spu.c (spu_option_default_params,
19884         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
19885         * Makefile.in (OBJS): Remove params.o.
19886         (OBJS-libcommon-target): Add params.o.
19887         (params.o, $(common_out_object_file)): Update dependencies.
19888         * doc/tm.texi: Regenerate.
19889
19890 2011-06-23  Alan Modra  <amodra@gmail.com>
19891
19892         PR bootstrap/49383
19893         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
19894         invocation for 2011-06-09 changes.
19895
19896 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
19897
19898         PR libgomp/49490
19899         * omp-low.c (expand_omp_for_static_nochunk): Only
19900         use n ceil/ nthreads size for the first n % nthreads threads in the
19901         team instead of all threads except for the last few ones which
19902         get less work or none at all.
19903
19904         PR debug/49496
19905         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
19906         uses.
19907
19908 2011-06-22  Richard Guenther  <rguenther@suse.de>
19909
19910         PR tree-optimization/49493
19911         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
19912         Refer to the alias target of variables.
19913         (associate_varinfo_to_alias_1): Remove.
19914         (ipa_pta_execute): Do not associate aliases with anything.
19915         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
19916         (cgraph_function_node): Likewise.
19917         (cgraph_function_or_thunk_node): Likewise.
19918         (varpool_variable_node): Likewise.
19919
19920 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
19921
19922         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
19923         * config.gcc (arm*-*-linux*): Default to gnu tls.
19924         (arm*-*-*): Add --with-tls option.
19925         (all_defaults): Add 'tls'.
19926
19927 2011-06-22  Richard Henderson  <rth@redhat.com>
19928
19929         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
19930         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
19931         (dwarf2out_frame_debug_cfa_window_save): Rename from
19932         dwarf2out_window_save; make static.
19933         * tree.h (dwarf2out_window_save): Don't declare.
19934
19935         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
19936         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
19937         (emit_save_register_window): Rename from gen_save_register_window;
19938         emit the insn and add REG_CFA_* notes.
19939         (sparc_expand_prologue): Update to match.
19940         * config/sparc/sparc.md (save_register_window_1): Simplify from
19941         save_register_window<P:mode>.
19942
19943 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19944
19945         PR target/49497
19946         * config/i386/i386.md (*lea_general_2): Always allow SImode.
19947         (*lea_general_2_zext): Likewise.
19948         (imul to lea peepholes): Use const359_operand and check
19949         TARGET_PARTIAL_REG_STALL.
19950
19951         * config/i386/predicates.md (const359_operand): New.
19952
19953 2011-06-22  Michael Matz  <matz@suse.de>
19954
19955         * cgraphunit.c (assemble_thunk): Use correct return type.
19956
19957 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
19958             Dmitry Melnik  <dm@ispras.ru>
19959
19960         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
19961         (neon_output_shift_immediate): Ditto.
19962         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
19963         prototype.
19964         (neon_output_shift_immediate): Ditto.
19965         * config/arm/neon.md (vashl<mode>3): Modified constraint.
19966         (vashr<mode>3_imm): New insn pattern.
19967         (vlshr<mode>3_imm): Ditto.
19968         (vashr<mode>3): Modified constraint.
19969         (vlshr<mode>3): Ditto.
19970         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
19971         predicate.
19972         (imm_for_neon_rshift_operand): Ditto.
19973         (imm_lshift_or_reg_neon): Ditto.
19974         (imm_rshift_or_reg_neon): Ditto.
19975
19976         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
19977
19978 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
19979
19980         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
19981         builtin calls even if likelyvalue is not CONSTANT.
19982         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
19983         Return get_value_for_expr of first operand
19984         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
19985         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19986         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
19987         their non-checking counterparts.
19988         (call_may_clobber_ref_p_1): Likewise.
19989         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
19990         like their non-checking counterparts.
19991         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19992         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
19993         like their non-checking counterparts.
19994         (find_func_clobbers): Likewise.
19995         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
19996         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
19997
19998         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
19999         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
20000         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
20001         of base type reference as argument.
20002         (resolve_addr_in_expr): Likewise.  Fix keep computation.
20003         (convert_descriptor_to_signed): Renamed to...
20004         (convert_descriptor_to_mode): ... this.  For wider types convert to
20005         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
20006         (typed_binop): New function.
20007         (scompare_loc_descriptor, ucompare_loc_descriptor,
20008         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
20009         default to unsigned type instead of signed.
20010
20011         PR debug/47858
20012         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
20013         (gimple_build_debug_source_bind_stat): New prototype.
20014         (gimple_build_debug_source_bind): Define.
20015         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
20016         gimple_debug_source_bind_get_value,
20017         gimple_debug_source_bind_get_value_ptr,
20018         gimple_debug_source_bind_set_var,
20019         gimple_debug_source_bind_set_value): New inlines.
20020         * gimple.c (gimple_build_debug_source_bind_stat): New function.
20021         * gimple-pretty-print.c (dump_gimple_debug): Handle
20022         GIMPLE_DEBUG_SOURCE_BIND.
20023         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
20024         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20025         * tree-parloops.c (eliminate_local_variables,
20026         separate_decls_in_region): Likewise.
20027         (separate_decls_in_region_debug): Renamed from
20028         separate_decls_in_region_debug_bind.  Handle
20029         gimple_debug_source_bind_p.
20030         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
20031         prototypes.
20032         (DECL_HAS_DEBUG_ARGS_P): Define.
20033         (struct tree_function_decl): Add has_debug_args_flag field.
20034         * tree.c (debug_args_for_decl): New variable.
20035         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
20036         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
20037         (rewrite_debug_stmt_uses): New function.
20038         (rewrite_stmt): Use it to rewrite debug stmt uses.
20039         * rtl.def (DEBUG_PARAMETER_REF): New.
20040         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
20041         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
20042         DEBUG_PARAMETER_REF.
20043         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
20044         * print-rtl.c (print_rtx): Likewise.
20045         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
20046         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
20047         debug stmts in the first bb.
20048         * tree-inline.c (remap_ssa_name): If remapping default def
20049         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
20050         a source bind debug stmt.
20051         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
20052         (maybe_move_debug_stmts_to_successors): Likewise.
20053         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
20054         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
20055         debug args vector from old_decl to new_decl.
20056         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
20057         or modified parameters, add debug bind stmts before call
20058         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
20059         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
20060         on DECL_DEBUG_EXPRs from debug args vector.
20061         (expand_debug_source_expr): New function.
20062         (expand_debug_locations): Use it for source bind insns.
20063         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
20064         * var-tracking.c (prepare_call_arguments): Add debug args
20065         to call_arguments if any.
20066         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
20067         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
20068         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
20069         (get_ref_die_offset, parameter_ref_descriptor): New functions.
20070         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
20071         (gen_subprogram_die): Handle parameters identified by
20072         DEBUG_PARAMETER_REF.
20073
20074 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
20075
20076         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
20077         * doc/install.texi (Configuration): Document --with-tls.
20078         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
20079         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
20080         (arm_tls_descseq_addr): New.
20081         (legitimize_tls_address): Add tlsdesc support.
20082         (arm_cannot_copy_insn_p): Check for tlscall.
20083         (arm_emit_tls_decoration): Likewise.
20084         * config/arm/arm.h (TARGET_GNU2_TLS): New.
20085         (OPTION_DEFAULT_SPECS): Add with-tls support.
20086         * config/arm/arm.md (R1_REGNUM): Define.
20087         (tlscall): New.
20088         * config/arm/arm.opt (tls_type): New enumeration type and values.
20089         (mtls-dialect): New switch.
20090         * config/arm/arm-opts.h (enum tls_type): New.
20091
20092 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
20093
20094         * attribs.c (register_attribute): Added assert to check that all
20095         attribute specs are registered with a name that is not empty and
20096         does not start with '_'.
20097         (decl_attributes): Avoid the lookup of the "naked" attribute spec
20098         if the function has no attributes.
20099         * tree.c (is_attribute_with_length_p): Removed.
20100         (is_attribute_p): Removed.
20101         (private_is_attribute_p): New.
20102         (private_lookup_attribute): New.
20103         (lookup_attribute): Removed.
20104         (lookup_ident_attribute): New.
20105         (remove_attribute): Require the first argument to be in the form
20106         'text', not '__text__'.  Updated asserts.
20107         (merge_attributes): Use lookup_ident_attributes instead of
20108         lookup_attribute.
20109         (merge_dllimport_decl_attributes): Use remove_attribute.
20110         (attribute_list_contained): Likewise.
20111         (attribute_list_equal): Immediately return 1 if the arguments are
20112         identical pointers.
20113         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
20114         'int'.  Require the first argument to be in the form 'text', not
20115         '__text__'.  Require the second argument to be an identifier.
20116         (lookup_attribute): Made inline.  Require the first argument to be
20117         in the form 'text', not '__text__'.
20118         (private_is_attribute_p, private_lookup_attribute): New.
20119         Updated comments.
20120
20121 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
20122
20123         * builtins.c: Add sync_ or SYNC__ to builtin names.
20124         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
20125         * omp-low.c: Add sync_ or SYNC__ to builtin names.
20126
20127 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
20128
20129         PR target/33049
20130         * config/avr/avr.md (extzv): New expander.
20131         (*extzv): New insn.
20132         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
20133         * config/avr/constraints.md (C04): New constraint.
20134         * doc/md.texi (Machine Constraints): Document it.
20135
20136 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
20137
20138         PR middle-end/49489
20139         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
20140         unsignedp argument instead of 1 for clrsb_optab.
20141         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
20142         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
20143         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
20144         * optabs.c (widen_leading): Call widen_operand and expand_unop
20145         with 0 as unsignedp argument instead of 1 for clrsb_optab.
20146         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
20147
20148 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
20149
20150         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
20151
20152 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
20153
20154         * gensupport.c (add_define_attr): New static function.
20155         (is_predicable): Allow multi-alternative lists for the "predicable"
20156         attribute.
20157         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
20158         (process_one_cond_exec): Call alter_attrs_for_insn.
20159         * doc/md.texi (Defining Attributes): Mention some standard names.
20160         (Conditional Execution): Update documentation for "predicable".
20161
20162         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
20163         __builtin_clrsbll): Document.
20164         * doc/rtl.texi (clrsb): New entry.
20165         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
20166         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
20167         (expand_unop): Handle clrsb_optab.
20168         (init_optabs): Initialize it.
20169         * optabs.h (enum optab_index): New entry OTI_clrsb.
20170         (clrsb_optab): Define.
20171         * genopinit.c (optabs): Add an entry for it.
20172         * builtins.c (expand_builtin): Handle clrsb builtin functions.
20173         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
20174         BUILT_IN_CLRSBLL): New.
20175         * rtl.def (CLRSB): New code.
20176         * dwarf2out.c (mem_loc_descriptor): Handle it.
20177         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
20178         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
20179         and popcount.
20180         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
20181         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
20182         (__ctzDI2): Move declaration.
20183         * config/bfin/bfin.md (clrsbsi2): New expander.
20184         (signbitssi2): Use the CLRSB rtx.
20185         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
20186         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
20187
20188 2011-06-21  Richard Guenther  <rguenther@suse.de>
20189
20190         * ipa-inline-transform.c (inline_transform): Fix previous change.
20191
20192 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
20193
20194         PR tree-optimization/49478
20195         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
20196         with constant operand.
20197
20198 2011-06-21  Richard Guenther  <rguenther@suse.de>
20199
20200         * ipa-inline-transform.c (inline_transform): Fix typo.
20201
20202 2011-06-21  Richard Guenther  <rguenther@suse.de>
20203
20204         PR tree-optimization/49483
20205         * tree-vect-stmts.c (vectorizable_assignment): Also handle
20206         VIEW_CONVERT_EXPR conversions.
20207
20208 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
20209
20210         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
20211         * config/avr/avr-tables.opt: New file (generated).
20212         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
20213         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
20214         avr-mcus.def.
20215         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
20216         (avr_option_override): Don't process -mmcu= argument here.  Set
20217         avr_current_device using avr_mcu_index.
20218         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
20219         * config/avr/avr.opt (mmcu=): Use Enum.
20220         * config/avr/t-avr (avr-devices.o): Update dependencies.
20221         ($(srcdir)/config/avr/avr-tables.opt): New.
20222         * target.def (help): Remove.
20223         * doc/tm.texi.in (TARGET_HELP): Remove.
20224         * doc/tm.texi: Regenerate.
20225         * opts.c: Don't include target.h.
20226         (common_handle_option): Don't call targetm.help.
20227         * system.h (TARGET_HELP): Poison.
20228         * Makefile.in (opts.o): Update dependencies.
20229
20230 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20231
20232         * config/usegld.h: New file.
20233         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
20234         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
20235         (LIB_SPEC): Likewise.  Search /lib.
20236         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
20237         (RDYNAMIC_SPEC): Handle GNU ld.
20238         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
20239         Define.
20240         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
20241         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
20242         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
20243         (STACK_CHECK_STATIC_BUILTIN): Define.
20244         * config/sol2.opt (compat-bsd): Remove.
20245         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
20246         * config/sol2-bi.h: New file.
20247         * config/sol2-gld.h: Remove.
20248         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
20249         (NO_DBX_BNSYM_ENSYM): Remove.
20250         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
20251         (STACK_CHECK_STATIC_BUILTIN): Remove.
20252         Test USE_GLD instead of TARGET_GNU_LD.
20253         * config/i386/sol2-10.h: Rename to ...
20254         * config/i386/sol2-bi.h .. this.
20255         (SUBTARGET_EXTRA_SPECS): Redefine.
20256         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
20257         (MULTILIB_DEFAULTS): Remove.
20258         (DEFAULT_ARCH32_P): Define.
20259         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
20260         (ARCH64_SUBDIR): Define.
20261         Test USE_GLD instead of TARGET_GNU_LD.
20262         (I386_EMULATION): Rename to ...
20263         (ARCH32_EMULATION): ... this.
20264         (X86_64_EMULATION): Rename to ...
20265         (ARCH64_EMULATION): ... this.
20266         (TARGET_LD_EMULATION): Remove.
20267         (LINK_ARCH_SPEC): Remove.
20268         * config/i386/sol2-gas.h: Remove.
20269         * config/i386/t-sol2-10: Rename to ...
20270         * config/i386/t-sol2-64: ... this.
20271         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
20272         (AS_SPARC64_FLAG): Define.
20273         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
20274         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
20275         depending on TARGET_CPU_DEFAULT.
20276         (CPP_CPU_SPEC): Redefine.
20277         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
20278         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
20279         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
20280         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
20281         ASM_ARCH_DEFAULT_SPEC): Redefine.
20282         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
20283         LINK_ARCH_DEFAULT_SPEC.
20284         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
20285         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
20286         (ARCH64_SUBDIR): Define.
20287         (LINK_ARCH64_SPEC): Redefine.
20288         (CC1_SPEC): Redefine.
20289         (OPTION_DEFAULT_SPECS): Redefine.
20290         (MULTILIB_DEFAULTS): Define.
20291         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
20292         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
20293         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
20294         (NO_DBX_BNSYM_ENSYM): Remove.
20295         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
20296         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
20297         (TARGET_ASM_NAMED_SECTION): Likewise.
20298         (STACK_CHECK_STATIC_BUILTIN): Remove.
20299         * config/sparc/sol2-bi.h: Remove.
20300         * config/sparc/sol2-gas-bi.h: Remove.
20301         * config/sparc/sol2-gas.h: Remove.
20302         * config/sparc/sol2-gld-bi.h: Remove.
20303         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
20304         common parts ...
20305         (*-*-solaris2*): ... here.
20306
20307 2011-06-21  Christian Bruel  <christian.bruel@st.com>
20308
20309         PR other/43564
20310         * ipa-inline.c (can_inline_edge_p): Check
20311         !DECL_DISREGARD_INLINE_LIMITS.
20312
20313 2011-06-21  Christian Bruel  <christian.bruel@st.com>
20314
20315         PR middle-end/49139
20316         * cgraphunit.c (process_function_and_variable_attributes): warn when
20317         always_inline functions that are not inline.
20318         * ipa-inline-transform.c (inline_transform): Always call
20319         optimize_inline.
20320         * tree-inline.c (tree_inlinable_function_p): Use error instead
20321         of sorry.
20322         (expand_call_inline): Likewise.
20323
20324 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
20325
20326         * Makefile.in (dg_target_exps): Set.
20327         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
20328         instead of 7, try to divide it more evenly.
20329
20330 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
20331
20332         PR target/49089
20333         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
20334         (avx256_split_unaligned_store): New definition.
20335         (ix86_option_override_internal): Enable avx256 unaligned load/store
20336         splitting only when avx256_split_unaligned_load/store is set.
20337
20338 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
20339
20340         * regrename.c (scan_rtx_reg): Handle the case where we write to an
20341         open chain in a smaller mode without failing the entire block.
20342
20343 2011-06-21  Alan Modra  <amodra@gmail.com>
20344
20345         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
20346         CONST high part large-toc address.
20347         (rs6000_tls_referenced_p): Make static.
20348         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
20349
20350 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20351
20352         PR target/49385
20353         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
20354         one of the operands is a register.
20355
20356 2011-06-20  Kai Tietz  <ktietz@redhat.com>
20357
20358         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
20359         operations in combination with binary and.
20360
20361 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
20362
20363         * regrename.c (do_replace): Don't update notes.
20364
20365 2011-06-20  Alan Modra  <amodra@gmail.com>
20366
20367         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
20368         of toc-relative address in CONST.
20369         (rs6000_delegitimize_address): Recognize changed address.
20370         (rs6000_legitimize_reload_address): Likewise.
20371         (rs6000_emit_move): Don't force these constants to memory.
20372         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
20373         toc-relative address in CONST.
20374         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
20375         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
20376
20377 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
20378
20379         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
20380         (count_trailing_zeros): Likewise.
20381
20382 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
20383
20384         PR other/49325
20385         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
20386         .init_array can be used with .ctors on targets.
20387         * configure: Regenerated.
20388
20389 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
20390
20391         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
20392         if the element type is volatile.
20393
20394 2011-06-18  Jan Hubicka  <jh@suse.cz>
20395
20396         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
20397         extra name aliases.
20398         (lto_symtab_resolve_can_prevail_p): Likewise.
20399         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
20400         * cgraphbuild.c (record_reference): Remove extra body alias code.
20401         (mark_load): Likewise.
20402         (mark_store): Likewise.
20403         * cgraph.h (varpool_node): Remove extra_name filed;
20404         add alias_of and extraname_alias.
20405         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
20406         (varpool_alias_aliased_node): New inline function.
20407         (varpool_variable_node): New function.
20408         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
20409         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
20410         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
20411         (input_varpool_node): Likewise.
20412         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
20413         (varpool_externally_visible_p): Remove extra body alias code.
20414         (function_and_variable_visibility): Likewise.
20415         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
20416         (ipa_pta_execute): Use it.
20417         * varpool.c (varpool_remove_node): Remove extra name alias code.
20418         (varpool_mark_needed_node): Likewise.
20419         (varpool_analyze_pending_decls): Analyze aliases.
20420         (assemble_aliases): New functoin.
20421         (varpool_assemble_decl): Use it.
20422         (varpool_create_variable_alias): New function.
20423         (varpool_extra_name_alias): Rewrite.
20424         (varpool_for_node_and_aliases): New function.
20425
20426 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
20427
20428         PR target/49411
20429         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
20430         last_arg_constant and last argument doesn't match its predicate,
20431         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
20432         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
20433         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
20434         spelling of error message.
20435         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
20436         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
20437         const_0_to_255_operand instead of const_int_operand.
20438
20439         Revert:
20440         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
20441
20442         * config/i386/sse.md (blendbits): Remove mode attribute.
20443         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
20444         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
20445         Check integer value of operand 3 in insn constraint.
20446
20447 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
20448
20449         PR rtl-optimization/48542
20450         * reload.c (find_equiv_reg): Stop looking when finding a
20451         setjmp-type call.
20452         * reload1.c (reload_as_needed): Invalidate all reload
20453         registers when crossing a setjmp-type call.
20454
20455 2011-06-16  Jeff Law  <law@redhat.com>
20456
20457         * tree-ssa-threadupdate.c (struct redirection_data): New field
20458         intermediate_edge.
20459         (THREAD_TARGET2): Define.
20460         (redirection_data_eq): Also check that the intermediate edge is equal.
20461         (lookup_redirection_data): Drop useless argument.  Extract the
20462         outgoing_edge and intermediate edge from E.  Callers updated.
20463         (copy_phi_args, update_destination_phis): New functions.
20464         (fix_duplicate_block_edges): Likewise.
20465         (create_edge_and_update_destination_phis): Duplicate all the edges
20466         hung off e->aux.  Use copy_phi_args.
20467         (create_duplicates): Use fix_duplicate_block_edges.
20468         (fixup_template_block): Likewise.
20469         (redirect_edges): If necessary, redirect the joiner block's incoming
20470         edge to the duplicate of the joiner block.
20471         (thread_block): Don't muck up loops when threading through a joiner
20472         block.
20473         (thread_through_loop_header): Handle threading through a joiner block.
20474         (mark_threaded_blocks, register_jump_thread): Likewise.
20475         * tree-flow.h (register_jump_thread): Add new argument.  Callers
20476         updated.
20477         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
20478         (thread_across_edge): Handle threading through a joiner block.
20479
20480 2011-06-16  Martin Jambor  <mjambor@suse.cz>
20481
20482         PR tree-optimization/49343
20483         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
20484         calculate offset, provide 2nd operand for the new COMPONENT_REF.
20485
20486 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
20487
20488         * config/darwin-protos.h (machopic_select_rtx_section): Move to
20489         inside RTX_CODE ifdef.
20490
20491 2011-06-16  Tom de Vries  <tom@codesourcery.com>
20492
20493         PR target/45098
20494         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
20495         Disallow NULL pointer for pointer arithmetic.
20496
20497 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20498
20499         PR target/49398
20500         Revert.
20501         2011-06-10  Wei Guozhi  <carrot@google.com>
20502
20503         PR target/45335
20504         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
20505         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
20506         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
20507         related peephole2.
20508         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
20509         related peephole2.
20510         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
20511         (arm_legitimate_ldrd_p): New prototype.
20512         (arm_output_ldrd): New prototype.
20513         * config/arm/arm.c (arm_check_ldrd_operands): New function.
20514         (arm_legitimate_ldrd_p): New function.
20515         (arm_output_ldrd): New function.
20516
20517 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
20518
20519         PR middle-end/46500
20520         * doc/tm.texi.in: Update Copyright date.
20521         * doc/tm.texi: Regenerate.
20522         * targhooks.c (default_setup_incoming_varargs): Replace
20523         CUMULATIVE_ARGS* argument type with cumulative_args_t.
20524         (default_pretend_outgoing_varargs_named): Likewise.
20525         (hook_pass_by_reference_must_pass_in_stack): Likewise.
20526         (hook_callee_copies_named): Likewise.
20527         (default_function_arg_advance): Likewise.
20528         (default_function_arg): Likewise.
20529         (default_function_incoming_arg): Likewise.
20530         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
20531         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
20532         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
20533         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
20534         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
20535         * targhooks.h (default_setup_incoming_varargs): Likewise.
20536         (default_pretend_outgoing_varargs_named): Likewise.
20537         (hook_pass_by_reference_must_pass_in_stack): Likewise.
20538         (hook_callee_copies_named): Likewise.
20539         (default_function_arg_advance): Likewise.
20540         (default_function_arg): Likewise.
20541         (default_function_incoming_arg): Likewise.
20542         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
20543         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
20544         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
20545         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
20546         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
20547         * target.def (pass_by_reference): Likewise.
20548         (setup_incoming_varargs, strict_argument_naming): Likewise.
20549         (pretend_outgoing_varargs_named, callee_copies): Likewise.
20550         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
20551         (function_incoming_arg): Likewise.
20552         * target.h: Don't include "tm.h" .
20553         (cumulative_args_t): New typedef.
20554         [GCC_TM_H] (get_cumulative_args): New static inline function.
20555         [GCC_TM_H] (pack_cumulative_args): Likewise.
20556         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
20557         argument type with cumulative_args_t.
20558         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
20559         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
20560         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
20561         (frv_arg_partial_bytes, frv_function_arg): Likewise.
20562         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
20563         (frv_function_arg_1): Likewise.
20564         * config/s390/s390.c (s390_pass_by_reference): Likewise.
20565         (s390_function_arg_advance, s390_function_arg): Likewise.
20566         * config/m32c/m32c.c (m32c_function_arg): Likewise.
20567         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
20568         (m32c_strict_argument_naming): Likewise.
20569         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
20570         (spu_function_arg_advance): Likewise.
20571         (spu_setup_incoming_varargs): Likewise.  Make static.
20572         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
20573         Remove prototype.
20574         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
20575         CUMULATIVE_ARGS* argument type with cumulative_args_t.
20576         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
20577         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
20578         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
20579         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
20580         (mep_pass_by_reference, mep_function_arg): Likewise.
20581         (mep_function_arg_advance): Likewise.
20582         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
20583         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
20584         (m32r_function_arg, m32r_function_arg_advance): Likewise.
20585         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
20586         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
20587         (ix86_function_arg, ix86_pass_by_reference): Likewise.
20588         (ix86_setup_incoming_varargs): Likewise.
20589         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
20590         (sh_strict_argument_naming): Likewise.
20591         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
20592         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
20593         (sh_function_arg_advance, sh_function_arg): Likewise.
20594         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
20595         (pdp11_function_arg_advance): Likewise.
20596         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
20597         Likewise.
20598         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
20599         * config/avr/avr.c (avr_function_arg): Likewise.
20600         (avr_function_arg_advance): Likewise.
20601         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
20602         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
20603         (xtensa_function_arg_1): Likewise.
20604         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
20605         Likewise.
20606         (xstormy16_function_arg): Likewise.
20607         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
20608         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
20609         (fr30_function_arg_advance): Likewise.
20610         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
20611         (lm32_function_arg, lm32_function_arg_advance): Likewise.
20612         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
20613         (moxie_function_arg, moxie_function_arg_advance): Likewise.
20614         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
20615         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
20616         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
20617         (cris_function_arg, cris_function_incoming_arg): Likewise.
20618         (cris_function_arg_advance, cris_function_arg_1): Likewise.
20619         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
20620         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
20621         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
20622         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
20623         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
20624         (mn10300_arg_partial_bytes): Likewise.
20625         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
20626         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
20627         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
20628         (ia64_function_arg_1): Likewise.
20629         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
20630         (m68k_function_arg): Likewise.
20631         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
20632         (rs6000_function_arg, setup_incoming_varargs): Likewise.
20633         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
20634         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
20635         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
20636         (picochip_arg_advance): Likewise.
20637         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
20638         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
20639         (mcore_function_arg_advance): Likewise.
20640         * config/score/score.c (score_pass_by_reference): Likewise.
20641         (score_function_arg_advance): Likewise.
20642         (score_arg_partial_bytes): Likewise.  Make static.
20643         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
20644         * config/arm/arm.c (arm_arg_partial_bytes): Replace
20645         CUMULATIVE_ARGS* argument type with cumulative_args_t.
20646         (arm_function_arg, arm_function_arg_advance): Likewise.
20647         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
20648         * config/pa/pa.c (pa_pass_by_reference): Likewise.
20649         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
20650         (pa_function_arg): Likewise.
20651         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
20652         (mips_function_arg, mips_function_arg_advance): Likewise.
20653         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
20654         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
20655         * config/vax/vax.c (vax_function_arg): Likewise.
20656         (vax_function_arg_advance): Likewise.
20657         * config/h8300/h8300.c (h8300_function_arg): Likewise.
20658         (h8300_function_arg_advance): Likewise.
20659         * config/v850/v850.c (v850_pass_by_reference): Likewise.
20660         (v850_strict_argument_naming, v850_function_arg): Likewise.
20661         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
20662         (v850_setup_incoming_varargs): Likewise.
20663         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
20664         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
20665         (mmix_function_arg, mmix_pass_by_reference): Likewise.
20666         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
20667         with const void *.
20668         * config/bfin/bfin.c (setup_incoming_varargs): Replace
20669         CUMULATIVE_ARGS* argument type with cumulative_args_t.
20670         (bfin_function_arg_advance, bfin_function_arg): Likewise.
20671         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
20672         * calls.c (emit_call_1): Change type of args_so_far to
20673         cumulative_args_t.  Changed all callers.
20674         (initialize_argument_information): Likewise.
20675         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
20676         * dse.c (get_call_args): Likewise.
20677         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
20678         * function.c (pass_by_reference, reference_callee_copied): Likewise.
20679         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
20680         New member args_so_far_v.  Changed all users.
20681         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
20682         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20683         * config/mips/mips.c (mips_output_args_xfer): Likewise.
20684         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
20685         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
20686         * config/microblaze/microblaze.c (microblaze_expand_prologue):
20687         Likewise.
20688         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
20689         m32r_pass_by_reference.
20690
20691 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
20692
20693         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
20694         argument to be a VEC of statements.
20695         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
20696         assert that pattern statements have to have their vector type set.
20697         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
20698         Change the first argument to be a VEC of statements.  Update
20699         documentation.
20700         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
20701         (vect_handle_widen_mult_by_const): New function.
20702         (vect_recog_widen_mult_pattern):  Change the first argument to be a
20703         VEC of statements.  Update documentation.  Check that the constant is
20704         INTEGER_CST.  Support multiplication by a constant that fits an
20705         intermediate type - call vect_handle_widen_mult_by_const.
20706         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
20707         call.  Handle additional pattern statements if necessary.
20708
20709 2011-06-16  Nick Clifton  <nickc@redhat.com>
20710
20711         PR target/49427
20712         * config.gcc: Set cpu_type to v850 for any V850 architecture.
20713         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
20714         md_file, extra_modes, out_file and extra_options are these are all
20715         deduced from cpu_type.
20716
20717 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
20718
20719         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
20720         truncation mask to 63.
20721
20722 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
20723
20724         PR target/49313
20725         PR target/29524
20726         * longlong.h: Add AVR support:
20727         (count_leading_zeros): New macro.
20728         (count_trailing_zeros): New macro.
20729         (COUNT_LEADING_ZEROS_0): New macro.
20730         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
20731         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
20732         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
20733         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
20734         (LIB2FUNCS_EXCLUDE): Add _clz.
20735         * config/avr/libgcc.S (XCALL): Move up in file.
20736         (XJMP): New C Macro.
20737         (DEFUN): New asm macro.
20738         (ENDF): New asm macro.
20739         (__ffssi2): New function.
20740         (__ffshi2): New function.
20741         (__loop_ffsqi2): New function.
20742         (__ctzsi2): New function.
20743         (__ctzhi2): New function.
20744         (__clzdi2): New function.
20745         (__clzsi2): New function.
20746         (__clzhi2): New function.
20747         (__paritydi2): New function.
20748         (__paritysi2): New function.
20749         (__parityhi2): New function.
20750         (__parityqi2): New function.
20751         (__popcounthi2): New function.
20752         (__popcountsi2): New function.
20753         (__popcountdi2): New function.
20754         (__popcountqi2): New function.
20755         (__bswapsi2): New function.
20756         (__bswapdi2): New function.
20757         (__ashldi3): New function.
20758         (__ashrdi3): New function.
20759         (__lshrdi3): New function.
20760         Fix suspicous lines.
20761
20762 2011-06-16  Richard Guenther  <rguenther@suse.de>
20763
20764         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
20765         the same as x != 0.
20766         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
20767         to (bool) X & 1.
20768         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
20769         equality compares against zero for the lower bit.
20770
20771 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
20772
20773         PR tree-optimization/49419
20774         * tree-vrp.c (execute_vrp): Call init_range_assertions
20775         before estimate_numbers_of_iterations, call
20776         free_number_of_iterations_estimates before calling
20777         remove_range_assertions.
20778
20779 2011-06-16  Revital Eres  <revital.eres@linaro.org>
20780
20781         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
20782         (struct partial_schedule): Add rows_length field.
20783         (verify_partial_schedule): Check rows_length.
20784         (ps_insert_empty_row): Handle rows_length.
20785         (create_partial_schedule): Likewise.
20786         (free_partial_schedule): Likewise.
20787         (reset_partial_schedule): Likewise.
20788         (create_ps_insn): Remove rest_count argument.
20789         (remove_node_from_ps): Update rows_length.
20790         (add_node_to_ps): Update rows_length and call create_ps_insn
20791         without passing row_rest_count.
20792         (rotate_partial_schedule): Update rows_length.
20793
20794 2011-06-16  Revital Eres  <revital.eres@linaro.org>
20795
20796         * ddg.c (add_intra_loop_mem_dep): New function.
20797         (build_intra_loop_deps): Call it.
20798
20799 2011-06-13  Jeff Law  <law@redhat.com>
20800
20801         * df-problems.c (df_lr_local_compute): Manually CSE
20802         PIC_OFFSET_TABLE_REGNUM.
20803         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
20804         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
20805
20806 2011-06-13  Jan Hubicka  <jh@suse.cz>
20807
20808         * cgraphunit.c (handle_alias_pairs): New function.
20809         (cgraph_finalize_compilation_unit): Use it.
20810         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
20811         as externally visible.
20812
20813 2011-06-15  Richard Guenther  <rguenther@suse.de>
20814
20815         * expr.c (expand_expr_real_2): Reduce all integral types to
20816         bitfield precision.
20817         (expand_expr_real_1): Likewise.
20818
20819 2011-06-15  Martin Jambor  <mjambor@suse.cz>
20820
20821         PR tree-optimization/48613
20822         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
20823         ipa_node_params_vector is NULL.
20824
20825 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
20826
20827         PR debug/49382
20828         * dwarf2out.c (dw_loc_list_node): Add force field.
20829         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
20830         location in the list, even if it is modified before first real insn.
20831         (output_loc_list): Emit empty ranges with force flag set.
20832         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
20833
20834 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
20835
20836         PR target/49349
20837         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
20838         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
20839         above a fence.  Update comments.
20840         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
20841         placed just above it.  Do not allow NULL place_to_insert.
20842
20843 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
20844
20845         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
20846         (slpeel_tree_peel_loop_to_edge): Don't call
20847         remove_dead_stmts_from_loop.
20848         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
20849         remove irrelevant pattern statements.  For irrelevant statements
20850         check if it is the last statement of a detected pattern, use
20851         corresponding pattern statement instead.
20852         (destroy_loop_vec_info): No need to remove pattern statements,
20853         only free stmt_vec_info.
20854         (vect_transform_loop): For irrelevant statements check if it is
20855         the last statement of a detected pattern, use corresponding
20856         pattern statement instead.
20857         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
20858         pattern statements.  Set basic block for the new statement.
20859         (vect_pattern_recog): Update documentation.
20860         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
20861         operands of pattern statements.
20862         (vectorizable_call): Fix printing.  In case of a pattern statement
20863         use the lhs of the original statement when creating a dummy
20864         statement to replace the original call.
20865         (vect_analyze_stmt): For irrelevant statements check if it is
20866         the last statement of a detected pattern, use corresponding
20867         pattern statement instead.
20868         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
20869         statements use gsi of the original statement.
20870
20871 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
20872
20873         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
20874         common/common-target-def.h.
20875         * target.def (default_target_flags, handle_option,
20876         supports_split_stack, optimization_table, init_struct,
20877         except_unwind_info, unwind_tables_default, have_named_sections):
20878         Move to common/common-target.def.
20879         * target.h (enum opt_levels, struct default_options): Move to
20880         common/common-target.h.
20881         * targhooks.c (default_except_unwind_info,
20882         dwarf2_except_unwind_info, sjlj_except_unwind_info,
20883         default_target_handle_option, empty_optimization_table): Move to
20884         common/common-targhooks.c.
20885         * targhooks.h (default_except_unwind_info,
20886         dwarf2_except_unwind_info, sjlj_except_unwind_info,
20887         default_target_handle_option, empty_optimization_table): Move to
20888         common/common-targhooks.h.
20889         * common/common-target-def.h: Include common/common-targhooks.h.
20890         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
20891         defined.
20892         * common/common-target.def (handle_option, option_init_struct,
20893         option_optimization_table, default_target_flags,
20894         except_unwind_info, supports_split_stack, unwind_tables_default,
20895         have_named_sections): Move from target.def.
20896         (HOOK_PREFIX): Undefine at end of file.
20897         * common/common-target.h: Include input.h.
20898         (enum opt_levels, struct default_options): Move from target.h.
20899         * common/common-targhooks.c, common/common-targhooks.h: New.
20900         * config.gcc (target_has_targetm_common): Default to yes.
20901         (moxie*): Set target_has_targetm_common=no.
20902         (hppa*-*-*): Don't set target_has_targetm_common=yes.
20903         * doc/tm.texi: Regenerate.
20904         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
20905         (C_TARGET_DEF_H): Add common/common-targhooks.h.
20906         (GCC_OBJS): Remove vec.o.
20907         (OBJS): Remove hooks.o and vec.o.
20908         (OBJS-libcommon-target): Add vec.o, hooks.o and
20909         common/common-targhooks.o.
20910         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
20911         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
20912         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
20913         cfglayout.o, $(out_object_file), $(common_out_object_file)):
20914         Update dependencies.
20915         (common/common-targhooks.o): New.
20916         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
20917         * common/config/pa/pa-common.c: Include more headers.  Take
20918         copyright dates from pa.c.
20919         (pa_option_optimization_table, pa_handle_option,
20920         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
20921         TARGET_HANDLE_OPTION): Move from pa.c.
20922         * common/config/alpha/alpha-common.c,
20923         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
20924         common/config/bfin/bfin-common.c,
20925         common/config/cris/cris-common.c,
20926         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
20927         common/config/h8300/h8300-common.c,
20928         common/config/i386/i386-common.c,
20929         common/config/ia64/ia64-common.c,
20930         common/config/iq2000/iq2000-common.c,
20931         common/config/lm32/lm32-common.c,
20932         common/config/m32c/m32c-common.c,
20933         common/config/m32r/m32r-common.c,
20934         common/config/m68k/m68k-common.c,
20935         common/config/mcore/mcore-common.c,
20936         common/config/mep/mep-common.c,
20937         common/config/microblaze/microblaze-common.c,
20938         common/config/mips/mips-common.c,
20939         common/config/mmix/mmix-common.c,
20940         common/config/mn10300/mn10300-common.c,
20941         common/config/pdp11/pdp11-common.c,
20942         common/config/picochip/picochip-common.c,
20943         common/config/rs6000/rs6000-common.c,
20944         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
20945         common/config/score/score-common.c, common/config/sh/sh-common.c,
20946         common/config/sparc/sparc-common.c,
20947         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
20948         common/config/vax/vax-common.c,
20949         common/config/xstormy16/xstormy16-common.c,
20950         common/config/xtensa/xtensa-common.c: New.
20951         * config/alpha/alpha.c: Include common/common-target.h.
20952         (alpha_option_optimization_table, alpha_handle_option,
20953         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
20954         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
20955         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
20956         * config/arm/arm.c (arm_option_optimization_table,
20957         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
20958         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
20959         arm-common.c.
20960         * config/avr/avr.c (avr_option_optimization_table,
20961         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
20962         to avr-common.c.
20963         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
20964         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
20965         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
20966         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
20967         * config/cris/cris.c (cris_option_optimization_table,
20968         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
20969         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
20970         cris-common.c.
20971         * config/fr30/fr30.c (fr30_option_optimization_table,
20972         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
20973         to fr30-common.c.
20974         * config/frv/frv.c (frv_option_optimization_table,
20975         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
20976         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
20977         * config/h8300/h8300.c (h8300_option_optimization_table,
20978         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
20979         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
20980         * config/i386/i386-protos.h (ix86_handle_option): Declare.
20981         * config/i386/i386.c: Include common/common-target.h.
20982         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
20983         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
20984         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
20985         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
20986         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
20987         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
20988         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
20989         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
20990         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
20991         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
20992         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
20993         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
20994         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
20995         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
20996         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
20997         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
20998         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
20999         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
21000         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
21001         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
21002         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
21003         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
21004         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
21005         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
21006         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
21007         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
21008         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
21009         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
21010         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
21011         ix86_option_optimization_table, ix86_option_init_struct,
21012         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
21013         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
21014         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
21015         i386-common.c.
21016         * config/i386/t-i386 (i386.o): Update dependencies.
21017         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
21018         * config/ia64/ia64.c (ia64_option_optimization_table,
21019         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
21020         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21021         ia64_handle_option): Move to ia64-common.c.
21022         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
21023         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
21024         * config/lm32/lm32.c (lm32_option_optimization_table,
21025         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
21026         to lm32-common.c.
21027         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
21028         m32c-common.c.
21029         * config/m32r/m32r.c (m32r_option_optimization_table,
21030         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21031         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
21032         m32r_handle_option): Move to m32r-common.c.
21033         (m32r_memory_move_cost): Remove comment referring to
21034         TARGET_HANDLE_OPTION.
21035         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
21036         Move to m68k-common.c.
21037         * config/mcore/mcore.c (mcore_option_optimization_table,
21038         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21039         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
21040         * config/mep/mep.c (mep_option_optimization_table,
21041         mep_handle_option, TARGET_HANDLE_OPTION,
21042         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
21043         Move to mep-common.c.
21044         * config/microblaze/microblaze.c
21045         (microblaze_option_optimization_table,
21046         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21047         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
21048         * config/mips/mips.c (mips_handle_option,
21049         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
21050         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
21051         mips-common.c.
21052         * config/mmix/mmix.c (mmix_option_optimization_table,
21053         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
21054         Move to mmix-common.c.
21055         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
21056         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
21057         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21058         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
21059         * config/pa/pa.c: Include common/common-target.h.
21060         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
21061         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21062         pa_handle_option): Move to pa-common.c.
21063         (pa_option_override): Use targetm_common.except_unwind_info.
21064         (pa_asm_output_mi_thunk, pa_function_section): Use
21065         targetm_common.have_named_sections.
21066         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
21067         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21068         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
21069         pdp11_handle_option, pdp11_option_init_struct): Move to
21070         pdp11-common.c.
21071         * config/picochip/picochip.c (picochip_option_optimization_table,
21072         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
21073         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
21074         * config/rs6000/rs6000.c: Include common/common-target.h.
21075         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
21076         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
21077         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
21078         rs6000_handle_option): Move to rs6000-common.c.
21079         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
21080         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
21081         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
21082         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
21083         * config/s390/s390.c (processor_flags_table,
21084         s390_option_optimization_table, s390_option_init_struct,
21085         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
21086         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
21087         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
21088         * config/s390/s390.h (processor_flags_table): Declare.
21089         * config/score/score.c (score_option_optimization_table,
21090         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21091         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
21092         score_handle_option): Move to score-common.c.
21093         * config/sh/sh.c (sh_option_optimization_table,
21094         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
21095         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21096         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
21097         * config/sparc/sparc.c: Include common/common-target.h.
21098         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
21099         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
21100         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
21101         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
21102         spu_option_init_struct): Move to spu-common.c.
21103         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
21104         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
21105         * config/v850/v850.c (small_memory_physical_max,
21106         v850_handle_memory_optionn v850_handle_option,
21107         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
21108         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
21109         v850-common.c.
21110         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
21111         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
21112         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
21113         Move to xtensa-common.c.
21114         * cfglayout.c: Include common/common-target.h.
21115         (fixup_reorder_chain): Use targetm_common.have_named_sections.
21116         * cfgrtl.c: Include common/common-target.h.
21117         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
21118         targetm_common.have_named_sections.
21119         * dbxout.c: Include common/common-target.h.
21120         (dbxout_function_end): Use targetm_common.have_named_sections.
21121         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
21122         targetm_common.except_unwind_info.
21123         * dwarf2out.c: Include common/common-target.h.
21124         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
21125         dwarf2out_begin_prologue, dwarf2out_frame_init,
21126         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
21127         targetm_common.except_unwind_info.
21128         * except.c: Include common/common-target.h.
21129         (init_eh, finish_eh_generation,
21130         output_one_function_exception_table): Use
21131         targetm_common.except_unwind_info.
21132         (switch_to_exception_section): Use targetm_common.have_named_sections.
21133         * explow.c: Include common/common-target.h.
21134         * expr.c: Include common/common-target.h.
21135         (build_personality_function): Use targetm_common.except_unwind_info.
21136         * function.c: Include common/common-target.h.
21137         (expand_function_end): Use targetm_common.except_unwind_info.
21138         * haifa-sched.c: Include common/common-target.h.
21139         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
21140         * lto-opts.c: Include common/common-target.h instead of target.h.
21141         (lto_reissue_options): Use targetm_common.handle_option.
21142         * opts.c: Include common/common-target.h.
21143         (target_handle_option): Use targetm_common.handle_option.
21144         (init_options_struct): Update comment referring to
21145         targetm.target_option.optimization.  Use
21146         targetm_common.default_target_flags,
21147         targetm_common.unwind_tables_default and
21148         targetm_common.option_init_struct.
21149         (default_options_optimization): Use
21150         targetm_common.option_optimization_table.
21151         (finish_options): Use targetm_common.except_unwind_info,
21152         targetm_common.unwind_tables_default,
21153         targetm_common.have_named_sections and
21154         targetm_common.supports_split_stack.
21155         * toplev.c: Include common/common-target.h.
21156         (process_options): Use targetm_common.have_named_sections.
21157         * tree-tailcall.c: Include common/common-target.h.
21158         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
21159         * tree.c: Include common/common-target.h.
21160         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
21161         * varasm.c: Include common/common-target.h.
21162         (resolve_unique_section, hot_function_section,
21163         default_function_section): Use targetm_common.have_named_sections.
21164
21165 2011-06-14  Easwaran Raman  <eraman@google.com>
21166
21167         PR rtl-optimization/44194
21168         * dse.c: Include tree-flow.h
21169         (insn_info): Add new field non_frame_wild_read.
21170         (group_info): Add new fields escaped_n and escaped_p.
21171         (kill_on_calls): New variable.
21172         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
21173         (dse_step0): Initialize kill_on_calls.
21174         (can_escape): New function.
21175         (set_usage_bits): Add additional parameter; record information
21176         about escaped locations.
21177         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
21178         (dse_step2_nospill): Set kill_on_calls based on
21179         group->escaped_n and group->escaped_n.
21180         (add_wild_read): Refactor into...
21181         (reset_active_stores): ... New function, and
21182         (free_read_records): ... New function.
21183         (add_non_frame_wild_read): New function.
21184         (scan_insn): Call add_non_frame_wild_read on non-const calls.
21185         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
21186         (dse_step5_nospill): Call scan_reads_nospill for instructions
21187         marked as non_frame_wild_read.
21188         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
21189
21190 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
21191
21192         * common/common-target-def.h, common/common-target.def,
21193         common/common-target.h, common/config/default-common.c,
21194         common/config/pa/pa-common.c: New files.
21195         * Makefile.in (common_out_file, common_out_object_file,
21196         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
21197         (OBJS-libcommon-target): Include $(common_out_object_file).
21198         (prefix.o): Update dependencies.
21199         ($(common_out_object_file), common/common-target-hooks-def.h,
21200         s-common-target-hooks-def-h): New.
21201         (s-tm-texi): Also check timestamp on common-target.def.
21202         (build/genhooks.o): Update dependencies.
21203         * config.gcc (common_out_file, target_has_targetm_common): Define.
21204         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
21205         TARGET_ALWAYS_STRIP_DOTDOT.
21206         * configure.ac (common_out_object_file): Define.
21207         (common_out_file, common_out_object_file): Substitute.
21208         (common): Create directory.
21209         * configure: Regenerate.
21210         * doc/tm.texi.in (targetm_common): Document.
21211         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
21212         * doc/tm.texi: Regenerate.
21213         * genhooks.c (hook_array): Also include common/common-target.def.
21214         * prefix.c (tm.h): Don't include.
21215         (common/common-target.h): Include.
21216         (ALWAYS_STRIP_DOTDOT): Don't define.
21217         (update_path): Use targetm_common.always_strip_dotdot instead of
21218         ALWAYS_STRIP_DOTDOT.
21219         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
21220
21221 2011-06-14  David Li  <davidxl@google.com>
21222
21223         * passes.c (execute_function_todo): Remove TODO_dump_func.
21224         (execute_one_pass): Remove TODO_dump_func.
21225         (execute_function_dump): New function.
21226         * tree-vrp.c: Remove TODO_dump_func.
21227         * regrename.c: Remove TODO_dump_func.
21228         * fwprop.c: Remove TODO_dump_func.
21229         * tree-into-ssa.c: Remove TODO_dump_func.
21230         * tree-complex.c: Remove TODO_dump_func.
21231         * tracer.c: Remove TODO_dump_func.
21232         * tree-loop-distribution.c: Remove TODO_dump_func.
21233         * postreload-gcse.c: Remove TODO_dump_func.
21234         * postreload.c: Remove TODO_dump_func.
21235         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
21236         * tree-tailcall.c: Remove TODO_dump_func.
21237         * ipa-cp.c: Remove TODO_dump_func.
21238         * final.c: Remove TODO_dump_func.
21239         * tree-emutls.c: Remove TODO_dump_func.
21240         * omp-low.c: Remove TODO_dump_func.
21241         * tree-ssa-dse.c: Remove TODO_dump_func.
21242         * tree-ssa-uncprop.c: Remove TODO_dump_func.
21243         * auto-inc-dec.c: Remove TODO_dump_func.
21244         * reorg.c: Remove TODO_dump_func.
21245         * tree-ssa-copyrename.c: Remove TODO_dump_func.
21246         * tree-ssa-ccp.c: Remove TODO_dump_func.
21247         * compare-elim.c: Remove TODO_dump_func.
21248         * mode-switching.c: Remove TODO_dump_func.
21249         * modulo-sched.c: Remove TODO_dump_func.
21250         * tree-call-cdce.c: Remove TODO_dump_func.
21251         * cse.c: Remove TODO_dump_func.
21252         * web.c: Remove TODO_dump_func.
21253         * tree-stdarg.c: Remove TODO_dump_func.
21254         * lto-streamer-out.c: Remove TODO_dump_func.
21255         * tree-ssa-math-opts.c: Remove TODO_dump_func.
21256         * tree-ssa-dom.c: Remove TODO_dump_func.
21257         * tree-nrv.c: Remove TODO_dump_func.
21258         * loop-init.c: Remove TODO_dump_func.
21259         * gimple-low.c: Remove TODO_dump_func.
21260         * ipa-inline.c: Remove TODO_dump_func.
21261         * tree-ssa-sink.c: Remove TODO_dump_func.
21262         * jump.c: Remove TODO_dump_func.
21263         * ifcvt.c: Remove TODO_dump_func.
21264         * tree-ssa-loop.c: Remove TODO_dump_func.
21265         * recog.c: Remove TODO_dump_func.
21266         * dse.c: Remove TODO_dump_func.
21267         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
21268         * matrix-reorg.c: Remove TODO_dump_func.
21269         * tree-eh.c: Remove TODO_dump_func.
21270         * regmove.c: Remove TODO_dump_func.
21271         * function.c: Remove TODO_dump_func.
21272         * tree-vectorizer.c: Remove TODO_dump_func.
21273         * ipa-split.c: Remove TODO_dump_func.
21274         * gcse.c: Remove TODO_dump_func.
21275         * tree-if-conv.c: Remove TODO_dump_func.
21276         * init-regs.c: Remove TODO_dump_func.
21277         * tree-ssa-phiopt.c: Remove TODO_dump_func.
21278         * implicit-zee.c: Remove TODO_dump_func.
21279         * lower-subreg.c: Remove TODO_dump_func.
21280         * bt-load.c: Remove TODO_dump_func.
21281         * tree-dfa.c: Remove TODO_dump_func.
21282         * except.c: Remove TODO_dump_func.
21283         * emit-rtl.c: Remove TODO_dump_func.
21284         * store-motion.c: Remove TODO_dump_func.
21285         * cfgexpand.c: Remove TODO_dump_func.
21286         * tree-cfgcleanup.c: Remove TODO_dump_func.
21287         * cfgcleanup.c: Remove TODO_dump_func.
21288         * tree-ssa-pre.c: Remove TODO_dump_func.
21289         * tree-sra.c: Remove TODO_dump_func.
21290         * tree-mudflap.c: Remove TODO_dump_func.
21291         * tree-ssa-copy.c: Remove TODO_dump_func.
21292         * cfglayout.c: Remove TODO_dump_func.
21293         * tree-ssa-forwprop.c: Remove TODO_dump_func.
21294         * tree-ssa-dce.c: Remove TODO_dump_func.
21295         * ira.c: Remove TODO_dump_func.
21296         * tree-ssa.c: Remove TODO_dump_func.
21297         * integrate.c: Remove TODO_dump_func.
21298         * tree-optimize.c: Remove TODO_dump_func.
21299         * tree-ssa-phiprop.c: Remove TODO_dump_func.
21300         * tree-object-size.c: Remove TODO_dump_func.
21301         * combine.c: Remove TODO_dump_func.
21302         * bb-reorder.c: Remove TODO_dump_func.
21303         * cprop.c: Remove TODO_dump_func.
21304         * var-tracking.c: Remove TODO_dump_func.
21305         * tree-profile.c: Remove TODO_dump_func.
21306         * tree-vect-generic.c: Remove TODO_dump_func.
21307         * reg-stack.c: Remove TODO_dump_func.
21308         * sched-rgn.c: Remove TODO_dump_func.
21309         * tree-ssa-structalias.c: Remove TODO_dump_func.
21310         * tree-switch-conversion.c: Remove TODO_dump_func.
21311         * tree-cfg.c: Remove TODO_dump_func.
21312         * tree-ssa-reassoc.c: Remove TODO_dump_func.
21313         * combine-stack-adj.c: Remove TODO_dump_func.
21314         * dce.c: Remove TODO_dump_func.
21315         * tree-ssanames.c: Remove TODO_dump_func.
21316         * regcprop.c: Remove TODO_dump_func.
21317
21318 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
21319
21320         PR middle-end/47364
21321         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
21322         and properly handle result not in Pmode.
21323
21324 2011-06-14  Robert Millan  <rmh@gnu.org>
21325
21326         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
21327         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
21328         `config/linux.h'.
21329
21330         * config/i386/kfreebsd-gnu64.h: New file.
21331         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
21332         with `i386/kfreebsd-gnu64.h'.
21333
21334         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
21335         (GNU_USER_LINK_EMULATION64): New macros.
21336         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
21337         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
21338         of hardcoding `elf_i386' and `elf_x86_64'.
21339
21340 2011-06-14  Nick Clifton  <nickc@redhat.com>
21341
21342         PR target/49403
21343         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
21344
21345         PR target/49402
21346         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
21347
21348 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
21349
21350         PR fortran/49103
21351         * tree.h (DECL_NONSHAREABLE): Define.
21352         (struct tree_decl_common): Change decl_common_unused to
21353         decl_nonshareable_flag.
21354         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
21355         Ignore vars with DECL_NONSHAREABLE bit set.
21356         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
21357         on stores to automatic aggregate vars.
21358
21359         PR rtl-optimization/49390
21360         Revert:
21361         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
21362
21363         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
21364         MEM_ALIAS_SET.
21365
21366 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
21367             Tom de Vries  <tom@codesourcery.com>
21368
21369         PR target/45098
21370         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
21371         Document changed semantics.
21372         (max_stmt_executions, max_stmt_executions_int): Declare.
21373         * tree-data-ref.c (estimated_loop_iterations)
21374         (estimated_loop_iterations_int): Move functions...
21375         * tree-ssa-loop-niter.c (estimated_loop_iterations)
21376         (estimated_loop_iterations_int): here.
21377         (record_estimate): Change nb_iterations_upper_bound and
21378         nb_iterations_estimate semantics.
21379         (max_stmt_executions, max_stmt_executions_int): New function.
21380         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
21381         (max_stmt_executions_tree): this.
21382         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
21383         estimated_loop_iterations_tree.
21384         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
21385         max_stmt_executions_int instead of estimated_loop_iterations_int.
21386         * predict.c (predict_loops): Idem.
21387         * tree-parloops.c (parallelize_loops): Idem.
21388         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
21389         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
21390         (init_omega_for_ddr_1): Idem.
21391         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
21392         (loop_prefetch_arrays): Idem
21393         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
21394         max_stmt_executions instead of estimated_loop_iterations.
21395         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
21396         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
21397         instead of nb_iterations_upper_bound.
21398
21399 2011-06-13  Jan Hubicka  <jh@suse.cz>
21400
21401         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
21402
21403 2011-06-14  Richard Henderson  <rth@redhat.com>
21404
21405         PR debug/48459
21406         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
21407         (based_loc_descr): Assert it's true.
21408         (compute_frame_pointer_to_fb_displacement): Set it, rather than
21409         aborting immediately.
21410
21411 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
21412             Mingfeng Wu  <mingfeng@faraday-tech.com>
21413
21414         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
21415
21416 2011-06-13  Jan Hubicka  <jh@suse.cz>
21417
21418         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
21419
21420 2011-06-13  Jan Hubicka  <jh@suse.cz>
21421
21422         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
21423         similarly to DECL_COMDAT.
21424         * cgraphunit.c (cgraph_analyze_function): Likewise.
21425         * ipa.c (function_and_variable_visibility): Likewise.
21426
21427 2011-06-13  Jan Hubicka  <jh@suse.cz>
21428
21429         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
21430         BINFO_VIRTUALS when streaming for ltrans unit.
21431
21432 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
21433
21434         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
21435         (movdi_internal64): Same.
21436
21437 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
21438
21439         PR target/44618
21440         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
21441         a set of similar patterns, where the MATCH_OPERAND for the function
21442         argument is replaced with individual references to hardware registers.
21443         (save_fpregs_<mode>): Ditto
21444         (restore_gpregs_<mode>): Ditto
21445         (return_and_restore_gpregs_<mode>): Ditto
21446         (return_and_restore_fpregs_<mode>): Ditto
21447         (return_and_restore_fpregs_aix_<mode>): Ditto
21448
21449 2011-06-13  Jan Hubicka  <jh@suse.cz>
21450
21451         * ipa-utils.c (postorder_stack): New structure.
21452         (ipa_reverse_postorder): Handle aliases.
21453
21454 2011-06-13  Jan Hubicka  <jh@suse.cz>
21455
21456         * ipa-inline.c (reset_edge_caches): Walk aliases.
21457         (update_caller_keys): Do not test inlinability of aliases.
21458         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
21459         (do_estimate_growth): Fix typo.
21460
21461 2011-06-13  Jan Hubicka  <jh@suse.cz>
21462
21463         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
21464         (can_remove_node_now_p): ... here; handle same comdat groups.
21465         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
21466         (inline_call): Update use of can_remove_node_now_p.
21467
21468 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
21469
21470         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
21471         condition to disallow non-identical memory locations.
21472         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
21473         preference to bit manipulation instructions.
21474
21475 2011-06-13  Jan Hubicka  <jh@suse.cz>
21476
21477         * cgraph.c (cgraph_for_node_thunks_and_aliases,
21478         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
21479         (nonremovable_p): New function.
21480         (cgraph_can_remove_if_no_direct_calls_p): New function.
21481         (used_from_object_file_p): New functoin.
21482         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
21483         references from aliases.
21484         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
21485         * ipa-inline.c (check_caller_edge): New function.
21486         (want_inline_function_called_once_p): Use it; accept aliases called
21487         once, too.
21488         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
21489
21490 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21491
21492         PR target/48454
21493         * config/arm/neon.md (vec_pack_trunc): Set the lengths
21494         correctly for the case with Quad vectors.
21495
21496 2011-06-13  Jakub Jelinek  <jakub@redhat.com>
21497             Ira Rosen  <ira.rosen@linaro.org>
21498
21499         PR tree-optimization/49352
21500         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
21501         all, make sure loop_use_stmt after the loop is a def stmt of a used
21502         SSA_NAME that is the only one defined inside of the loop.  Don't
21503         check for COND_EXPR and GIMPLE_BINARY_RHS.
21504         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
21505         check_reduction is true.
21506
21507 2011-06-11  Jan Hubicka  <jh@suse.cz>
21508
21509         PR middle-end/49373
21510         * ipa.c (cgraph_externally_visible_p): Check resolution info.
21511
21512 2011-06-11  Jan Hubicka  <jh@suse.cz>
21513
21514         PR middle-end/48836
21515         * ipa-inline-transform.c: Include tree-pass.h
21516         (inline_transform): Set TODO_update_ssa_only_virtuals.
21517         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
21518
21519 2011-06-11  Jan Hubicka  <jh@suse.cz>
21520
21521         PR middle-end/49378
21522         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
21523         aliases and thunks.
21524
21525 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
21526
21527         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
21528         Take number of iterations to peel into account for equally frequent
21529         misalignment values.
21530
21531 2011-06-11  Jan Hubicka  <jh@suse.cz>
21532
21533         * lto-streamer-out.c (produce_symtab): Stream out the newly
21534         represented aliases.
21535
21536 2011-06-11  Jan Hubicka  <jh@suse.cz>
21537
21538         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
21539         varying args.
21540         (ipa_update_after_lto_read): Likewise.
21541         (ipa_write_node_info): Do not sream call_with_var_arguments.
21542         (ipa_read_node_info): Likewise.
21543
21544 2011-06-11  Jan Hubicka  <jh@suse.cz>
21545
21546         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
21547
21548 2011-06-11  Jan Hubicka  <jh@suse.cz>
21549
21550         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
21551         (lto_symtab_resolve_can_prevail_p): Likewise.
21552         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
21553         * cgraph.c (same_body_aliases_done): New global var.
21554         (cgraph_same_body_alias_1): Rename to ...
21555         (cgraph_create_function_alias): ... this one; reorg to new
21556         representation.
21557         (cgraph_same_body_alias): Use cgraph_create_function_alias;
21558         record references when asked to.
21559         (cgraph_add_thunk): Fix formating.
21560         (cgraph_get_node): Kill same body alias code.
21561         (cgraph_node_for_asm): Likewise.
21562         (cgraph_remove_same_body_alias): Remove.
21563         (cgraph_remove_node): Kill same body alias code.
21564         (cgraph_mark_address_taken_node): Mark also the aliased function
21565         as having address taken.
21566         (dump_cgraph_node): Dump same body aliases.
21567         (cgraph_for_node_thunks_and_aliases): Update for new alias
21568         representation.
21569         (cgraph_for_node_and_aliases): Likewise.
21570         * cgraph.h (same_body): Kll pointer.
21571         (same_body_alias): Update comment.
21572         (same_body_aliases_done): Declare.
21573         (cgraph_remove_same_body_alias): Remove declaration.
21574         (cgraph_create_function_alias): Declare.
21575         (cgraph_process_same_body_aliases): Declare.
21576         (cgraph_function_with_gimple_body_p): Check for alias.
21577         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
21578         (cgraph_alias_aliased_node): New function.
21579         (cgraph_function_node): Update for new aliases.
21580         (cgraph_function_or_thunk_node): Likewise.
21581         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
21582         (inline_call): Remove dead aliases.
21583         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
21584         name hack for same body aliases.
21585         (clone_of_p): Look through aliases.
21586         (verify_cgraph_node): Verify aliases.
21587         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
21588         (cgraph_process_same_body_aliases): New function.
21589         (process_function_and_variable_attributes): Disable weakref warning on
21590         alias.
21591         (cgraph_analyze_functions): Handle aliases.
21592         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
21593         (assemble_thunks): Rename to ...
21594         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
21595         (cgraph_expand_function): Remove alias output code.
21596         (cgraph_output_in_order): Skip aliases.
21597         (cgraph_preserve_function_body_p): Aliases don't need preserving.
21598         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
21599         (ipa_record_reference): Do not assert on alias references.
21600         (ipa_ref_has_aliases_p): New function.
21601         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
21602         (ipa_ref_has_aliases_p): Declare.
21603         * lto-cgraph.c (lto_output_node): Handle aliases.
21604         (input_node): Likewise.
21605         * lto-streamer-out.c (lto_output): Skip aliases.
21606         (produce_symtab): Kill same_body_alias code.
21607         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
21608         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
21609         * ipa-inline.c (update_caller_keys): Walk aliases.
21610         (inline_small_functions): Fix thinko in previous patch.
21611         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
21612         (function_and_variable_visibility): Do not walk same body aliases.
21613         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
21614         (ipa_pta_execute): Use it.
21615
21616 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
21617
21618         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
21619         (*vec_dupv2df): Rename from vec_dupv2df.
21620         (vec_dupv2df): New expander.
21621
21622 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
21623
21624         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
21625
21626 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
21627
21628         * config/i386/i386.md: Use default value in "isa" attribute.
21629         * config/i386/sse.md: Ditto.
21630         * config/i386/mmx.md: Ditto.
21631
21632 2011-06-10  Wei Guozhi  <carrot@google.com>
21633
21634         PR target/45335
21635         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
21636         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
21637         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
21638         related peephole2.
21639         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
21640         related peephole2.
21641         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
21642         (arm_legitimate_ldrd_p): New prototype.
21643         (arm_output_ldrd): New prototype.
21644         * config/arm/arm.c (arm_check_ldrd_operands): New function.
21645         (arm_legitimate_ldrd_p): New function.
21646         (arm_output_ldrd): New function.
21647
21648 2011-06-10  David Li  <davidxl@google.com>
21649
21650         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
21651         * passes.c (passr_eq): New function.
21652         (create_pass_tab): New function.
21653         (pass_traverse): New function.
21654         (dump_one_pass): New function.
21655         (dump_pass_list): New function.
21656         (dump_passes): New function.
21657
21658 2011-06-10  Jan Hubicka  <jh@suse.cz>
21659
21660         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
21661         setting the nothrow flag.
21662         * ipa-reference.c (propagate): Skip aliases.
21663         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
21664         (propagate_nothrow): Skip aliases; do not update cgraph.
21665         (local_pure_const): Do not update cgraph.
21666         * tree-profile.c (tree_profiling): Do fixup_cfg.
21667
21668 2011-06-10  Jan Hubicka  <jh@suse.cz>
21669
21670         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
21671         (cgraph_local_node_p): ... here; handle aliases.
21672         (has_addr_references_p): Break out from ...;
21673         (cgraph_remove_unreachable_nodes) ... here.
21674
21675 2011-06-10  Jan Hubicka  <jh@suse.cz>
21676
21677         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
21678         * common.opt (flag_inline_functions_called_once): Do not
21679         initialize to 1.
21680
21681 2011-06-10  Jan Hubicka  <jh@suse.cz>
21682
21683         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
21684         (ipcp_initialize_node_lattices): Do not deal with aliases;
21685         Do not try to propagate through thunks.
21686         (ipcp_change_tops_to_bottom): Do not deal with aliases.
21687
21688 2011-06-10  Jan Hubicka  <jh@suse.cz>
21689
21690         * ipa-prop.c (ipa_write_node_info): Stream jump functions
21691         for indirect calls.
21692         (ipa_read_node_info): Likewise.
21693
21694 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21695
21696         PR lto/49302
21697         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
21698         (build_and_insert_call): Likewise.
21699         (build_and_insert_ref): New.
21700         (gimple_expand_builtin_pow): Minor cleanup.
21701         (gimple_expand_builtin_cabs): New.
21702         (execute_cse_sincos): Add case for BUILT_IN_CABS.
21703
21704 2011-06-10  Jan Hubicka  <jh@suse.cz>
21705
21706         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
21707         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
21708         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
21709         (ipcp_propagate_stage): Skip aliases when propagating.
21710         (ipcp_need_redirect_p): Skip aliases.
21711         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
21712         collect_callers_of_node.
21713         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
21714         for aliases.
21715         (ipa_compute_jump_functions): Look through aliases.
21716
21717 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21718
21719         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
21720
21721 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
21722
21723         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
21724         Adjust comments.
21725         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
21726
21727 2011-06-10  Jan Hubicka  <jh@suse.cz>
21728
21729         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
21730         Update call of gimple_get_virt_method_for_binfo.
21731         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
21732         refuse_thunks parameter.
21733         (gimple_fold_call): Update.
21734         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
21735
21736 2011-06-10  Jan Hubicka  <jh@suse.cz>
21737
21738         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
21739         (not_all_callers_have_enough_arguments_p): ... this one; turn into
21740         worker for cgraph_for_node_and_aliases.
21741         (convert_callers_for_node): Break out from ...
21742         (convert_callers): ... here.
21743         (modify_function): Use collect_callers_of_node.
21744         (ipa_early_sra): Use cgraph_for_node_and_aliases.
21745
21746 2011-06-10  Richard Guenther  <rguenther@suse.de>
21747
21748         PR tree-optimization/49361
21749         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
21750         when not already in gimple form.
21751
21752 2011-06-10  Richard Guenther  <rguenther@suse.de>
21753
21754         PR bootstrap/49344
21755         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
21756         FOR_EACH_PHI_OR_STMT_USE.
21757
21758 2011-06-10  Jan Hubicka  <jh@suse.cz>
21759
21760         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
21761         (clone_inlined_nodes): ... here.
21762         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
21763         to real destination prior inlining.
21764         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
21765         can_early_inline_edge_p, want_early_inline_function_p,
21766         want_early_inline_function_p, want_inline_small_function_p,
21767         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
21768         edge_badness, update_all_callee_keys, lookup_recursive_calls,
21769         add_new_edges_to_heap, inline_small_functions, flatten_function,
21770         inline_always_inline_functions, early_inline_small_functions): Use
21771         cgraph_function_or_thunk_node.
21772         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
21773         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
21774         (do_estimate_edge_growth_1): Break out from ...
21775         (do_estimate_growth) ... here; walk aliases.
21776         (inline_generate_summary): Skip aliases.
21777
21778 2011-06-10  Richard Guenther  <rguenther@suse.de>
21779
21780         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
21781         forward when combining, visit inserted stmts when a stmt was changed.
21782
21783 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
21784
21785         * tree.h (error_operand_p): Add.
21786         * dbxout.c (dbxout_type_fields): Use the latter.
21787         * c-decl.c (add_stmt): Likewise.
21788         * gimplify.c (omp_add_variable, omp_notice_variable,
21789         gimplify_scan_omp_clauses): Likewise.
21790
21791 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
21792
21793         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
21794         when a value is actually passed in regs.
21795
21796 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
21797             Laurent Rougé  <laurent.rouge@menta.fr>
21798
21799         * doc/invoke.texi (SPARC options): Add -mflat.
21800         * config/sparc/sparc.opt: Likewise.
21801         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
21802         (sparc_flat_expand_prologue): Declare.
21803         (sparc_flat_expand_epilogue): Likewise.
21804         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
21805         (CPP_ENDIAN_SPEC): Replace with...
21806         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
21807         (CPP_SPEC): Adjust to above change.
21808         (EXTRA_SPECS): Likewise.
21809         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
21810         (INCOMING_REGNO): Likewise.
21811         (OUTGOING_REGNO): Likewise.
21812         (LOCAL_REGNO): Likewise.
21813         (SETUP_FRAME_ADDRESSES): Likewise.
21814         (FIXED_REGISTERS): Set 0 for %fp.
21815         (CALL_USED_REGISTERS): Likewise.
21816         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
21817         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
21818         (RETURN_ADDR_REGNUM): Define.
21819         (RETURN_ADDR_RTX): Use it.
21820         (INCOMING_RETURN_ADDR_REGNUM): Define.
21821         (INCOMING_RETURN_ADDR_RTX): Use it.
21822         (DWARF_FRAME_RETURN_COLUMN): Likewise.
21823         (EH_RETURN_REGNUM): Define.
21824         (EH_RETURN_STACKADJ_RTX): Use it.
21825         (EH_RETURN_HANDLER_RTX): Delete.
21826         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
21827         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
21828         Delete.
21829         (struct machine_function): Add frame_size, apparent_frame_size,
21830         frame_base_reg, frame_base_offset, n_global_fp_regs and
21831         save_local_in_regs_p fields.
21832         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
21833         sparc_frame_base_offset, sparc_n_global_fp_regs,
21834         sparc_save_local_in_regs_p): New macros.
21835         (sparc_option_override): Error out if -fcall-saved-REG is specified
21836         for Out registers.
21837         (eligible_for_restore_insn): Fix formatting.
21838         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
21839         (eligible_for_sibcall_delay): Likewise.
21840         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
21841         (sparc_legitimate_address_p): Adjust to above change.
21842         (save_global_or_fp_reg_p): New predicate.
21843         (return_addr_reg_needed_p): Likewise.
21844         (save_local_or_in_reg_p): Likewise.
21845         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
21846         (SORR_SAVE, SORR_RESTORE): Delete.
21847         (sorr_pred_t): New typedef.
21848         (sorr_act_t): New enum.
21849         (save_or_restore_regs): Rename to...
21850         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
21851         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
21852         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
21853         mechanism.  Add CFI information for double-word saves in 32-bit mode.
21854         (emit_adjust_base_to_offset): New function extracted from...
21855         (emit_save_or_restore_regs): ...this.  Rename the rest to...
21856         (emit_save_or_restore_regs_global_fp_regs): ...this.
21857         (emit_save_or_restore_regs_local_in_regs): New function.
21858         (gen_create_flat_frame_[123]): New functions.
21859         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
21860         (sparc_flat_expand_prologue): New function.
21861         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
21862         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
21863         (sparc_flat_expand_epilogue): New function.
21864         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
21865         (output_return): Likewise.
21866         (output_sibcall): Likewise.
21867         (sparc_output_mi_thunk): Likewise.
21868         (sparc_frame_pointer_required): Likewise.
21869         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
21870         function optimization.
21871         * config/sparc/sparc.md (flat): New attribute.
21872         (prologue): Add TARGET_FLAT handling.
21873         (save_register_window): Disable if TARGET_FLAT.
21874         (create_flat_frame_[123]): New patterns.
21875         (epilogue): Add TARGET_FLAT handling.
21876         (sibcall_epilogue): Likewise.
21877         (eh_return): New expander.
21878         (eh_return_internal): New insn and splitter.
21879         (return_internal): Add TARGET_FLAT handling.
21880         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
21881         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
21882         (nonlocal_goto): Add TARGET_FLAT handling.
21883         * config/sparc/t-elf: Add -mflat multilib.
21884         * config/sparc/t-leon: Likewise.
21885
21886 2011-06-10  Jan Hubicka  <jh@suse.cz>
21887
21888         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
21889         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
21890         (self_recursive_p): Use cgraph_function_node.
21891         (propagate_pure_const): Likewise.
21892         (propagate_nothrow): Likewise.
21893         * ipa-reference.c (ipa_reference_get_not_read_global): Use
21894         cgraph_function_node.
21895         (propagate_bits): Likewise.
21896         (propagate): Likewise.
21897
21898 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21899             Richard Earnshaw  <rearnsha@arm.com>
21900
21901         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
21902         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
21903         (*thumb2_movdi_vfp): Delete.
21904         (*arm_movdi_vfp_cortexa8): Delete.
21905         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
21906         (*movdi_vfp_cortexa8): Likewise.
21907
21908 2011-06-10  Richard Guenther  <rguenther@suse.de>
21909
21910         * stor-layout.c (initialize_sizetypes): Give names to all
21911         sizetype kinds.
21912
21913 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
21914
21915         PR tree-optimization/49318
21916         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
21917         irrelevant pattern statements.
21918
21919 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
21920
21921         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
21922
21923         PR bootstrap/49354
21924         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
21925         to last assignment.
21926
21927 2011-06-09  Jan Hubicka  <jh@suse.cz>
21928
21929         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
21930         do not recompute reachable flag.
21931         (cgraph_finalize_function, cgraph_analyze_functions): Set
21932         redefined_extern_inline here.
21933
21934 2011-06-09  Jan Hubicka  <jh@suse.cz>
21935
21936         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
21937         (cgraph_only_called_directly_p): ... this one; bring offline.
21938         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
21939         varpool_used_from_object_file_p): Drop names from the declaratoin.
21940         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
21941         collect_callers_of_node): New.
21942         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
21943         (cgraph_edge_recursive_p): Use cgraph_function_node.
21944         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
21945         (cgraph_node_cannot_be_local_p_1): Break out from ...
21946         (cgraph_node_can_be_local_p): ... here; walk aliases.
21947         (cgraph_for_node_thunks_and_aliases): New function.
21948         (cgraph_for_node_and_aliases): New function.
21949         (cgraph_make_node_local_1): Break out from ...
21950         (cgraph_make_node_local) ... here; use
21951         cgraph_for_node_thunks_and_aliases.
21952         (cgraph_set_nothrow_flag_1): Break out from ...
21953         (cgraph_set_nothrow_flag) ... here;
21954         use cgraph_for_node_thunks_and_aliases.
21955         (cgraph_set_const_flag_1): Break out from ...
21956         (cgraph_set_const_flag) ... here;
21957         use cgraph_for_node_thunks_and_aliases.
21958         (cgraph_set_pure_flag_1): Break out from ...
21959         (cgraph_set_pure_flag) ... here;
21960         use cgraph_for_node_thunks_and_aliases.
21961         (cgraph_propagate_frequency_1): Break out from ...
21962         (cgraph_propagate_frequency) ... here; use
21963         cgraph_for_node_thunks_and_aliases.
21964         (cgraph_used_from_object_file_p): Do not care about aliases.
21965         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
21966         New functions.
21967         (collect_callers_of_node_1, collect_callers_of_node): New functions.
21968
21969 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
21970
21971         PR rtl-optimization/49154
21972         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
21973         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
21974         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
21975         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
21976         * config/cris/cris.h (cris_register_move_cost): Remove
21977         !TARGET_V32 code.  Tweak comments.
21978
21979 2011-06-09  Jan Hubicka  <jh@suse.cz>
21980
21981         * cgraphbuild.c (record_eh_tables): Mark personality function as having
21982         address taken.
21983
21984 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
21985
21986         PR rtl-optimization/49154
21987         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
21988         is a matching slot in the hashtable, assign it to classes_ptr.
21989
21990         PR rtl-optimization/49154
21991         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
21992         register classes.
21993         * doc/tm.texi: Regenerate.
21994
21995 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
21996
21997         PR target/49307
21998         * config/sh/sh.md (UNSPEC_CHKADD): New.
21999         (chk_guard_add): New define_insn_and_split.
22000         (symGOT_load): Use chk_guard_add instead of blockage.
22001
22002 2011-06-09  Kai Tietz  <ktietz@redhat.com>
22003
22004         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
22005
22006 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
22007
22008         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
22009
22010 2011-06-09  Wei Guozhi  <carrot@google.com>
22011
22012         PR target/46975
22013         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
22014         (peephole2 for conditional move): Generate 16 bit instructions.
22015
22016 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
22017
22018         * config/i386/i386.md (*movdi_internal_rex64): Merge
22019         alternatives 6 and 8.
22020
22021 2011-06-09  David Li  <davidxl@google.com>
22022
22023         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
22024         * passes.c (passr_eq): New function.
22025         (create_pass_tab): New function.
22026         (pass_traverse): New function.
22027         (dump_one_pass): New function.
22028         (dump_pass_list): New function.
22029         (dump_passes): New function.
22030
22031 2011-06-09  David Li  <davidxl@google.com>
22032
22033         * tree-complex.c (tree_lower_complex): Gate cleanup.
22034         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
22035         (execute_optimize_stdarg): Ditto.
22036         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
22037         (execute_cleanup_eh_1): Ditto.
22038         (execute_cleanup_eh): Ditto.
22039         * gcse.c (gate_rtl_pre): Ditto.
22040         (execute_rtl_pre): Ditto.
22041         * except.c (finish_eh_generation): Ditto.
22042         (convert_to_eh_region_ranges): Ditto.
22043         * cprop.c (one_cprop_pass): Ditto.
22044
22045 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
22046
22047         PR target/48673
22048         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
22049         in all basic blocks.
22050
22051 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22052
22053         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
22054         (HAVE_ENABLE_EXECUTE_STACK): Define.
22055         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
22056         (HAVE_ENABLE_EXECUTE_STACK): Define.
22057         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
22058         (HAVE_ENABLE_EXECUTE_STACK): Define.
22059         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
22060         (ENABLE_EXECUTE_STACK): Remove.
22061         (HAVE_ENABLE_EXECUTE_STACK): Define.
22062         [IN_LIBGCC2]: Don't include <windows.h>.
22063         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
22064         (HAVE_ENABLE_EXECUTE_STACK): Define.
22065         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
22066         (HAVE_ENABLE_EXECUTE_STACK): Define.
22067         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
22068         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
22069         (HAVE_ENABLE_EXECUTE_STACK): Define.
22070         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
22071         (HAVE_ENABLE_EXECUTE_STACK): Define.
22072         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
22073         (HAVE_ENABLE_EXECUTE_STACK): Define.
22074         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
22075         (HAVE_ENABLE_EXECUTE_STACK): Define.
22076         * config/alpha/alpha.c (alpha_trampoline_init): Test
22077         HAVE_ENABLE_EXECUTE_STACK.
22078         * config/i386/i386.c (ix86_trampoline_init): Likewise.
22079         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
22080         (sparc64_initialize_trampoline): Likewise.
22081         * libgcc2.c [L_enable_execute_stack]: Remove.
22082         * system.h (ENABLE_EXECUTE_STACK): Poison.
22083         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
22084         * doc/tm.texi: Regenerate.
22085         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
22086
22087 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
22088
22089         PR middle-end/49308
22090         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
22091         variable.  After resetting and rescanning insn continue with previous
22092         statement.
22093
22094 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22095
22096         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
22097         (gcc_cv_ld_hidden): Likewise.
22098         * configure: Regenerate.
22099         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
22100         (ix86_stack_protect_fail): Mark unused.
22101         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
22102         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
22103         [TARGET_MACHO]: Don't define.
22104         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
22105         (TARGET_STACK_PROTECT_FAIL): Likewise.
22106         (rs6000_stack_protect_fail): Mark unused.
22107         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
22108         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
22109
22110 2011-06-08  Andi Kleen  <ak@linux.intel.com>
22111
22112         * varasm.c (get_section): Print location of other conflict
22113         for section conflicts.
22114
22115 2011-06-08  Andi Kleen  <ak@linux.intel.com>
22116
22117         * config/i386/driver-i386.c (host_detect_local_cpu):
22118         Add model 0x2d Intel CPU.
22119
22120 2011-06-08  Andi Kleen  <ak@linux.intel.com>
22121
22122         * reginfo.c (global_regs_decl): Add.
22123         (globalize_reg): Add decl parameter. Compute location.  Pass location
22124         to warnings and add inform. Store decl in global_regs_decl.
22125         * rtl.h (globalize_reg): Update prototype.
22126         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
22127
22128 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
22129
22130         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
22131
22132 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
22133
22134         PR target/49305
22135         * config/sh/predicates.md (general_movsrc_operand): Check
22136         mode for memory with indexed address for QI and HImode.
22137         (general_movdst_operand): Likewise.
22138
22139 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
22140
22141         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
22142
22143 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
22144
22145         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
22146         (num_ssa_operands): Likewise.
22147         (op_iter_init_phiuse): Forward-declare.
22148         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
22149
22150 2011-06-08  Nick Clifton  <nickc@redhat.com>
22151
22152         * doc/invoke.texi (ARM Options): Update description of
22153         -mthumb-interwork.
22154
22155 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
22156
22157         * config/i386/driver-i386.c (host_detect_local_cpu): Support
22158         unknown Intel family 0x6 CPUs.
22159
22160 2011-06-08  Martin Jambor  <mjambor@suse.cz>
22161
22162         * tree-sra.c (mark_rw_status): Removed.
22163         (analyze_access_subtree): New parameter parent instead of
22164         mark_read and mark_write, propagate from that.
22165
22166 2011-06-08  Julian Brown  <julian@codesourcery.com>
22167
22168         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
22169         for double-precision helper functions in hard-float mode if only
22170         single-precision arithmetic is supported in hardware.
22171
22172 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
22173
22174         PR rtl-optimization/49303
22175         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
22176         code_motion_path_driver returned 0 or 1.
22177         (sel_region_finish): Clear h_d_i_d.
22178
22179 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
22180
22181         * config/sh/sh.c (prepare_move_operands): Set pic register
22182         appropriately for global and local dynamic tls models even
22183         if flag_pic is unset.
22184
22185 2011-06-07  Jason Merrill  <jason@redhat.com>
22186
22187         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
22188
22189 2011-06-07  Xinliang David Li  <davidxl@google.com>
22190         * passes.c (enable_disable_pass): Handle assembler name.
22191         (is_pass_explicitly_enabled_or_disabled): Ditto.
22192
22193 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22194
22195         PR tree-optimization/48497
22196         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
22197
22198 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22199
22200         PR tree-optimization/46728
22201         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
22202         to use gimple_val_nonnegative_real_p.
22203         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
22204         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
22205
22206 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
22207
22208         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
22209
22210 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
22211
22212         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
22213         constant vectors.
22214
22215 2011-06-07  Richard Guenther  <rguenther@suse.de>
22216
22217         * stor-layout.c (initialize_sizetypes): Initialize all
22218         sizetypes based on target definitions.
22219         (set_sizetype): Remove.
22220         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
22221         * tree.h (set_sizetype): Remove.
22222
22223 2011-06-07  Nick Clifton  <nickc@redhat.com>
22224
22225         * config.gcc: Unify V850 architecture options and add support for
22226         newer V850 architectures.
22227         * config/v850/t-v850e: Delete.
22228
22229 2011-06-07  Richard Guenther  <rguenther@suse.de>
22230
22231         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
22232         Call set_sizetype from here.
22233
22234 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
22235
22236         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
22237         (*maddhisi4tb, *maddhisi4tt): New define_insns.
22238
22239 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
22240             Andrew Stubbs  <ams@codesourcery.com>
22241
22242         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
22243         multiplies.
22244         * doc/md.texi (Canonicalization of Instructions): Document widening
22245         multiply canonicalization.
22246
22247 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
22248
22249         PR gcov-profile/49299
22250         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
22251
22252 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
22253
22254         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
22255         a pointer.
22256         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
22257         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
22258         vect_recog_pow_pattern): Likewise.
22259         (vect_pattern_recog_1): Remove declaration.
22260         (widened_name_p): Remove declaration.  Add new argument to specify
22261         whether to check that both types are either signed or unsigned.
22262         (vect_recog_widen_mult_pattern): Update documentation.  Handle
22263         unsigned patterns and multiplication by constants.
22264         (vect_pattern_recog_1): Update vect_recog_func references.  Use
22265         statement information from the statement returned from pattern
22266         detection functions.
22267         (vect_pattern_recog): Update vect_recog_func reference.
22268         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
22269         multiplication by a constant use the type of the other operand.
22270
22271 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
22272
22273         PR rtl-optimization/49145
22274         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
22275
22276 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
22277
22278         PR debug/49262
22279         * dwarf2out.c (native_encode_initializer): Decrement count in each
22280         iteration.
22281
22282         PR debug/49294
22283         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
22284         non-MODE_INT modes.
22285
22286         PR c++/49264
22287         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
22288         if stmt folded into nothing.
22289         * tree-inline.c (fold_marked_statements): If a builtin at the end of
22290         a bb folded into nothing, just update cgraph edges and move to next bb.
22291         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
22292         to be NULL.  Don't compute count and frequency if new_call is NULL.
22293
22294 2011-06-04  Diego Novillo  <dnovillo@google.com>
22295
22296         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
22297         (cgraph.o): Likewise.
22298         (cgraphunit.o): Likewise.
22299         * cgraphunit.c: Include lto-streamer.h
22300         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
22301         if LTO is enabled.
22302         * lto-streamer-in.c (unpack_value_fields): Call
22303         streamer_hooks.unpack_value_fields if set.
22304         (lto_materialize_tree): For unhandled nodes, first try to
22305         call lto_streamer_hooks.alloc_tree, if it exists.
22306         (lto_input_ts_decl_common_tree_pointers): Move reading of
22307         DECL_INITIAL to lto_streamer_read_tree.
22308         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
22309         (lto_streamer_read_tree): New.
22310         (lto_reader_init): Rename from lto_init_reader.
22311         Move initialization code to lto/lto.c.
22312         * lto-streamer-out.c (pack_value_fields): Call
22313         streamer_hooks.pack_value_fields if set.
22314         (lto_output_tree_ref): For tree nodes that are not normally indexable,
22315         call streamer_hooks.indexable_with_decls_p before giving up.
22316         (lto_output_ts_decl_common_tree_pointers): Move handling
22317         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
22318         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
22319         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
22320         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
22321         (lto_streamer_write_tree): New.
22322         (lto_output): Call lto_streamer_init directly.
22323         (lto_writer_init): Remove.
22324         * lto-streamer.c (streamer_hooks): New.
22325         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
22326         instead of lto_preload_common_nodes.
22327         (lto_is_streamable): Move from lto-streamer.h
22328         (lto_streamer_hooks_init): New.
22329         (streamer_hooks): New.
22330         (streamer_hooks_init): New.
22331         * lto-streamer.h (struct output_block): Forward declare.
22332         (struct lto_input_block): Likewise.
22333         (struct data_in): Likewise.
22334         (struct bitpack_d): Likewise.
22335         (struct streamer_hooks): Declare.
22336         (streamer_hooks): Declare.
22337         (lto_streamer_hooks_init): Declare.
22338         (lto_streamer_write_tree): Declare.
22339         (lto_streamer_read_tree): Declare.
22340         (streamer_hooks_init): Declare.
22341         (lto_is_streamable): Move to lto-streamer.c
22342
22343 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22344
22345         * longlong.h (smul_ppmm): The resulting register pair contains the
22346         higher order word first.
22347
22348 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22349
22350         PR tree-optimization/46728
22351         * builtins.c (powi_table): Remove.
22352         (powi_lookup_cost): Remove.
22353         (powi_cost): Remove.
22354         (expand_powi_1): Remove.
22355         (expand_powi): Remove.
22356         (expand_builtin_pow_root): Remove.
22357         (expand_builtin_pow): Remove.
22358         (expand_builtin_powi): Eliminate handling of constant exponent.
22359         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
22360
22361 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
22362
22363         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
22364
22365 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
22366
22367         * dce.c (reset_unmarked_insns_debug_uses): New.
22368         (delete_unmarked_insns): Skip debug insns.
22369         (prescan_insns_for_dce): Likewise.
22370         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
22371         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
22372         active reg can be found.
22373         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
22374         (convert_regs_1): Use it.
22375
22376 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
22377
22378         * tree-pretty-print.c (dump_function_header): Add flags.
22379         Don't dump decl_uid with nouid.
22380         * tree-pretty-print.h (dump_function_header): Adjust.
22381         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
22382         * passes.c (pass_init_dump_file): Pass dump_flags on.
22383         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
22384
22385 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
22386
22387         PR bootstrap/49270
22388         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
22389
22390 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
22391
22392         PR tree-optimization/49243
22393         * calls.c (setjmp_call_p): Also check if fndecl has the
22394         returns_twice attribute.
22395
22396 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22397
22398         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
22399         -ffast-math etc.
22400
22401 2011-06-06  Richard Henderson  <rth@redhat.com>
22402             Georg-Johann Lay  <avr@gjlay.de>
22403
22404         PR target/42210
22405         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
22406         New predicates.
22407         * config/avr/avr.md ("insv"): New insn expander.
22408         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
22409         "*insv.not.io", "*insv.reg"): New insns.
22410
22411 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
22412
22413         PR target/49285
22414         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
22415         to nonimmediate_operand from memory_operand for the operand that is to
22416         be forced to memory by the expander.  Lose the constraints.
22417
22418 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
22419
22420         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
22421         EH return when delayed branches are disabled.
22422
22423 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
22424
22425         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
22426         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
22427         calculation.
22428         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
22429         Simplify MODE_V1DF and MODE_V2SF handling.
22430         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
22431         Simplify MODE_SF handling.
22432
22433 2011-06-04  Jan Hubicka  <jh@suse.cz>
22434
22435         PR tree-optimization/48893
22436         PR tree-optimization/49091
22437         PR tree-optimization/49179
22438         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
22439         Bounds check.
22440
22441 2011-06-04  Jan Hubicka  <jh@suse.cz>
22442
22443         PR lto/48954
22444         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
22445         bitmaps.
22446
22447 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
22448
22449         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
22450
22451 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
22452
22453         PR target/49281
22454         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
22455         to be strictly smaller than 1 << shiftcount.
22456
22457 2011-06-04  Jan Hubicka  <jh@suse.cz>
22458
22459         PR tree-optimize/48929
22460         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
22461         of empty predicate.
22462
22463 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
22464
22465         PR debug/48333
22466         * calls.c (emit_call_1): Prefer the __builtin declaration of
22467         builtin functions.
22468
22469 2011-06-03  Diego Novillo  <dnovillo@google.com>
22470
22471         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
22472         (lto_input_tree_pointers): Likewise.
22473         * lto-streamer-out.c (pack_value_fields): Likewise.
22474         (lto_output_tree_pointers): Likewise.
22475         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
22476         and OPTIMIZATION_NODE.
22477
22478 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22479
22480         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
22481         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
22482         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
22483         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
22484         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
22485         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
22486         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
22487         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
22488         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
22489         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
22490         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
22491         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
22492         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
22493         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
22494         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
22495         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
22496         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
22497         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
22498         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
22499         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
22500         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
22501         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
22502         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
22503         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
22504         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
22505         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
22506         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
22507         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
22508         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
22509         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
22510         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
22511         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
22512         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
22513         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
22514         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
22515         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
22516         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
22517         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
22518         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
22519         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
22520         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
22521         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
22522         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
22523         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
22524         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
22525         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
22526         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
22527         * system.h (MD_UNWIND_SUPPORT): Poison.
22528         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
22529         * doc/tm.texi: Regenerate.
22530         * unwind-dw2.c: Include md-unwind-support.h instead of
22531         MD_UNWIND_SUPPORT.
22532         * config/ia64/unwind-ia64.c: Likewise.
22533         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22534
22535 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
22536
22537         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
22538
22539 2011-06-03  Richard Henderson  <rth@redhat.com>
22540             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22541
22542         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
22543         (sigill_hdlr): Correct insn, insn size.
22544         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
22545
22546 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22547
22548         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
22549         t-slibgcc-dummy.
22550         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
22551         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
22552         * config/mips/t-iris: Remove.
22553         * config/mips/t-irix6: New file.
22554         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
22555
22556 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22557
22558         * Makefile.in (LIB2ADDEHDEP): Remove.
22559         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
22560         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
22561         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
22562         * config/t-darwin (LIB2ADDEHDEP): Remove.
22563         * config/t-freebsd (LIB2ADDEHDEP): Remove.
22564         * config/t-linux (LIB2ADDEHDEP): Remove.
22565
22566 2011-06-03  Diego Novillo  <dnovillo@google.com>
22567
22568         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
22569         (lto_register_var_decl_in_symtab): Likewise.
22570         (lto_register_function_decl_in_symtab): Likewise.
22571         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
22572         logic to uniquify_nodes.
22573
22574 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22575
22576         * config/alpha/t-osf5: Remove.
22577         * config/alpha/t-osf-pthread: Remove.
22578         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
22579         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
22580
22581 2011-06-03  Julian Brown  <julian@codesourcery.com>
22582
22583         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
22584         (strongarm1110): Use strongarm tuning.
22585         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
22586         * config/arm/arm.c (arm_strongarm_tune): New.
22587         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
22588         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
22589         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
22590         setting, using previous defaults or 1 for Cortex-A5.
22591         (arm_option_override): Set max_insns_skipped from current tuning.
22592
22593 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
22594
22595         * doc/install.texi (Options specification): Document --with-specs.
22596
22597 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22598
22599         * config/arm/neon.md (orndi3_neon): Actually split it.
22600
22601 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
22602
22603         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
22604         * var-tracking.c (reverse_op): Limite recurse depth to 5.
22605
22606 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
22607
22608         PR debug/47590
22609         * target.def (delay_sched2, delay_vartrack): New.
22610         * doc/tm.texi.in: Update.
22611         * doc/tm.texi: Rebuild.
22612         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
22613         * var-tracking.c (gate_handle_var_tracking): Likewise.
22614         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
22615         (bfin_flag_var_tracking): Drop.
22616         (output_file_start): Don't save and override flag_var_tracking.
22617         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
22618         (bfin_reorg): Test original variables.
22619         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
22620         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
22621         (ia64_flag_var_tracking): Drop.
22622         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
22623         (ia64_file_start): Don't save and override flag_var_tracking.
22624         (ia64_override_options_after_change): Ditto
22625         flag_schedule_insns_after_reload.
22626         (ia64_reorg): Test original variables.
22627         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
22628         (picochip_flag_var_tracking): Drop.
22629         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
22630         (picochip_option_override): Don't save and override
22631         flag_schedule_insns_after_reload.
22632         (picochip_asm_file_start): Ditto flag_var_tracking.
22633         (picochip_reorg): Test original variables.
22634         * config/spu/spu.c (spu_flag_var_tracking): Drop.
22635         (TARGET_DELAY_VARTRACK): Define.
22636         (spu_var_tracking): New.
22637         (spu_machine_dependent_reorg): Call it.
22638         (asm_file_start): Don't save and override flag_var_tracking.
22639
22640 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
22641
22642         PR target/49163
22643         * config/sh/predicates.md (general_movsrc_operand): Return 0
22644         for memory and memory subreg of which address is an invalid
22645         indexed address for QI and HImode.
22646         (general_movdst_operand): Likewise.
22647
22648 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
22649
22650         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
22651         edges only, when there is a non-local label in the function.
22652         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
22653
22654 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
22655
22656         * config/i386/constraints.md (Y3): New register constraint.
22657         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
22658         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
22659         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
22660         *sse2_interleave_lowv2df.
22661
22662 2011-06-02  Julian Brown  <julian@codesourcery.com>
22663
22664         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
22665         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
22666         (arm_cortex_a5_tune): New.
22667
22668 2011-06-02  Julian Brown  <julian@codesourcery.com>
22669
22670         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
22671         * config/arm/arm.c (arm_default_branch_cost): New.
22672         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
22673         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
22674         (arm_fa726_tune): Set branch_cost field using
22675         arm_default_branch_cost.
22676         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
22677         current_tune structure.
22678         * dojump.c (tm_p.h): Include file.
22679
22680 2011-06-02  Julian Brown  <julian@codesourcery.com>
22681
22682         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
22683         tuning.
22684         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
22685         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
22686         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
22687         field.
22688         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
22689         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
22690         (arm_fa726te_tune): Add prefer_constant_pool setting.
22691         (arm_v6t2_tune, arm_cortex_tune): New.
22692         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
22693         prefer_constant_pool setting.
22694
22695 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
22696
22697         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
22698         switch statement.
22699         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
22700         (*movdf_internal) <case 6,7,8>: Ditto.
22701
22702         * config/i386/constraints.md (Y4): New register constraint.
22703         * config/i386/sse.md (vec_set<mode>_0): Merge with
22704         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
22705         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
22706         *vec_extractv2di_1_sse.
22707         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
22708         and *vec_concatv2di_rex64_sse.
22709
22710 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
22711
22712         PR target/48807
22713         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
22714         of cgraph_local_info for null before attempting to use it.
22715
22716 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
22717
22718         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
22719         (current_function_dynamic_alloc_count): Delete.
22720         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
22721         (expand_builtin_nonlocal_goto): Remove obsolete comment.
22722         (expand_builtin_update_setjmp_buf): Remove dead code.
22723         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
22724         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
22725         support.
22726         * function.c (instantiate_virtual_regs): Likewise.
22727         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
22728         for a block with a single abnormal incoming edge.
22729         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
22730         (SETJMP_VIA_SAVE_AREA): Delete.
22731         * config/sparc/sparc-protos.h (load_got_register): Declare.
22732         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
22733         (load_got_register): Make global.
22734         (sparc_frame_pointer_required): Add 'static'.
22735         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
22736         (sparc_builtin_setjmp_frame_value): New function.
22737         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
22738         (save_stack_nonlocal): New expander.
22739         (restore_stack_nonlocal): Likewise.
22740         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
22741         (nonlocal_goto_internal): New insn.
22742         (goto_handler_and_restore): Delete.
22743         (builtin_setjmp_setup): Likewise.
22744         (do_builtin_setjmp_setup): Likewise.
22745         (setjmp): Likewise.
22746         (builtin_setjmp_receiver): New expander.
22747
22748 2011-06-01  David Li  <davidxl@google.com>
22749
22750         PR middle-end/49261
22751         * tree-pretty-print.c (dump_function_header): Format cleanup.
22752
22753 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
22754
22755         PR target/49238
22756         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
22757         needed when original operands are used for msw_skip comparison.
22758
22759 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
22760
22761         PR debug/49250
22762         * var-tracking.c (add_uses, add_stores): Don't call
22763         cselib_subst_to_values on ENTRY_VALUE.
22764
22765 2011-06-01  Diego Novillo  <dnovillo@google.com>
22766
22767         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
22768         output_record_start with LTO_null instead of output_zero.
22769         (lto_output_ts_binfo_tree_pointers): Likewise.
22770         (lto_output_tree): Likewise.
22771         (output_eh_try_list): Likewise.
22772         (output_eh_region): Likewise.
22773         (output_eh_lp): Likewise.
22774         (output_eh_regions): Likewise.
22775         (output_bb): Likewise.
22776         (output_function): Likewise.
22777         (output_unreferenced_globals): Likewise.
22778         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
22779         instead of NUM_TREE_CODES.
22780         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
22781         (lto_output_int_in_range): Change << to >> when shifting VAL.
22782
22783 2011-06-01  Diego Novillo  <dnovillo@google.com>
22784
22785         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
22786         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
22787
22788 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
22789
22790         PR target/45074
22791         * optabs.h (valid_multiword_target_p): Declare.
22792         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
22793         doing multi-word operations.
22794         * optabs.c (expand_binop): Likewise.
22795         (expand_doubleword_bswap): Likewise.
22796         (expand_absneg_bit): Likewise.
22797         (expand_unop): Likewise.
22798         (expand_copysign_bit): Likewise.
22799         (multiword_target_p): New function.
22800
22801 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
22802
22803         PR rtl-optimization/48830
22804         PR rtl-optimization/48808
22805         PR rtl-optimization/48792
22806         * reload.c (push_reload): Check contains_reg_of_mode.
22807         * reload1.c (strip_paradoxical_subreg): New function.
22808         (gen_reload_chain_without_interm_reg_p): Use it to handle
22809         paradoxical subregs.
22810         (emit_output_reload_insns, gen_reload): Likewise.
22811
22812 2011-06-01  David Li  <davidxl@google.com>
22813
22814         * predict.c : Change pass name
22815         * ipa.c: Ditto.
22816         * dce.c: Ditto.
22817         * tree-profile.c: Ditto.
22818         * except.c: Ditto.
22819
22820 2011-06-01  David Li  <davidxl@google.com>
22821
22822         * tree-pretty-print.c (dump_function_header): New function.
22823         * final.c (rest_of_clean_state): Use header dumper.
22824         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
22825         * passes.c (pass_init_dump_file): Use header dumper.
22826
22827 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
22828
22829         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
22830         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
22831         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
22832         New functions.
22833         (mem_loc_descriptor): Use them.
22834
22835         * var-tracking.c (create_entry_value): New function.
22836         (vt_add_function_parameter): Use it.
22837
22838 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22839
22840         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
22841         Include <signal.h>, <ucontext.h>.
22842         (sigill_caught): Define.
22843         (sigill_hdlr): New function.
22844         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
22845         insns can be executed.
22846         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
22847         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
22848
22849 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22850
22851         * config/t-slibgcc-darwin: Move to ...
22852         * config/t-slibgcc-dummy: ... this.  Clarify comments.
22853         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
22854         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
22855         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
22856         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
22857         Remove i386/t-crtstuff from tmake_file.
22858         (i[34567]86-*-solaris2*): Remove t-svr4,
22859         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
22860         t-slibgcc-dummy.
22861         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
22862         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
22863         sparc/t-crtfm from tmake_file.
22864         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
22865         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
22866         Remove extra_parts.
22867         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
22868         * config/i386/t-nwld (SHLIB_LINK): Remove.
22869         * config/i386/t-rtems-i386: Rename to ...
22870         * config/i386/t-rtems: ... this.
22871         ($(T)crti.o, $(T)crtn.o): Remove.
22872         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
22873         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
22874         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
22875         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
22876         EXTRA_MULTILIB_PARTS): Remove.
22877         * config/sparc/t-sol2-64: Likewise.
22878         * config/sparc/t-sol2: Remove.
22879         * config/sparc/t-crtin: Remove.
22880         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
22881         * config/i386/gmon-sol2.c: Remove.
22882         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
22883         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
22884         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
22885         * config/i386/sol2-gc1.asm: Remove.
22886         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
22887         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
22888         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
22889         * config/t-slibgcc-sld: Remove.
22890
22891 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
22892
22893         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
22894         base_type_for_mode with op_mode instead of mode.
22895
22896 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
22897
22898         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
22899         Cortex-A15.
22900         * config/arm/arm-tune.md: Regenerate.
22901         * config/arm/arm-tables.opt: Regenerate.
22902         * config/arm/arm.c (FL_DIV): Rename...
22903         (FL_THUMB_DIV): ... to this.
22904         (FL_ARM_DIV): Define.
22905         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
22906         (arm_arch_hwdiv): Remove.
22907         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
22908         (arm_issue_rate): Add cortexr5.
22909         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
22910         __ARM_ARCH_EXT_IDIV__.
22911         (TARGET_IDIV): Define.
22912         (arm_arch_hwdiv): Remove.
22913         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
22914         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
22915         (divsi3, udivsi3): New patterns.
22916         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
22917         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
22918
22919 2011-06-01  Martin Jambor  <mjambor@suse.cz>
22920
22921         * ipa-utils.c (ipa_dfs_info): New field scc_no.
22922         * ipa-utils.c (searchc): Set scc_no.
22923
22924 2011-06-01  Martin Jambor  <mjambor@suse.cz>
22925
22926         * ipa-utils.c (searchc_env): New field allow_overwritable.
22927         (searchc): do not ignore edges to overwritable nodes if indicated
22928         by env->allow_overwritable.
22929         (ipa_reduced_postorder): Set env.allow_overwritable.
22930
22931 2011-06-01  Richard Guenther  <rguenther@suse.de>
22932
22933         * tree.c (free_lang_data): Do not reset boolean_type_node nor
22934         char_type_node.
22935         * lto-streamer.c (lto_record_common_node): Take node pointer,
22936         do not register types.
22937         (lto_preload_common_nodes): Explicitly skip preloading nodes
22938         that differ between frontends.
22939
22940 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
22941
22942         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
22943         NON_FLOAT_REGS.
22944
22945 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
22946
22947         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
22948         parameter value for dump. Dump cost on outermost call only.
22949         (rs6000_memory_move_cost): Dump cost on outermost call only.
22950
22951 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
22952
22953         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
22954         DW_OP_GNU_convert ops.
22955
22956         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
22957         cselib_preserve_constants.
22958         (cselib_lookup_1): If cselib_preserve_constants,
22959         a new VALUE is being created for REG and there is a VALUE for the
22960         same register in wider mode, add another loc with lowpart SUBREG of
22961         the wider VALUE.
22962         (cselib_subst_to_values): Handle ENTRY_VALUE.
22963         * var-tracking.c  (replace_expr_with_values): Return NULL for
22964         ENTRY_VALUE too.
22965         * dwarf2out.c (convert_descriptor_to_signed): New function.
22966         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
22967         instead of two shifts.
22968         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
22969         the right mode if needed.
22970         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
22971         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
22972         convert_descriptor_to_signed.
22973         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
22974         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
22975
22976         PR target/48688
22977         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
22978
22979 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
22980
22981         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
22982         of X87MODEI12 and SWI48x instead of SSEMODEI24.
22983         (SWI248x): New mode iterator, rename from X87MODEI.
22984         (X87MODEI): Remove mode iterator.
22985         (X87MODEI12): Ditto.
22986         (SSEMODEI24): Ditto.
22987
22988 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
22989
22990         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
22991         * doc/invoke.texi: Document max-vartrack-expr-depth.
22992         * var-tracking.c (EXPR_DEPTH): New.
22993         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
22994
22995 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
22996
22997         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
22998         * config/i386/sse.md: Add n to negated FMA pattern names.
22999
23000 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
23001
23002         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
23003
23004 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
23005
23006         * gengtype-state.c (read_state_params_structs): Initialize previous.
23007
23008 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
23009
23010         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
23011         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
23012
23013 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
23014
23015         * config/i386/i386.md (*movtf_internal): Avoid allocating general
23016         registers.  Penalize F*r->o alternative to prevent partial memory
23017         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
23018         CONST_DOUBLE immediates when optimizing function for size.  Do not move
23019         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
23020         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
23021         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
23022         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
23023         alternatives.
23024         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
23025
23026         (fp_register_operand splitters): Use fp_register_operand
23027         constraint.  Do not use FP_REG_P in insn condition.
23028         (any_fp_register_operand splitters): Use any_fp_register_operand
23029         constraint.  Do not use ANY_FP_REG_P in insn condition.
23030
23031 2011-05-31  Jan Hubicka  <jh@suse.cz>
23032
23033         * cgraph.h (cgraph_inline_failed_t): Give enum a name
23034         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
23035         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
23036         (lto_output_edge): Use output_enum and var_len_unsigned.
23037         (lto_output_varpool_node): Likewise.
23038         (input_overwrite_node): Do not take resolution parameter;
23039         extract it from a bitpack.
23040         (input_node): Do not read resolution; use input_enum and
23041         var_len_unsigned.
23042         (input_varpool_node): Likewise.
23043         (input_edge): Likewise.
23044         (input_cgraph_1): Likewise.
23045
23046 2011-05-31  Richard Guenther  <rguenther@suse.de>
23047
23048         * gimple.c (gimple_register_canonical_type): Do not register
23049         any types via gimple_register_type.
23050
23051 2011-05-31  Jan Hubicka  <jh@suse.cz>
23052
23053         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
23054         of thunks.
23055
23056 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
23057
23058         PR rtl-optimization/49235
23059         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
23060         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
23061
23062 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
23063
23064         PR tree-optimization/49093
23065         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
23066         data references.
23067
23068 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
23069
23070         PR debug/49047
23071         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
23072         for concrete functions containing the code of cloned functions.
23073
23074 2011-05-31  Richard Guenther  <rguenther@suse.de>
23075
23076         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
23077         to ...
23078         (forward_propagate_into_comparison_1): ... this.
23079         (forward_propagate_comparison): Rename to ...
23080         (forward_propagate_into_comparison): ... this.  Split out
23081         real forward propagation code to ...
23082         (forward_propagate_comparison): ... this.
23083         (forward_propagate_into_gimple_cond): Remove looping.
23084         (forward_propagate_into_cond): Likewise.
23085         (simplify_not_neg_expr): Return whether we have done something.
23086         (simplify_gimple_switch): Likewise.
23087         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
23088         (ssa_forward_propagate_and_combine): ... this.  Re-structure
23089         to do a forward forward-propagation walk on BBs and a backward
23090         stmt combining walk on BBs.  Consistently re-scan changed statements.
23091         (pass_forwprop): Adjust.
23092
23093 2011-05-30  Ian Lance Taylor  <iant@google.com>
23094
23095         * godump.c (go_format_type): Correct length of name added to
23096         obstack for anonymous field.
23097
23098 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
23099
23100         PR target/49186
23101         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
23102         part of the second operand is 0.
23103
23104 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
23105
23106         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
23107         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
23108         to memory for !TARGET_MEMORY_MISMATCH_STALL.
23109         (*movdf_internal_rex64): Do not penalize F->r alternative.
23110         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
23111         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
23112         when optimizing function for size.  Do not move CONST_DOUBLEs
23113         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
23114         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
23115         SUBREGs.  Do not check for MEM_P operands in the insn condition,
23116         check for ANY_FP_REGNO_P instead.
23117         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
23118         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
23119         function for speed.
23120         * config/i386/i386.c (ix86_option_override_internal): Do not
23121         set TARGET_INTEGER_DFMODE_MOVES here.
23122
23123 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
23124
23125         PR target/49168
23126         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
23127
23128 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
23129
23130         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
23131         DW_TAG_rvalue_reference_type even for
23132         -gdwarf-4 -fno-debug-types-section.
23133
23134 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23135
23136         PR tree-optimization/46728
23137         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
23138         (build_and_insert_binop): New.
23139         (gimple_expand_builtin_pow): Reorder args for
23140         build_and_insert_call; use build_and_insert_binop; add more
23141         optimizations for fractional exponents.
23142
23143 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
23144
23145         PR bootstrap/49190
23146
23147         Revert:
23148         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
23149
23150         * tree.h (struct tree_identifier): Inherit from tree_typed, not
23151         tree_common.
23152         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
23153         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
23154         TS_BASE instead of TS_COMMON.
23155         * varasm.c (assemble_name): Remove assert.
23156
23157 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
23158
23159         * config.gcc: Keep obselete list sorted.
23160
23161 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
23162             Eric Botcazou  <ebotcazou@adacore.com>
23163
23164         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
23165         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
23166         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
23167         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
23168         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
23169
23170 2011-05-30  Richard Guenther  <rguenther@suse.de>
23171
23172         * gimple.c (gimple_types_compatible_p_1): Compare record
23173         and union type members properly.
23174
23175 2011-05-30  Richard Guenther  <rguenther@suse.de>
23176
23177         PR tree-optimization/49210
23178         * ipa-split.c (split_function): Care for the case where the call
23179         result is not trivially convertible to the result holding variable.
23180
23181 2011-05-30  Richard Guenther  <rguenther@suse.de>
23182
23183         PR tree-optimization/49218
23184         * tree-vrp.c (adjust_range_with_scev): Properly check whether
23185         overflow occured.
23186
23187 2011-05-30  Richard Guenther  <rguenther@suse.de>
23188
23189         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
23190         New function split out from ...
23191         (forward_propagate_into_gimple_cond): ... here.  Adjust.
23192         (forward_propagate_into_cond): Likewise.
23193         (forward_propagate_comparison): Also propagate into
23194         comparisons on assignment RHS.  Change return value to
23195         behave similar to forward_propagate_into_cond.
23196         (tree_ssa_forward_propagate_single_use_vars): Handle
23197         strict-overflow warnings properly for forward_propagate_comparison.
23198
23199 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23200
23201         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
23202         from plugin linker.
23203         * configure: Regenerate.
23204
23205 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
23206
23207         PR tree-optimization/49199
23208         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
23209         non-reduction operands are either defined in the loop or by induction.
23210
23211 2011-05-29  Xinliang David Li  <davidxl@google.com>
23212
23213         * opts-global.c (handle_common_deferred_options): Handle new options.
23214         * passes.c (register_one_dump_file): Call register_pass_name.
23215         (execute_one_pass): Check explicit enable/disable flag.
23216         (passr_hash): New function.
23217         (passr_eq): Ditto.
23218         (register_pass_name): Ditto.
23219         (get_pass_by_name): Ditto.
23220         (pass_hash): Ditto.
23221         (pass_eq): Ditto.
23222         (enable_pass): Ditto.
23223         (disable_pass): Ditto.
23224         (is_pass_explicitly_enabled_or_disabled): Ditto.
23225
23226 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
23227
23228         * config/i386/i386.md (*movoi_internal_avx): Use
23229         standard_sse_constant_opcode for alternative 0.
23230         (*movti_internal_sse): Ditto.
23231         (*movti_internal_rex64): Use standard_sse_constant_opcode for
23232         alternative 2.
23233         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
23234         sselog1 type moves.
23235         (*movsi_internal): Ditto.
23236         (*movdi_internal): Ditto.  Add ssecvt type moves.
23237
23238 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
23239
23240         PR target/48830
23241         * rtlanal.c (simplify_subreg_regno): Adjust comment.
23242
23243 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
23244
23245         PR rtl-optimization/49095
23246         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
23247         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
23248
23249 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
23250
23251         PR target/43995
23252         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
23253         recurse_p argument.  Only follow register copies if it is set,
23254         and prevent mips_find_pic_call_symbol from recursing.
23255         (mips_find_pic_call_symbol): Add a recurse_p argument.
23256         Pass it to mips_pic_call_symbol_from_set.
23257         (mips_annotate_pic_calls): Update accordingly.
23258
23259 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
23260
23261         * emit-rtl.c (try_split): Use a loop to search for
23262         NOTE_INSN_CALL_ARG_LOCATIONs.
23263
23264 2011-05-29  Richard Guenther  <rguenther@suse.de>
23265
23266         PR tree-optimization/49217
23267         * ipa-pure-const.c (propagate_pure_const): Fix typos.
23268
23269 2011-05-28  Jan Hubicka  <jh@suse.cz>
23270
23271         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
23272         length.
23273         (string_slot_free): Remove
23274         (create_output_block): Initialize obstack.
23275         (destroy_output_block): Free obstack.
23276         (lto_string_index): Add PERSISTENT parameter; do not duplicate
23277         the string unless it needs to be added into the hash.
23278         (lto_output_string_with_length): Add persistent attribute;
23279         handle NULL strings.
23280         (lto_output_string): Add PERSISTENT parameter.
23281         (output_string_cst, output_identifier): Simplify.
23282         (lto_output_location_bitpack): Update.
23283         (lto_output_builtin_tree): Update.
23284         * lto-streamer.h (struct output_block): Add obstack.
23285         (lto_output_string, lto_output_string_with_length): Remove
23286         declarations; functions are static now.
23287
23288 2011-05-28  Jan Hubicka  <jh@suse.cz>
23289
23290         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
23291         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
23292         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
23293         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
23294         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
23295         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
23296         unpack_ts_decl_with_vis_value_fields,
23297         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
23298         lto_get_builtin_tree): Use enum and variable length i/o.
23299         * basic-block.h (profile_status_d): Add PROFILE_LAST.
23300         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
23301         New functions.
23302         (bp_pack_enum, bp_unpack_enum): New macros.
23303
23304 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23305
23306         * genrecog.c: Remove redundant forward declarations.
23307
23308 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23309
23310         * config.gcc: Deprecate mips*-*-openbsd*.
23311
23312 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23313
23314         PR bootstrap/49195
23315         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
23316         for match_op_dup.
23317
23318 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
23319
23320         PR middle-end/48981
23321         * gengtype.c (vec_prefix_type): New function.
23322         (note_def_vec): Use vec_prefix_type and change the length
23323         attribute to be based on the prefix.
23324         * vec.c: Include coretypes.h before vec.h.
23325         (struct vec_prefix): Remove.
23326         (vec_gc_p_reserve): Change the offsetof to sizeof.
23327         (vec_gc_p_reserve_exact): Likewise.
23328         (vec_heap_p_reserve): Likewise.
23329         (vec_heap_p_reserve_exact): Likewise.
23330         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
23331         (vec_stack_p_reserve): Change the offsetof to sizeof.
23332         (vec_stack_p_reserve_exact): Likewise.
23333         * vec.h (struct vec_prefix): New struct definition.
23334         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
23335         (VEC_T_GTY(T,B)): Likewise.
23336         (DEF_VEC_FUNC_P(T)): Use prefix field.
23337         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
23338         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
23339
23340 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23341
23342         PR tree-optimization/46728
23343         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
23344         (powi_as_mults): Add gimple_set_location.
23345         (build_and_insert_call): New.
23346         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
23347         0.5, 0.25, 0.75, 1./3., or 1./6.
23348
23349 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
23350
23351         * doc/contrib.texi: Update copyright years.
23352         (Contributors): Add Zdenek Sojka.
23353
23354 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
23355
23356         * c-decl.c (c_push_function_context): Copy the current statement
23357         list stack.
23358         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
23359         (finish_struct): Call building_stmt_list_p instead of checking
23360         cur_stmt_list.
23361         * c-parser.c (c_parser_postfix_expression): Likewise.
23362         * c-typeck.c (c_end_compound_stmt): Likewise.
23363         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
23364         * tree-iterator.c (stmt_list_cache): Change to a VEC.
23365         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
23366         (free_stmt_list): Likewise.
23367         * tree.h (struct tree_statement_list): Include typed_tree instead
23368         of tree_common.
23369         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
23370         as TS_TYPED instead of TS_COMMON.
23371
23372 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23373             Uros Bizjak  <ubizjak@gmail.com>
23374
23375         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
23376         (HAVE_AS_IX86_TLSGDPTL): Define.
23377         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
23378         (HAVE_AS_IX86_TLSLDMPLT): Define.
23379         * configure: Regenerate.
23380         * config.in: Regenerate.
23381         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
23382         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
23383         TARGET_SUN_TLS, use @tlsgdplt or @plt.
23384         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
23385         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
23386         @tlsldmplt or @plt.
23387         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
23388
23389 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
23390
23391         * sched-int.h (struct _haifa_deps_insn_data): New members cond
23392         and reverse_cond.
23393         (INSN_COND, INSN_REVERSE_COND): New macros.
23394         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
23395         once.
23396         (sched_get_condition_with_rev): Cache the results, and look them up
23397         if possible.
23398         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
23399         are clobbered by the current insn.
23400         * target.def (exposed_pipline): New sched data hook.
23401         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
23402         * doc/tm.texi: Regenerate.
23403
23404 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23405
23406         PR tree-optimization/49170
23407         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
23408         sincos or cexp.
23409
23410 2011-05-27  Richard Guenther  <rguenther@suse.de>
23411
23412         PR middle-end/49189
23413         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
23414         of comparisons.
23415
23416 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
23417
23418         * haifa-sched.c (sched_scan_info): Remove.
23419         (schedule_block): Call sched_extend_luids rather than sched_init_luids
23420         with NULL args.
23421         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
23422         Remove functions.
23423         (sched_scan): Remove.
23424         (sched_extend_luids): Renamed from luids_extend_insn and no longer
23425         static.  All callers changed.
23426         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
23427         static.  All callers changed.
23428         (sched_init_luids): Remove all arguments except the first.  All
23429         callers changed.  Don't use sched_scan.
23430         (haifa_init_h_i_d): Likewise.
23431         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
23432         manually rather than using sched_init_luids.  Likewise with
23433         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
23434         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
23435         rather than sched_init_luids with NULL args.
23436         * sel-sched-ir.c (new_insns): Remove variable.
23437         (sched_scan): New static function, previously in haifa-sched.c.  Remove
23438         all arguments but the first two; all callers changed.
23439         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
23440         rather than sched_init_luids.
23441         (sel_init_bbs): Remove second argument.  All callers changed.
23442         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
23443         with NULL arguments.
23444         (create_insn_rtx_from_pattern): Likewise.
23445         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
23446         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
23447         (sched_init_insn_luid, sched_extend_luids): Declare.
23448         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
23449         declarations.
23450
23451 2011-05-27  Richard Guenther  <rguenther@suse.de>
23452
23453         PR middle-end/49177
23454         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
23455         A CMP B ? (T) true : (T) false for non-integral types T again.
23456
23457 2011-05-27  Jan Hubicka  <jh@suse.cz>
23458
23459         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
23460         so 0 means NULL string.
23461         (lto_output_string_with_length): ... here.
23462         (lto_output_string, output_string_cst, output_identifier): Update
23463         handling of NULL strings.
23464         (lto_output_location_bitpack): New function.
23465         (lto_output_location): Use it.
23466         (lto_output_tree_ref): Use output_record_start.
23467         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
23468         len values.
23469         * lto-streamer-in.c (string_for_index): Break out from ...; offset
23470         values by 1.
23471         (input_string_internal): ... here;
23472         (input_string_cst, input_identifier, lto_input_string): Update handling
23473         of NULL strings.
23474         (lto_input_location_bitpack): New function
23475         (lto_input_location): Use it.
23476         (unpack_ts_type_common_value_fields): Pack align & alias in var len
23477         values.
23478         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
23479         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
23480         (bp_pack_value): Sanity check the value range.
23481         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
23482         New functions.
23483         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
23484         New functions.
23485
23486 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
23487
23488         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
23489         call_arg_location instructions down the floor.
23490
23491 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
23492
23493         PR rtl-optimization/49154
23494         * ira.c (setup_pressure_classes): Process class without sublcasses
23495         as a candidate for pressure classes.
23496
23497 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
23498
23499         PR rtl-optimization/48575
23500         * genrecog.c (position_type): New enum.
23501         (position): New structure.
23502         (decision): Use position structure instead of a string.
23503         (root_pos, peep2_insn_pos_list): New variables.
23504         (next_position, compare_positions): New functions.
23505         (new_decision): Use position structures instead of strings.
23506         (maybe_both_true): Likewise.
23507         (change_state): Likewise.
23508         (write_tree): Likewise.
23509         (make_insn_sequence): Likewise.
23510
23511 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
23512
23513         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
23514         TS_BASE instead of TS_COMMON.
23515         (find_decls_types_r): Check for TS_TYPED structure before looking at
23516         TREE_TYPE.
23517         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
23518         Add chain field.
23519         (BLOCK_CHAIN): Use new chain field.
23520
23521 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
23522
23523         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
23524         moves expensive on Power7 also.
23525
23526 2011-05-26  Richard Guenther  <rguenther@suse.de>
23527
23528         * fold-const.c (fold_unary_loc): Remove bogus code.
23529
23530 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
23531
23532         * tree.h (struct tree_identifier): Inherit from tree_typed, not
23533         tree_common.
23534         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
23535         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
23536         TS_BASE instead of TS_COMMON.
23537         * varasm.c (assemble_name): Remove assert.
23538
23539 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
23540
23541         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
23542         substituted first.
23543         * libgcc-std.ver: Delete file.
23544
23545 2011-05-26  Richard Guenther  <rguenther@suse.de>
23546
23547         PR tree-optimization/48702
23548         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
23549         only when we know the base address is within bounds.
23550         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
23551         assume the base address of TARGET_MEM_REFs is in bounds.
23552
23553 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23554
23555         PR target/49099
23556         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
23557         declaration in TARGET_SOLARIS.
23558
23559 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
23560
23561         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
23562         The instruction is then expanded explicitly.
23563         (supported_compare): Callable instruction.
23564         (compare): Likewise.
23565
23566 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
23567
23568         PR c++/49165
23569         * gimplify.c (shortcut_cond_r): Don't special case
23570         COND_EXPRs if they have void type on one of their arms.
23571
23572 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
23573
23574         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
23575         to reduce duplication, and to achieve a slightly more logical order
23576         of operations.
23577
23578 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
23579
23580         PR tree-optimization/49161
23581         * tree-vrp.c (struct case_info): New type.
23582         (compare_case_labels): Sort case_info structs instead of
23583         trees, and not primarily by CASE_LABEL uids but by
23584         label_for_block indexes.
23585         (find_switch_asserts): Put case labels into struct case_info
23586         array instead of TREE_VEC, adjust sorting, compare label_for_block
23587         values instead of CASE_LABELs.
23588
23589 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23590
23591         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
23592         ("orndi3_neon"): Likewise.
23593         ("bic<mode>3_neon"): Likewise.
23594
23595 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
23596
23597         PR tree-optimization/49038
23598         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
23599         Ensure at least one epilogue iteration if required by data
23600         accesses with gaps.
23601         * tree-vectorizer.h (struct _loop_vec_info): Add new field
23602         to mark loops that require peeling for gaps.
23603         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
23604         (vect_get_known_peeling_cost): Take peeling for gaps into
23605         account.
23606         (vect_transform_loop): Generate epilogue if required by data
23607         access with gaps.
23608         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
23609         loop as requiring an epilogue if there are gaps in the end of
23610         the strided group.
23611
23612 2011-05-25  Ian Lance Taylor  <iant@google.com>
23613
23614         * godump.c (go_format_type): Output the first field with a usable
23615         Go type, if any.
23616
23617 2011-05-25  Ian Lance Taylor  <iant@google.com>
23618
23619         * godump.c (go_format_type): Check for invalid type names, pointer
23620         target types, and struct field types.
23621
23622 2011-05-25  Jason Merrill  <jason@redhat.com>
23623
23624         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
23625
23626 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
23627
23628         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
23629
23630 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
23631
23632         * config/i386/i386.md (*movqi_extv_1)): Put back
23633         "register_operand" check in "type" calculation.
23634         (*movqi_extzv_2): Likewise.
23635
23636 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
23637
23638         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
23639
23640 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
23641
23642         PR bootstrap/49160
23643         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
23644         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
23645         __divxc3, __divtc3): Wrap definitions in #ifndef.
23646
23647 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
23648
23649         PR target/49142
23650         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
23651         "register_operand" check and replace q_regs_operand with
23652         QIreg_operand in "type" calculation.
23653         (*movqi_extv_1): Likewise.
23654         (*movqi_extzv_2_rex64): Likewise.
23655         (*movqi_extzv_2): Likewise.
23656
23657         * config/i386/predicates.md (QIreg_operand): New.
23658
23659 2011-05-25  Richard Guenther  <rguenther@suse.de>
23660
23661         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23662         type-based offset disambiguation, streamline MEM_REF and
23663         TARGET_MEM_REF handling.
23664
23665 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
23666
23667         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
23668         (bdesc_special_args): Add pause intrinsic.
23669
23670         * config/i386/i386.md (UNSPEC_PAUSE): New.
23671         (pause): Likewise.
23672         (*pause): Likewise.
23673         * config/i386/ia32intrin.h (__pause): Likewise.
23674
23675         * doc/extend.texi (X86 Built-in Functions): Add documentation for
23676         pause intrinsic.
23677
23678 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23679
23680         PR tree-optimization/46728
23681         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
23682         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
23683
23684 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
23685
23686         * tree.h (struct tree_exp): Inherit from struct tree_typed.
23687         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
23688         instead of TS_COMMON.
23689
23690 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
23691
23692         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
23693         LIBGCC2_GNU_PREFIX is defined.
23694         (__N): New macro.
23695         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
23696         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
23697         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
23698         __clz_tab): Define using __N.
23699         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
23700         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
23701         * target.def (libfunc_gnu_prefix): New hook.
23702         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
23703         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
23704         * doc/tm.texi: Regenerate.
23705         * system.h (LIBGCC2_GNU_PREFIX): Poison.
23706         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
23707         account.
23708         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
23709         (init_optabs): Likewise for the bswap libfuncs.
23710         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
23711         and divide.
23712         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
23713         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
23714         * libgcc-std.ver: Remove.
23715         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
23716         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
23717         libgcc-std.ver.
23718         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
23719         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
23720         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
23721         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
23722         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
23723         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
23724         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
23725         * config/fixed-bit.h (FIXED_OP): Define differently depending on
23726         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
23727         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
23728
23729 2011-05-25  Jan Hubicka  <jh@suse.cz>
23730
23731         * lto-streamer-out.c (output_record_start): Use lto_output_enum
23732         (lto_output_tree): Use output_record_start.
23733         * lto-streamer-in.c (input_record_start): Use lto_input_enum
23734         (lto_get_pickled_tree): Use input_record_start.
23735         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
23736         (lto_value_range_error): New function.
23737         * lto-streamer.h (lto_value_range_error): Declare.
23738         (lto_output_int_in_range, lto_input_int_in_range): New functions.
23739         (lto_output_enum, lto_input_enum): New macros.
23740
23741 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
23742
23743         * common.opt (flag_stack_usage_info): New variable.
23744         (-Wstack-usage): New option.
23745         * doc/invoke.texi (Warning options): Document -Wstack-usage.
23746         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
23747         <OPT_fstack_usage>: Likewise.
23748         * toplev.c (output_stack_usage): Handle -Wstack-usage.
23749         * calls.c (expand_call): Test flag_stack_usage_info variable instead
23750         of flag_stack_usage.
23751         (emit_library_call_value_1): Likewise.
23752         * explow.c (allocate_dynamic_stack_space): Likewise.
23753         * function.c (instantiate_virtual_regs ): Likewise.
23754         (prepare_function_start): Likewise.
23755         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
23756         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
23757         * config/arm/arm.c (arm_expand_prologue): Likewise.
23758         (thumb1_expand_prologue): Likewise.
23759         * config/avr/avr.c (expand_prologue): Likewise.
23760         * config/i386/i386.c (ix86_expand_prologue): Likewise.
23761         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
23762         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
23763         * config/mips/mips.c (mips_expand_prologue): Likewise.
23764         * config/pa/pa.c (hppa_expand_prologue): Likewise.
23765         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
23766         * config/s390/s390.c (s390_emit_prologue): Likewise.
23767         * config/sh/sh.c (sh_expand_prologue): Likewise.
23768         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
23769         * config/spu/spu.c (spu_expand_prologue): Likewise.
23770
23771 2011-05-25  Richard Guenther  <rguenther@suse.de>
23772
23773         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
23774         (gimple_canonical_types_compatible_p): Likewise.
23775
23776 2011-05-25  Jan Hubicka  <jh@suse.cz>
23777
23778         PR middle-end/49062
23779         * ipa.c (function_and_variable_visibility): Only add to same
23780         comdat group list if DECL_ONE_ONLY.
23781
23782 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
23783
23784         PR rtl-optimization/49014
23785         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
23786
23787 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
23788
23789         PR target/49128
23790         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
23791
23792 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
23793
23794         PR rtl-optimization/48757
23795         * ira-build.c (loop_with_eh_edge_p): Rename to
23796         loop_with_complex_edge_p, check edges on complexity, make function
23797         conditional.
23798         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
23799         conditional.
23800
23801 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
23802
23803         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
23804         force flag_ira_share_save_slots to 0.
23805
23806 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
23807
23808         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
23809         (vt_initialize): Set PROLOGUE_BB unconditionally.
23810         Add block comment about CFA_BASE_RTX machinery.
23811         Reset FP_CFA_OFFSET to -1 on all invalid paths.
23812         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
23813
23814 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
23815
23816         PR objc/48187
23817         * c-parser.c (c_parser_objc_class_instance_variables): More robust
23818         parsing of syntax error in ObjC instance variable lists.  In
23819         particular, avoid an infinite loop if there is a stray ']'.
23820         Updated error message.
23821
23822 2011-05-24  Ian Lance Taylor  <iant@google.com>
23823
23824         * godump.c (go_define): Don't accept a string immediately after
23825         another operand.
23826
23827 2011-05-24  Ian Lance Taylor  <iant@google.com>
23828
23829         * godump.c (struct godump_container): Add invalid_hash field.
23830         (go_format_type): Return false if type is found in invalid_hash.
23831         (go_output_typedef): Add invalid type to invalid_hash.
23832         (go_finish): Create and delete invalid_hash.
23833
23834 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23835
23836         PR tree-optimization/46728
23837         * tree-ssa-math-opts.c (powi_table): New.
23838         (powi_lookup_cost): New.
23839         (powi_cost): New.
23840         (powi_as_mults_1): New.
23841         (powi_as_mults): New.
23842         (gimple_expand_builtin_powi): New.
23843         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
23844         (gate_cse_sincos): Remove sincos/cexp restriction.
23845
23846 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23847
23848         PR target/3746
23849         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
23850         mips-tdump native.
23851         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
23852         * mips-tdump.c: Likewise.
23853
23854 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23855
23856         PR target/49128
23857         * config/i386/driver-i386.c (host_detect_local_cpu): Always
23858         add -mno-XXX.  Handle FMA.
23859
23860 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
23861
23862         PR rtl-optimization/48633
23863         * ira-build.c (loop_with_eh_edge_p): New function.
23864         (mark_loops_for_removal): Use it.
23865
23866 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
23867
23868         PR rtl-optimization/48971
23869         * ira.c (setup_pressure_classes): Don't check register move cost
23870         for classes with one registers.  Don't add pressure class if there
23871         is a pressure class with the same available hard registers.
23872         Check contains_reg_of_mode.  Fix a typo in collecting
23873         temp_hard_regset.  Ignore hard registers not belonging to a class.
23874
23875 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
23876
23877         PR target/49133
23878         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
23879
23880 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
23881             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23882
23883         PR gcov-profile/48845
23884         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
23885
23886 2011-05-24  Richard Guenther  <rguenther@suse.de>
23887
23888         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
23889         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
23890         (gimple_types_compatible_p_1): Adjust.
23891         (iterative_hash_canonical_type): Do not bother about complete vs.
23892         incomplete types.
23893         (gimple_canonical_types_compatible_p): Likewise.
23894
23895 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23896
23897         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
23898
23899 2011-05-24  Richard Guenther  <rguenther@suse.de>
23900
23901         PR bootstrap/49078
23902         * gimple.c (gimple_register_canonical_type): Revert
23903         previous change.
23904         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
23905         does not for a tree for the case where it matters.  Cache
23906         pointer-type alias-sets.
23907
23908 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
23909
23910         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
23911         (OBJS): Remove options.o, opts-common.o and prefix.o.
23912         (OBJS-libcommon-target): New.
23913         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
23914         (BACKEND): Include libcommon-target.a.
23915         (MOSTLYCLEANFILES): Include libcommon-target.a.
23916         (libcommon-target.a): New.
23917         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
23918         prefix.o.
23919
23920 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
23921
23922         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
23923         parts of output shared with the driver.
23924         * optc-gen.awk: Don't generate parts of output not shared with the
23925         driver.
23926         * opth-gen.awk: Remove GCC_DRIVER conditionals.
23927         * doc/options.texi (SourcerInclude): Mention options-save.c.
23928         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
23929         (OBJS): Add options-save.o.
23930         (options-save.c, options-save.o): New.
23931         (options.o): Update dependencies.
23932         (gcc-options.o): Remove.
23933         (mostlyclean): Remove options-save.c.
23934
23935 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
23936
23937         PR debug/49032
23938         * dbxout.c: Include cgraph.h.
23939         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
23940         and without value expr, return NULL if no varpool node exists for
23941         it or if it is not needed.
23942         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
23943
23944         PR c/49120
23945         * c-decl.c (start_decl): Convert expr to void_type_node.
23946
23947 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
23948
23949         PR rtl-optimization/48826
23950         * emit-rtl.c (try_split): When splitting a call that is followed
23951         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
23952
23953 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
23954
23955         * cfgexpand.c (expand_debug_expr): For unused non-addressable
23956         parameters passed in memory prefer using DECL_INCOMING_RTL over
23957         the pseudos it will be copied into.
23958
23959 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23960
23961         PR target/47315
23962         * config/i386/i386.c (ix86_option_override_internal): Save the
23963         initial options after checking vzeroupper.
23964
23965 2011-05-23  David Li  <davidxl@google.com>
23966
23967         PR tree-optimization/48988
23968         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
23969         Initialize has_valid_pred for each pred chain.
23970
23971 2011-05-23  Richard Guenther  <rguenther@suse.de>
23972
23973         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
23974         (iterative_hash_gimple_type): Always hash type names.
23975
23976 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
23977
23978         * c-typeck.c (build_function_call_vec): Tweak call to
23979         check_function_arguments.
23980
23981 2011-05-23  Richard Guenther  <rguenther@suse.de>
23982
23983         PR tree-optimization/49115
23984         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
23985         is not necessarily carried out, do not claim it kills the ref.
23986         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
23987
23988 2011-05-23  Richard Guenther  <rguenther@suse.de>
23989
23990         PR middle-end/15419
23991         * builtins.c (fold_builtin_memory_op): Be less restrictive about
23992         what pointer types we accept for folding.
23993
23994 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23995
23996         * gthr-gnat.c: Remove.
23997         * gthr-gnat.h: Remove.
23998         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
23999         * config/t-freebsd (LIB2ADDEH): Likewise.
24000         * config/t-linux (LIB2ADDEH): Likewise.
24001         * config/t-sol2 (LIB2ADDEH): Likewise.
24002         * config/ia64/t-vms (LIB2ADDEH): Likewise.
24003         * configure.ac (target_thread_file): Remove gnat handling.
24004         * configure: Regenerate.
24005         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
24006
24007 2011-05-23  Tristan Gingold  <gingold@adacore.com>
24008             Eric Botcazou  <ebotcazou@adacore.com>
24009
24010         * gcov.c (create_file_names): If no object directory is specified,
24011         keep the directory of the file.
24012
24013 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24014
24015         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
24016         * configure: Regenerate.
24017
24018 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
24019
24020         PR middle-end/48973
24021         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
24022         failed and the comparison has a single bit signed type, use
24023         constm1_rtx instead of const1_rtx for true value.
24024         (do_store_flag): If ops->type is single bit signed type, disable
24025         signel bit test optimization and pass -1 instead of 1 as last
24026         parameter to emit_store_flag_force.
24027
24028 2011-05-23  Tom de Vries  <tom@codesourcery.com>
24029
24030         PR target/45098
24031         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
24032         function.
24033         (infer_loop_bounds_from_undefined): Use new function.
24034
24035 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
24036
24037         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
24038         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
24039         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
24040         and -O0 otherwise.
24041         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
24042
24043 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
24044
24045         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
24046         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
24047         returns true.
24048
24049 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
24050
24051         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
24052
24053 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
24054
24055         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
24056         UNSPEC_MOVE_PIC pattern.
24057
24058 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
24059
24060         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
24061         (sparc-*-rtems*): Likewise.
24062         (sparc64-*-elf*): Likewise.
24063         (sparc64-*-rtems*): Likewise.
24064         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
24065         * config/sparc/t-crtin: New file.
24066         * config/sparc/t-sol2 (crti.o): Delete rule.
24067         (crtn.o): Likewise.
24068         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
24069         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
24070         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
24071         (ENDFILE_SPEC): Add crtn.o.
24072
24073 2011-05-22  Tom de Vries  <tom@codesourcery.com>
24074
24075         PR middle-end/48689
24076         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
24077         CODE_CONTAINS_STRUCT (TS_COMMON).
24078
24079 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
24080
24081         PR middle-end/49029
24082         * expmed.c (extract_fixed_bit_field): Test whether target can be used
24083         only after deciding which mode to use.
24084
24085 2011-05-22  Tom de Vries  <tom@codesourcery.com>
24086
24087         PR target/45098
24088         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
24089         for call to get_shiftadd_cost.
24090
24091 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
24092
24093         PR target/49104
24094         * config/i386/cpuid.h (bit_MMXEXT): New define.
24095
24096 2011-05-22  Nick Clifton  <nickc@redhat.com>
24097
24098         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
24099         initialisation of non-existant args[2] element.  Use args[] array
24100         not arg[] array to pass arguments to build_function_type_list.
24101
24102 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
24103
24104         PR tree-optimization/49087
24105         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
24106
24107 2011-05-21  Jason Merrill  <jason@redhat.com>
24108
24109         PR c++/49092
24110         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
24111         static storage duration.
24112
24113 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
24114
24115         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
24116         frame pointer.
24117
24118 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
24119
24120         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
24121         false if there are call-saved registers here...
24122         (sparc_can_use_return_insn_p): ...but here instead.
24123         (save_or_restore_regs): Fix thinko.
24124         (sparc_expand_prologue): Use current_function_is_leaf.
24125         (sparc_frame_pointer_required): Likewise.
24126
24127 2011-05-21  Nick Clifton  <nickc@redhat.com>
24128
24129         PR target/49098
24130         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
24131
24132 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
24133
24134         * gengtype.c (walk_type): Implemented "atomic" GTY option.
24135         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
24136
24137 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
24138
24139         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
24140         * optc-gen.awk: Move common code to opt-read.awk.
24141         * opth-gen.awk: Likewise.
24142         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
24143
24144 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
24145
24146         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
24147
24148 2011-05-20  Tom de Vries  <tom@codesourcery.com>
24149
24150         PR target/45098
24151         * tree-ssa-loop-ivopts.c: Include expmed.h.
24152         (get_shiftadd_cost): New function.
24153         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
24154
24155 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
24156
24157         PR bootstrap/49086
24158         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
24159         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
24160
24161 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
24162
24163         * Makefile.in: Update comment referring to $(OBJS-common).
24164
24165 2011-05-20  Ian Lance Taylor  <iant@google.com>
24166
24167         * godump.c (go_output_typedef): Put enum constants in the macro
24168         hash table to avoid duplicate Go const definitions.
24169
24170 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
24171
24172         * Makefile.in (LIBDEPS): Add libcommon.a.
24173         (LIBS): Likewise.
24174         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
24175         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
24176         pretty-print.o and version.o.
24177         (OBJS-libcommon): New.
24178         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
24179         (BACKEND): Add libcommon.a.
24180         (MOSTLYCLEANFILES): Likewise.
24181         (libcommon.a): New.
24182         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
24183         (cpp$(exeext)): Likewise.
24184         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
24185         pretty-print.o and input.o.
24186         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
24187         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
24188         (errors.o): Remove.
24189         (mips-tfile): Don't explicitly use version.o.
24190         (mips-tdump): Likewise.
24191         (gcov.o): Depend on $(DIAGNOSTIC_H).
24192         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
24193         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
24194         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
24195         * gcov-dump.c: Include intl.h and diagnostic.h.
24196         (main): Initialize diagnostics.
24197         * gcov.c: Include diagnostic.h.
24198         (fnotice): Remove.
24199         (main): Initialize diagnostics.
24200         * lto-wrapper.c: Include diagnostic.h.
24201         (main): Initialize diagnostics.
24202
24203 2011-05-20  Michael Matz  <matz@suse.de>
24204
24205         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
24206
24207 2011-05-20  Michael Matz  <matz@suse.de>
24208             Richard Guenther  <rguenther@suse.de>
24209
24210         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
24211         use lto_streamer_cache_append directly instead of returning a VEC.
24212         (preload_common_node): Remove.
24213         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
24214         track seen nodes.
24215         (lto_streamer_cache_create): Call lto_preload_common_nodes.
24216
24217 2011-05-20  Richard Guenther  <rguenther@suse.de>
24218
24219         PR tree-optimization/49079
24220         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
24221         MEM_REFs correctly for the trailing array access detection.
24222         Special case constants the same way as decls for overall size
24223         constraining.
24224
24225 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
24226
24227         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
24228         argument expansion.
24229
24230 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
24231
24232         PR tree-optimization/49073
24233         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
24234         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
24235         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
24236
24237 2011-05-20  Richard Guenther  <rguenther@suse.de>
24238
24239         PR middle-end/48849
24240         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
24241         of pointer types the same way the middle-end does.
24242
24243 2011-05-20  Richard Guenther  <rguenther@suse.de>
24244
24245         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
24246         or pointer-to chains.  Delay all fixup to uniquify_nodes.
24247
24248 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
24249
24250         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
24251         (fma4_fmaddsub): Likewise
24252
24253 2011-05-19  Jan Hubicka  <jh@suse.cz>
24254
24255         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
24256         (GIMPLE_TYPE_PAIR_SIZE): New macro.
24257         (type_pair_cache): New static var.
24258         (lookup_type_pair): Use fixed sized custom hash; make inline.
24259         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
24260         calls of lookup_type_pair.
24261         (print_gimple_types_stats): Remove cache stats.
24262         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
24263         and gtc_ob.
24264
24265 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
24266
24267         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
24268         when TARGET_RDRND is active.
24269         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
24270         Generate dummy SImode target register when target is NULL.
24271
24272 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
24273
24274         * config/arm/arm-fpus.def: New.
24275         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
24276         arm-fpus.def.
24277         * config/arm/arm-tables.opt: Regenerate.
24278         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
24279         (arm_option_override): Don't decode FPU name to string here.
24280         * config/arm/arm.opt (mfpu=): Use Enum.
24281         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
24282         Update dependencies.
24283
24284 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
24285
24286         * collect2.c: Include diagnostic.h.
24287         (fatal_perror, fatal, error, fancy_abort): Remove.
24288         (main): Set progname.  Call xmalloc_set_program_name and
24289         diagnostic_initialize.
24290         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
24291         scan_libraries, resolve_lib_name): Call fatal_error instead of
24292         fatal and fatal_perror.
24293         * collect2.h (error, fatal, fatal_perror): Don't declare.
24294         * tlink.c: Include diagnostic-core.h.
24295         (recompile_files): Call fatal_error instead of fatal_perror.
24296         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
24297         pretty-print.o and input.o.
24298         (collect2.o, tlink.o): Update dependencies.
24299
24300 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24301
24302         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
24303
24304 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24305
24306         PR target/40483
24307         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
24308         COMDAT group syntax, both SPARC and x86 variants.
24309         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
24310         * configure: Regenerate.
24311         * config/sol2.h (TARGET_SOLARIS): Define.
24312         (PUSHSECTION_FORMAT): Remove.
24313         (SECTION_NAME_FORMAT): Define.
24314         * config/sol2.c: Include hashtab.h.
24315         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
24316         expansion, using SECTION_NAME_FORMAT.
24317         (solaris_comdat_htab): New variable.
24318         (struct comdat_entry): Define.
24319         (comdat_hash): New function.
24320         (comdat_eq): New function.
24321         (solaris_elf_asm_comdat_section): New function.
24322         (solaris_define_comdat_signature): New function.
24323         (solaris_code_end): New function.
24324         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
24325         (solaris_code_end): Declare.
24326         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
24327         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
24328         solaris_code_end.
24329         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
24330         Remove ATTRIBUTE_UNUSED.
24331         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
24332         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
24333         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
24334         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
24335         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
24336         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
24337         (PUSHSECTION_FORMAT): Remove.
24338         (SECTION_NAME_FORMAT): Redefine.
24339
24340 2011-05-19  Kai Tietz  <ktietz@redhat.com>
24341
24342         * tree-cfg.c (verify_gimple_assign_binary): Barf on
24343         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
24344         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
24345
24346 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
24347             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24348
24349         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
24350
24351 2011-05-19  Richard Guenther  <rguenther@suse.de>
24352
24353         PR middle-end/48985
24354         * tree-object-size.c (addr_object_size): If the pointed-to
24355         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
24356
24357 2011-05-19  Richard Guenther  <rguenther@suse.de>
24358
24359         * gimple.c (gimple_types_compatible_p_1): Compare names of
24360         the types themselves.
24361         (iterative_hash_gimple_type): And hash them that way.
24362         (gimple_register_type_1): If we register a main variant properly
24363         initialize the leader to ourselves.
24364
24365 2011-05-19  Tom de Vries  <tom@codesourcery.com>
24366
24367         PR target/45098
24368         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
24369         get_loop_invariant_expr_id.
24370         (get_loop_invariant_expr_id): Use get_expr_id.
24371         (parm_decl_cost): New function.
24372         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
24373         Improve bound cost estimation.  Use different inv_expr_id for elim and
24374         express cases.
24375
24376 2011-05-19  Tom de Vries  <tom@codesourcery.com>
24377
24378         PR target/45098
24379         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
24380         cost_base.cost == 0.
24381
24382 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24383
24384         PR target/49002
24385         * config/i386/sse.md
24386         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
24387         load cast.
24388
24389 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
24390
24391         PR tree-optimization/49039
24392         * tree-vrp.c (extract_range_from_binary_expr): For
24393         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
24394         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
24395
24396 2011-05-18  Tom de Vries  <tom@codesourcery.com>
24397
24398         PR target/45098
24399         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
24400
24401 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
24402
24403         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
24404         (*tls_global_dynamic_64): Ditto.
24405         (*tls_local_dynamic_base_32_gnu): Ditto.
24406         (*tls_local_dynamic_base_64): Ditto.
24407         (tls_initial_exec_64_sun): Ditto.
24408
24409 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
24410
24411         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
24412         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
24413         bf592-none.
24414         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
24415         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
24416         * config/bfin/bfin.c (bfin_cpus): Add bf592.
24417         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
24418         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
24419         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
24420         * config/bfin/elf.h (LIB_SPEC): Add bf592.
24421
24422 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
24423
24424         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
24425         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
24426         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
24427         target_thread_pointer, arm_structure_size_boundary, struct
24428         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
24429         struct abi_name, arm_all_abis): Remove.
24430         (arm_option_override) Don't process most enumerated option values here.
24431         Don't process target_fpe_name here.  Work with integer not string for
24432         structure size boundary; use separate diagnostics for each case.
24433         * config/arm/arm.h (enum float_abi_type, enum
24434         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
24435         to arm-opts.h.
24436         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
24437         arm_structure_size_boundary): Remove.
24438         * config/arm/arm.opt (mabi=): Use Enum and Init.
24439         (arm_abi_type): New Enum and EnumValue entries.
24440         (mfloat-abi=): Use Enum and Init.
24441         (float_abi_type): New Enum and EnumValue entries.
24442         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
24443         (mfp16-format=): Use Enum and Init.
24444         (arm_fp16_format_type): New Enum and EnumValue entries.
24445         (mstructure-size-boundary=): Use UInteger and Init.
24446         (mtp=): Use Enum and Init.
24447         (arm_tp_type): New Enum and EnumValue entries.
24448
24449 2011-05-18  Richard Guenther  <rguenther@suse.de>
24450
24451         PR tree-optimization/49018
24452         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
24453         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
24454         gimple_has_side_effects.
24455
24456 2011-05-18  Richard Guenther  <rguenther@suse.de>
24457
24458         * gimple.c (gimple_register_type_1): New function, split out from ...
24459         (gimple_register_type): ... here.  Avoid infinite recursion.
24460
24461 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
24462
24463         PR tree-optimization/41881
24464         * tree-vectorizer.h (struct _loop_vec_info): Add new field
24465         reduction_chains along with a macro for its access.
24466         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
24467         (destroy_loop_vec_info): Free reduction chains.
24468         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
24469         (vect_is_slp_reduction): New function.
24470         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
24471         (vect_create_epilog_for_reduction): Support SLP reduction chains.
24472         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
24473         definition types for reduction chains.
24474         (vect_supported_load_permutation_p): Don't allow permutations for
24475         reduction chains.
24476         (vect_analyze_slp_instance): Support reduction chains.
24477         (vect_analyze_slp): Try to build SLP instance from reduction chains.
24478         (vect_get_constant_vectors):  Handle reduction chains.
24479         (vect_schedule_slp_instance): Mark the first statement of the
24480         reduction chain as reduction.
24481
24482 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
24483
24484         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
24485         names for group elements access.
24486         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
24487         reduction chains as well.  Remove data reference and interleaving
24488         related words from the fields names.
24489         * tree-vect-loop.c (vect_transform_loop): Use new names for group
24490         elements access.
24491         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
24492         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
24493         vect_update_interleaving_chain, vect_same_range_drs,
24494         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
24495         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
24496         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
24497         vect_analyze_group_access, vect_analyze_data_ref_access,
24498         vect_create_data_ref_ptr, vect_transform_strided_load,
24499         vect_record_strided_load_vectors): Likewise.
24500         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
24501         vect_model_load_cost, vectorizable_store, vectorizable_load,
24502         vect_remove_stores, new_stmt_vec_info): Likewise.
24503         * tree-vect-slp.c (vect_build_slp_tree,
24504         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
24505
24506 2011-05-18  Richard Guenther  <rguenther@suse.de>
24507
24508         PR middle-end/48989
24509         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
24510         operand verification.
24511         (verify_gimple_assign_binary): Likewise.
24512         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
24513         to non-1-precision BOOLEAN_TYPEs.
24514
24515 2011-05-18  Tom de Vries  <tom@codesourcery.com>
24516
24517         PR target/45098
24518         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
24519
24520 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
24521
24522         PR tree-optimization/49000
24523         * tree-ssa.c (execute_update_addresses_taken): Call
24524         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
24525         be rewritten and decl has been marked for renaming, reset
24526         the debug stmt.
24527
24528 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
24529
24530         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
24531         enum_opts_set when testing if attributes have set -mfpmath=.
24532
24533 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
24534
24535         * config/mips/mips.c (mips_handle_option): Remove unused variable.
24536
24537 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
24538
24539         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
24540         info->entry with 0
24541         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
24542         id.transform_lang_insert_block with NULL.
24543
24544 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
24545
24546         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
24547         (output_fp_compare): Change args 3 and 4 to bool.
24548         (ix86_expand_call): Change arg 6 to bool.
24549         (ix86_attr_length_immediate_default): Change arg 2 to bool.
24550         (ix86_attr_length_vex_default): Change arg 3 to bool.
24551         * config/i386/i386.md: Update all uses.
24552         * config/i386/i386.c: Ditto.
24553         (ix86_flags_dependent): Change return type to bool.
24554
24555 2011-05-17  Richard Guenther  <rguenther@suse.de>
24556
24557         * gimple.c (type_hash_pair_compare): Fix comparison.
24558
24559 2011-05-17  Richard Guenther  <rguenther@suse.de>
24560
24561         * gimple.c (iterative_hash_gimple_type): Simplify singleton
24562         case some more, fix final hash value of the non-singleton case.
24563
24564 2011-05-17  Richard Guenther  <rguenther@suse.de>
24565
24566         PR bootstrap/49013
24567         Revert
24568         2011-05-16  Richard Guenther  <rguenther@suse.de>
24569
24570         * gimple.c (gimple_types_compatible_p_1): Use names of the
24571         type itself, not its main variant.
24572         (iterative_hash_gimple_type): Likewise.
24573
24574 2011-05-17  Richard Guenther  <rguenther@suse.de>
24575
24576         * gimple.c (gimple_register_canonical_type): Use the main-variant
24577         leader for computing the canonical type.
24578
24579 2011-05-17  Nick Clifton  <nickc@redhat.com>
24580
24581         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
24582         moves.
24583
24584         * config/rx/rx.md: Add peephole to remove redundant extensions
24585         after loads.
24586         (bitset_in_memory): Use rx_restricted_mem_operand.
24587         (bitinvert_in_memory): Likewise.
24588         (bitclr_in_memory): Likewise.
24589
24590 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
24591             Nick Clifton  <nickc@redhat.com>
24592
24593         * config/rx/rx.md: Add peepholes to match a register move followed
24594         by a comparison of the moved register.  Replace these with an
24595         addition of zero that does both actions in one instruction.
24596
24597 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
24598
24599         PR target/48986
24600         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
24601         predicate to allow CONST_INT.
24602         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
24603
24604 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
24605
24606         * opts-common.c (opt_enum_arg_to_value): New.
24607         * opts.h (opt_enum_arg_to_value): Declare.
24608         * config/i386/i386.opt (fpmath): Remove.
24609         (mfpmath=): Use Enum, Init and Save.
24610         (fpmath_unit): New Enum and EnumValue entries.
24611         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
24612         name for function fpmath state.
24613         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
24614         * config/i386/i386.c: Include diagnostic.h.
24615         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
24616         (ix86_target_string): Take enum fpmath_unit value instead of string.
24617         (ix86_debug_options): Update call to ix86_target_string.
24618         (ix86_option_override_internal): Don't process fpmath strings here.
24619         (x86_function_specific_save, ix86_function_specific_restore):
24620         Don't handle fpmath state specially.
24621         (ix86_function_specific_print): Pass fpmath state to
24622         ix86_target_string instead of printing in this function.
24623         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
24624         Handle enum attributes.
24625         (IX86_ATTR_ENUM, ix86_opt_enum): New.
24626         (ix86_valid_target_attribute_tree): Update option_strings
24627         handling.  Handle fpmath as enum option.
24628         (ix86_can_inline_p): Update field names for function fpmath state.
24629         (ix86_expand_builtin): Update call to ix86_target_string.
24630         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
24631         (ix86_fpmath): Remove.
24632         * config/i386/t-i386 (i386.o): Update dependencies.
24633
24634 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
24635
24636         PR preprocessor/48677
24637         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
24638         from decoded_options[0], not from itself.
24639
24640 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
24641
24642         * config/i386/constraints.md (z): New constraint.
24643         * config/i386/i386.c (c): New mode attribute.
24644         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
24645         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
24646         constraint for operand 0.
24647         (*call_vzeroupper): Ditto.
24648         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
24649         (*call_rex64_ms_sysv_vzeroupper): Ditto.
24650         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
24651         Use "lzm" constraint for operand 0.
24652         (*call_pop_vzeroupper): Ditto.
24653         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
24654         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
24655         constraint for operand 0.
24656         (*sibcall_vzeroupper): Ditto.
24657         (*sibcall_rex64_ms_sysv): Ditto.
24658         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
24659         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
24660         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
24661         (*sibcall_pop_vzeroupper): Ditto.
24662         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
24663         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
24664         mode iterator.  Use "<c>zm" constraint for operand 1.
24665         (*call_value_vzeroupper): Ditto.
24666         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
24667         for operand 1.
24668         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
24669         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
24670         *call_value_pop_1.  Use "lzm" constraint for operand 1.
24671         (*call_value_pop_vzeroupper): Ditto.
24672         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
24673         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
24674         mode iterator.  Use "Uz" constraint for operand 1.
24675         (*sibcall_value_vzeroupper): Ditto.
24676         (*sibcall_value_rex64_ms_sysv): Ditto.
24677         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
24678         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
24679         constraint for operand 1.
24680         (*sibcall_value_pop_vzeroupper): Ditto.
24681         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
24682         and "z" constraint for operand 2.
24683         (*tls_global_dynamic_32_gnu): Ditto.
24684         (*tls_local_dynamic_base_32_gnu): Ditto.
24685         (*tls_local_dynamic_base_64): Ditto.
24686         (*tls_local_dynamic_32_once): Ditto.
24687         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
24688         Update all callers.
24689         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
24690
24691 2011-05-16  Richard Guenther  <rguenther@suse.de>
24692
24693         * gimple.c (gimple_types_compatible_p_1): Use names of the
24694         type itself, not its main variant.
24695         (iterative_hash_gimple_type): Likewise.
24696
24697 2011-05-16  Richard Guenther  <rguenther@suse.de>
24698
24699         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
24700         always visit pointer target and function result and argument types.
24701
24702 2011-05-16  Jason Merrill  <jason@redhat.com>
24703
24704         PR c++/48999
24705         * tree-inline.c (copy_statement_list): Put back recursion.
24706
24707 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
24708
24709         PR target/27663
24710         PR target/41076
24711         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
24712         * config/avr/avr.md ("*ior<mode>qi.byte0",
24713         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
24714
24715 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
24716
24717         PR target/45099
24718         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
24719         register is needed for a function argument.
24720
24721 2011-05-16  Richard Guenther  <rguenther@suse.de>
24722
24723         * gimple.c (struct type_hash_pair): New type.
24724         (type_hash_pair_compare): New function.
24725         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
24726
24727 2011-05-16  Revital Eres  <revital.eres@linaro.org>
24728
24729         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
24730
24731 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
24732
24733         * config/i386/i386.md (floating point move splitters): Fix
24734         usage of standard_80387_constant_p.
24735         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
24736
24737 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
24738
24739         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
24740
24741 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24742
24743         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
24744         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
24745         (tree_ssa_lim_finalize): Likewise.
24746
24747 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
24748
24749         * config/i386/constraint.md (Yd, Yx): New register constraints.
24750         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
24751         Yd conditional register constraint.
24752         (*movtf_internal): Use standard_sse_constant_opcode.
24753         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
24754         Yx conditional register constraint.
24755         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
24756         Yd conditional register constraint.  Use standard_sse_constant_p to
24757         check for valid SSE constants and call standard_sse_constant_opcode to
24758         output SSE insn.
24759         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
24760         constants and call standard_sse_constant_opcode to output SSE insn.
24761         * config/i386/i386.c (ix86_option_ovverride_internal): Set
24762         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
24763         optimize_size is set.
24764         (standard_sse_constant_opcode): Output conditional AVX insn templates.
24765
24766 2011-05-14  Tobias Burnus  <burnus@net-b.de>
24767
24768         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
24769
24770 2011-05-13  Martin Jambor  <mjambor@suse.cz>
24771
24772         * ipa-prop.c (ipa_cst_from_jfunc): New function.
24773         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
24774         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
24775         (evaluate_conditions_for_ipcp_clone): Removed.
24776         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
24777         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
24778         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
24779
24780 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
24781
24782         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
24783         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
24784         lieu of MAY_HAVE_DEBUG_STMTS.
24785         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
24786         debug statements if !MAY_HAVE_DEBUG_STMTS.
24787
24788 2011-05-13  Martin Thuresson  <martint@google.com>
24789
24790         PR gcov-profile/47793
24791         * libgcov.c (gcov_exit): Support relative profile paths.
24792         * doc/invoke.texi (-fprofile-dir): Update for above change.
24793
24794 2011-05-13  Richard Guenther  <rguenther@suse.de>
24795
24796         * gimple.c (gimple_canonical_types_compatible_p): Do not use
24797         type-pair caching, do not compare hashes.
24798
24799 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
24800
24801         PR middle-end/48965
24802         * tree-cfg.c (edge_to_cases_cleanup): Return true.
24803         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
24804
24805 2011-05-13  Kai Tietz  <ktietz@redhat.com>
24806
24807         * gimplify.c (gimplify_expr): Make sure operand is boolified.
24808         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
24809         compatible type for TRUTH_NOT_EXPR.
24810
24811 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
24812
24813         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
24814         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
24815         can_create_pseudo_p ().
24816
24817 2011-05-13  Richard Guenther  <rguenther@suse.de>
24818
24819         PR lto/48978
24820         * gimple.c (iterative_hash_gimple_type): Revert change in
24821         pointer target and function result and argument hashing.
24822
24823 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
24824
24825         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
24826         (*movxf_internal_nointeger): Ditto.
24827         (*movdf_internal_rex64): Ditto.
24828         (*movdf_internal): Ditto.
24829         (*movdf_internal_nointeger): Ditto.
24830         (*movsf_internal): Ditto.
24831         (sincos splitters): Use can_create_pseudo ().
24832
24833 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
24834
24835         * config/i386/i386-opts.h: New.
24836         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
24837         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
24838         ix86_section_threshold): Remove.
24839         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
24840         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
24841         OPT_mbranch_cost_.
24842         (ix86_option_override_internal): Don't decode strings for options
24843         other than -march=, -mtune= and -mfpmath=.  Don't allow for
24844         __attribute__ uses in remaining diagnostics for options with
24845         string arguments.  Don't check for integer arguments being negative.
24846         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
24847         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
24848         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
24849         ix86_branch_cost, ix86_section_threshold): Remove.
24850         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
24851         HeaderInclude.
24852         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
24853         but not Var.
24854         (masm=): Use Enum and Init.
24855         (asm_dialect): New Enum and EnumValue entries.
24856         (mbranch-cost=): Use UInteger.
24857         (mlarge-data-threshold=): Use UInteger and Init.
24858         (mcmodel=): Use Enum and Init.
24859         (cmodel): New Enum and EnumValue entries.
24860         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
24861         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
24862         mregparm=): Use UInteger.
24863         (mstringop-strategy=): Use Enum and Init.
24864         (stringop_alg): New Enum and EnumValue entries.
24865         (mtls-dialect=): Use Enum and Init.
24866         (tls_dialect): New Enum and EnumValue entries.
24867         (mabi=): Use Enum and Init.
24868         (calling_abi): New Enum and EnumValue entries.
24869         (mveclibabi=): Use Enum and Init.
24870         (ix86_veclibabi): New Enum and EnumValue entries.
24871
24872 2011-05-13  Nick Clifton  <nickc@redhat.com>
24873
24874         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
24875         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
24876
24877 2011-05-13  Kai Tietz  <ktietz@redhat.com>
24878
24879         PR middle-end/48984
24880         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
24881         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
24882         (gimple_boolify): Check for cast for boolean_type_node instead for
24883         BOOLEAN_TYPE.
24884
24885 2011-05-13  Richard Guenther  <rguenther@suse.de>
24886
24887         PR tree-optimization/48172
24888         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
24889         multiplying by number of iterations for equal step.
24890         (vect_create_cond_for_alias_checks): Likewise.
24891
24892 2011-05-13  Andreas Schwab  <schwab@redhat.com>
24893
24894         * configure.ac: Use AS_HELP_STRING throughout.
24895         * configure: Regenerate.
24896
24897 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
24898
24899         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
24900         (ix86_emit_restore_regs_using_mov): Likewise.
24901         (ix86_emit_restore_sse_regs_using_mov): Likewise.
24902
24903 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
24904
24905         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
24906         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
24907         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
24908         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
24909         RTX_OK_FOR_OLO10_P): ...here.
24910         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
24911         SYMBOLIC_CONST.
24912
24913 2011-05-12  Kai Tietz  <ktietz@redhat.com>
24914
24915         * gimplify.c (gimple_boolify): Re-boolify expression
24916         arguments even if expression type is of kind BOOLEAN_TYPE.
24917         (gimplify_boolean_expr): Removed.
24918         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
24919         and XOR. Additional take care that we keep expression's type.
24920         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
24921         of TRUTH_AND|OR|XOR_EXPR.
24922
24923 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
24924
24925         PR tree-optimization/48975
24926         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
24927         on all bbs here and free and clear ifc_bbs at the end.
24928
24929 2011-05-12  Richard Guenther  <rguenther@suse.de>
24930
24931         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
24932         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
24933         until after simple checks.
24934         (gimple_types_compatible_p): Likewise.
24935         (iterative_hash_gimple_type): Always hash pointer targets
24936         and function return and argument types.
24937         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
24938         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
24939         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
24940         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
24941         completely in the simple compare section.
24942         (gimple_register_canonical_type): Query the cache again after
24943         registering.
24944
24945 2011-05-12  Richard Guenther  <rguenther@suse.de>
24946
24947         PR tree-optimization/48172
24948         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
24949         the number of iterations from the segment size calculation.
24950         (vect_create_cond_for_alias_checks): Adjust.
24951
24952 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
24953
24954         PR debug/48967
24955         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
24956         if validate_subreg fails.
24957
24958 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
24959
24960         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
24961         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
24962         early.
24963
24964 2011-05-12  DJ Delorie  <dj@redhat.com>
24965
24966         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
24967         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
24968         created builtin into rx_builtins array.
24969         (rx_builtin_decl): New function.
24970         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
24971
24972 2011-05-12  DJ Delorie  <dj@redhat.com>
24973             Nick Clifton  <nickc@redhat.com>
24974
24975         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
24976         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
24977         (rx_is_legitimate_address): Add pre-decrement and post-increment
24978         addressing in HImode and QImode.  Fix test for out of range
24979         REG+INT addressing.
24980         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
24981         (rx_align_for_label): Test label before extracting its usage count.
24982         (rx_adjust_insn_lengths): Fix selection of insn codes.
24983         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
24984
24985 2011-05-11  Jason Merrill  <jason@redhat.com>
24986
24987         * tree.c (type_hash_canon): Use struct tree_type_non_common.
24988
24989 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
24990
24991         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
24992         reindent the subsequent block.
24993
24994 2011-05-11  Satoru Takabayashi  <satorux@google.com>
24995             Paul Pluzhnikov  <ppluzhnikov@google.com>
24996
24997         * doc/install.texi (Configuration): Document --with-linker-hash-style.
24998         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
24999         * config.in: Add LINKER_HASH_STYLE.
25000         * configure.ac: Add --with-linker-hash-style.
25001         * configure: Regenerate.
25002
25003 2011-05-11  Richard Guenther  <rguenther@suse.de>
25004
25005         PR middle-end/48964
25006         * gimple.c (iterative_hash_canonical_type): Fix typo.
25007
25008 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
25009
25010         * config/i386/i386.c (legitimize_tls_address)
25011         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
25012         expanders directly for TARGET_GNU2_TLS.  Determine pic and
25013         __tls_get_addr symbol reference here.  Update call to
25014         gen_tls_global_dynamic_{32,64} for added arguments.
25015         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
25016         expanders directly for TARGET_GNU2_TLS.  Determine
25017         __tls_get_addr symbol reference here.  Update call to
25018         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
25019         unique UNSPEC REG_EQUIV to libcall block.
25020         (ix86_tls_get_addr): Declare static.
25021         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
25022         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
25023         Do not determine pic and __tls_get_addr symbol reference here. Do not
25024         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
25025         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
25026         (tls_global_dynamic_64): Add operand 2.  Do not determine
25027         __tls_get_addr symbol reference here.  Do not call
25028         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
25029         (tls_local_dynamic_base64): Ditto for operand 1.
25030
25031 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
25032
25033         * function.c (expand_function_start): Initialize stack_check_probe_note
25034         only if the generic stack checking mechanism is used.
25035
25036 2011-05-11  Richard Guenther  <rguenther@suse.de>
25037
25038         PR tree-optimization/15256
25039         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
25040         (A & B) | C, combine (A op CST1) op CST2.
25041         (tree_ssa_forward_propagate_single_use_vars): Only bother to
25042         visit assigns that have uses.
25043
25044 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
25045
25046         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
25047         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
25048         (unpack_ts_type_common_value_fields): ...this.  Update comment.
25049         (unpack_value_fields): Adjust for renaming.
25050         (lto_input_ts_type_tree_pointers): Split into...
25051         (lto_input_ts_type_common_tree_pointer): ...this and...
25052         (lto_input_ts_type_non_common_tree_pointers): ...this.
25053         (lto_input_tree_pointers): Adjust for above split.
25054         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
25055         (pack_ts_type_common_value_fields): ...this.  Update comment.
25056         (lto_output_ts_type_tree_pointers): Split into...
25057         (lto_output_ts_type_common_tree_pointers): ...this and...
25058         (lto_output_ts_type_non_common_tree_pointers): ...this.
25059         (lto_output_tree_pointers): Adjust for above split.
25060         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
25061         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
25062         * stor-layout.c (vector_type_mode): Adjust location of mode field.
25063         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
25064         Define.
25065         (struct tree_type): Split into...
25066         (struct tree_type_common: ...this and...
25067         (struct tree_type_with_lang_specific): ...this and...
25068         (struct tree_type_non_common): ...this.  Adjust accessor macros
25069         accordingly.
25070         (TYPE_VALUES_RAW): Define.
25071         (union tree_node): Update for above changes.
25072         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
25073         TS_TYPE_NON_COMMON.
25074         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
25075         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
25076         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
25077         * treestructu.def (TS_TYPE): Remove.
25078         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
25079         Define.
25080
25081 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
25082
25083         PR debug/48159
25084         * tree-ssa.c (reset_debug_uses): New function.
25085         * tree-flow.h (reset_debug_uses): New prototype.
25086         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
25087         * tree-loop-distribution.c (generate_loops_for_partition): Call
25088         reset_debug_uses on the stmts that will be removed.  Keep around
25089         all debug stmts, don't count them as bits in partition bitmap.
25090         (generate_builtin): Don't count debug stmts or labels as bits in
25091         partition bitmap.
25092
25093 2011-05-11  Richard Guenther  <rguenther@suse.de>
25094
25095         * gimple.c (gimple_type_hash_1): Merge with ...
25096         (gimple_type_hash): ... this.
25097         (gtc_visit): Remove mode parameter and simplify accordingly.
25098         (gimple_types_compatible_p_1): Likewise.
25099         (gimple_types_compatible_p): Likewise.
25100         (iterative_hash_gimple_type): Likewise.
25101         (visit): Likewise.
25102         (gimple_type_eq): Adjust.
25103
25104 2011-05-11  Revital Eres  <revital.eres@linaro.org>
25105
25106         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
25107         enters the branch create an anti edge in the opposite direction
25108         to prevent the creation of reg-moves.
25109         * modulo-sched.c: Adjust comment to reflect the fact we are
25110         scheduling closing branch.
25111         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
25112         (stage_count): New field in struct partial_schedule.
25113         (calculate_stage_count): New function.
25114         (normalize_sched_times): Rename to reset_sched_times and handle
25115         incrementing the sched time of the nodes by a constant value
25116         passed as parameter.
25117         (duplicate_insns_of_cycles): Skip closing branch.
25118         (sms_schedule_by_order): Schedule closing branch.
25119         (ps_insn_find_column): Handle closing branch.
25120         (sms_schedule): Call reset_sched_times and adjust the code to
25121         support scheduling of the closing branch.
25122         (ps_insert_empty_row): Update calls to normalize_sched_times
25123         and rotate_partial_schedule functions.
25124
25125 2011-05-11  Richard Guenther  <rguenther@suse.de>
25126
25127         PR middle-end/48953
25128         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
25129
25130 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
25131
25132         * opts.c (finish_options): Move warning settings from process_options.
25133         * toplev.c (process_options): Move warning settings to finish_options.
25134
25135 2011-05-11  Richard Guenther  <rguenther@suse.de>
25136
25137         PR tree-optimization/18041
25138         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
25139         (simplify_bitwise_binary): ... this.  Handle operand conversions
25140         by applying them to the result instead.
25141         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
25142
25143 2011-05-11  Richard Guenther  <rguenther@suse.de>
25144
25145         * gimple.c (gimple_canonical_types_compatible_p): Split out
25146         from gimple_types_compatible_p and friends.  Do not recurse
25147         to pointed-to types.
25148         (gimple_canonical_type_eq): Use it.
25149         (iterative_hash_canonical_type): Split out from
25150         iterative_hash_gimple_type and friends.  Do not recurse
25151         to pointed-to types.
25152         (gimple_canonical_type_hash): Use it, allocate the hash here.
25153
25154 2011-05-11  Revital Eres  <revital.eres@linaro.org>
25155
25156         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
25157         recognizing doloop.
25158
25159 2011-05-11  Revital Eres  <revital.eres@linaro.org>
25160
25161         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
25162         instead of PREV_INSN.
25163
25164 2011-05-11  Revital Eres  <revital.eres@linaro.org>
25165
25166         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
25167         * loop-doloop.c (doloop_condition_get): Likewise.
25168         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
25169         (doloop_end): New.
25170         * config/arm/arm.md (*addsi3_compare0): Remove "*".
25171
25172 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
25173
25174         * tree.def (CASE_LABEL_EXPR): Add an operand.
25175         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
25176
25177 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
25178
25179         * c-decl.c (c_override_global_bindings_to_false): Remove.
25180         (global_bindings_p): Don't check
25181         c_override_global_bindings_to_false.
25182         * c-tree.h (c_override_global_bindings_to_false): Remove.
25183         * c-typeck.c (composite_type): Don't set
25184         c_override_global_bindings_to_false.
25185
25186 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
25187
25188         PR target/48857, 48495
25189         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
25190         (VSX_MODE): Ditto.
25191         (VSX_MOVE_MODE): Ditto.
25192         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
25193         VSX vector types.  Add V2DImode.
25194         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
25195         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
25196         (MODES_TIEABLE_P): Ditto.
25197
25198         * config/rs6000/rs6000.c (rs6000_emit_move): Use
25199         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
25200         VSX_VECTOR_MODE.
25201         (init_cumulative_args): Ditto.
25202         (rs6000_function_arg_boundary): Ditto.
25203         (rs6000_function_arg_advance_1): Ditto.
25204         (rs6000_function_arg): Ditto.
25205         (rs6000_function_ok_for_sibcall): Ditto.
25206         (emit_frame_save): Ditto.
25207         (rs6000_function_value): Ditto.
25208         (rs6000_libcall_value): Ditto.
25209
25210 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
25211
25212         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
25213         i386/darwin-lib.h to $libgcc_tm_file.
25214         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
25215
25216 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
25217
25218         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
25219
25220 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
25221
25222         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
25223         * config/rs6000/rs6000-tables.opt: New file (generated).
25224         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
25225         rs6000/rs6000-tables.opt to extra_options.
25226         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
25227         * config/rs6000/rs6000.c (rs6000_select): Remove.
25228         (processor_target_table): Move contents to rs6000-cpus.def.
25229         (darwin_rs6000_override_options): Check
25230         global_options_set.x_rs6000_cpu_index instead of
25231         rs6000_select[1].string.
25232         (rs6000_option_override_internal): Likewise.
25233         (rs6000_handle_option): Don't assert that global structures are in
25234         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
25235         (rs6000_default_cpu): New variable.
25236         (rs6000_file_start): Set it instead of local default_cpu.  Check
25237         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
25238         global_options_set.x_rs6000_tune_index instead of rs6000_select.
25239         (rs6000_darwin_file_start): Check rs6000_default_cpu and
25240         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
25241         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
25242         rs6000_select): Remove.
25243         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
25244         Remove.
25245         (mcpu=, mtune=): Use Var, Init, Enum and Save.
25246         * config/rs6000/t-rs6000
25247         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
25248         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
25249         global_options_set.x_rs6000_cpu_index instead of
25250         rs6000_select[1].string.
25251         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
25252         global_options_set.x_rs6000_cpu_index instead of
25253         rs6000_select[1].string.
25254
25255 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
25256
25257         * config.gcc (libgcc_tm_file): Define instead of including files
25258         from ../../libgcc/config/ in tm_file.
25259         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
25260         * configure: Regenerate.
25261         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
25262         libgcc_tm.h, cs-libgcc_tm.h): New.
25263         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
25264         (clean): Remove libgcc_tm.h.
25265         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
25266         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
25267         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
25268
25269 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
25270
25271         PR target/48896
25272         * config/avr/avr.c (avr_ret_register): Return unsigned int
25273         instead of int.
25274         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
25275         it to avr_libcall_value.
25276         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
25277         expand_expr.
25278         (avr_expand_binop_builtin): Ditto.
25279         (avr_expand_unop_builtin): Ditto.
25280
25281 2011-05-10  DJ Delorie  <dj@redhat.com>
25282
25283         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
25284         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
25285         * config/rx/rx.c (rx_align_for_label): Add label and
25286         uses_threshold parameters.  Do not align when the label is not
25287         used enough.
25288         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
25289
25290 2011-05-10  Richard Guenther  <rguenther@suse.de>
25291
25292         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
25293         a series of conversions and apply foldings similar to what
25294         fold-const does.
25295         (tree_ssa_forward_propagate_single_use_vars): Call it.
25296
25297 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
25298
25299         PR tree-optimization/48611
25300         PR tree-optimization/48794
25301         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
25302         referenced from RESX or EH_DISPATCH arguments.
25303
25304         PR debug/48928
25305         * dfp.c (decimal_to_decnumber): Handle conversion from
25306         dconst{1,2,m1,half}.
25307
25308 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
25309
25310         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
25311         for !flag_prefer_avx128.
25312         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
25313
25314 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
25315
25316         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
25317         (fold_ternary_loc): Use expr_location_or.
25318
25319 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25320
25321         PR debug/48853
25322         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
25323         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
25324         Pmode and mem_mode is not VOIDmode.
25325
25326 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
25327
25328         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
25329         TYPE_QUAL_RESTRICT): Convert to enum.
25330
25331 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
25332
25333         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
25334         (const_pow2_1_to_8_operand): Ditto.
25335         (const_pow2_1_to_128_operand): Ditto.
25336         (const_pow2_1_to_32768_operand): Ditto.
25337         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
25338         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
25339         in insn constraint to check integer value of operand 3.
25340         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
25341
25342         (PINSR_MODE): New mode iterator.
25343         (sse2p4_1): New mode attribute.
25344         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
25345         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
25346         iterator.  Use const_int_operand instead of
25347         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
25348         exact_log2 in insn constraint to check integer value of operand 3.
25349
25350 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
25351
25352         * config/i386/sse.md (blendbits): Remove mode attribute.
25353         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
25354         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
25355         Check integer value of operand 3 in insn constraint.
25356
25357 2011-05-09  Richard Guenther  <rguenther@suse.de>
25358
25359         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
25360         for diagnostics.
25361         (lto_symtab_merge): Likewise.  Do not register types here.
25362         (lto_symtab_merge_decls_2): Likewise.
25363         (lto_symtab_merge_decls_1): Likewise.
25364         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
25365         * gimple.c (enum gtc_mode): Declare.
25366         (gimple_types_compatible_p): Make static.
25367
25368 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25369
25370         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
25371         temporary register to match Pmode.
25372
25373 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
25374
25375         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
25376         and *vec_concatv4si_1_avx.
25377
25378 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
25379
25380         PR rtl-optimization/48927
25381         * ira-conflicts.c (commutative_constraint_p): Use
25382         recog_data.alternative_enabled_p to disable alternatives where
25383         "enabled" attribute is false.
25384         (get_dup_num): Ditto.
25385         * ira-lives.c (single_reg_class): Ditto.
25386         (ira_implicitly_set_insn_hard_regs): Ditto.
25387
25388 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
25389
25390         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
25391         (dataflow_set_preserve_mem_locs): Likewise.
25392
25393 2011-05-09  Philipp Thomas  <pth@suse.de>
25394
25395         * config/mep/mep.c (mep_validate_vliw): Syntax description
25396         should not be translated.
25397
25398 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
25399
25400         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
25401         * config/mips/mips-tables.opt: New file (generated).
25402         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
25403         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
25404         MIPS_ARCH_OPTION_NATIVE): Define.
25405         * config/mips/mips.c (mips_cpu_info_table): Move contents to
25406         mips-cpus.def.
25407         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
25408         mips_parse_cpu): Remove.
25409         (mips_cpu_info_from_opt, mips_default_arch): New.
25410         (mips_handle_option): Don't assert that global structures are in
25411         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
25412         (mips_option_override): Use new variables and functions to set
25413         state of these options.  Use strcmp to check for individual CPU names.
25414         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
25415         definition.
25416         * config/mips/mips.opt (march=): Use ToLower and Enum.
25417         (mips): Use ToLower, Enum and Var.
25418         (mtune=): Use ToLower and Enum.
25419         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
25420
25421 2011-05-08  Jan Hubicka  <jh@suse.cz>
25422
25423         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
25424         Arrange type pairs to be UID ordered.
25425         (gimple_lookup_type_leader): Make inline.
25426
25427 2011-05-09  Nick Clifton  <nickc@redhat.com>
25428
25429         PR target/48899
25430         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
25431         PROCESSOR_DEFAULT.
25432
25433         PR target/48897
25434         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
25435         variable 's'.
25436
25437 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
25438
25439         * combine.c (simplify_comparison): Abstract out parts into...
25440         (simplify_compare_const): ... new function.
25441         (try_combine): Generalize parallel arithmetic/compare combining
25442         to call simplify_compare_const() and CANONICALIZE_COMPARE().
25443
25444 2011-05-08  Jan Hubicka  <jh@suse.cz>
25445
25446         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
25447         (cgraph_create_virtual_clone): Call hooks once virtual clone
25448         is finished.
25449         * cgraph.h (cgraph_clone_node): Update prototype.
25450         * ipa-cp.c (ipcp_estimate_growth): Use
25451         estimate_ipcp_clone_size_and_time.
25452         * ipa-inline-transform.c (clone_inlined_nodes): Update.
25453         * lto-cgraph.c (input_node): Update.
25454         * ipa-inline.c (recursive_inlining): Update.
25455         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
25456         (evaluate_conditions_for_known_args): Break out from ...
25457         (evaluate_conditions_for_edge): ... here.
25458         (evaluate_conditions_for_ipcp_clone): New function.
25459         (inline_node_duplication_hook): Update clone summary based
25460         on parameter map.
25461         (estimate_callee_size_and_time): Rename to ...
25462         (estimate_node_size_and_time): take NODE instead of EDGE;
25463         take POSSIBLE_TRUTHS as argument.
25464         (estimate_callee_size_and_time): Update.
25465         (estimate_ipcp_clone_size_and_time): New function.
25466         (do_estimate_edge_time): Update.
25467
25468 2011-05-08  Richard Guenther  <rguenther@suse.de>
25469
25470         PR middle-end/48908
25471         PR middle-end/48905
25472         * expmed.c (expand_shift_1): Compute adjusted constant shift
25473         amount manually.
25474
25475 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
25476
25477         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
25478
25479 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
25480
25481         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
25482
25483 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
25484
25485         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
25486
25487 2011-05-07  Jan Hubicka  <jh@suse.cz>
25488
25489         * ipa-inline-transform.c (inline_call): Account when program size
25490         decreases.
25491         * ipa-inline.c (relative_time_benefit): New function.
25492         (edge_badness): Reorganize to be power 2 based; fix thinko when
25493         computing badness for negative growth; update comments to match
25494         reality; better dumps.
25495
25496 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
25497
25498         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
25499         type to bool and adjust comment.
25500         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
25501         (fold_mathfn_compare): Remove calls to global_bindings_p.
25502         (fold_inf_compare): Likewise.
25503         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
25504         * c-tree.h (global_bindings_p): Adjust prototype.
25505         * c-decl.c (global_bindings_p): Return bool and simplify.
25506
25507 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
25508
25509         PR tree-optimization/48837
25510         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
25511         when accumulator transformation is performed.
25512
25513 2011-05-06  Jan Hubicka  <jh@suse.cz>
25514
25515         * i386.h (ix86_tune_indices): Add
25516         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
25517         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
25518         * i386.c (initial_ix86_tune_features): Add
25519         X86_SOFTARE_PREFETCHING_BENEFICIAL.
25520         (software_prefetching_beneficial_p): Remove predicate.
25521         (ix86_option_override_internal): Use new macro.
25522
25523 2011-05-06  Jan Hubicka  <jh@suse.cz>
25524
25525         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
25526
25527 2011-05-06  Jan Hubicka  <jh@suse.cz>
25528
25529         * cgraph.c (cgraph_add_thunk): Create real function node instead
25530         of alias node; finalize it and mark needed/reachale; arrange visibility
25531         to be right and add it into the corresponding same comdat group list.
25532         (dump_cgraph_node): Dump thunks.
25533         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
25534         cgraph_function_with_gimple_body_p,
25535         cgraph_first_function_with_gimple_body,
25536         cgraph_next_function_with_gimple_body): New functions.
25537         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
25538         New macros.
25539         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
25540         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
25541         * cgraphunit.c (cgraph_finalize_function): Only look into possible
25542         devirtualization when optimizing.
25543         (verify_cgraph_node): Verify thunks.
25544         (cgraph_analyze_function): Analyze thunks.
25545         (cgraph_mark_functions_to_output): Output thunks only in combination
25546         with function they are assigned to.
25547         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
25548         alias into normal node.
25549         (assemble_thunks): New functoin.
25550         (cgraph_expand_function): Use it.
25551         * lto-cgraph.c (lto_output_node): Stream thunks.
25552         (input_overwrite_node): Stream in thunks.
25553         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
25554         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
25555         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
25556         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
25557         (inline_analyze_function): Do not care about thunk jump functions.
25558         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
25559         * ipa-prop.c (ipa_prop_write_jump_functions): Use
25560         cgraph_function_with_gimple_body_p.
25561         * passes.c (do_per_function_toporder): Use
25562         cgraph_function_with_gimple_body_p.
25563         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
25564         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
25565         (function_called_by_processed_nodes_p): Likewise.
25566
25567 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
25568
25569         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
25570         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
25571         entries.
25572         (mabi=): Replace with separate entries for mabi=altivec,
25573         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
25574         mabi=ieeelongdouble and mabi=ibmlongdouble.
25575         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
25576         check for -mabi=spe without SPE ABI support here.
25577         (rs6000_handle_option): Replace OPT_mabi_ handling with
25578         OPT_mabi_altivec and OPT_mabi_spe handling.
25579
25580 2011-05-06  Cary Coutant  <ccoutant@google.com>
25581
25582         * dwarf2out.c (contains_subprogram_definition): New function.
25583         (should_move_die_to_comdat): Call it.
25584
25585 2011-05-06  Jeff Law  <law@redhat.com>
25586
25587         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
25588         remove_ctrl_stmt_and_useless_edges.
25589         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
25590         (fixup_template_block, thread_single_edge): Likewise.
25591         (mark_threaded_blocks): Use THREAD_TARGET.
25592
25593 2011-05-06  Alan Modra  <amodra@gmail.com>
25594
25595         PR target/48900
25596         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
25597         const0_rtx as the arg to the dummy __tls_get_addr libcall.
25598
25599 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
25600
25601         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
25602         constraint modifier to "r".
25603
25604 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
25605
25606         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
25607         fall through for OPT_mcmodel_.
25608
25609 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25610
25611         * config/s390/s390.c (s390_asm_trampoline_template): Comment
25612         instruction sizes.
25613         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
25614
25615 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25616
25617         PR target/47930
25618         * config/arm/arm.opt (marm): Document it.
25619         (mthumb): Reject negative variant.
25620
25621 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
25622
25623         PR target/48898
25624         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
25625         Fix typo in "ccvt" variable name.
25626
25627 2011-05-06  Tristan Gingold  <gingold@adacore.com>
25628
25629         PR target/48895
25630         * config/vms/vms-ar.c (main): Remove cwd variable.
25631
25632 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
25633
25634         PR debug/48902
25635         * var-tracking.c (prepare_call_arguments): Move else before #endif.
25636
25637 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
25638
25639         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
25640         * gimplify.c (gimplify_switch_expr): Likewise.
25641         * omp-low.c (expand_omp_sections): Likewise.
25642         * tree-eh.c (lower_try_finally_switch): Likewise.
25643         (lower_eh_dispatch): Likewise.
25644         * tree.h (build_case_label): Declare.
25645         * tree.c (build_case_label): Define.
25646
25647 2011-05-05  Jason Merrill  <jason@redhat.com>
25648
25649         PR c++/40975
25650         * tree-inline.c (copy_tree_r): Use copy_statement_list.
25651         (copy_statement_list): Don't recurse.
25652         * stor-layout.c (copy_self_referential_tree_r): Don't allow
25653         STATEMENT_LIST.
25654
25655 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
25656
25657         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
25658         through from -mfpu= handling.
25659         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
25660
25661 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
25662
25663         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
25664         POST_MODIFY.
25665
25666 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
25667
25668         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
25669         for 11.31.
25670         (hppa[12]*-*-hpux11*): Ditto.
25671         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
25672         * config/ia64/hpux-unix2003.h: New.
25673         * config/pa/pa-hpux1131.opt: New.
25674         * config/pa/pa-hpux1131.h: New.
25675         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
25676         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
25677         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
25678
25679 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
25680
25681         PR debug/48853
25682         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
25683         instead of mode as 3rd argument to recursive call.
25684         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
25685         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
25686         VOIDmode.
25687         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
25688         don't give up if mode is Pmode and mem_mode is not VOIDmode.
25689         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
25690         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
25691
25692 2011-05-05  Julian Brown  <julian@codesourcery.com>
25693
25694         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
25695         parenthesis in D-register case.
25696
25697 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
25698
25699         * opt-functions.awk (var_type_struct): Handle Enum options.
25700         * optc-gen.awk: Don't check range of variables of character type.
25701         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
25702         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
25703         rs6000_sdata_name, rs6000_explicit_options): Remove.
25704         (rs6000_option_override_internal): Check for -malign-power here.
25705         Use global_options_set instead of rs6000_explicit_options.
25706         (rs6000_parse_fpu_option): Remove.
25707         (rs6000_handle_option): Access variables via opts and opts_set
25708         pointers.  Use error_at and warning_at.  Add fall-through
25709         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
25710         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
25711         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
25712         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
25713         here.  Don't use rs6000_parse_fpu_option.
25714         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
25715         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
25716         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
25717         (mrecip=): Use Var.
25718         (mspe): Use Var and Save.
25719         (mtraceback=): Use Enum and Var.
25720         (rs6000_traceback_type): New Enum and EnumValue entries.
25721         (mfloat-gprs=): Use Enum, Var and Save.
25722         (rs6000_float_gprs): New Enum and EnumValue entries.
25723         (mlong-double-): use Var and Save.
25724         (msched-costly-dep=, minsert-sched-nops=): Use Var.
25725         (malign-): Use Enum and Var.
25726         (rs6000_alignment_flags): New Enum and EnumValue entries.
25727         (mfpu=): Use Enum.
25728         (fpu_type_t): New Enum and EnumValue entries.
25729         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25730         global_options_set instead of rs6000_explicit_options.
25731         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25732         global_options_set instead of rs6000_explicit_options.
25733         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25734         global_options_set instead of rs6000_explicit_options.
25735         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25736         global_options_set instead of rs6000_explicit_options.
25737         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
25738         global_options_set instead of rs6000_explicit_options.
25739         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
25740         global_options_set instead of rs6000_explicit_options.
25741         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
25742         definition.
25743         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
25744         global_options_set instead of rs6000_explicit_options.
25745         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
25746         (rs6000_cmodel): New Enum and EnumValue entries.
25747         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
25748         global_options_set instead of rs6000_explicit_options.
25749         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
25750         (mtls-size=): Use Enum and Var.
25751         (rs6000_tls_size): New Enum and EnumValue entries.
25752
25753 2011-05-05  Michael Matz  <matz@suse.de>
25754
25755         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
25756         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
25757         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
25758         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
25759         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
25760         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
25761         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
25762         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
25763         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
25764         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
25765         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
25766         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
25767         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
25768         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
25769         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
25770         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
25771
25772 2011-05-05  Richard Guenther  <rguenther@suse.de>
25773
25774         * expmed.c (expand_variable_shift): Rename to ...
25775         (expand_shift_1): ... this.  Take an expanded shift amount.
25776         For rotates recurse directly not building trees for the shift amount.
25777         (expand_variable_shift): Wrap around expand_shift_1.
25778         (expand_shift): Adjust.
25779
25780 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
25781
25782         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
25783
25784 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
25785
25786         * tree.h (get_pending_sizes): Remove prototype.
25787         (put_pending_size): Likewise.
25788         (put_pending_sizes): Likewise.
25789         * stor-layout.c (pending_sizes): Delete.
25790         (get_pending_sizes): Likewise.
25791         (put_pending_size): Likewise.
25792         (put_pending_sizes): Likewise.
25793         (variable_size): Do not call put_pending_size and tidy up.
25794         * function.h (struct function): Remove dont_save_pending_sizes_p.
25795         * lto-streamer-in.c (input_function): Do not stream it.
25796         * lto-streamer-out.c (output_function): Likewise.
25797         * tree-inline.c (initialize_cfun): Do not copy it.
25798         * c-decl.c (store_parm_decls): Do not set it.
25799         * omp-low.c (create_task_copyfn): Likewise.
25800         * tree-optimize.c (tree_rest_of_compilation): Likewise.
25801
25802 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
25803
25804         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
25805         conditions.
25806         (*movdf_internal): Ditto.
25807         (*movdf_internal_nointeger): Ditto.
25808         (*movsf_internal): Ditto.
25809
25810 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
25811
25812         * c-decl.c (finish_decl): Don't call get_pending_sizes.
25813         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
25814         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
25815         (c_variable_size): Remove.
25816         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
25817         call put_pending_sizes.
25818         (get_parm_info): Add parameter expr.  Use it to set
25819         arg_info->pending_sizes.
25820         (store_parm_decls): Use arg_info->pending_sizes instead or calling
25821         get_pending_sizes.
25822         * c-parser.c (c_parser_parms_declarator): Update call to
25823         c_parser_parms_list_declarator.
25824         (c_parser_parms_list_declarator): Take parameter expr.  Update
25825         call to push_parm_decl.  Update recursive call.  Don't call
25826         get_pending_sizes.  Update calls to get_parm_info.
25827         (c_parser_objc_method_definition): Update calls to
25828         c_parser_objc_method_decl and objc_start_method_definition.
25829         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
25830         (c_parser_objc_method_decl): Add parameter expr.  Update call to
25831         grokparm.
25832         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
25833         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
25834         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
25835
25836 2011-05-05  Michael Hope  <michael.hope@linaro.org>
25837
25838         PR pch/45979
25839         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
25840         __ARM_EABI__ hosts.
25841
25842 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25843
25844         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
25845         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
25846         (spu_output_mi_thunk): New function.
25847
25848 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25849
25850         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
25851         targetm.asm_out.print_operand.
25852         * config/sol2.c: Include target.h.
25853
25854 2011-05-04  Jan Hubicka  <jh@suse.cz>
25855
25856         * ipa-inline.c (reset_edge_caches): New function.
25857         (update_caller_keys): Add check_inlinablity_for; do not
25858         reset edge caches; remove now unnecesary loop.
25859         (update_callee_keys): Add comments; reset node_growth_cache of callee.
25860         (update_all_callee_keys): Likewise.
25861         (inline_small_functions): Sanity check cache; update code
25862         recomputing it.
25863
25864 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
25865
25866         PR rtl-optimization/47612
25867         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
25868         as the last insn of the sequence to be moved.
25869
25870 2011-05-04  Tobias Burnus  <burnus@net-b.de>
25871
25872         PR fortran/48864
25873         * doc/invoke.texi (Ofast): Document that it
25874         enables Fortran's -fno-protect-parens.
25875
25876 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
25877
25878         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
25879
25880 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
25881
25882         * stor-layout.c (variable_size): Do not issue errors.
25883
25884 2011-05-04  Richard Guenther  <rguenther@suse.de>
25885
25886         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
25887         for array-ref indices.
25888         (tree_coverage_counter_addr): Likewise.
25889         (build_fn_info_type): Use size_int for index types.
25890         (build_gcov_info): Likewise.
25891
25892 2011-05-04  Richard Guenther  <rguenther@suse.de>
25893
25894         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
25895         to build_int_cst.
25896         * c-typeck.c (really_start_incremental_init): Use bitsize_int
25897         for constructor indices.
25898         (push_init_level): Likewise.
25899
25900 2011-05-04  Richard Guenther  <rguenther@suse.de>
25901
25902         * explow.c (promote_mode): Move variable declarations before code.
25903
25904 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
25905
25906         * tree.h (build_function_type_array): Declare.
25907         (build_varargs_function_type_array): Declare.
25908         (build_function_type_vec, build_varargs_function_type_vec): Define.
25909         * tree.c (build_function_type_array_1): New function.
25910         (build_function_type_array): New function.
25911         (build_varargs_function_type_array): New function.
25912
25913 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
25914
25915         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
25916         before setting STMT_VINFO_TYPE.
25917
25918 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25919
25920         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
25921         instead of spu_pass_by_reference.
25922
25923 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25924
25925         * calls.c (emit_library_call_value_1): Invoke
25926         promote_function_mode hook on libcall arguments.
25927         * explow.c (promote_function_mode, promote_mode): Handle TYPE
25928         argument being NULL.
25929         * targhooks.c (default_promote_function_mode): Lisewise.
25930         * config/s390/s390.c (s390_promote_function_mode): Likewise.
25931         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
25932
25933         * doc/tm.texi: Document that TYPE argument might be NULL.
25934
25935 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
25936
25937         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
25938
25939 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
25940
25941         From Bernd Schmidt
25942         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
25943
25944 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25945
25946         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
25947         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
25948         Move ...
25949         * mips-tfile.c: ... here.
25950         Don't include coretypes.h, tm.h, filenames.h.
25951         (saber_stop): Remove definition and all calls.
25952         [__SABER__]: Remove.
25953         (__LINE__): Remove default.
25954         (Size_t, Ptrdiff_t): Remove definitions.
25955         Replace by size_t, ptrdiff_t.
25956         [!MIPS_DEBUGGING_INFO]: Remove.
25957         (SHASH_SIZE, THASH_SIZE): Remove defaults.
25958         (progname): Add const.
25959         (STATIC): Remove.
25960         Replace all uses by static.
25961         (ALIGN_SYMTABLE_OFFSET): Remove default.
25962         * mips-tdump.c: Don't include coretypes.h, tm.h.
25963         Remove !MIPS_IS_STAB guard.
25964         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
25965         $(TM_H), filenames.h dependencies.
25966         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
25967
25968 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
25969
25970         From Jie Zhang
25971         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
25972         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
25973
25974 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
25975
25976         From Bernd Schmidt
25977         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
25978         account and save/restore RETS.
25979         (PROFILE_BEFORE_PROLOGUE): Define.
25980         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
25981         the push insn to use predecrement.
25982
25983 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
25984
25985         From Jie Zhang
25986         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
25987
25988 2011-05-04  Nick Clifton  <nickc@redhat.com>
25989
25990         * config/mn10300/mn10300.c: Include cfgloop.h.
25991         (DUMP): New macro.
25992         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
25993         Lcc or a FLcc insn into the instruction stream.
25994         (mn10300_block_contains_call): New function.  Returns true if the
25995         given basic block contains a CALL insn.
25996         (mn10300_loop_contains_call_insn): New function.  Returns true if
25997         the given loop contains a CALL insn.
25998         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
25999         to use the SETLB and Lcc or FLcc insns.
26000         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
26001         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
26002         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
26003         disable the SETLB optimization.
26004         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
26005         __SETLB__ or __NO_SETLB__.
26006         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
26007         (movsf_internal): Handle MDR register.
26008         (cmpsi): Make visible.
26009         (setlb): New pattern.
26010         (Lcc): New pattern.
26011         (FLcc): New pattern.
26012
26013 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
26014
26015         PR target/48860
26016         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
26017         for reg<->xmm moves.
26018         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
26019         (vec_concatv2di_rex64_sse): Ditto.
26020         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
26021         (*vec_extractv2di_1_rex64): Ditto.
26022
26023         Revert:
26024         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
26025
26026         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
26027         reg<->xmm moves.
26028         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
26029
26030 2011-05-04  Richard Guenther  <rguenther@suse.de>
26031
26032         * tree.h (int_const_binop): Remove notrunc argument.
26033         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
26034         create integer constants that are properly truncated.
26035         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
26036         (const_binop): Remove zero notrunc argument to int_const_binop.
26037         (size_binop_loc): Likewise.
26038         (fold_div_compare): Likewise.
26039         (maybe_canonicalize_comparison_1): Likewise.
26040         (fold_comparison): Likewise.
26041         (fold_binary_loc): Likewise.
26042         (multiple_of_p): Likewise.
26043         * expr.c (store_constructor): Likewise.
26044         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
26045         (maybe_fold_stmt_addition): Likewise.
26046         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
26047         * stor-layout.c (layout_type): Likewise.
26048         * tree-data-ref.c (tree_fold_divides_p): Likewise.
26049         * tree-sra.c (build_ref_for_offset): Likewise.
26050         (build_user_friendly_ref_for_offset): Likewise.
26051         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
26052         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26053         * tree-ssa-loop-niter.c (inverse): Likewise.
26054         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
26055         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
26056         * tree-switch-conversion.c (check_range): Likewise.
26057         (build_constructors): Likewise.
26058         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
26059         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
26060         (extract_range_from_assert): Likewise.
26061         (vrp_int_const_binop): Likewise.
26062         (extract_range_from_binary_expr): Likewise.
26063         (extract_range_from_unary_expr): Likewise.
26064         (check_array_ref): Likewise.
26065         (find_case_label_range): Likewise.
26066         (simplify_div_or_mod_using_ranges): Likewise.
26067         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
26068         comparing case labels for merging.
26069
26070 2011-05-03  Mark Wielaard  <mjw@redhat.com>
26071
26072         * dwarf2out.c (debug_str_hash_forced): Removed.
26073         (gen_label_for_indirect_string): Removed.
26074         (get_debug_string_label): Removed.
26075         (AT_string_form): Generate label directly.
26076         (output_indirect_string): Test indirect_string_node for
26077         DW_FORM_strp instead of checking label and refcount.
26078         (prune_indirect_string): Removed.
26079         (prune_unused_types): Don't check debug_str_hash_forced or
26080         call prune_indirect_string.
26081
26082 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
26083
26084         PR other/48093
26085         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
26086
26087 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
26088
26089         PR debug/47994
26090         PR debug/47919
26091         * combine.c (try_combine): Skip debug insns at m_split tests.
26092
26093 2011-04-26  Mark Wielaard  <mjw@redhat.com>
26094
26095         PR42288
26096         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
26097         when info_section_emitted.
26098
26099 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
26100
26101         * config/mips/mips-opts.h: New.
26102         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
26103         to mips-opts.h.
26104         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
26105         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
26106         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
26107         via opts pointer.
26108         * config/mips/mips.h (enum mips_code_readable_setting): Move to
26109         mips-opts.h.
26110         (mips_abi, mips_code_readable): Don't declare.
26111         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
26112         (mabi=): Use Enum and Var.
26113         (mips_abi): New Enum and EnumValue entries.
26114         (mcode-readable=): Use Enum and Var.
26115         (mips_code_readable_setting): New Enum and EnumValue entries.
26116         (mr10k-cache-barrier=): Use Enum and Var.
26117         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
26118
26119 2011-05-03  Jan Hubicka  <jh@suse.cz>
26120
26121         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
26122         replace hash by pointer map.
26123         (cgraph_node_set_element_def, cgraph_node_set_element,
26124         const_cgraph_node_set_element, varpool_node_set_element_def,
26125         varpool_node_set_element, const_varpool_node_set_element): Remove.
26126         (free_cgraph_node_set, free_varpool_node_set): New function.
26127         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
26128         * tree-emutls.c: Free varpool node set.
26129         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
26130         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
26131         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
26132         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
26133         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
26134         Move here from ipa.c; implement using pointer_map
26135         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
26136         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
26137         debug_cgraph_node_set, varpool_node_set_new,
26138         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
26139         dump_varpool_node_set, debug_varpool_node_set):
26140         Move to ipa-uitls.c.
26141         * passes.c (ipa_write_summaries): Update.
26142
26143 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
26144
26145         From Mike Frysinger:
26146         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
26147         bf542/bf544/bf547/bf548/bf549.
26148
26149 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
26150
26151         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
26152
26153 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
26154
26155         From Bernd Schmidt:
26156         * config/bfin/bfin.md (MOVCC): New mode_macro.
26157         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
26158         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
26159         comments from generated assembly.
26160
26161 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
26162
26163         From Bernd Schmidt
26164         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
26165         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
26166         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
26167         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
26168         * config/bfin/lib1funcs.asm (___muldi3): New function.
26169
26170 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26171
26172         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
26173         build_function_type_list instead of build_function_type.
26174         Rearrange initialization of `args' to do so.
26175
26176 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26177
26178         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
26179         instead of build_function_type.
26180
26181 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26182
26183         * config/rs6000/rs6000.c (spe_init_builtins): Call
26184         build_function_type_list instead of build_function_type.
26185         (paired_init_builtins, altivec_init_builtins): Likewise.
26186         (builtin_function_type): Likewise.
26187
26188 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26189
26190         * config/sh/sh.c (sh_media_init_builtins): Call
26191         build_function_type_list instead of build_function_type.
26192
26193 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26194
26195         * config/sparc/sparc.c (sparc_file_end): Call
26196         build_function_type_list instead of build_function_type.
26197
26198 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26199
26200         * config/alpha/alpha.c (alpha_init_builtins): Call
26201         build_function_type_list instead of build_function_type.
26202
26203 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26204
26205         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
26206         build_function_type_list instead of build_function_type.
26207
26208 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26209
26210         * config/iq2000/i2000.c (iq2000_init_builtins): Call
26211         build_function_type_list instead of build_function_type.
26212         Delete `endlink' variable.
26213
26214 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26215
26216         * config/avr/avr.c (avr_init_builtins): Call
26217         build_function_type_list instead of build_function_type.
26218
26219 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26220
26221         * config/picochip/picochip.c (picochip_init_builtins): Call
26222         build_function_type_list instead of build_function_type.
26223         Delete `endlink' variable.
26224
26225 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
26226
26227         * config/bfin/bfin.c (bfin_init_builtins): Call
26228         build_function_type_list instead of build_function_type.
26229
26230 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
26231
26232         From Bernd Schmidt
26233         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
26234         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
26235
26236 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
26237
26238         From Jie Zhang:
26239         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
26240         libbffastfp overrides libgcc when -mfast-fp.
26241
26242 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
26243
26244         Originally from Bernd Schmidt
26245         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
26246         * config/bfin/bfin.c (override_options): Test it and error if
26247         TARGET_FDPIC.
26248
26249 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
26250
26251         Originally From Bernd Schmidt
26252         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
26253         FD-PIC.
26254
26255 2011-05-03  Jeff Law  <law@redhat.com>
26256
26257         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
26258         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
26259         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
26260         than accessing AUX field directly.  Free the AUX field before
26261         clearing it.
26262         (thread_block, thread_through_loop_header): Likewise.
26263         (thread_single_edge, mark_threaded_blocks): Likewise.
26264         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
26265         (register_jump_thread): Do not attempt to thread to a NULL edge.
26266
26267 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
26268
26269         * function.c (init_function_start): Call decide_function_section.
26270         * varasm.c (decide_function_section): New function.
26271         (assemble_start_function): When not using
26272         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
26273         or first_function_block_is_cold.
26274         * rtl.h (decide_function_section): Declare.
26275
26276 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
26277             Jakub Jelinek  <jakub@redhat.com>
26278
26279         PR target/48774
26280         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
26281         only succeed if req_mode is the same as set_mode.
26282
26283 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
26284
26285         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
26286         * genemit.c (gen_exp): Handle RETURN.
26287         * emit-rtl.c (verify_rtx_sharing): Likewise.
26288         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
26289         * rtl.c (copy_rtx): RETURN is shared.
26290         * rtl.h (enum global_rtl_index): Add GR_RETURN.
26291         (ret_rtx): New.
26292         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
26293         * config/s390/s390.c (s390_emit_epilogue): Likewise.
26294         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
26295         * config/cris/cris.c (cris_expand_return): Likewise.
26296         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
26297         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
26298         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
26299         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
26300         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
26301         Likewise.
26302         * config/v850/v850.c (expand_epilogue): Likewise.
26303         * config/bfin/bfin.c (bfin_expand_call): Likewise.
26304         * config/arm/arm.md (epilogue): Likewise.
26305         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
26306         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
26307         variable to ret_reg.
26308
26309 2011-05-03  Richard Guenther  <rguenther@suse.de>
26310
26311         PR lto/48846
26312         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
26313         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
26314         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26315
26316 2011-05-03  Richard Guenther  <rguenther@suse.de>
26317
26318         * c-decl.c (grokdeclarator): Instead of looking at
26319         TREE_OVERFLOW check if the constant fits in the index type.
26320
26321 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
26322
26323         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
26324         (vec_store_lanes<mode><mode>): Likewise.
26325
26326 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
26327
26328         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
26329         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
26330         convert_optab_index values.
26331         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
26332         * genopinit.c (optabs): Initialize the new optabs.
26333         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
26334         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
26335         (expand_STORE_LANES): New functions.
26336         * tree.h (build_array_type_nelts): Declare.
26337         * tree.c (build_array_type_nelts): New function.
26338         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
26339         (vect_model_load_cost): Likewise.
26340         (vect_store_lanes_supported, vect_load_lanes_supported)
26341         (vect_record_strided_load_vectors): Declare.
26342         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
26343         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
26344         (vect_transform_strided_load): Split out statement recording into...
26345         (vect_record_strided_load_vectors): ...this new function.
26346         * tree-vect-stmts.c (create_vector_array, read_vector_array)
26347         (write_vector_array, create_array_ref): New functions.
26348         (vect_model_store_cost): Add store_lanes_p argument.
26349         (vect_model_load_cost): Add load_lanes_p argument.
26350         (vectorizable_store): Try to use store-lanes functions for
26351         interleaved stores.
26352         (vectorizable_load): Likewise load-lanes and loads.
26353         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
26354         to vect_model_store_cost.
26355         (vect_build_slp_tree): Likewise vect_model_load_cost.
26356
26357 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
26358
26359         * hooks.h (hook_bool_mode_uhwi_false): Declare.
26360         * hooks.c (hook_bool_mode_uhwi_false): New function.
26361         * target.def (array_mode_supported_p): New hook.
26362         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
26363         * doc/tm.texi: Regenerate.
26364         * stor-layout.c (mode_for_array): New function.
26365         (layout_type): Use it.
26366         * config/arm/arm.c (arm_array_mode_supported_p): New function.
26367         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
26368
26369 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
26370
26371         PR target/48723
26372         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
26373         for -fstack-check if the size to allocate is negative.
26374
26375 2011-05-02  Lawrence Crowl  <crowl@google.com>
26376
26377         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
26378         (timevar_cond_start): New for starting a timer only when it is not
26379         already running.
26380         (timevar_cond_stop): New for stopping a timer when it was not already
26381         running.
26382
26383         * timevar.c (timevar_stop): Enable start/stop timers to start again.
26384         (timevar_cond_start): New as above.
26385         (timevar_cond_stop): New as above.
26386
26387         * timevar.def: Add start/stop timers for compiler phases,
26388         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
26389         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
26390         and TV_PHASE_FINALIZE.
26391         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
26392         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
26393         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
26394         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
26395         Make unused TV_OVERLOAD into a start/stop timer.
26396
26397         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
26398         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
26399         to indicate that they are start/stop timers.
26400
26401         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
26402         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
26403         Move initialization to do_compile.
26404         (do_compile): Add initialization from above.
26405         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
26406
26407         * c-decl.c (c_write_global_declarations): Add start/stop of
26408         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
26409
26410         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
26411         or TV_PARSE_INLINE, as appropriate.
26412         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
26413         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
26414
26415 2011-05-02  Jason Merrill  <jason@redhat.com>
26416
26417         PR c++/40975
26418         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
26419
26420 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
26421
26422         PR c/35445
26423         * c-decl.c (finish_decl): Only create a composite if the types are
26424         compatible.
26425
26426 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
26427
26428         * config/fr30/fr30-protos.h (Mmode): Don't define.
26429         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
26430         definition where used.
26431         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
26432         define.  Expand definitions where used.
26433         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
26434         Expand definitions where used.
26435         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
26436         rx_function_arg, rx_function_arg_advance,
26437         rx_function_arg_boundary): Expand definitions of those macros.
26438         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
26439         definition where used.
26440
26441 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
26442
26443         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
26444         reg<->xmm moves.
26445         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
26446         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
26447         with *movv2sf_internal_rex64_avx.
26448         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
26449         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
26450         Use %v prefix in insn mnemonic to handle TARGET_AVX.
26451         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
26452         "vex" in "prefix" attribute calculation.
26453         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
26454
26455 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
26456
26457         PR target/47951
26458         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
26459         inputs match the output.
26460
26461 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
26462
26463         PR target/47955
26464         * config/m68k/m68k.c (m68k_expand_prologue): Set
26465         current_function_static_stack_size.
26466
26467 2011-05-02  Jan Hubicka  <jh@suse.cz>
26468
26469         * lto-streamer.c (lto_streamer_cache_insert_1,
26470         lto_streamer_cache_lookup, lto_streamer_cache_create,
26471         lto_streamer_cache_delete): Use pointer map instead of hashtable.
26472         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
26473
26474 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
26475
26476         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
26477         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
26478         config/m68k/t-opts: New files.
26479         * config/m68k/m68k-tables.opt: New file (generated).
26480         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
26481         extra_options and m68k/t-opts to tmake_file.
26482         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
26483         (all_isas): Initialize using m68k-isas.def.
26484         (all_microarchs): Initialize using m68k-microarchs.def.
26485         (m68k_find_selection): Remove.
26486         (m68k_handle_option): Don't assert that global structures are in
26487         use.  Use error_at.  Access variables via opts pointer.  Don't
26488         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
26489         directly for -m68020-40 and -m68020-60.
26490         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
26491         m68k_tune_entry here.
26492         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
26493         to m68k-opts.h.
26494         (m68k_library_id_string): Remove declaration.
26495         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
26496         (m68k_library_id_string): New Variable.
26497         (march=, mcpu=, mtune=): Use Enum and Var.
26498
26499 2011-05-02  Richard Guenther  <rguenther@suse.de>
26500
26501         * varasm.c (output_constructor_regular_field): Compute zero-based
26502         index with double-ints.  Make sure to ICE instead of producing
26503         wrong code.
26504         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
26505         in asserts.  Properly use a signed type.
26506
26507 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
26508
26509         * config/i386/sse.md (V): New mode iterator.
26510         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
26511         TARGET_SSE2.
26512         (V_256): Rename from AVX256MODE.
26513         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
26514         condition to all users.
26515         (VF1): Ditto.
26516         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
26517         condition to all users.
26518         (VF_128): Make V4SF mode unconditional.
26519         (VF_256): Rename from AVX256MODEF2P.
26520         (VI4F_128): Rename from SSEMODE4S.
26521         (VI8F_128): Rename from SSEMODE2D.
26522         (VI4F_256): Rename from AVX256MODE8P.
26523         (VI8F_256): Rename from AVX256MODE4P.
26524         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
26525         (ssescalarmodesuffix): Remove SF and DF modes.
26526         (SSEMODE124): Remove.
26527         (SSEMODE1248): Ditto.
26528         (SSEMODEF2P): Ditto.
26529         (AVXMODEF2P): Ditto.
26530         (AVXMODEFDP): Ditto.
26531         (AVXMODEFSP): Ditto.
26532         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
26533         unconditional.
26534         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
26535         unconditional.
26536         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
26537         xop_pcmov_<mode>256.  Use V mode iterator.
26538
26539         Adjust RTX patterns globally for renamed mode attributes.
26540
26541 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26542
26543         * haifa-sched.c (sched_emit_insn): Emit insn before first
26544         non-scheduled insn.  Inform back-end about new insn.  Add
26545         new insn to scheduled_insns list.
26546
26547 2011-05-02  Richard Guenther  <rguenther@suse.de>
26548
26549         PR tree-optimization/48822
26550         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
26551         (process_scc): Indicate which iteration we start.
26552
26553 2011-05-02  Jan Hubicka  <jh@suse.cz>
26554
26555         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
26556         (lto_section_overrun): New.
26557         * lto-section-out.c (append_block): Rename to ...
26558         (lto_append_block): ... this one; export.
26559         (lto_output_1_stream): Move lto lto-streamer.h
26560         (lto_output_data_stream): Update.
26561         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
26562         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
26563         functions.
26564
26565 2011-05-02  Richard Guenther  <rguenther@suse.de>
26566
26567         * tree.c (tree_code_counts): New global array.
26568         (record_node_allocation_statistics): Count individual tree codes.
26569         (dump_tree_statistics): Dump individual code stats.
26570
26571 2011-05-01  Jan Hubicka  <jh@suse.cz>
26572
26573         * ipa-inline.c (caller_growth_limits): Fix thinko when
26574         looking for largest stack frame.
26575         * ipa-inline.h (dump_inline_summary): Declare.
26576         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
26577         on stack usage.
26578         (dump_inline_summary): Export.
26579         (debug_inline_summary): Declare as DEBUG_FUNCTION.
26580
26581 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
26582
26583         * reginfo.c (memory_move_cost): Change rclass argument type form
26584         'enum reg_class' to reg_class_t.
26585         * reload.h (memory_move_cost): Update prototype.
26586         * postreload.c reload_cse_simplify_set): Change type dclass var to
26587         reg_class_t.
26588         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
26589         Update prototype.
26590         (ira_allocate_and_set_costs): Change aclass argument type form
26591         'enum reg_class' to reg_class_t.
26592         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
26593         Change aclass argument type to reg_class_t.
26594         (update_conflict_hard_reg_costs): Change type aclass and pref vars
26595         to reg_class_t.
26596         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
26597         memory_move_cost call.
26598
26599         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
26600         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
26601         Change type tmp var to reg_class_t.
26602
26603 2011-04-30  Jan Hubicka  <jh@suse.cz>
26604
26605         * ipa-inline.c (can_inline_edge_p): Disregard limits when
26606         inlining into function with flatten attribute.
26607         (want_inline_small_function_p): Be more realistic about inlining
26608         cold calls where callee size grows.
26609
26610 2011-04-30  Jan Hubicka  <jh@suse.cz>
26611
26612         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
26613         flags.
26614
26615 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
26616
26617         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
26618         PRINT_OPERAND_PUNCT_VALID_P): Remove.
26619         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
26620         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
26621         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26622         (print_operand): Rename to...
26623         (sparc_print_operand): ...this. Make static. Adjust
26624         sparc_print_operand function call.
26625         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
26626         functions.
26627
26628 2011-04-30  Jan Hubicka  <jh@suse.cz>
26629
26630         PR middle-end/48752
26631         * ipa-inline.c (early_inliner): Disable when doing late
26632         addition of function.
26633
26634 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
26635
26636         * dwarf2out.c (get_address_mode): New inline.
26637         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
26638         if not dwarf_strict emit
26639         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
26640         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
26641         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
26642         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
26643         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
26644         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
26645         mem_loc_descriptor callers.
26646         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
26647         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
26648         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
26649         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
26650         (base_types): New variable.
26651         (get_base_type_offset, calc_base_type_die_sizes,
26652         base_type_for_mode, mark_base_types, base_type_cmp,
26653         move_marked_base_types): New functions.
26654         (calc_die_sizes): Assert that die_offset is 0 or equal to
26655         next_die_offset.
26656         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
26657         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
26658         callers.  If not dwarf_strict, call mem_loc_descriptor even for
26659         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
26660         (gen_subprogram_die): Don't give up on call site parameters
26661         with non-integral or large integral modes.  Adjust
26662         mem_loc_descriptor callers.
26663         (prune_unused_types): Call prune_unused_types_mark on base_types
26664         vector entries.
26665         (resolve_addr): Call mark_base_types.
26666         (dwarf2out_finish): Call move_marked_base_types.
26667
26668         PR tree-optimization/48809
26669         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
26670         type.
26671         (gen_inbound_check): Don't compute index_expr - range_min in utype
26672         again, instead reuse SSA_NAME initialized in build_arrays.
26673         Remove two useless gsi_for_stmt calls.
26674
26675 2011-04-29  Jeff Law  <law@redhat.com>
26676
26677         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
26678
26679 2011-04-29  Martin Jambor  <mjambor@suse.cz>
26680
26681         * cgraph.h (cgraph_postorder): Remove declaration.
26682         * ipa-utils.h (ipa_free_postorder_info): Declare.
26683         (ipa_reverse_postorder): Likewise.
26684         * cgraphunit.c: Include ipa-utils.h.
26685         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
26686         * ipa-inline.c: Include ipa-utils.h.
26687         (ipa_inline): Update call to ipa_reverse_postorder.
26688         * ipa-pure-const.c (propagate_pure_const): Update call to
26689         ipa_reduced_postorder and ipa_print_order.  Call
26690         ipa_free_postorder_info to clean up.
26691         (propagate_nothrow): Likewise.
26692         * ipa-reference.c (propagate): Removed a useless call to
26693         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
26694         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
26695         * ipa.c: Include ipa-utils.h.
26696         (ipa_profile): Update call to ipa_reverse_postorder.
26697         (cgraph_postorder): Moved to...
26698         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
26699         (ipa_utils_print_order): Renamed to ipa_print_order.
26700         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
26701         comments.
26702         (ipa_free_postorder_info): New function.
26703         * passes.c: Include ipa-utils.h.
26704         (do_per_function_toporder): Update call to ipa_reverse_postorder.
26705         (ipa_write_summaries): Likewise.
26706         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
26707         (cgraphunit.o): Likewise.
26708         (ipa.o): Likewise.
26709         (ipa-inline.o): Likewise.
26710
26711 2011-04-29  Jan Hubicka  <jh@suse.cz>
26712
26713         * ipa-inline.h (clause_t): Turn into unsigned int.
26714         * ipa-inline-analysis.c (add_clause): Do more simplification.
26715         (and_predicates): Shortcut more cases.
26716         (predicates_equal_p): Move forward; check that clauses are properly
26717         ordered.
26718         (or_predicates): Shortcut more cases.
26719         (edge_execution_predicate): Rewrite as...
26720         (set_cond_stmt_execution_predicate): ... this function; handle
26721         __builtin_constant_p.
26722         (set_switch_stmt_execution_predicate): New .
26723         (compute_bb_predicates): New.
26724         (will_be_nonconstant_predicate): Update TODO.
26725         (estimate_function_body_sizes): Use compute_bb_predicates
26726         and free them later, always try to estimate if stmt is constant.
26727         (estimate_time_after_inlining, estimate_size_after_inlining):
26728         Gracefully handle optimized out edges.
26729         (read_predicate): Fix off by one error.
26730
26731 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
26732
26733         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
26734
26735 2011-04-27  Xinliang David Li  <davidxl@google.com>
26736
26737         * tree-profile.c (init_ic_make_global_vars): Set
26738         tls attribute on ic vars.
26739         * coverage.c (coverage_end_function): Initialize
26740         function_list with zero.
26741
26742 2011-04-29  Richard Guenther  <rguenther@suse.de>
26743
26744         * builtins.c (fold_builtin_classify_type): Use integer_type_node
26745         for the type of the result.
26746         (fold_builtin_isascii): Likewise.
26747         (fold_builtin_toascii): Use integer_type_node where appropriate.
26748         (fold_builtin_logb): Likewise.
26749         (fold_builtin_frexp): Likewise.
26750         (fold_builtin_strstr): Likewise.
26751         (fold_builtin_strpbrk): Likewise.
26752         (fold_builtin_fputs): Likewise.
26753         (fold_builtin_sprintf): Likewise.
26754         (fold_builtin_snprintf): Likewise.
26755         (fold_builtin_printf): Likewise.
26756         (do_mpfr_remquo): Use a proper type for the assigned constant.
26757         (do_mpfr_lgamma_r): Likewise.
26758         * dwarf2out.c (resolve_one_addr): Use size_int.
26759         * except.c (init_eh): Likewise.
26760         (assign_filter_values): Use integer_type_node for filter values.
26761         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
26762         indices.
26763         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
26764         for EH region numbers.
26765         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
26766         for the shift amount.
26767
26768 2011-04-29  Richard Guenther  <rguenther@suse.de>
26769
26770         * expr.h (expand_shift): Rename to ...
26771         (expand_variable_shift): ... this.
26772         (expand_shift): Take a constant shift amount.
26773         * expmed.c (expand_shift): Rename to ...
26774         (expand_variable_shift): ... this.
26775         (expand_shift): New wrapper around expand_variable_shift.
26776         * expr.c (convert_move, emit_group_load_1, emit_group_store,
26777         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
26778         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
26779         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
26780         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
26781         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
26782         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
26783         emit_store_flag_1, emit_store_flag): Likewise.
26784         * builtins.c (expand_builtin_signbit): Likewise.
26785         * calls.c (load_register_parameters): Likewise.
26786         * function.c (assign_parm_setup_block): Likewise.
26787         * lower-subreg.c (resolve_shift_zext): Likewise.
26788         * optabs.c (widen_bswap, expand_abs_nojump,
26789         expand_one_cmpl_abs_nojump, expand_float): Likewise.
26790         * spu/spu.c (spu_expand_extv): Likewise.
26791         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
26792
26793 2011-04-29  Richard Guenther  <rguenther@suse.de>
26794
26795         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
26796         for the remapped region number.
26797         * predict.c (build_predict_expr): Use integer_type_node for the
26798         predict kind.
26799         * fold-const.c (fold_binary_loc): Use integer_type_node for
26800         the shift amount.  Use a proper type for the PLUS_EXPR operand.
26801
26802 2011-04-29  Michael Matz  <matz@suse.de>
26803
26804         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
26805         other trees that just builtins.
26806         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
26807
26808 2011-04-29  Richard Guenther  <rguenther@suse.de>
26809
26810         * tree-nested.c (get_trampoline_type): Use size_int.
26811         (get_nl_goto_field): Likewise.
26812         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
26813         for all indexes.
26814         (lower_eh_constructs_2): Likewise.
26815         (lower_resx): Likewise.
26816         (lower_eh_dispatch): Likewise.
26817         * tree-mudflap.c (mf_build_string): Use size_int.
26818         (mudflap_register_call): Use integer_type_node for the flag.
26819         (mudflap_enqueue_constant): Use size_int.
26820         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
26821         instead of rebuilding it.
26822
26823 2011-04-29  Richard Guenther  <rguenther@suse.de>
26824
26825         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
26826         Handle OBJ_TYPE_REF.
26827         (find_func_aliases_for_call): Use it more consistently.
26828
26829 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
26830
26831         * haifa-sched.c (last_nondebug_scheduled_insn): New.
26832         (rank_for_schedule): Use it.
26833         (schedule_block): Set it.
26834
26835 2011-04-28  David Li  <davidxl@google.com>
26836
26837         * tree.c (crc32_string): Use crc32_byte.
26838         (crc32_byte): New function.
26839         * tree.h (crc32_byte): New function.
26840         * gcov.c (read_graph_file): Handle new cfg_cksum.
26841         (read_count_file): Ditto.
26842         * profile.c (instrument_values): Ditto.
26843         (get_exec_counts): Ditto.
26844         (read_profile_edge_counts): Ditto.
26845         (compute_branch_probabilities): Ditto.
26846         (compute_value_histograms): Ditto.
26847         (branch_prob): Ditto.
26848         (end_branch_prob): Ditto.
26849         * coverage.c (read_counts_file): Ditto.
26850         (get_coverage_counts): Ditto.
26851         (tree_coverage_counter_addr): Ditto.
26852         (coverage_checksum_string): Ditto.
26853         (coverage_begin_output): Ditto.
26854         (coverage_end_function): Ditto.
26855         (build_fn_info_type): Ditto.
26856         (build_fn_info_value): Ditto.
26857         * libgcov.c (gcov_exit): Ditto.
26858         * gcov-dump.c (tag_function): Ditto.
26859         (compute_checksum): Remove.
26860
26861 2011-04-29  Alan Modra  <amodra@gmail.com>
26862
26863         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26864         unspec plus offset.  Tidy macho code.
26865
26866 2011-04-29  Martin Jambor  <mjambor@suse.cz>
26867
26868         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
26869         node instead of a decl.  Update all callers.
26870         * cgraph.h: Update declaration.
26871
26872 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
26873
26874         PR tree-optimization/48765
26875         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
26876         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
26877         to indicate if loop aware SLP is being used.  Scan the statements
26878         and update the vectorization factor according to the type of
26879         vectorization before statement analysis.
26880         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
26881         pass it to vect_analyze_loop_operations.
26882         (vectorizable_reduction): Set number of copies to 1 in case of pure
26883         SLP statement.
26884         * tree-vect-stmts.c (vectorizable_conversion,
26885         vectorizable_assignment, vectorizable_shift,
26886         vectorizable_operation, vectorizable_type_demotion,
26887         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
26888         Likewise.
26889         (vectorizable_condition): Move the check that it is not SLP
26890         vectorization before the number of copies check.
26891         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
26892         to vectorize the loop using SLP.
26893
26894 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
26895
26896         PR middle-end/48597
26897         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
26898         inline asm.
26899
26900 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
26901
26902         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
26903         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
26904         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
26905         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
26906         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
26907         linux*.h headers.
26908         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
26909         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
26910         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
26911         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
26912         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
26913         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
26914         REG_NAME.
26915         * config/i386/linux.h (REG_NAME): Don't define.
26916         * config/i386/linux64.h (REG_NAME): Don't define.
26917         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
26918         Undefine before defining.
26919
26920 2011-04-28  Jan Hubicka  <jh@suse.cz>
26921
26922         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
26923         nonconstant_names array.
26924         (estimate_function_body_sizes): Build nonconstant_names array; handle
26925         BUILT_IN_CONSTANT_P.
26926
26927 2011-04-28  Richard Guenther  <rguenther@suse.de>
26928
26929         PR bootstrap/48804
26930         Revert
26931         2011-04-28  Richard Guenther  <rguenther@suse.de>
26932
26933         * tree-ssa-structalias.c (solve_constraints): Build succ graph
26934         as late as possible.
26935
26936 2011-04-28  Richard Guenther  <rguenther@suse.de>
26937
26938         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
26939         (debug_constraint): Do it here.
26940         (dump_constraints): And here.
26941         (rewrite_constraints): And here.
26942         (dump_constraint_edge): Remove.
26943         (dump_constraint_graph): Rewrite to produce DOT output.
26944         (solve_constraints): Build succ graph as late as possible.
26945         Dump constraint graphs before and after solving.
26946
26947 2011-04-28  Richard Guenther  <rguenther@suse.de>
26948
26949         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26950         New function split out from ...
26951         (find_func_aliases): ... here.  Call it.
26952         (find_func_aliases_for_call): Likewise.
26953
26954 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
26955
26956         * internal-fn.h (internal_fn_name_array): Declare.
26957         (internal_fn_flags_array): Likewise.
26958
26959 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
26960
26961         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
26962         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
26963         Move from sse.md.
26964         (ssemodefsuffix): Remove.
26965         (ssevecmodesuffix): New mode attribute.
26966         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
26967         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
26968         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
26969         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
26970         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
26971         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
26972         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
26973         ssemodesuffix mode attribute.
26974         (float splitters): Use ssevecmodesuffix mode attribute.
26975         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
26976         (sseinsmode): Rename from avxvecmode.
26977         (avxsizesuffix): Rename from avxmodesuffix.
26978         (sseintvecmode): Rename from avxpermvecmode.
26979         (ssedoublevecmode): Rename from ssedoublesizemode.
26980         (ssehalfvecmode): Rename from avxhalfvecmode.
26981         (ssescalarmode): Rename from avxscalarmode.
26982         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
26983         templates for ssemodesuffix mode attribute.
26984         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
26985         mode attribute.
26986
26987         Adjust RTX patterns globally for renamed mode attributes.
26988
26989 2011-04-27  Jan Hubcika  <jh@suse.cz>
26990
26991         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
26992         * ipa-inline-analysis.c: Include alloc-pool.h.
26993         (edge_predicate_pool): New.
26994         (trye_predicate_p): New function
26995         (false_predicate_p): New function.
26996         (add_clause): Sanity check that false clauses are "optimized";
26997         never add clauses to predicate that is already known to be false.
26998         (and_predicate): Use flase_predicate_p.
26999         (evaulate_predicate): Rename to ...
27000         (evaluate_predicate): ... this one; update all callers; assert
27001         that false is not listed among possible truths.
27002         (dump_predicate): Use true_predicate_p.
27003         (account_size_time): Use false_predicate_p.
27004         (evaulate_conditions_for_edge): Rename to ...
27005         (evaluate_conditions_for_edge) ... this one.
27006         (edge_set_predicate): New function.
27007         (inline_edge_duplication_hook): Duplicate edge predicates.
27008         (inline_edge_removal_hook): Free edge predicates.
27009         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
27010         (dump_inline_summary): Update.
27011         (estimate_function_body_sizes): Set edge predicates.
27012         (estimate_calls_size_and_time): Handle predicates.
27013         (estimate_callee_size_and_time): Update.
27014         (remap_predicate): Add toplev_predicate; update comment.
27015         (remap_edge_predicates): New function.
27016         (inline_merge_summary): Compute toplev predicate; update.
27017         (read_predicate): New function.
27018         (read_inline_edge_summary): Use it.
27019         (inline_read_section): Likewise.
27020         (write_predicate): New function.
27021         (write_inline_edge_summary): Use it.
27022         (inline_write_summary): Likewise.
27023         (inline_free_summary): Free alloc pool and edge summary vec.
27024
27025 2011-04-27  Richard Guenther  <rguenther@suse.de>
27026
27027         * tree-ssa-structalias.c (changed_count): Remove.
27028         (changed): Use a bitmap.
27029         (unify_nodes): Adjust.
27030         (do_sd_constraint): Likewise.
27031         (do_ds_constraint): Likewise.
27032         (do_complex_constraint): Likewise.
27033         (solve_graph): Likewise.
27034
27035 2011-04-27  Jan Hubicka  <jh@suse.cz>
27036
27037         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
27038
27039 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
27040
27041         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
27042         (avx_vperm2f128_*_operand): Ditto.
27043         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
27044         Use avx_vpermilp_parallel in insn condition.
27045         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
27046         Use avx_vperm2f128_parallel in insn condition.
27047
27048 2011-04-27  Richard Guenther  <rguenther@suse.de>
27049
27050         * Makefile.in (tree-ssa-structalias.o): Remove
27051         gt-tree-ssa-structalias.h dependency.
27052         (GTFILES): Remove tree-ssa-structalias.c.
27053         * tree.c (allocate_decl_uid): New function.
27054         (make_node_stat): Use it.
27055         (copy_node_stat): Likewise.
27056         * tree.h (allocate_decl_uid): Declare.
27057         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
27058         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
27059         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
27060         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
27061         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
27062         (struct heapvar_map): Likewise.
27063         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
27064         heapvar_insert): Likewise.
27065         (make_heapvar_for): Rename to ...
27066         (make_heapvar): ... this.  Simplify.
27067         (fake_var_decl_obstack): New global var.
27068         (build_fake_var_decl): New function.
27069         (make_constraint_from_heapvar): Adjust.
27070         (handle_lhs_call): Likewise.
27071         (create_function_info_for): Likewise.
27072         (intra_create_variable_infos): Likewise.
27073         (init_alias_vars): Allocate fake_var_decl_obstack.
27074         (init_alias_heapvars, delete_alias_heapvars): Remove.
27075         (compute_points_to_sets): Do not call init_alias_heapvars.
27076         (ipa_pta_execute): Likewise.
27077         (delete_points_to_sets): Free fake_var_decl_obstack.
27078
27079 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27080
27081         * config/spu/divmovti4.c (union qword_UTItype): New data type.
27082         (si_from_UTItype, si_to_UTItype): New functions.
27083         (__udivmodti4): Use them to implement type-punning.
27084         * config/spu/multi3.c (union qword_TItype): New data type.
27085         (si_from_TItype, si_to_TItype): New functions.
27086         (__multi3): Use them to implement type-punning.
27087
27088 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27089
27090         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
27091
27092 2011-04-27  Jan Hubicka  <jh@suse.cz>
27093
27094         * ipa-prop.c (function_insertion_hook_holder): New holder.
27095         (ipa_add_new_function): New function.
27096         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
27097         Register/deregister holder.
27098
27099 2011-04-27  Richard Guenther  <rguenther@suse.de>
27100
27101         PR tree-optimization/48772
27102         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
27103
27104 2011-04-27  Richard Guenther  <rguenther@suse.de>
27105
27106         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
27107         TARGET_MEM_REF handling.
27108
27109 2011-04-27  Nick Clifton  <nickc@redhat.com>
27110
27111         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
27112         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
27113         (REG_CLASS_NAMES): Likewise.
27114         (REG_CLASS_CONTENTS): Likewise.
27115         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
27116         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
27117         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
27118         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
27119         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
27120         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
27121         duplicate register classes.
27122         (frv_class_likely_spilled_p): Likewise.
27123         (frv_register_move_cost): Likewise.
27124
27125         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
27126         end of the regno_reg_class array.
27127
27128 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
27129
27130         PR c/48742
27131         * c-typeck.c (build_binary_op): Don't wrap arguments if
27132         int_operands is true.
27133
27134 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
27135
27136         PR target/48767
27137         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
27138         targetm.calls.must_pass_in_stack for void type.
27139
27140 2011-04-26  Jan Hubicka  <jh@suse.cz>
27141
27142         * cgraphbuild.c (build_cgraph_edges): Update call
27143         of cgraph_create_edge and cgraph_create_indirect_edge.
27144         * cgraph.c (cgraph_create_edge_including_clones,
27145         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
27146         cgraph_update_edges_for_call_stmt_node): Do not take nest
27147         argument; do not initialize call_stmt_size/time.
27148         (dump_cgraph_node): Do not dump nest.
27149         (cgraph_clone_edge): Do not take loop_nest argument;
27150         do not propagate it; do not clone call_stmt_size/time.
27151         (cgraph_clone_node): Likewise.
27152         (cgraph_create_virtual_clone): Update.
27153         * cgraph.h (struct cgraph_edge): Remove
27154         call_stmt_size/call_stmt_time/loop_nest.
27155         (cgraph_create_edge, cgraph_create_indirect_edge,
27156         cgraph_create_edge_including_clones, cgraph_clone_node): Update
27157         prototype.
27158         * tree-emutls.c (gen_emutls_addr): Update.
27159         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
27160         loop_nest; handle indirect calls, too.
27161         (clone_inlined_nodes): Do not care about updating inline summaries.
27162         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
27163         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
27164         stream call_stmt_size/call_stmt_time/loop_nest.
27165         * ipa-inline.c (edge_badness): Update.
27166         (ipa_inline): dump summaries after inlining.
27167         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
27168         New.
27169         (inline_edge_summary): New function.
27170         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
27171         (inline_edge_removal_hook): Handle edge summaries.
27172         (inline_edge_duplication_hook): New hook.
27173         (inline_summary_alloc): Alloc hooks.
27174         (initialize_growth_caches): Do not register removal hooks.
27175         (free_growth_caches); Do not free removal hook.
27176         (dump_inline_edge_summary): New function.
27177         (dump_inline_summary): Use it.
27178         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
27179         (inline_update_callee_summaries): New function.
27180         (inline_merge_summary): Use it.
27181         (do_estimate_edge_time, do_estimate_edge_growth): Update.
27182         (read_inline_edge_summary): New function.
27183         (inline_read_section): Use it.
27184         (write_inline_edge_summary): New function.
27185         (inline_write_summary): Use it.
27186         (inline_free_summary): Free edge new holders.
27187         * tree-inline.c (copy_bb): Update.
27188
27189 2011-04-26  Jason Merrill  <jason@redhat.com>
27190
27191         * tree-eh.c (lower_try_finally_switch): Create the label along with
27192         the CASE_LABEL_EXPR.
27193
27194 2011-04-26  David S. Miller  <davem@davemloft.net>
27195             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27196
27197         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
27198         * configure: Regenerate.
27199
27200 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
27201
27202         PR target/48258
27203         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
27204         reduction.
27205         (VEC_reduc): New code iterator and splitters for vector reduction.
27206         (VEC_reduc_name): Ditto.
27207         (VEC_reduc_rtx): Ditto.
27208         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
27209         (reduc_<VEC_reduc_name>_v4sf): Ditto.
27210
27211         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27212         support for extracting SF on VSX.
27213
27214         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
27215         generating xscvspdp.
27216         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
27217         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
27218         double add, minimum, maximum vector reduction.
27219         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
27220         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
27221         optimize double vector reduction.
27222         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
27223
27224 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
27225
27226         * config/fr30/fr30.h (inhibit_libc): Don't define.
27227         * config/m32r/m32r-protos.h: Correct comment.
27228         * config/v850/v850.h (GHS_default_section_names,
27229         GHS_current_section_names): Use tree, not union tree_node *.
27230
27231 2011-04-26  Xinliang David Li  <davidxl@google.com>
27232
27233         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
27234         * c-family/c-opts.c (c_common_handle_option): Set
27235         warn_maybe_uninitialized.
27236         * opts.c (common_handle_option): Ditto.
27237         * common.opt:  New option.
27238         * tree-ssa.c (warn_uninit): Add one more parameter.
27239         (warn_uninitialized_var): Pass warning code.
27240         * tree-flow.h: Interface change.
27241
27242 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27243
27244         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
27245         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
27246         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
27247
27248 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27249
27250         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
27251         * config/mips/mips.opt (mmips-tfile): Remove.
27252
27253         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
27254         mips-tdump reference to ...
27255         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
27256         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
27257         reference by Tru64 UNIX.
27258
27259 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
27260
27261         PR debug/48768
27262         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
27263         is error_mark_node, set value to NULL.
27264
27265         PR tree-optimization/48734
27266         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
27267         if return value from maybe_fold_*_comparsions isn't something
27268         the code is prepared to handle.
27269
27270 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
27271
27272         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
27273         mode check.
27274         (ext_QIreg_nomode_operands): Remove.
27275         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
27276         (*andsi_1): Ditto.
27277         (*andhi_1): Ditto.
27278
27279 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
27280
27281         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
27282
27283 2011-04-26  Richard Guenther  <rguenther@suse.de>
27284
27285         * c-typeck.c (build_unary_op): Do not expand array-refs via
27286         pointer arithmetic.  Only adjust qualifiers for function types.
27287
27288 2011-04-26  Richard Guenther  <rguenther@suse.de>
27289
27290         PR middle-end/48694
27291         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
27292         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
27293         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
27294         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
27295
27296 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
27297
27298         * doc/extend.texi: Document __underlying_type.
27299
27300 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
27301
27302         * config/rs6000/titan.md (automata_option "progress"): Remove.
27303
27304 2011-04-25  Jeff Law  <law@redhat.com>
27305
27306         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
27307
27308 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
27309
27310         * system.h (ENUM_BITFIELD): Remove.
27311
27312 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
27313             Eric Botcazou  <ebotcazou@adacore.com>
27314
27315         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
27316         for STORE_FLAG_VALUE==-1 case.
27317
27318 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
27319
27320         PR target/43804
27321         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
27322         LEGITIMATE_PIC_OPERAND_P.
27323
27324 2011-04-24  Jan Hubicka  <jh@suse.cz>
27325
27326         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
27327         WPA hack.
27328         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
27329         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
27330         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
27331         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
27332         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
27333         Sanity check predicate length.
27334         (remap_predicate): Likewise; sanity check jump functions.
27335         (inline_read_section, inline_write_summary): Sanity check
27336         predicate length.
27337
27338 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
27339
27340         PR other/48748
27341         * doc/extend.texi (Type Traits): Document __is_standard_layout,
27342         __is_literal_type, and __is_trivial; update throughout about
27343         possibly cv-qualified void types.
27344
27345 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
27346
27347         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
27348         testsuite and make it version agnostic.
27349
27350 2011-04-22  Jan Hubicka  <jh@suse.cz>
27351
27352         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
27353
27354 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
27355
27356         PR c/48685
27357         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
27358         to VOID_TYPE even around MODIFY_EXPR.
27359
27360 2011-04-22  Mike Stump  <mikestump@comcast.net>
27361
27362         * gensupport.c (read_md_rtx): Fix typo in comment.
27363         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
27364         comment.
27365
27366 2011-04-22  Jan Hubicka  <jh@suse.cz>
27367
27368         * gengtype.c (open_base_files): Add ipa-inline.h include.
27369         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
27370         ipa-prop.c; update all uses.
27371         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
27372         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
27373         merge summary of inlined function into former caller.
27374         * ipa-inline.c (max_benefit): Remove.
27375         (edge_badness): Compensate for removal of benefits.
27376         (update_caller_keys): Use
27377         reset_node_growth_cache/reset_edge_growth_cache.
27378         (update_callee_keys): Likewise.
27379         (update_all_callee_keys): Likewise.
27380         (inline_small_functions): Do not collect max_benefit; do not reset
27381         estimated_growth; call free_growth_caches and initialize_growth_caches.
27382         * ipa-inline.h (struct condition, type clause_t, struct predicate,
27383         struct size_time_entry): New structures.
27384         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
27385         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
27386         and estimated_growth.
27387         (edge_growth_cache_entry): New structure.
27388         (node_growth_cache, edge_growth_cache): New global vars.
27389         (estimate_growth): Turn into inline.
27390         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
27391         initialize_growth_caches, free_growth_caches): Declare.
27392         (estimate_edge_growth): Rewrite.
27393         (estimate_edge_time): Implement as inline cache lookup.
27394         (reset_node_growth_cache, reset_edge_growth_cache): New inline
27395         functions.
27396         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
27397         (NUM_CONDITIONS): New constant.
27398         (predicate_conditions): New enum.
27399         (IS_NOT_CONSTANT): New constant.
27400         (edge_removal_hook_holder): New var.
27401         (node_growth_cache, edge_growth_cache): New global vars.
27402         (true_predicate, single_cond_predicate, false_predicate,
27403         not_inlined_predicate, add_condition, add_clause, and_predicates,
27404         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
27405         dump_clause, dump_predicate, account_size_time,
27406         evaulate_conditions_for_edge): New functions.
27407         (inline_summary_alloc): Move to heap.
27408         (inline_node_removal_hook): Clear condition and entry vectors.
27409         (inline_edge_removal_hook): New function.
27410         (initialize_growth_caches, free_growth_caches): New function.
27411         (dump_inline_summary): Update.
27412         (edge_execution_predicate): New function.
27413         (will_be_nonconstant_predicate): New function.
27414         (estimate_function_body_sizes): Compute BB and constantness predicates.
27415         (compute_inline_parameters): Do not clear estimated_growth.
27416         (estimate_edge_size_and_time): New function.
27417         (estimate_calls_size_and_time): New function.
27418         (estimate_callee_size_and_time): New function.
27419         (remap_predicate): New function.
27420         (inline_merge_summary): New function.
27421         (do_estimate_edge_time): New function based on...
27422         (estimate_edge_time): ... this one.
27423         (do_estimate_edge_growth): New function.
27424         (do_estimate_growth): New function based on....
27425         (estimate_growth): ... this one.
27426         (inline_analyze_function): Analyze after deciding on jump functions.
27427         (inline_read_section): New function.
27428         (inline_read_summary): Use it.
27429         (inline_write_summary): Write all the new data.
27430         * ipa-prop.c (ipa_get_param_decl_index): Export.
27431         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
27432         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
27433         Declare.
27434         (ipa_get_lattice): Move here from ipa-cp.c
27435         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
27436         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
27437         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
27438         cgraph_edge_inlinable_p): Remove.
27439         * cgraphunit.c: Include ipainline.h
27440         (cgraph_process_new_functions): Update call of
27441         compute_inline_parameters.
27442
27443 2011-04-22  Richard Guenther  <rguenther@suse.de>
27444
27445         * tree.c (build_int_cst): Properly create canonicalized integer
27446         constants.
27447         (build_int_cst_type): Remove scary comments.
27448
27449 2011-04-22  Xinliang David Li  <davidxl@google.com>
27450
27451         * toplev.c (process_options): Enable -Werror=coverage-mismatch
27452         by default when -Wno-error is not specified.
27453         * opts-global.c (decode_options): Remove call to
27454         control_warning_options.
27455
27456 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
27457
27458         PR tree-optimization/48717
27459         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
27460         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
27461
27462 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
27463
27464         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
27465         definition where used.
27466
27467 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
27468
27469         PR c/48716
27470         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
27471         TREE_STATIC variables declared inside of some OpenMP construct.
27472
27473 2011-04-22  Martin Jambor  <mjambor@suse.cz>
27474
27475         PR middle-end/48585
27476         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
27477
27478 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
27479
27480         PR c/36750
27481         * c-typeck.c (pop_init_level): Do not warn about initializing
27482         with ` = {0}'.
27483
27484 2011-04-22  Alan Modra  <amodra@gmail.com>
27485
27486         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
27487         when returning call_cookie.
27488         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
27489         pointers, to functions with no more vector args than the current
27490         function, and some non-local calls for ABI_V4.
27491         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
27492         sibcall_nonlocal_aix64): Combine to ..
27493         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
27494         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
27495         (sibcall_value_nonlocal_aix<mode>): ..likewise.
27496         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
27497         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
27498         operand.
27499         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
27500         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
27501         sibcall_value_symbolic_64): Delete.
27502
27503 2011-04-21  Xinliang David Li  <davidxl@google.com>
27504
27505         * cgraph.h: Remove pid.
27506         * cgraph.c: Remove pid.
27507         * value-prof.c (init_node_map): New function.
27508         (del_node_map): New function.
27509         (find_func_by_funcdef_no): New function.
27510         (gimple_ic_transform): Call new function.
27511         * cgraphunit.c (cgraph_finalize_function): Remove pid.
27512         * function.c (get_last_funcdef_no): New function.
27513         * function.h (get_last_funcdef_no): New function.
27514         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
27515         to libgcov function.
27516         (tree-profiling): Call node map init and delete function.
27517
27518 2011-04-21  Ian Lance Taylor  <iant@google.com>
27519
27520         * godump.c (go_format_type): Use exported Go name for anonymous
27521         field name.
27522
27523 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
27524
27525         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
27526         Call builtin_function_type_list instead of builtin_function_type.
27527         (UNARY, BINARY, TRINARY, QUAD): Likewise.
27528
27529 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
27530
27531         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
27532         build_function_type_list instead of build_function_type.
27533         Delete variable `endlink'.
27534
27535 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
27536
27537         * config/s390/s390.c (s390_init_builtins): Call
27538         build_function_type_list instead of build_function_type.
27539
27540 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
27541
27542         * config/ia64/ia64.c (ia64_init_builtins): Call
27543         build_function_type_list instead of builtin_function_type.
27544
27545 2011-04-21  Easwaran Raman  <eraman@google.com>
27546
27547         * cfgexpand.c (stack_var): Remove OFFSET...
27548         (add_stack_var): ...and its reference here...
27549         (expand_stack_vars): ...and here.
27550         (stack_var_cmp): Sort by descending order of size.
27551         (partition_stack_vars): Change heuristic.
27552         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
27553         (dump_stack_var_partition): Add newline after each partition.
27554
27555 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
27556             Jeff Law  <law@redhat.com>
27557
27558         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
27559         * gengtype.c (matching_file_name_substitute): Likewise.
27560
27561 2011-04-21  Richard Guenther  <rguenther@suse.de>
27562
27563         PR lto/48703
27564         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
27565
27566 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
27567
27568         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
27569
27570 2011-04-21  Richard Guenther  <rguenther@suse.de>
27571
27572         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
27573         file name.
27574
27575 2011-04-21  Richard Guenther  <rguenther@suse.de>
27576
27577         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
27578         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
27579         Use DECL_P, not SSA_VAR_P.
27580         (ptr_derefs_may_alias_p): Likewise.
27581         (ptr_deref_may_alias_ref_p_1): Likewise.
27582         (decl_refs_may_alias_p): Likewise.
27583         (refs_may_alias_p_1): Likewise.
27584         (ref_maybe_used_by_call_p_1): Likewise.
27585         (call_may_clobber_ref_p_1): Likewise.
27586         (indirect_ref_may_alias_decl_p): Assume indirect refrences
27587         are either MEM_REF or TARGET_MEM_REF.
27588         (indirect_refs_may_alias_p): Likewise.
27589         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
27590         for MEM_EXPR of indirect calls.
27591
27592 2011-04-21  Tristan Gingold  <gingold@adacore.com>
27593
27594         * vmsdbgout.c (write_srccorr): Compute file length from the string.
27595         (dst_file_info_struct): Remove flen field.
27596         (lookup_filename): Remove code that set flen field.
27597
27598 2011-04-21  Tristan Gingold  <gingold@adacore.com>
27599
27600         * config/ia64/ia64.c (ia64_start_function): Add a guard.
27601
27602 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
27603
27604         PR target/48708
27605         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
27606         vec_extract and vec_concat for non-SSE4_1 targets.
27607
27608 2011-04-21  Richard Guenther  <rguenther@suse.de>
27609
27610         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
27611         return statements.
27612
27613 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
27614
27615         * config/i386/cygming.h (union tree_node, TREE): Don't define or
27616         undefine.
27617         (FILE): Don't undefine.
27618
27619 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
27620
27621         * config/alpha/alpha.c (struct machine_function): Use rtx, not
27622         struct rtx_def *.
27623         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
27624         struct rtx_def *.
27625         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
27626         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
27627         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
27628         rtx_def *.
27629         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
27630         definitions where used.
27631         * config/microblaze/microblaze.h (struct microblaze_args): Use
27632         rtx, not struct rtx_def *.
27633         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
27634         rtx_def *.
27635         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
27636         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
27637         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
27638         not struct rtx_def *.
27639         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
27640         struct rtx_def *.
27641         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
27642         rtx_def *.
27643         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
27644
27645 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
27646
27647         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
27648         operand_equal_p to compare DR_BASE_ADDRESSes.
27649         (vect_check_interleaving): Likewise.
27650
27651 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
27652
27653         PR target/46329
27654         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
27655         for all Neon struct constants.
27656
27657 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
27658
27659         * target.def (legitimate_constant_p): New hook.
27660         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
27661         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
27662         * doc/tm.texi: Regenerate.
27663         * hooks.h (hook_bool_mode_rtx_true): Declare.
27664         * hooks.c (hook_bool_mode_rtx_true): Define.
27665         * system.h (LEGITIMATE_CONSTANT_P): Poison.
27666         * calls.c (precompute_register_parameters): Replace uses of
27667         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
27668         (emit_library_call_value_1): Likewise.
27669         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
27670         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
27671         * ira-costs.c (scan_one_insn): Likewise.
27672         * recog.c (general_operand, immediate_operand): Likewise.
27673         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
27674         * reload1.c (init_eliminable_invariants): Likewise.
27675
27676         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
27677         mode argument.
27678         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
27679         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
27680         argument.
27681         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27682         * config/alpha/predicates.md (input_operand): Update call to
27683         alpha_legitimate_constant_p.
27684
27685         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
27686         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
27687         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
27688         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27689         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
27690         (arm_legitimate_constant_p): New functions.
27691         (arm_cannot_force_const_mem): Make static.
27692
27693         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
27694
27695         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
27696         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
27697         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
27698         instead of bfin_legitimate_constant_p.
27699         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
27700         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27701
27702         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
27703
27704         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
27705
27706         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
27707         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
27708         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27709         (frv_legitimate_constant_p): Make static.  Add a mode argument.
27710
27711         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
27712         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
27713         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
27714
27715         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
27716         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
27717         * config/i386/i386.c (legitimate_constant_p): Rename to...
27718         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
27719         argument.
27720         (ix86_cannot_force_const_mem): Update accordingly.
27721         (ix86_legitimate_address_p): Likewise.
27722         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27723         * config/i386/i386.md: Update commentary.
27724
27725         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
27726         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
27727         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27728         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
27729
27730         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
27731
27732         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
27733         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
27734         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27735         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
27736
27737         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
27738         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
27739         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
27740
27741         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
27742         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27743         (m32r_legitimate_constant_p): New function.
27744
27745         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
27746         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
27747         LEGITIMATE_CONSTANT_P.
27748         (LEGITIMATE_CONSTANT_P): Delete.
27749         * config/m68k/m68k.c (m68k_expand_prologue): Call
27750         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
27751         (m68k_legitimate_constant_p): New function.
27752         * config/m68k/m68k.md: Update comments.
27753
27754         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
27755         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27756         (mcore_legitimate_constant_p): New function.
27757
27758         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
27759         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
27760         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
27761         Add a mode argument.
27762         (mep_legitimate_address): Update accordingly.
27763         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27764
27765         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
27766         Delete.
27767         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
27768         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
27769         static.  Check OP's mode for VOIDmode.
27770         (microblaze_legitimate_constant_p): New function.
27771         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27772
27773         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
27774         * config/mips/mips.c (mips_legitimate_constant_p): New function.
27775         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
27776         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27777         * config/mips/predicates.md: Update comments.
27778
27779         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
27780         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
27781         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27782         (mmix_legitimate_constant_p): Make static, return a bool, and take
27783         a mode argument.
27784         (mmix_print_operand_address): Update accordingly.
27785
27786         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
27787         Delete.
27788         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
27789         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
27790         static.  Add a mode argument.
27791         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27792
27793         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
27794
27795         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
27796         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27797         (pa_legitimate_constant_p): New function.
27798
27799         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
27800
27801         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
27802         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27803         (pdp11_legitimate_constant_p): New function.
27804
27805         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
27806         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27807         (rs6000_legitimate_constant_p): New function.
27808
27809         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
27810         (rx_legitimate_constant_p): ...this.
27811         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
27812         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
27813         (rx_legitimate_constant_p): ...this.
27814         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27815         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
27816
27817         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
27818         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
27819         * config/s390/s390.c (legitimate_constant_p): Rename to...
27820         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
27821         and add a mode argument.
27822         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27823
27824         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
27825
27826         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
27827         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27828         (sh_legitimate_constant_p): New function.
27829
27830         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
27831         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
27832         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27833         (legitimate_constant_p): Rename to...
27834         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
27835         argument.
27836         (constant_address_p): Update accordingly.
27837
27838         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
27839         argument and return a bool.
27840         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
27841         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27842         (spu_legitimate_constant_p): Add a mode argument and return a bool.
27843         (spu_rtx_costs): Update accordingly.
27844         * config/spu/predicates.md (vec_imm_operand): Likewise.
27845
27846         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
27847
27848         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
27849         * config/v850/v850.c (v850_legitimate_constant_p): New function.
27850         (TARGET_LEGITIMATE_CONSTANT_P): Define.
27851
27852         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
27853         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
27854         * config/vax/vax.c (legitimate_constant_p): Likewise.
27855
27856         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
27857         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27858         (xtensa_legitimate_constant_p): New function.
27859
27860 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
27861
27862         * target.def (cannot_force_const_mem): Add a mode argument.
27863         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
27864         * doc/tm.texi: Regenerate.
27865         * hooks.h (hook_bool_mode_rtx_false): Declare.
27866         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
27867         (hook_bool_mode_const_rtx_true): Likewise.
27868         (hook_bool_mode_rtx_false): New function.
27869         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
27870         to be non-VOID.  Update call to cannot_force_const_mem.
27871         (find_reloads): Update accordingly.
27872         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
27873         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
27874         argument.
27875         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
27876         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
27877         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
27878         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
27879         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
27880         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
27881         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
27882         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
27883         (m68k_cannot_force_const_mem): ...this new function.
27884         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
27885         argument.
27886         (mips_const_insns, mips_legitimize_const_move): Update calls.
27887         (mips_secondary_reload_class): Likewise.
27888         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
27889         (pa_cannot_force_const_mem): ...this new function.
27890         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
27891         (rs6000_cannot_force_const_mem): ...this new function.
27892         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
27893         argument.
27894         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
27895         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
27896         to...
27897         (xtensa_cannot_force_const_mem): ...this new function.
27898
27899 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
27900
27901         * config/mips/mips.c (mips16_build_function_stub): Call
27902         build_function_type_list instead of build_function_type.
27903         (mips16_build_call_stub): Likewise.
27904
27905 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
27906
27907         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
27908         instead of build_function_type.
27909
27910 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
27911
27912         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
27913         instead of build_function_type.
27914
27915 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
27916
27917         PR target/48678
27918         * config/i386/i386.md (insv): Change operand 0 constraint to
27919         "register_operand".  Change operand 1 and 2 constraint to
27920         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
27921         * config/i386/sse.md (sse4_1_pinsrb): Export.
27922         (sse2_pinsrw): Ditto.
27923         (sse4_1_pinsrd): Ditto.
27924         (sse4_1_pinsrq): Ditto.
27925         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
27926         * config/i386/i386.c (ix86_expand_pinsr): New.
27927
27928 2011-04-20  Easwaran Raman  <eraman@google.com>
27929
27930         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
27931         containing union type only with -fstrict-aliasing.
27932
27933 2011-04-20  Jim Meyering  <meyering@redhat.com>
27934
27935         Remove useless if-before-free tests.
27936         * calls.c (expand_call, save_area): Likewise.
27937         * cfgcleanup.c (try_forward_edges): Likewise.
27938         * collect2.c (collect_execute): Likewise.
27939         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
27940         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
27941         * coverage.c (coverage_checksum_string): Likewise.
27942         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
27943         * cselib.c (cselib_init): Likewise.
27944         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
27945         (df_set_clean_cfg): Likewise.
27946         * function.c (free_after_compilation): Likewise.
27947         * gcc.c (do_spec_1, main): Likewise.
27948         * gcov.c (create_file_names): Likewise.
27949         * gensupport.c (identify_predicable_attribute): Likewise.
27950         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
27951         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
27952         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
27953         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
27954         * ipa-pure-const.c (local_pure_const): Likewise.
27955         * ipa-reference.c (propagate): Likewise.
27956         * ira-costs.c (free_ira_costs): Likewise.
27957         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
27958         * matrix-reorg.c (mat_free): Likewise.
27959         * prefix.c (get_key_value): Likewise.
27960         * profile.c (compute_value_histograms): Likewise.
27961         * reload1.c (free_reg_equiv): Likewise.
27962         * sched-deps.c (free_deps): Likewise.
27963         * sel-sched-ir.c (fence_clear): Likewise.
27964         * sese.c (set_rename, if_region_set_false_region): Likewise.
27965         * tree-data-ref.c (free_rdg): Likewise.
27966         * tree-eh.c (lower_try_finally): Likewise.
27967         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
27968         * tree-ssa-live.c (delete_var_map): Likewise.
27969         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
27970         * tree-ssa-pre.c (phi_trans_add): Likewise.
27971
27972 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
27973
27974         PR tree-optimization/48611
27975         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
27976         beyond ERT_MUST_NOT_THROW region.
27977
27978 2011-04-20  Catherine Moore  <clm@codesourcery.com>
27979
27980         * config/mips/mips.opt (mfix-24k): New.
27981         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
27982         * config/mips/mips.md (length): Increase by 4 for stores if
27983         fixing 24K errata.
27984         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
27985         all noreorder if fixing 24K errata.
27986         * doc/invoke.texi: Document mfix-24k.
27987
27988 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
27989
27990         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
27991         quad-word modes, reduce to 9-bit index range when above 1016 limit.
27992
27993 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
27994
27995         * config/arm/arm.c (arm_gen_constant): Move movw support ....
27996         (const_ok_for_op): ... to here.
27997
27998 2011-04-20  Kai Tietz  <ktietz@redhat.com>
27999
28000         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
28001         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
28002
28003 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
28004
28005         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
28006
28007 2011-04-20  Richard Guenther  <rguenther@suse.de>
28008
28009         PR tree-optimization/47892
28010         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
28011         are if-convertible.
28012
28013 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
28014
28015         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
28016
28017 2011-04-20  Tristan Gingold  <gingold@adacore.com>
28018
28019         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
28020
28021 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
28022
28023         PR target/18145
28024
28025         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
28026         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
28027         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
28028         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
28029         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
28030
28031         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
28032         New prototype.
28033
28034         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
28035         (avr_asm_named_section, avr_asm_output_aligned_common,
28036         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
28037         New functions to update...
28038         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
28039         (avr_asm_init_sections): Overwrite section callbacks for
28040         data_section, bss_section.
28041         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
28042         from here to...
28043         (avr_file_end): ...here.
28044
28045 2011-04-20  Richard Guenther  <rguenther@suse.de>
28046
28047         PR middle-end/48695
28048         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
28049         objects and types here.  Adjust for their offset before comparing.
28050
28051 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
28052
28053         * tree-vect-stmts.c (vectorizable_store): Only chain one related
28054         statement per copy.
28055
28056 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
28057
28058         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
28059         (GIMPLE_H): Include $(INTERNAL_FN_H).
28060         (OBJS-common): Add internal-fn.o.
28061         (internal-fn.o): New rule.
28062         * internal-fn.def: New file.
28063         * internal-fn.h: Likewise.
28064         * internal-fn.c: Likewise.
28065         * gimple.h: Include internal-fn.h.
28066         (GF_CALL_INTERNAL): New gf_mask.
28067         (gimple_statement_call): Put fntype into a union with a new
28068         internal_fn field.
28069         (gimple_build_call_internal): Declare.
28070         (gimple_build_call_internal_vec): Likewise.
28071         (gimple_call_same_target_p): Likewise.
28072         (gimple_call_internal_p): New function.
28073         (gimple_call_internal_fn): Likewise.
28074         (gimple_call_fntype): Return null for internal calls.
28075         (gimple_call_set_fntype): Assert that the function is not internal.
28076         (gimple_call_set_fn): Likewise.
28077         (gimple_call_set_fndecl): Likewise.
28078         (gimple_call_set_internal_fn): New function.
28079         (gimple_call_addr_fndecl): Handle null functions.
28080         (gimple_call_return_type): Likewise null types.
28081         * gimple.c (gimple_build_call_internal_1): New function.
28082         (gimple_build_call_internal): Likewise.
28083         (gimple_build_call_internal_vec): Likewise.
28084         (gimple_call_same_target_p): Likewise.
28085         (gimple_call_flags): Handle calls to internal functions.
28086         (gimple_call_fnspec): New function.
28087         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
28088         (gimple_has_side_effects): Handle null functions.
28089         (gimple_rhs_has_side_effects): Likewise.
28090         (gimple_call_copy_skip_args): Handle calls to internal functions.
28091         * cfgexpand.c (expand_call_stmt): Likewise.
28092         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
28093         * gimple-fold.c (gimple_fold_call): Handle null functions.
28094         (gimple_fold_stmt_to_constant_1): Don't fold
28095         calls to internal functions.
28096         * gimple-low.c (gimple_check_call_args): Handle calls to internal
28097         functions.
28098         * gimple-pretty-print.c (dump_gimple_call): Likewise.
28099         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
28100         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
28101         (do_warn_unused_result): Likewise.
28102         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
28103         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
28104         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
28105         the target of a call.
28106         (initialize_hash_element): Update accordingly.
28107         (hashable_expr_equal_p): Use gimple_call_same_target_p.
28108         (iterative_hash_hashable_expr): Handle calls to internal functions.
28109         (print_expr_hash_elt): Likewise.
28110         * tree-ssa-pre.c (can_value_number_call): Likewise.
28111         (eliminate): Handle null functions.
28112         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
28113         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
28114         (find_func_aliases): Likewise.
28115         * value-prof.c (gimple_ic_transform): Likewise.
28116         (gimple_indirect_call_to_profile): Likewise.
28117         * lto-streamer-in.c (input_gimple_stmt): Likewise.
28118         * lto-streamer-out.c (output_gimple_stmt): Likewise.
28119
28120 2011-04-19  Jan Hubicka  <jh@suse.cz>
28121
28122         * ipa-inline-transform.c (save_inline_function_body): Add comments.
28123         * ipa-inline.c (inline_small_functions): Compute summaries first,
28124         populate heap later.
28125
28126 2011-04-19  Jan Hubicka  <jh@suse.cz>
28127
28128         * cgraph.h (save_inline_function_body): Remove.
28129         * ipa-inline-transform.c: New file, broke out of...
28130         * ipa-inline.c: ... this one; Update toplevel comment.
28131         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
28132         make global.
28133         (update_noncloned_frequencies): Move to ipa-inline-transform.c
28134         (cgraph_mark_inline_edge): Rename to inline_call; move to
28135         ipa-inline-transform.c.
28136         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
28137         move to ipa-inline-transform.c
28138         (recursive_inlining, inline_small_functions, flatten_function,
28139         ipa_inline, inline_always_inline_functions,
28140         early_inline_small_functions): Update.
28141         (inline_transform): Move to ipa-inline-transform.c.
28142         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
28143         Declare.
28144         * Makefile.in (ipa-inline-transform.o): New file.
28145         * cgraphunit.c (save_inline_function_body): Move to
28146         ipa-inline-transform.c
28147
28148 2011-04-19  DJ Delorie  <dj@redhat.com>
28149
28150         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
28151         registers if we already know there aren't any.
28152         (m32c_emit_epilogue): Don't emit a barrier here.
28153         (m32c_emit_eh_epilogue): Likewise.
28154         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
28155         operands at expand time.
28156         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
28157         int" wchar type.
28158         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
28159         duplicates.  Provide aliases instead.
28160         * config/m32c/prologue.md (eh_return): Emit a barrier here.
28161         (eh_epilogue): Add a "(return)" here as a hint to other parts of
28162         the compiler.
28163
28164 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
28165
28166         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
28167         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
28168         (general_or_i64_p, sparc_register_move_cost): New function.
28169
28170 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28171
28172         * doc/install.texi (Configuration, --enable-threads): Remove mach.
28173         Add lynx, mipssde.  Sort table.
28174
28175 2011-04-19  Xinliang David Li  <davidxl@google.com>
28176
28177         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
28178         not negative.
28179
28180 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
28181
28182         PR target/48678
28183         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
28184         is a SUBREG with non-MODE_INT mode inside of it.
28185
28186 2011-04-19  Martin Jambor  <mjambor@suse.cz>
28187
28188         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
28189         also according to actual contants.
28190         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
28191         (gimple_fold_call): Use it.
28192         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
28193
28194 2011-04-19  Martin Jambor  <mjambor@suse.cz>
28195
28196         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
28197         non-pointer assignments.
28198
28199 2011-04-19  Martin Jambor  <mjambor@suse.cz>
28200
28201         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
28202         account anc_offset and otr_type from the indirect edge info.
28203         * ipa-prop.c (get_ancestor_addr_info): New function.
28204         (compute_complex_ancestor_jump_func): Assignment analysis moved to
28205         get_ancestor_addr_info, call it.
28206         (ipa_note_param_call): Do not initialize information about polymorphic
28207         calls, return the indirect call graph edge.  Remove the last
28208         parameter, adjust all callers.
28209         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
28210         parameters.  Initialize polymorphic information in the indirect edge.
28211
28212 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
28213
28214         PR lto/48148
28215         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
28216         the types if they have different enumeration identifiers.
28217
28218 2011-04-19  Jan Hubicka  <jh@suse.cz>
28219
28220         * cgraph.h (cgraph_optimize_for_size_p): Declare.
28221         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
28222         * predict.c (cgraph_optimize_for_size_p): Break out from ...
28223         (optimize_function_for_size_p) ... here.
28224
28225 2011-04-19  Richard Guenther  <rguenther@suse.de>
28226
28227         PR lto/48207
28228         * tree.c (free_lang_data): Do not reset the decl-assembler-name
28229         langhook.
28230
28231 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
28232
28233         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
28234         if DECL_NO_INLINE_WARNING_P is set on the function.
28235
28236 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
28237
28238         PR fortran/47976
28239         * reload1.c (inc_for_reload): Return void. All callers changed.
28240         (emit_input_reload_insns): Don't try to delete previous output
28241         reloads to a register, or record spill_reg_store for autoincs.
28242
28243 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
28244
28245         * gengtype.h: Updated copyright year.
28246         (struct input_file_st): Add inpisplugin field.
28247         (type_fileloc): New function.
28248         * gengtype.c
28249         (write_typed_struct_alloc_def): Add gcc_assert.
28250         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
28251         (write_typed_alloc_defns): Don't output for plugin files.
28252         (input_file_by_name): Clear inpisplugin field.
28253         (main): Set inpisplugin field for plugin files.
28254
28255 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
28256
28257         * gengtype-state.c (string_eq): New.
28258         (read_state): Use string_eq instead of strcmp when creating the
28259         state_ident_tab.
28260
28261 2011-04-19  Wei Guozhi  <carrot@google.com>
28262
28263         PR target/47855
28264         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
28265         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
28266         linkage.
28267         * config/arm/constraints.md (Uu): New constraint.
28268         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
28269
28270 2011-04-19  Tristan Gingold  <gingold@adacore.com>
28271
28272         * config.gcc (-*-*-*vms): Added.
28273         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
28274         definitions moved.
28275         * config/vms/vms-ld.c: New file.
28276         * config/vms/vms-ar.c: New file.
28277         * config/vms/t-vmsnative: New file.
28278
28279 2011-04-18  Xinliang David Li  <davidxl@google.com>
28280
28281         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
28282
28283 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
28284
28285         PR middle-end/48661
28286         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
28287         if TREE_TYPE (v) is non-NULL.
28288
28289         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
28290         gimple_get_virt_mehtod_for_binfo.
28291         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
28292         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
28293         callers.
28294         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28295
28296 2011-04-18  Michael Matz  <matz@suse.de>
28297             Steve Ellcey  <sje@cup.hp.com>
28298
28299         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
28300         use its mode as source mode if it isn't VOIDmode.
28301
28302 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
28303
28304         * doc/passes.texi: Fill crossref nodes.
28305
28306 2011-04-18  Jim Meyering  <meyering@redhat.com>
28307
28308         Fix doubled-word typos in comments and strings
28309         * config/alpha/vms-unwind.h: s/for for/for/
28310         * config/arm/unwind-arm.h: Likewise.
28311         * config/microblaze/microblaze.c: Likewise.
28312         * config/sh/constraints.md: s/in in/in/
28313         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
28314
28315 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
28316
28317         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
28318         (AVX_FLOAT_MODE_P): Ditto.
28319         (AVX128_VEC_FLOAT_MODE_P): Ditto.
28320         (AVX256_VEC_FLOAT_MODE_P): Ditto.
28321         (AVX_VEC_FLOAT_MODE_P): Ditto.
28322         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
28323         (UNSPEC_MASKSTORE): Ditto.
28324         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
28325         Merge from <sse>_movmsk<ssemodesuffix> and
28326         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
28327         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
28328         iterator.
28329         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
28330         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
28331         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
28332
28333 2011-04-18  Jan Hubicka  <jh@suse.cz>
28334
28335         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
28336
28337         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
28338         (want_inline_function_called_once_p): Break out the logic from
28339         ipa_inline.
28340         (edge_badness): Ensure that profile is not misupdated.
28341         (lookup_recursive_calls): Prioritize by call frequencies.
28342         (inline_small_functions): Move program size estimates here;
28343         actually process whole queue even when unit growth has been
28344         met. (to properly compute inline_failed reasons and for the
28345         case unit size decrease.) Revisit comments on recursive inlining.
28346         (ipa_inline): Remove unit summary code; first inline hot calls
28347         of functions called once, cold calls next.
28348         (order, nnodes): Remove unused variables.
28349         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
28350         (GTFILES): Remove ipa-inline.c
28351         * sel-sched.c (fill_insns): Silence uninitialized var warning.
28352
28353 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
28354
28355         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
28356
28357 2011-04-18  Jie Zhang  <jie@codesourcery.com>
28358             Richard Earnshaw  <rearnsha@arm.com>
28359
28360         * arm.c (neon_builtin_type_bits): Remove.
28361         (typedef enum neon_builtin_mode): New.
28362         (T_MAX): Don't define.
28363         (typedef enum neon_builtin_datum): Remove bits, codes[],
28364         num_vars and base_fcode.  Add mode, code and fcode.
28365         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
28366         VAR10): Change accordingly.
28367         (neon_builtin_data[]): Change accordingly
28368         (arm_init_neon_builtins): Change accordingly.
28369         (neon_builtin_compare): Remove.
28370         (locate_neon_builtin_icode): Remove.
28371         (arm_expand_neon_builtin): Change accordingly.
28372
28373         * arm.h (enum arm_builtins): Move to ...
28374         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
28375
28376         * arm.c (arm_builtin_decl): Declare.
28377         (TARGET_BUILTIN_DECL): Define.
28378         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
28379         (arm_builtin_decls[]): New.
28380         (arm_init_neon_builtins): Store builtin declarations in
28381         arm_builtin_decls[].
28382         (arm_init_tls_builtins): Likewise.
28383         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
28384         (arm_builtin_decl): New.
28385
28386 2011-04-18  Richard Guenther  <rguenther@suse.de>
28387
28388         * tree.c (upper_bound_in_type): Build properly canonicalized
28389         INTEGER_CSTs.
28390         (lower_bound_in_type): Likewise.
28391
28392 2011-04-18  Richard Guenther  <rguenther@suse.de>
28393
28394         * gimple.h (gimple_call_addr_fndecl): New function.
28395         (gimple_call_fndecl): Use it.
28396         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
28397         for direct calls.
28398         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
28399         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
28400
28401 2011-04-18  Richard Guenther  <rguenther@suse.de>
28402
28403         PR middle-end/48650
28404         * tree.c (build_string): STRING_CST is now derived from tree_typed.
28405
28406 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
28407
28408         PR lto/48492
28409         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
28410         DECL_IN_CONSTANT_POOL without RTL.
28411
28412 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
28413             Ira Rosen  <ira.rosen@linaro.org>
28414
28415         PR target/48252
28416         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
28417         to match neon_vzip/vuzp/vtrn_internal.
28418         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
28419         outputs explicitly dependent on both inputs.
28420         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
28421
28422 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
28423
28424         PR tree-optimization/48616
28425         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
28426         whether the shift is by scalar or vector based on whether all SLP
28427         scalar stmts have the same rhs.
28428
28429 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
28430
28431         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
28432         memory operands.
28433
28434 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
28435
28436         PR target/43700
28437         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
28438         registers.
28439
28440 2011-04-17  Jan Hubicka  <jh@suse.cz>
28441
28442         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
28443         * cgrpahunit.c (cgraph_finalize_function): Do not set
28444         finalized_by_frontend.
28445         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
28446         finalized_by_frontend.
28447
28448 2011-04-17  Jan Hubicka  <jh@suse.cz>
28449
28450         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
28451         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
28452         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
28453         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
28454         method.
28455         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
28456         gimple-fold.c
28457         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
28458
28459 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
28460
28461         PR lto/48538
28462         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
28463         is non-null before accessing it.
28464         (input_cgraph): Remove trailing spaces.
28465
28466 2011-04-17  Revital Eres  <revital.eres@linaro.org>
28467
28468         * params.def (sms-min-sc): New param flag.
28469         * modulo-sched.c (sms_schedule): Use it.
28470         * doc/invoke.texi (sms-min-sc): Document it.
28471
28472 2011-04-17  Jan Hubicka  <jh@suse.cz>
28473
28474         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
28475         present, also set gimple_call_set_cannot_inline.
28476         * ipa-inline.c: Update toplevel comment.
28477         (MAX_TIME): Remove.
28478         (cgraph_clone_inlined_nodes): Fix linebreaks.
28479         (cgraph_check_inline_limits): Restructure to ...
28480         (caller_growth_limits): ... this one; be more tolerant
28481         on growth in nested inline chains; add explanatory comment;
28482         fix stack accounting thinko introduced by previous patch.
28483         (cgraph_default_inline_p): Remove.
28484         (report_inline_failed_reason): New function.
28485         (can_inline_edge_p): New function.
28486         (can_early_inline_edge_p): New function.
28487         (leaf_node_p): Move upwards in file.
28488         (want_early_inline_function_p): New function.
28489         (want_inline_small_function_p): New function.
28490         (want_inline_self_recursive_call_p): New function.
28491         (cgraph_edge_badness): Rename to ...
28492         (edge_badness) ... this one; fix linebreaks.
28493         (update_edge_key): Update call of edge_baddness; add
28494         detailed dump about queue updates.
28495         (update_caller_keys): Use can_inline_edge_p and
28496         want_inline_small_function_p.
28497         (cgraph_decide_recursive_inlining): Rename to...
28498         (recursive_inlining): Use can_inline_edge_p and
28499         want_inline_self_recursive_call_p; simplify and remove no longer
28500         valid FIXME.
28501         (cgraph_set_inline_failed): Remove.
28502         (add_new_edges_to_heap): Use can_inline_edge_p and
28503         want_inline_small_function_p.
28504         (cgraph_decide_inlining_of_small_functions): Rename to ...
28505         (inline_small_functions): ... this one; cleanup; use
28506         can/want predicates; cleanup debug ouput; work edges till fibheap
28507         is exhausted and do not stop once unit growth is reached; remove
28508         later loop processing remaining edges.
28509         (cgraph_flatten): Rename to ...
28510         (flatten_function): ... this one; use can_inline_edge_p
28511         and can_early_inline_edge_p predicates.
28512         (cgraph_decide_inlining): Rename to ...
28513         (ipa_inline): ... this one; remove unreachable nodes before
28514         inlining functions called once; simplify the pass.
28515         (cgraph_perform_always_inlining): Rename to ...
28516         (inline_always_inline_functions): ... this one; use
28517         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
28518         (cgraph_decide_inlining_incrementally): Rename to ...
28519         (early_inline_small_functions): ... this one; simplify
28520         using new predicates; cleanup; make dumps prettier.
28521         (cgraph_early_inlining): Rename to ...
28522         (early_inliner): newer inline regular functions into always-inlines;
28523         fix updating of call stmt summaries.
28524         (pass_early_inline): Update for new names.
28525         (inline_transform): Fix formating.
28526         (gate_cgraph_decide_inlining): Rename to ...
28527         (pass_ipa_inline): ... this one.
28528         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
28529         * ipa-inline-analysis.c (dump_inline_summary): Update.
28530         (compute_inline_parameters): Do not compute disregard_inline_limits;
28531         look for mismatching arguments.
28532         (estimate_growth): Fix handlig of non-trivial self recursion.
28533         (inline_read_summary): Do not read info->disregard_inline_limits.
28534         (inline_write_summary): Do not write info->disregard_inline_limits.
28535         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
28536         and move all checks into can_inline_edge_p predicate; re-enable code
28537         comparing optimization levels.
28538         (expand_call_inline): Do not test inline_forbidden_into_p.
28539         * Makefile.in (ipa-inline.o): Update arguments.
28540
28541 2011-04-17  Revital Eres  <revital.eres@linaro.org>
28542
28543         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
28544
28545 2011-04-17  Revital Eres  <revital.eres@linaro.org>
28546
28547         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
28548
28549 2011-04-17  Michael Matz  <matz@suse.de>
28550
28551         PR tree-optimization/48622
28552         PR lto/48645
28553         * ipa-inline-analysis.c (inline_read_summary): Read size/time
28554         in same order as they're written.
28555
28556 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28557
28558         * config/pa/predicates.md: Reorganize and simplify predicates.
28559         Eliminate duplicate code checks.
28560         (arith_operand): Rename to arith14_operand
28561         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
28562         * config/pa/pa.md: Use renamed operands.
28563         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
28564         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
28565         arith11_operand, adddi3_operand, indexed_memory_operand,
28566         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
28567         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
28568         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
28569         move_dest_operand, move_src_operand, prefetch_cc_operand,
28570         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
28571         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
28572         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
28573         div_operand, int5_operand, movb_comparison_operator,
28574         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
28575         arith_double_operand, ireg_operand, lhs_lshift_operand,
28576         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
28577         integer_store_memory_operand): Likewise.
28578         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
28579         (integer_store_memory_operand, read_only_operand,
28580         function_label_operand, borx_reg_operand,
28581         non_hard_reg_operand): Likewise.
28582         (eq_neq_comparison_operator): Delete unused operator.
28583         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
28584         function_label_operand.
28585         (emit_move_sequence): Likewise.
28586
28587 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
28588
28589         * config/i386/sse.md (sseunpackmode): New mode attribute.
28590         (ssepackmode): Ditto.
28591         (vec_pack_trunc_<mode>): Macroize expander from
28592         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
28593         (vec_unpacks_lo_<mode>): Macroize expander from
28594         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28595         (vec_unpacks_hi_<mode>): Macroize expander from
28596         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28597         (vec_unpacku_lo_<mode>): Macroize expander from
28598         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28599         (vec_unpacku_hi_<mode>): Macroize expander from
28600         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28601         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
28602         ix86_expand_sse4_unpack.
28603         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
28604
28605 2011-04-16  Jan Hubicka  <jh@suse.cz>
28606
28607         * cgraphbuild.c: Include ipa-inline.h.
28608         (reset_inline_failed): Use initialize_inline_failed.
28609         * cgraph.c: Include ipa-inline.h.
28610         (cgraph_create_node_1): Do not initialize estimated_growth.
28611         (initialize_inline_failed): More to ipa-inline-analysis.c
28612         (dump_cgraph_node): Do not dump inline flags.
28613         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
28614         and disregard_inline_limits flags.
28615         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
28616         time, size, estimated_growth.
28617         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
28618         Update.
28619         * cgraphunit.c (cgraph_decide_is_function_needed): Use
28620         DECL_DISREGARD_INLINE_LIMITS.
28621         (cgraph_analyze_function): Do not initialize
28622         node->local.disregard_inline_limits.
28623         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
28624         inlinable, versionable and disregard_inline_limits.
28625         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
28626         cgraph_check_inline_limits, cgraph_default_inline_p,
28627         cgraph_edge_badness, update_caller_keys, update_callee_keys,
28628         add_new_edges_to_heap): Update.
28629         (cgraph_decide_inlining_of_small_function): Update; set
28630         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
28631         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
28632         cgraph_decide_inlining_incrementally): Update.
28633         * ipa-inline.h (inline_summary): Add inlinable, versionable,
28634         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
28635         time, size and estimated_growth parameters.
28636         (estimate_edge_growth): Update.
28637         (initialize_inline_failed): Declare.
28638         * ipa-split.c: Include ipa-inline.h
28639         (execute_split_functions): Update.
28640         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
28641         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
28642         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
28643         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
28644         estimated_growth to INT_MIN.
28645         (inline_node_duplication_hook): Likewise.
28646         (dump_inline_summary): Dump new fields.
28647         (compute_inline_parameters): Update.
28648         (estimate_edge_time, estimate_time_after_inlining,
28649         estimate_size_after_inlining, estimate_growth, inline_read_summary,
28650         inline_write_summary):
28651         (initialize_inline_failed): Move here from cgraph.c.
28652         * tree-sra.c: Include ipa-inline.h.
28653         (ipa_sra_preliminary_function_checks): Update.
28654         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
28655         ipa-inline.h.
28656
28657 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
28658
28659         * config/i386/sse.md (V16): New mode iterator.
28660         (VI1, VI8): Ditto.
28661         (AVXMODEQI, AVXMODEDI): Remove.
28662         (sse2, sse3): New mode attribute.
28663         (mov<mode>): Use V16 mode iterator.
28664         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
28665         (push<mode>1): Use V16 mode iterator.
28666         (movmisalign<mode>): Ditto.
28667         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
28668         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
28669         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
28670         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
28671         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
28672         avx_movdqu<avxmodesuffix>.
28673         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
28674         *avx_movdqu<avxmodesuffix>.
28675         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
28676         avx_lddqu<avxmodesuffix>.
28677         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
28678         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
28679         avx_movnt<AVXMODEDI:mode>.
28680         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
28681         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
28682
28683 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
28684
28685         PR target/48629
28686         * haifa-sched.c (prune_ready_list, schedule_block): Use
28687         sched_pressure_p rather than flag_sched_pressure.
28688
28689 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
28690
28691         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
28692         cgraph_get_node instead of cgraph_get_create_node.
28693
28694 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
28695
28696         * cfgexpand.c (expand_debug_expr): Use
28697         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
28698
28699 2011-04-15  Michael Matz  <matz@suse.de>
28700
28701         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
28702         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
28703         * function.c (gimplify_parameters): Ditto.
28704         * gimplify.c (gimplify_vla_decl): Ditto.
28705
28706         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
28707         (gimple_call_set_alloca_for_var): New inline function.
28708         (gimple_call_alloca_for_var_p): Ditto.
28709         * gimple.c (gimple_build_call_from_tree): Remember
28710         CALL_ALLOCA_FOR_VAR_P state.
28711         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
28712
28713         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
28714         calls if they were for VLA objects.
28715
28716 2011-04-15  Martin Jambor  <mjambor@suse.cz>
28717
28718         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
28719         of ADR_EXPRs.
28720
28721 2011-04-15  Martin Jambor  <mjambor@suse.cz>
28722
28723         PR middle-end/48601
28724         * tree-emutls.c (lower_emutls_function_body): Call
28725         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
28726         result is non-NULL.
28727
28728 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
28729
28730         * c-decl.c (detect_field_duplicates): Call
28731         objc_detect_field_duplicates instead of objc_get_interface_ivars.
28732
28733 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
28734
28735         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
28736         * gimple.c (gimple_asm_clobbers_memory_p): Define.
28737         * ipa-pure-const.c (check_stmt): Call it.
28738         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
28739
28740 2011-04-15  Richard Guenther  <rguenther@suse.de>
28741
28742         PR tree-optimization/48290
28743         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
28744         Properly decide inhibiting propagation based on the valueized
28745         operand.  Do loop-closed SSA form preserving here ...
28746         (init_copy_prop): ... not here.
28747
28748 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
28749
28750         PR target/48612
28751         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
28752         (*ieee_smax<mode>3): Likewise.
28753
28754 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28755
28756         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
28757         Replace match_operand with match_dup for the third operand in
28758         these expanders.
28759
28760 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
28761
28762         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
28763         to track processing of conditionals.  Update all callers.
28764         (try_combine, simplify_if_then_else): Update.
28765
28766 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
28767
28768         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
28769         -fsched-pressure.
28770
28771 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
28772
28773         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
28774         instead of match_operand for operand 3.
28775
28776 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
28777
28778         * recog.h (insn_operand_data): Add an "allows_mem" field.
28779         * genoutput.c (output_operand_data): Initialize it.
28780         * optabs.c (maybe_legitimize_operand_same_code): New function.
28781         (maybe_legitimize_operand): Use it when matching the original
28782         op->value.
28783
28784 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
28785
28786         * gimplify.c: Fix issues in comments throughout.
28787         (voidify_wrapper_expr): Fix long line.
28788         (build_stack_save_restore): Likewise.
28789         (gimplify_loop_expr): Likewise.
28790         (gimplify_compound_lval): Likewise.
28791         (gimplify_init_ctor_eval): Likewise.
28792         (gimplify_modify_expr_rhs): Likewise.
28793         (omp_notice_threadprivate_variable): Likewise.
28794
28795 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
28796
28797         * cfgexpand.c (expand_call_stmt): Convert the function type to the
28798         original one if this is not a builtin function.
28799
28800 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
28801
28802         PR target/48605
28803         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
28804         offset it as needed based on top 2 bits in operands[3], change
28805         MEM mode to SFmode and mask those 2 bits away from operands[3].
28806
28807 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
28808
28809         * c-parser.c (c_parser_objc_protocol_definition): Updated for
28810         change from objc_declare_protocols() to objc_declare_protocol().
28811
28812 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
28813
28814         * config/i386/sse.md (sse4_1): New mode attribute.
28815         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
28816         avx_blend<ssemodesuffix><avxmodesuffix> and
28817         sse4_1_blend<ssemodesuffix> using VF mode iterator.
28818         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
28819         avx_blendv<ssemodesuffix><avxmodesuffix> and
28820         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
28821         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
28822         avx_dp<ssemodesuffix><avxmodesuffix> and
28823         sse4_1_dp<ssemodesuffix> using VF mode iterator.
28824         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
28825         (sse4_1_packusdw): Merge with *avx_packusdw.
28826         (sse4_1_pblendvb): Merge with *avx_pblendvb.
28827         (sse4_1_pblendw): Merge with *avx_pblendw.
28828         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
28829         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
28830         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
28831         VF mode iterator.
28832         (sse4_1_round<ssescalarmodesuffix>): Merge with
28833         *avx_round<ssescalarmodesuffix>.
28834         (aesenc): Merge with *avx_aesenc.
28835         (aesenclast): Merge with *avx_aesenclast.
28836         (aesdec): Merge with *avx_aesdec.
28837         (aesdeclast): Merge with *avx_aesdeclast.
28838         (pclmulqdq): Merge with *pclmulqdq.
28839         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
28840         New predicate.
28841         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
28842
28843 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
28844
28845         PR middle-end/48608
28846         * cfgexpand.c (get_decl_align_unit): Renamed to ...
28847         (align_local_variable): This.  Update DECL_ALIGN.
28848         (add_stack_var): Updated.
28849         (expand_one_stack_var): Likewise.
28850
28851 2011-04-14  Richard Guenther  <rguenther@suse.de>
28852
28853         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
28854         Remove.
28855         (dse_initialize_block_local_data, dse_leave_block,
28856         record_voperand_set, get_stmt_uid): Likewise.
28857         (dse_possible_dead_store_p): Allow any kind of killing stmt.
28858         (dse_optimize_stmt): Remove voperand set handling code.
28859         Simplify and improve to handle any kind of killing stmt.
28860         (dse_record_phi): Remove.
28861         (dse_enter_block): Simplify.
28862         (tree_ssa_dse): Likewise.
28863         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
28864
28865 2011-04-14  Jan Hubicka  <jh@suse.cz>
28866
28867         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
28868         * cgraph.h (struct inline_summary): Move to ipa-inline.h
28869         (cgraph_local_info): Remove inline_summary.
28870         * ipa-cp.c: Include ipa-inline.h.
28871         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
28872         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
28873         accesor.
28874         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
28875         (input_overwrite_node): Do not set inline summary.
28876         (input_node): Do not stream inline summary.
28877         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
28878         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
28879         growth; we do not have inline parameters computed for that anyway.
28880         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
28881         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
28882         (inline_summary_t): New type and VECtor.
28883         (debug_inline_summary, dump_inline_summaries): Declare.
28884         (inline_summary): Use VOCtor.
28885         (estimate_edge_growth): Kill hack computing call stmt size directly.
28886         * lto-section-in.c (lto_section_name): Add inline section.
28887         * ipa-inline-analysis.c: Include lto-streamer.h
28888         (node_removal_hook_holder, node_duplication_hook_holder): New holders
28889         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
28890         (inline_summary_vec): Define.
28891         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
28892         dump_inline_summaries): New functions.
28893         (estimate_function_body_sizes): Properly compute size/time of outgoing
28894         calls.
28895         (compute_inline_parameters): Alloc inline_summary; do not compute
28896         size/time of incomming calls.
28897         (estimate_edge_time): Avoid missing time summary hack.
28898         (inline_read_summary): Read inline summary info.
28899         (inline_write_summary): Write inline summary info.
28900         (inline_free_summary): Free all hooks and inline summary vector.
28901         * lto-streamer.h: Add LTO_section_inline_summary section.
28902         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
28903         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
28904
28905 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
28906
28907         * tree-vectorizer.h (vect_strided_store_supported): Add a
28908         HOST_WIDE_INT argument.
28909         (vect_strided_load_supported): Likewise.
28910         (vect_permute_store_chain): Return void.
28911         (vect_transform_strided_load): Likewise.
28912         (vect_permute_load_chain): Delete.
28913         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
28914         count argument.  Check that the count is a power of two.
28915         (vect_strided_load_supported): Likewise.
28916         (vect_permute_store_chain): Return void.  Update after above changes.
28917         Assert that the access is supported.
28918         (vect_permute_load_chain): Likewise.
28919         (vect_transform_strided_load): Return void.
28920         * tree-vect-stmts.c (vectorizable_store): Update calls after
28921         above interface changes.
28922         (vectorizable_load): Likewise.
28923         (vect_analyze_stmt): Don't check for strided powers of two here.
28924
28925 2011-04-14  Richard Guenther  <rguenther@suse.de>
28926
28927         PR tree-optimization/48590
28928         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
28929         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
28930         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
28931         BUILT_IN_STACK_SAVE.
28932         * tree-ssa-dce.c (propagate_necessity): Handle
28933         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
28934
28935 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
28936
28937         * c-parser.c (c_parser_objc_class_declaration): Updated call to
28938         objc_declare_class.
28939
28940 2011-04-14  Richard Guenther  <rguenther@suse.de>
28941
28942         * tree.h (get_object_alignment_1): Declare.
28943         * builtins.c (get_object_alignment_1): Split out worker from ...
28944         (get_object_alignment): ... here.
28945         * fold-const.c (get_pointer_modulus_and_residue): Use
28946         get_object_alignment_1.
28947
28948 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
28949
28950         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
28951         type parameter.
28952         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
28953         parameter.  Generalise code to handle arrays as well as vectors.
28954         (vect_setup_realignment): Update accordingly.
28955         * tree-vect-stmts.c (vectorizable_store): Likewise.
28956         (vectorizable_load): Likewise.
28957
28958 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
28959
28960         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
28961         within the per-copy loop.
28962
28963 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
28964
28965         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
28966         in the dump file.
28967
28968 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
28969
28970         * doc/options.texi (Negative): Explicitly mention that the
28971         Negative chain must be circular.
28972
28973 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
28974
28975         * function.h (block_chainon): Declare.
28976         * function.c (block_chainon): Define.
28977
28978 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
28979             Eric Weddington  <eric.weddington@atmel.com>
28980             Georg-Johann Lay  <avr@gjlay.de>
28981
28982         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
28983         New Includes
28984         (avr_init_builtins, avr_expand_builtin,
28985         avr_expand_delay_cycles, avr_expand_unop_builtin,
28986         avr_expand_binop_builtin ): New functions.
28987         (avr_builtin_id): New enum
28988         (struct avr_builtin_description): New struct
28989         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
28990         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
28991
28992         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
28993         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
28994         UNSPECV_DELAY_CYCLES): new enumeration values
28995         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
28996         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
28997         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
28998         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
28999         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
29000         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
29001         "fmulsu"): New insns
29002
29003         * config/avr/avr-c.c: fix line endings
29004         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
29005         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
29006         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
29007         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
29008         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
29009
29010         * doc/extend.texi (AVR Built-in Functions): New node
29011         (Target Builtins): Add documentation of AVR
29012         built-in functions.
29013
29014 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
29015
29016         PR target/44643
29017         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
29018         alone. Error if non-const data has attribute progmem.
29019
29020 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
29021
29022         * tree.h (struct tree_constructor): Include tree_typed instead of
29023         tree_common.
29024         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
29025         TS_TYPED instead of TS_COMMON.
29026
29027 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
29028
29029         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
29030         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
29031         (sse2_psadbw): Merge with *avx_psadbw.
29032         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
29033         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
29034         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
29035         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
29036         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
29037         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
29038         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
29039         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
29040         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
29041         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
29042         (ssse3_palignrti): Merge with *avx_palignrti.
29043
29044 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
29045
29046         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
29047         * tree-ssanames.c (fini_ssanames): VEC_free it.
29048         (make_ssa_name_fn): Update for VECness of free_ssanames.
29049         (release_ssa_name, release_dead_ssa_names): Likewise.
29050         * tree.h (struct tree_ssa_name): Include tree_typed instead of
29051         tree_common.
29052         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
29053         TS_TYPED instead of TS_COMMON.
29054
29055 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
29056
29057         * postreload-gcse.c (gcse_after_reload_main): Add calls to
29058         statistics_counter_event.
29059         * tree-ssa-copyrename.c (stats): Define.
29060         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
29061         statistics_counter_event.
29062         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
29063         (bswap_stats, widen_mul_stats): Define.
29064         (insert_reciprocals): Increment rdivs_inserted.
29065         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
29066         rfuncs_inserted.  Add calls to statistics_counter_event.
29067         (execute_cse_sincos_1): Increment inserted.
29068         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
29069         statistics_counter_event.
29070         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
29071         of bswap_stats.  Add calls to statistics_counter_event.
29072         (convert_mult_to_widen): Increment widen_mults_inserted.
29073         (convert_plusminus_to_widen): Increment maccs_inserted.
29074         (convert_mult_to_fma): Increment fmas_inserted.
29075         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
29076         calls to statistics_counter_event.
29077
29078 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
29079
29080         PR rtl-optimization/48455
29081         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
29082         `temp_costs->mem_cost'.
29083
29084 2011-04-13  Jan Hubicka  <jh@suse.cz>
29085
29086         * ipa-inline.h: New file.
29087         * ipa-inline-analysis.c: New file. Broken out of ...
29088         * ipa-inline.c: ... this file; update toplevel comment;
29089         include ipa-inline.h
29090         (inline_summary): Move to ipa-inline.h
29091         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
29092         ipa-inline-analysis.c.
29093         (cgraph_estimate_time_after_inlining): Rename to
29094         estiamte_time_after_inlining; move to ipa-inline-analysis.c
29095         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
29096         to estimate_edge_growth.
29097         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
29098         rename to estimate_size_after_inlining.
29099         (cgraph_mark_inline_edge): Update for new naming convention.
29100         (cgraph_check_inline_limits): Likewise.
29101         (cgraph_edge_badness): Likewise.
29102         (cgraph_decide_recursive_inlining): Likewise.
29103         (cgraph_decide_inlining_of_small_functions): Likewise.
29104         (cgraph_decide_inlining_incrementally): Likewise.
29105         (cgraph_estimate_growth): Rename to estimate_growth; move to
29106         ipa-inline-analysis.c.
29107         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
29108         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
29109         (compute_inline_parameters): Likewise.
29110         (compute_inline_parameters_for_current): Likewise.
29111         (pass_inline_parameters): Likewise.
29112         (inline_indirect_intraprocedural_analysis): Likewise.
29113         (analyze_function): Rename to inline_analyze_function; likewise.
29114         (add_new_function): Move to ipa-inline-analysis.c.
29115         (inline_generate_summary): Likewise.
29116         (inline_read_summary): Likewise.
29117         (inline_write_summary): Likewise.
29118         * Makefile.in (ipa-inline-analysis.c): New file.
29119
29120 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29121
29122         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
29123         * configure: Regenerate.
29124
29125 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
29126
29127         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
29128         instead of tree_common.
29129         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
29130         Likewise.
29131         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
29132         TS_TYPED rather than TS_COMMON.
29133         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
29134
29135 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
29136
29137         PR target/45263
29138         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
29139         r20 around calls of __tablejump_elpm__
29140
29141 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
29142
29143         PR middle-end/48591
29144         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
29145         NULL.
29146         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
29147
29148 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
29149
29150         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
29151         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
29152         (cfi_vec): New typedef.
29153         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
29154         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
29155         (cie_cfi_vec): New static variable.
29156         (cie_cfi_head): Delete.
29157         (add_cfi): Accept a cfi_vec * as first argument. All callers and
29158         declaration changed. Use vector rather than list operations.
29159         (new_cfi): Don't initialize the dw_cfi_next field.
29160         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
29161         rather than list operations.
29162         (lookup_cfa): Use vector rather than list operations.
29163         (output_cfis): New argument upto. Accept a cfi_vec rather than
29164         a dw_cfi_ref list head as argument. All callers changed.
29165         Iterate over the vector using upto as a maximum index.
29166         (output_all_cfis): New static function.
29167         (output_fde): Use vector rather than list operations. Use the
29168         new upto argument for output_cfis rather than manipulating a
29169         list.
29170         (dwarf2out_begin_prologue): Change initializations to match
29171         new struct members.
29172         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
29173         from the vector length rather than searching for the end of a list.
29174         Use output_all_cfis.
29175         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
29176
29177 2011-04-13  Nick Clifton  <nickc@redhat.com>
29178
29179         * config/rx/rx.md (movmemsi): Do not use this pattern when
29180         volatile pointers are involved.
29181
29182 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
29183
29184         * config/i386/sse.md (pinsrbits): Remove.
29185         (sse2_packsswb): Merge with *avx_packsswb.
29186         (sse2_packssdw): Merge with *avx_packssdw.
29187         (sse2_packuswb): Merge with *avx_packuswb.
29188         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
29189         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
29190         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
29191         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
29192         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
29193         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
29194         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
29195         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
29196         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
29197         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
29198         (sse2_loadld): Merge with *avx_loadld.
29199         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
29200         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
29201         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
29202         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
29203         (vec_concatv2di): Merge with *vec_concatv2di_avx.
29204
29205 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
29206
29207         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
29208         calling TREE_CHAIN.
29209         * print-tree.c (print_node): Likewise.
29210         * tree-inline.c (copy_tree_r): Likewise.
29211         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
29212         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
29213         instead of TS_COMMON.
29214         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
29215         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
29216         (copy_node_stat): Zero TREE_CHAIN only if necessary.
29217         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
29218         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
29219         ...and these...
29220         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
29221         * tree.h: ...here.
29222         (TREE_CHAIN): Check for a TS_COMMON structure.
29223         (TREE_TYPE): Check for a TS_TYPED structure.
29224
29225 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
29226
29227         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
29228         cgraph_get_create_node instead of cgraph_node.
29229
29230 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
29231
29232         * c-parser.c (c_parser_initelt): Updated call to
29233         objc_build_message_expr.
29234         (c_parser_postfix_expression): Likewise.
29235
29236 2011-04-12  Kai Tietz  <ktietz@redhat.com>
29237
29238         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
29239         MASK_MS_BITFIELD_LAYOUT bit.
29240
29241 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
29242
29243         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
29244         assert it is always true.
29245         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
29246         moves.
29247
29248 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
29249
29250         * c-parser.c (c_lex_one_token): Rewritten conditional used when
29251         compiling Objective-C to be more efficient.
29252
29253 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
29254
29255         * opts-common.c (decode_cmdline_options_to_array): Remove variable
29256         argv_copied.
29257
29258 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
29259
29260         * recog.h, genoutput.c, optabs.c: Revert last patch.
29261
29262 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
29263
29264         PR target/48090
29265         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
29266
29267 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
29268
29269         * recog.h (insn_operand_data): Add an "allows_mem" field.
29270         * genoutput.c (output_operand_data): Initialize it.
29271         * optabs.c (maybe_legitimize_operand_same_code): New function.
29272         (maybe_legitimize_operand): Use it when matching the original
29273         op->value.
29274
29275 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
29276
29277         * genpreds.c (process_define_predicate): Move most processing
29278         to gensupport.c.  Continue to validate the expression.
29279         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
29280         (process_define_predicate): Move processing to gensupport.c.
29281         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
29282         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
29283         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
29284         argument.
29285         (valid_predicate_name_p): New function, split out from old
29286         genpreds.c:process_define_predicate.
29287         (process_define_predicate): New function, combining code from
29288         old genpreds.c and genrecog.c functions.
29289         (process_rtx): Call it for DEFINE_PREDICATE and
29290         DEFINE_SPECIAL_PREDICATE.
29291
29292 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
29293
29294         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
29295         size of a '%A' memory reference.
29296         (T_DREG, T_QREG): New neon_builtin_type_bits.
29297         (arm_init_neon_builtins): Assert that the load and store operands
29298         are neon_struct_operands.
29299         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
29300         (NEON_ARG_MEMORY): New builtin_arg.
29301         (neon_dereference_pointer): New function.
29302         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
29303         Handle NEON_ARG_MEMORY.
29304         (arm_expand_neon_builtin): Update after above interface changes.
29305         Use NEON_ARG_MEMORY for loads and stores.
29306         * config/arm/predicates.md (neon_struct_operand): New predicate.
29307         * config/arm/iterators.md (V_two_elem): Tweak formatting.
29308         (V_three_elem): Use BLKmode for accesses that have no associated mode.
29309         (V_four_elem): Tweak formatting.
29310         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
29311         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
29312         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
29313         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
29314         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
29315         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
29316         (neon_vst4<mode>): Replace pointer operand with a memory operand.
29317         Use %A in the output template.
29318         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
29319         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
29320         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
29321         the width of the memory access.  Remove post-increment.
29322         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
29323
29324 2011-04-12  Nick Clifton  <nickc@redhat.com>
29325
29326         * config/v850/v850.c (expand_prologue): Do not use the CALLT
29327         instruction for interrupt handlers if the target is the basic V850
29328         architecture.
29329         (expand_epilogue): Likewise.
29330
29331 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
29332
29333         PR rtl-optimization/48549
29334         * combine.c (propagate_for_debug): Also stop after BB_END of
29335         this_basic_block.  Process LAST and just stop processing after it.
29336         (combine_instructions): If last_combined_insn has been deleted,
29337         set last_combined_insn to its PREV_INSN.
29338
29339 2011-04-12  Richard Guenther  <rguenther@suse.de>
29340
29341         PR tree-optimization/46076
29342         * gimple.h (struct gimple_statement_call): Add fntype field.
29343         (gimple_call_fntype): Adjust.
29344         (gimple_call_set_fntype): New function.
29345         * gimple.c (gimple_build_call_1): Set the call function type.
29346         * gimplify.c (gimplify_call_expr): Preserve the function
29347         type the frontend used for the call.
29348         (gimplify_modify_expr): Likewise.
29349         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
29350         function type.
29351         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
29352         function type.
29353         * tree-ssa.c (useless_type_conversion_p): Function pointer
29354         conversions are useless.
29355
29356 2011-04-12  Martin Jambor  <mjambor@suse.cz>
29357
29358         * cgraph.h (cgraph_node): Remove function declaration.
29359         (cgraph_create_node): Declare.
29360         (cgraph_get_create_node): Likewise.
29361         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
29362         Updated all callers.
29363         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
29364         the decl does not already exist.  Call cgraph_get_create_node instead
29365         of cgraph_node.
29366         (cgraph_get_create_node): New function.
29367         (cgraph_same_body_alias): Update comment.
29368         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
29369         assert it does not return NULL.
29370         (cgraph_update_edges_for_call_stmt): Likewise.
29371         (cgraph_clone_edge): Likewise.
29372         (cgraph_create_virtual_clone): Likewise.
29373         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
29374         instead of cgraph_node.
29375         (cgraph_add_new_function): Call cgraph_create_node or
29376         cgraph_get_create_node instead of cgraph_node.
29377         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
29378         instead of cgraph_node.
29379         (record_eh_tables): Likewise.
29380         (mark_address): Likewise.
29381         (mark_load): Likewise.
29382         (build_cgraph_edges): Call cgraph_get_create_node instead
29383         of cgraph_node.
29384         (rebuild_cgraph_edges): Likewise.
29385         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
29386         instead of cgraph_node.
29387         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
29388         cgraph_node.
29389         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
29390         cgraph_create_node instead of cgraph_node.
29391         * c-decl.c (finish_function): Call cgraph_get_create_node instead
29392         of cgraph_node.
29393         * lto-cgraph.c (input_node): Likewise.
29394         * lto-streamer-in.c (input_function): Likewise.
29395         * varasm.c (mark_decl_referenced): Likewise.
29396         (assemble_alias): Likewise.
29397
29398 2011-04-12  Martin Jambor  <mjambor@suse.cz>
29399
29400         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
29401         instead of cgraph_node and assert it does not return NULL.
29402         * lto-streamer-in.c (lto_read_body): Likewise.
29403         * omp-low.c (new_omp_context): Likewise.
29404         (create_task_copyfn): Likewise.
29405         * tree-emutls.c (lower_emutls_function_body): Likewise.
29406         * matrix-reorg.c (transform_allocation_sites): Likewise.
29407
29408 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
29409
29410         PR c/48552
29411         * c-typeck.c (build_asm_expr): Error out on attempts to use
29412         void type outputs or inputs for constraints that allow reg or
29413         don't allow memory.
29414
29415 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
29416             Richard Earnshaw  <rearnsha@arm.com>
29417
29418         PR target/48250
29419         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
29420         to use sign-magnitude offsets. Reject unsupported unaligned
29421         cases. Add detailed description in comments.
29422         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
29423         condition from TARGET_32BIT to TARGET_ARM.
29424
29425 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
29426
29427         * tree.h (struct typed_tree): New.
29428         (struct tree_common): Include it instead of tree_base.
29429         (TREE_TYPE): Update for new location of type field.
29430         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
29431         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
29432         (union tree_node): Add typed field.
29433         * treestruct.def (TS_TYPED): New.
29434         * lto-streamer.c (check_handled_ts_structures): Handle it.
29435         * tree.c (MARK_TS_TYPED): New macro.
29436         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
29437
29438 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
29439
29440         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
29441         (force_nonfallthru): Do not alter the loop nest if no basic block
29442         was created.
29443
29444 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
29445
29446         * config/i386/sse.md (VI): New mode iterator.
29447         (SSEMODEI): Remove.
29448         (AVX256MODEI): Ditto.
29449         (AVXMODEF4P): Ditto.
29450         (avxvecpsmode): Ditto.
29451         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
29452         (sse2_andnot<mode>3): New expander.
29453         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
29454         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
29455         (<any_logic:code><mode>3): Use VI mode iterator.
29456         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
29457         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
29458         (*andnottf3): Handle AVX three-operand constraints.
29459         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
29460
29461 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
29462             Robert Millan  <rmh@gnu.org>
29463
29464         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
29465         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
29466         GNU_USER_DYNAMIC_LINKER64): Define.
29467         (REG_NAME): Don't undefine.
29468         (MD_UNWIND_SUPPORT): Undefine.
29469         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
29470         (REG_NAME): Don't undefine.
29471         (MD_UNWIND_SUPPORT): Undefine.
29472         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
29473
29474 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
29475
29476         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
29477         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
29478
29479 2011-04-11  Xinliang David Li  <davidxl@google.com>
29480
29481         * value-profile.c (check_ic_target): New function.
29482         (gimple_ic_transform): Sanity check indirect call target.
29483         * gimple-low.c (gimple_check_call_args): Interface change.
29484         (gimple_check_call_matching_types): New function.
29485         * tree-inline.c (tree_can_inline_p): Call new function.
29486
29487 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
29488
29489         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
29490         tree-pretty-print.h & realmpfr.h.
29491
29492 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
29493
29494         PR middle-end/48464
29495         * ira.c (setup_pressure_classes): Fix typo in loop condition.
29496         (setup_allocno_and_important_classes): Ditto.
29497
29498 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
29499
29500         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
29501         GNU_USER_DYNAMIC_LINKER.
29502         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
29503         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29504         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
29505         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29506         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
29507         GNU_USER_TARGET_OS_CPP_BUILTINS.
29508         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
29509         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29510         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
29511         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29512         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
29513         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29514         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
29515         GNU_USER_TARGET_OS_CPP_BUILTINS.
29516         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29517         GNU_USER_DYNAMIC_LINKER.
29518         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29519         GNU_USER_TARGET_OS_CPP_BUILTINS.
29520         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
29521         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29522         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
29523         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29524         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
29525         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
29526         GNU_USER_DYNAMIC_LINKER64): Remove.
29527         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
29528         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29529         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29530         GNU_USER_DYNAMIC_LINKER.
29531         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29532         GNU_USER_TARGET_OS_CPP_BUILTINS.
29533         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29534         GNU_USER_TARGET_OS_CPP_BUILTINS.
29535         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
29536         to GNU_USER_TARGET_OS_CPP_BUILTINS.
29537         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29538         GNU_USER_TARGET_OS_CPP_BUILTINS.
29539         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
29540         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
29541         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
29542         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
29543         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29544         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29545         GNU_USER_DYNAMIC_LINKER.
29546         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
29547         GNU_USER_TARGET_OS_CPP_BUILTINS.
29548         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
29549         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29550         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29551         GNU_USER_DYNAMIC_LINKER.
29552         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
29553         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29554         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
29555         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29556         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29557         GNU_USER_DYNAMIC_LINKER.
29558         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
29559         GNU_USER_DYNAMIC_LINKERN32.
29560         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
29561         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
29562         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
29563         GNU_USER_DYNAMIC_LINKER32.
29564         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
29565         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29566         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29567         GNU_USER_DYNAMIC_LINKER.
29568         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
29569         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29570         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
29571         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29572         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29573         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
29574         GNU_USER_DYNAMIC_LINKER32.
29575         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
29576         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
29577         GNU_USER_DYNAMIC_LINKER.
29578         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
29579         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29580         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
29581         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
29582         GNU_USER_DYNAMIC_LINKER64.
29583         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
29584         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29585         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29586         GNU_USER_DYNAMIC_LINKER.
29587         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
29588         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29589         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29590         GNU_USER_DYNAMIC_LINKER.
29591         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
29592         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29593         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
29594         GNU_USER_DYNAMIC_LINKER32.
29595         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
29596         GNU_USER_DYNAMIC_LINKER64.
29597         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
29598         GNU_USER_DYNAMIC_LINKER64.
29599         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
29600         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29601         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
29602         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29603         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29604
29605 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
29606
29607         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
29608         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
29609         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
29610         GNU_USER_DYNAMIC_LINKER.
29611         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
29612         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
29613         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
29614         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
29615         GNU_USER_DYNAMIC_LINKER64.
29616         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
29617         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
29618         GNU_USER_LINK_EMULATION.
29619         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
29620         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
29621         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
29622         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
29623         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
29624         CPP_SPEC, CC1_SPEC): Remove.
29625         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
29626         (GNU_USER_DYNAMIC_LINKER): Define.
29627         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
29628         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
29629         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
29630         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
29631         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
29632         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
29633         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
29634         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
29635         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
29636         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
29637         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
29638         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
29639         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
29640         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
29641         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
29642         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
29643         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29644         GNU_USER_DYNAMIC_LINKER.
29645         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29646         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
29647         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29648         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
29649         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29650         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
29651         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
29652         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
29653         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
29654         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
29655
29656 2011-04-11  Kai Tietz  <ktietz@redhat.com>
29657
29658         PR target/9601
29659         PR target/11772
29660         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
29661         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
29662         comment.
29663         (ix86_is_msabi_thiscall): Removed.
29664         (ix86_is_type_thiscall): Likewise.
29665         (ix86_get_callcvt): New function.
29666         (ix86_comp_type_attributes): Simplify check.
29667         (ix86_function_regparm): Use ix86_get_callcvt for calling
29668         convention attribute checks.
29669         (ix86_return_pops_args): Likewise.
29670         (ix86_static_chain): Likewise.
29671         (x86_this_parameter): Likewise.
29672         (x86_output_mi_thunk): Likewise.
29673         (ix86_function_type_abi): Optimize check for types without attributes.
29674         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
29675         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
29676         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
29677         by flag-values.
29678         (IX86_BASE_CALLCVT): Helper macro.
29679         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
29680         Use ix86_get_callcvt for calling convention attribute checks and avoid
29681         symbol-decoration for stdcall in TARGET_RTD case.
29682         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
29683         Likewise.
29684         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
29685         for declaration.
29686
29687 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
29688
29689         * config/i386/sse.md (VI_128): New mode iterator.
29690         (VI12_128): Rename from SSEMODE12.
29691         (VI14_128): Rename from SSEMODE14.
29692         (VI124_128): New mode iterator.
29693         (VI24_128): Rename from SSEMODE248.
29694         (VI248_128): Rename from SSEMODE248.
29695         (SSEMODE124C8): Remove.
29696         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
29697         (*sse2_<plusminus_insn><mode>3): Merge with
29698         *avx_<plusminus_insn><mode>3.
29699         (*mulv8hi3): Merge with *avx_mulv8hi3.
29700         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
29701         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
29702         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
29703         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
29704         (ashr<mode>3): Merge with *avx_ashr<mode>3.
29705         (lshr<mode>3): Merge with *avx_lshr<mode>3.
29706         (ashl<mode>3): Merge with *avx_ashl<mode>3.
29707         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
29708         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
29709         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
29710         (*<smaxmin:code>v8hi3): Ditto.
29711         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
29712         (*<smaxmin:code>v16qi3): Ditto.
29713         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
29714         (*sse2_eq<mode>3): Ditto.
29715         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
29716         (*sse2_gt<mode>3): Ditto.
29717         (vcondv2di): Split out of vcond<mode>.
29718         (vconduv2di): Split out of vcondu<mode>.
29719
29720 2011-04-11  Richard Guenther  <rguenther@suse.de>
29721
29722         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
29723         before calling tree_low_cst.
29724
29725 2011-04-11  Richard Guenther  <rguenther@suse.de>
29726
29727         * stor-layout.c (layout_type): Compute all array index size operations
29728         in the original type.
29729         (initialize_sizetypes): Add comment.
29730         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
29731
29732 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
29733
29734         * common.opt (Tbss=, Tdata=, Ttext=): New options.
29735
29736 2011-04-11  Martin Jambor  <mjambor@suse.cz>
29737
29738         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
29739         of cgraph_node, handle NULL return value.
29740         (cgraph_global_info): Likewise.
29741         (cgraph_rtl_info): Likewise.
29742         * tree-inline.c (estimate_num_insns): Likewise.
29743         * gimplify.c (unshare_body): Likewise.
29744         (unvisit_body): Likewise.
29745         (gimplify_body): Likewise.
29746         * predict.c (optimize_function_for_size_p): Likewise.
29747         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29748         (call_may_clobber_ref_p_1): Likewise.
29749         * varasm.c (function_section_1): Likewise.
29750         (assemble_start_function): Likewise.
29751
29752 2011-04-11  Martin Jambor  <mjambor@suse.cz>
29753
29754         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
29755         of cgraph_node.
29756         * final.c (rest_of_clean_state): Likewise.
29757         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
29758         * passes.c (pass_init_dump_file): Likewise.
29759         (execute_all_ipa_transforms): Likewise.
29760         (function_called_by_processed_nodes_p): Likewise.
29761         * predict.c (maybe_hot_frequency_p): Likewise.
29762         (probably_never_executed_bb_p): Likewise.
29763         (compute_function_frequency): Likewise.
29764         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
29765         (unnest_nesting_tree_1): Likewise.
29766         (lower_nested_functions): Likewise.
29767         * tree-optimize.c (execute_fixup_cfg): Likewise.
29768         (tree_rest_of_compilation): Likewise.
29769         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
29770         * tree-sra.c (ipa_early_sra): Likewise.
29771         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
29772         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
29773         * ipa.c (record_cdtor_fn): Likewise.
29774         * ipa-inline.c (cgraph_early_inlining): Likewise.
29775         (compute_inline_parameters_for_current): Likewise.
29776         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
29777         * ipa-pure-const.c (local_pure_const): Likewise.
29778         * ipa-split.c (split_function): Likewise.
29779         (execute_split_functions): Likewise.
29780         * cgraphbuild.c (build_cgraph_edges): Likewise.
29781         (rebuild_cgraph_edges): Likewise.
29782         (cgraph_rebuild_references): Likewise.
29783         (remove_cgraph_callee_edges): Likewise.
29784         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
29785         (verify_cgraph_node): Likewise.
29786         (cgraph_analyze_functions): Likewise.
29787         (cgraph_preserve_function_body_p): Likewise.
29788         (save_inline_function_body): Likewise.
29789         (save_inline_function_body): Likewise.
29790         * tree-inline.c (copy_bb): Likewise.
29791         (optimize_inline_calls): Likewise.
29792
29793 2011-04-11  Martin Jambor  <mjambor@suse.cz>
29794
29795         PR tree-optimization/48195
29796         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
29797         ipa_check_create_edge_args.
29798         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
29799         ipa_check_create_edge_args.
29800         * ipa-inline.c (inline_generate_summary): Do not call
29801         ipa_check_create_node_params and ipa_check_create_edge_args.
29802         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
29803         ipa_check_create_edge_args.
29804
29805 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
29806
29807         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
29808         instead of loop.
29809         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
29810         * function.c (record_hard_reg_sets): Likewise.
29811         * ira.c (compute_regs_asm_clobbered): Likewise.
29812         * sched-deps.c (sched_analyze_1): Likewise.
29813         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
29814
29815 2011-04-09  Xinliang David Li  <davidxl@google.com>
29816
29817         PR tree-optimization/PR48484
29818         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
29819         has_valid_pred lazily
29820
29821 2011-04-09  Duncan Sands  <baldrick@free.fr>
29822
29823         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
29824
29825 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
29826
29827         * combine.c (combine_validate_cost): Adjust comments.  Set registered
29828         cost of I0 to zero at the end, if any.
29829
29830 2011-04-08  Xinliang David Li  <davidxl@google.com>
29831
29832         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
29833         to insane profile data.
29834
29835 2011-04-08  Xinliang David Li  <davidxl@google.com>
29836
29837         * ipa-cp.c (ipcp_update_profiling): Correct
29838          negative scale factor due to insane profile data.
29839
29840 2011-04-08  Xinliang David Li  <davidxl@google.com>
29841
29842         * final.c (dump_basic_block_info): New function.
29843         (final): Dump basic block.
29844         (final_scan_insn): Remove old dump.
29845
29846 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
29847
29848         PR target/47829
29849         * config.gcc (i386-*-freebsd): Disable unwind table generation for
29850         crtbegin/crtend.
29851
29852 2011-04-08  Michael Matz  <matz@suse.de>
29853
29854         PR middle-end/48389
29855         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
29856         functions.
29857         (rebuild_jump_labels): Call rebuild_jump_labels_1.
29858         * rtl.h (rebuild_jump_labels_chain): Declare.
29859         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
29860         insns inserted on edges.
29861
29862 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
29863
29864         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
29865         * config/arm/arm-arches.def: New.
29866         * config/arm/arm-opts.h: New.
29867         * config/arm/genopt.sh: New.
29868         * config/arm/arm-tables.opt: New (generated).
29869         * config/arm/arm.c (arm_handle_option, arm_target_help,
29870         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
29871         (all_architectures): Get most table contents from arm-arches.def.
29872         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
29873         arm_selected_tune here.
29874         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
29875         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
29876         (march=, mcpu=, mtune=): Use Enum and Var.
29877         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
29878         (arm.o): Update dependencies.
29879
29880 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
29881
29882         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
29883         of header_file.
29884         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
29885         (write_typed_alloc_defns): Likewise.
29886         (main): Calls write_typed_alloc_defns with output_header.
29887
29888 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
29889
29890         PR inline-asm/48435
29891         * ira-color.c (setup_profitable_hard_regs): Add comments.
29892         Don't take prohibited hard regs into account.
29893         (setup_conflict_profitable_regs): Rename to
29894         get_conflict_profitable_regs.
29895         (check_hard_reg_p): Check prohibited hard regs.
29896
29897 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
29898
29899         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
29900         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
29901         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
29902
29903 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29904
29905         PR target/48366
29906         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
29907         move from floating point to shift amount register.
29908         (emit_move_sequence): Remove secondary reload support for floating
29909         point to shift amount amount register copies.
29910         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
29911         amount register copies.
29912         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
29913         register, return false if mode isn't a scalar integer mode.
29914         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
29915
29916 2011-04-08  Richard Guenther  <rguenther@suse.de>
29917
29918         * gimple.c (gimple_call_flags): Remove kludge.
29919
29920 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
29921
29922         * sel-sched.c (sel_region_init): Move call to
29923         sel_setup_region_sched_flags after setup_current_loop_nest.
29924
29925 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
29926
29927         PR rtl-optimization/48272
29928         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
29929         init_insn_reg_pressure_info.  Adjust a caller.
29930         * sched-int.h (init_insn_reg_pressure_info): Declare.
29931         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
29932         when sched-pressure is enabled.
29933
29934 2011-04-08  Richard Guenther  <rguenther@suse.de>
29935
29936         * gimple.c (gimple_set_modified): Do not queue calls to
29937         MODIFIED_NORETURN_CALLS here ...
29938         * tree-ssa-operands.c (update_stmt_operands): ... but here.
29939
29940 2011-04-08  Richard Guenther  <rguenther@suse.de>
29941
29942         PR lto/48467
29943         * toplev.c (lang_dependent_init): Do not open asm_out_file
29944         in WPA mode, nor perform debug machinery initialization.
29945         (finalize): Do not unlink asm_out_file in WPA mode.
29946
29947 2011-04-08  Richard Guenther  <rguenther@suse.de>
29948
29949         * gimple.h (gimple_call_fntype): New function.
29950         (gimple_call_return_type): Use it.
29951         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
29952         * gimple-low.c (gimple_check_call_args): Likewise.
29953         * gimple.c (gimple_call_flags): Likewise.
29954         (gimple_call_arg_flags): Likewise.
29955         (gimple_call_return_flags): Likewise.
29956         * tree-cfg.c (verify_gimple_call): Likewise.
29957         (do_warn_unused_result): Likewise.
29958         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
29959         * value-prof.c (gimple_ic_transform): Fix fndecl check.
29960
29961 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
29962
29963         PR rtl-optimization/48235
29964         * sel-sched.c (code_motion_process_successors): Recompute the last
29965         insn in basic block if control flow changed.
29966         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
29967         Update condition for ilist_remove.
29968
29969 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
29970
29971         PR rtl-optimization/48302
29972         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
29973         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
29974         it to record added preheader blocks.
29975         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
29976         on to sel_add_loop_preheaders.
29977         (sel_region_init): Move call to setup_current_loop_nest after
29978         sel_init_bbs.
29979
29980 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
29981
29982         PR target/48273
29983         * cfgloop.h (loop_has_exit_edges): New helper.
29984         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
29985         non-clonable.
29986         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
29987         that have no exit edges.
29988
29989 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
29990
29991         PR rtl-optimization/48442
29992         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
29993         all callers.  Adjust assert.
29994
29995 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
29996
29997         PR tree-optimization/48377
29998         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
29999         is_packed to true even for types with smaller TYPE_ALIGN than
30000         TYPE_SIZE.
30001
30002 2011-04-08  Richard Guenther  <rguenther@suse.de>
30003
30004         PR bootstrap/48513
30005         * doc/tm.texi: Re-generate.
30006
30007 2011-04-08  Wei Guozhi  <carrot@google.com>
30008
30009         PR target/47855
30010         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
30011         * config/arm/arm.c (arm_attr_length_push_multi): New function.
30012         * config/arm/arm.md (*push_multi): Change the length computation to
30013         call a C function.
30014
30015 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
30016
30017         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
30018         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
30019         * doc/tm.texi: Regenerate.
30020         * system.h (ASM_OUTPUT_BSS): Poison.
30021         * varasm.c (asm_output_bss): Remove function.
30022         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
30023
30024         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
30025         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
30026         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
30027         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
30028         Likewise.
30029         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
30030         Likewise.
30031         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
30032         Likewise.
30033         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
30034
30035 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
30036
30037         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
30038         EnumValue lines.
30039
30040 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
30041
30042         * config/m68k/m68k.c (m68k_handle_option): Don't handle
30043         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
30044         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
30045         OPT_mcpu32.
30046         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
30047         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
30048         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
30049         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
30050         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
30051         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
30052         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
30053         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
30054         options.  Don't map other m68k options manually.  Don't handle
30055         old-style options as canonical.
30056         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
30057         * doc/install.texi (m68k-*-*): Document binutils version requirement.
30058
30059 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
30060
30061         * basic-block.h (force_nonfallthru): Move to...
30062         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
30063         (force_nonfallthru): ...here.
30064         * cfghooks.c (force_nonfallthru): New function.
30065         * cfgrtl.c (force_nonfallthru): Rename into...
30066         (rtl_force_nonfallthru): ...this.
30067         (commit_one_edge_insertion): Do not set AUX field.
30068         (commit_edge_insertions): Do not discover new basic blocks.
30069         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
30070         (cfg_layout_rtl_cfg_hooks): Likewise.
30071         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
30072         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
30073         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
30074
30075 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
30076
30077         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
30078         Remove macros.
30079
30080 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
30081
30082         * config/i386/sse.md: Update copyright year.
30083         (avxcvtvecmode): Remove.
30084         (sse_movhlps): Merge with *avx_movhlps.
30085         (sse_movlhps): Merge with *avx_movlhps.
30086         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
30087         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
30088         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
30089         (sse_loadhps): Merge with *avx_loadhps.
30090         (sse_storelps): Merge with *avx_storelps.
30091         (sse_loadlps): Merge with *avx_loadlps.
30092         (sse_movss): Merge with *avx_movss.
30093         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
30094         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
30095         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
30096         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
30097         (vec_set<mode>_0): Ditto.
30098         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
30099         (sse4_1_insertps): Merge with *avx_insertps.
30100         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
30101         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
30102         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
30103         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
30104         (sse2_storehpd): Merge with *avx_storehpd.
30105         (sse2_loadhpd): Merge with *avx_loadhpd.
30106         (sse2_loadlpd): Merge with *avx_loadlpd.
30107         (sse2_movsd): Merge with *avx_movsd.
30108         (*vec_concatv2df): Merge with *vec_concatv2df.
30109
30110 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
30111
30112         PR debug/48343
30113         * combine.c (combine_instructions): Add last_combined_insn,
30114         update it if insn is after it, pass it to all try_combine calls.
30115         (try_combine): Add last_combined_insn parameter, pass it instead of
30116         i3 to propagate_for_debug.
30117
30118 2011-04-07  Nick Clifton  <nickc@redhat.com>
30119
30120         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
30121         to handle MDR <-> data register transfers.
30122         (movhi_internal): Likewise.
30123
30124 2011-04-07  Alan Modra  <amodra@gmail.com>
30125
30126         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
30127         previous stack info.
30128
30129 2011-04-07  Tom de Vries  <tom@codesourcery.com>
30130
30131         PR target/43920
30132         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
30133         flow_find_cross_jump.  Swap variables to implement backward replacement.
30134         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
30135
30136 2011-04-07  Tom de Vries  <tom@codesourcery.com>
30137
30138         PR target/43920
30139         * cfgcleanup.c (walk_to_nondebug_insn): New function.
30140         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
30141         and bb2.
30142         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
30143         src1 or src2.  Redirect edges to the last basic block.  Update
30144         frequency and count on multiple basic blocks in case of fallthru.
30145
30146 2011-04-07  Tom de Vries  <tom@codesourcery.com>
30147
30148         PR target/43920
30149         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
30150         function.
30151         (old_insns_match_p): Change return type.  Replace return false/true
30152         with return dir_none/dir_both.  Use can_replace_by.
30153         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
30154         direction from dir_p.  Register replacement direction in dir, last_dir
30155         and afterlast_dir.  Handle new return type of old_insns_match_p using
30156         merge_dir.  Return replacement direction in dir_p.
30157         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
30158         return type of old_insns_match_p.
30159         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
30160         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
30161         flow_find_cross_jump.
30162         * basic-block.h (enum replace_direction): New type.
30163         (flow_find_cross_jump): Add parameter to declaration.
30164
30165 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
30166
30167         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
30168         (AVXMODEDCVTPS2DQ): Ditto.
30169         (VEC_FLOAT_MODE): Ditto.
30170         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
30171         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
30172         (<any_logic:code><mode>3): Use VF mode iterator.
30173         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
30174         Use VF mode iterator.
30175         (copysign<mode>3): Use VF mode iterator.
30176         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
30177         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
30178         (*<any_logic:code><MODEF:mode>3): Merge with
30179         *avx_<any_logic:code><MODEF:mode>3.
30180         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
30181         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
30182         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
30183         (avx_cvtdq2ps<avxmodesuffix>): Remove.
30184         (sse2_cvtdq2ps): Use %v modifier.
30185         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
30186         (avx_cvtps2dq<avxmodesuffix>): Remove.
30187         (sse2_cvtps2dq): Use %v modifier.
30188         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
30189         (avx_cvttps2dq<avxmodesuffix>): Remove.
30190         (sse2_cvttps2dq): Use %v modifier.
30191         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
30192         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
30193         (sse2_cvtsd2siq): Fix insn template.
30194         (sse2_cvtsd2siq_2): Ditto.
30195         (sse2_cvttsd2siq): Ditto.
30196         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
30197         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
30198
30199 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
30200
30201         * gcov-io.c: Use GCC Runtime Library Exception.
30202
30203 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
30204
30205         PR debug/48466
30206         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
30207         as base_reg whatever register reg has been eliminated to, instead
30208         of hardcoding STACK_POINTER_REGNUM.
30209
30210 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
30211
30212         * doc/tm.texi.in: Document C target hooks as separate from general
30213         target hooks.
30214         * doc/tm.texi: Regenerate.
30215         * genhooks.c (struct hook_desc): Add docname field.
30216         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
30217         docname field.
30218         (hook_array): Include c-target.def.
30219         (emit_documentation): Use docname field in output.
30220         (emit_init_macros): Take docname argument.  Only emit definitions
30221         for hooks matching docname.
30222         (main): Expect additional arguments in all cases.  Pass argument
30223         to emit_init_macros.
30224         * target.def: Move initial macro definitions and comments to
30225         target-hooks-macros.h.
30226         (gcc_targetcm): Move to c-family/c-target.def.
30227         * target.h (targetcm): Move declaration to c-family/c-target.h.
30228         * targhooks.c (default_handle_c_option): Move to
30229         c-family/c-opts.c.
30230         * targhooks.h (default_handle_c_option): Move declaration to
30231         c-family/c-common.h.
30232         * target-hooks-macros.h: New file.
30233         * config.gcc (target_has_targetcm): Define and use to add to
30234         c_target_objs and cxx_target_objs.
30235         * config/default-c.c: New file.
30236         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
30237         of target.h and target-def.h.
30238         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
30239         (darwin_objc_construct_string, darwin_cfstring_ref_p,
30240         darwin_check_cfstring_format_arg): Make static.
30241         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
30242         TARGET_STRING_OBJECT_REF_TYPE_P,
30243         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
30244         * config/darwin-protos.h (darwin_objc_construct_string,
30245         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
30246         declare.
30247         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
30248         TARGET_STRING_OBJECT_REF_TYPE_P,
30249         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
30250         * config/t-darwin (darwin-c.o): Update dependencies.
30251         * system.h (TARGET_HAS_TARGETCM): Poison.
30252         * Makefile.in (TARGET_H): Update.
30253         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
30254         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
30255         (default-c.o): New target.
30256         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
30257         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
30258         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
30259         c-target.def.
30260         (build/genhooks.o): Update dependencies.
30261
30262 2011-04-06  Richard Guenther  <rguenther@suse.de>
30263
30264         * ipa-inline.c (enum inlining_mode): Remove.
30265         (cgraph_flatten): Use some other token.
30266         (cgraph_edge_early_inlinable_p): New function, split out from ...
30267         (cgraph_perform_always_inlining): New function, split out from ...
30268         (cgraph_decide_inlining_incrementally): ... here.
30269         (cgraph_mark_inline_edge): Adjust.
30270         (cgraph_early_inlining): Re-structure.
30271         (pass_early_inline): Require SSA form.
30272
30273 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
30274             Julian Brown  <julian@codesourcery.com>
30275             Mark Shinwell  <shinwell@codesourcery.com>
30276
30277         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
30278         LO_REGS only for Thumb-1.
30279         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
30280         be used in short instructions when optimising for size on Thumb-2.
30281
30282 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
30283
30284         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
30285         associated with user returns to be preserved.
30286
30287 2011-04-06  Tristan Gingold  <gingold@adacore.com>
30288
30289         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
30290         symbol_queue_size, DBXOUT_DECR_NESTING,
30291         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
30292         if XCOFF_DEBUGGING_INFO.
30293
30294 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
30295
30296         * config/i386/i386.md (attribute isa): New.
30297         (attribute enabled): New.
30298         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
30299         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
30300         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
30301         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
30302         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
30303         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
30304         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
30305         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
30306
30307         * config/i386/sse.md (VF): New mode iterator.
30308         (VF1): Ditto.
30309         (VF2): Ditto.
30310         (VF_128): Ditto.
30311         (SSEMODEF4): Remove.
30312         (attribute sse): Handle V8SF and V4DF modes.
30313         (<absneg:code><mode>2): Use VF mode iterator.
30314         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
30315         mode iterator.
30316         (<plusminus_insn><mode>3): Use VF mode iterator.
30317         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
30318         Use VF mode iterator.
30319         (<sse>_vm<plusminus_insn><mode>3): Merge with
30320         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
30321         (mul<mode>3): Use VF mode iterator.
30322         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
30323         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
30324         mode iterator.
30325         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
30326         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
30327         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
30328         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
30329         mode iterator.
30330         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
30331         Use VF1 mode iterator.
30332         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
30333         (sqrt<VF2:mode>2): New expander.
30334         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
30335         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
30336         and sqrtv2df2.  Use VF mode iterator.
30337         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
30338         mode iterator.
30339         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
30340         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
30341         Use VF1 mode iterator.
30342         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
30343         (<smaxmin:code><mode>3): Use VF mode iterator.
30344         (*<smaxmin:code><mode>3_finite): Merge with
30345         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
30346         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
30347         (<sse>_vm<smaxmin:code><mode>2): Merge with
30348         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
30349         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
30350         mode iterator.
30351         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
30352         mode iterator.
30353         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
30354         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
30355         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
30356         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
30357         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
30358         VF mode iterator.
30359         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
30360         Use VF_128 mode iterator.
30361         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
30362         mode iterator.
30363         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
30364         VF_128 mode iterator.
30365         (vcond<mode>): Use VF mode iterator.
30366         * config/i386/predicates.md (sse_comparison_operator): Merge with
30367         avx_comparison_float_operator.  Do not declare as special_predicate.
30368         * config/i386/i386.c (struct builtin_description): Update for renamed
30369         compare patterns.
30370         (ix86_expand_args_builtin): Ditto.
30371         (ix86_expand_sse_compare_mask): Ditto.
30372
30373 2011-04-06  Richard Guenther  <rguenther@suse.de>
30374
30375         * tree-inline.c (estimate_num_insns): For calls simply account
30376         for all passed arguments and a used return value.
30377
30378 2011-04-06  Richard Guenther  <rguenther@suse.de>
30379
30380         PR tree-optimization/47663
30381         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
30382         call_stmt_time fields.
30383         (cgraph_edge_inlinable_p): Declare.
30384         (cgraph_edge_recursive_p): New inline function.
30385         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
30386         (cgraph_clone_edge): Copy it.
30387         * ipa-inline.c (cgraph_estimate_edge_time): New function.
30388         Account for call stmt time.
30389         (cgraph_estimate_time_after_inlining): Take edge argument.
30390         (cgraph_estimate_edge_growth): Account call stmt size.
30391         (cgraph_estimate_size_after_inlining): Take edge argument.
30392         (cgraph_mark_inline_edge): Adjust.
30393         (cgraph_check_inline_limits): Likewise.
30394         (cgraph_recursive_inlining_p): Remove.
30395         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
30396         (cgraph_decide_recursive_inlining): Take edge argument and
30397         adjust.
30398         (cgraph_decide_inlining_of_small_functions): Do not avoid
30399         diags for recursive inlining here.
30400         (cgraph_flatten): Adjust.
30401         (cgraph_decide_inlining_incrementally): Likewise.
30402         (estimate_function_body_sizes): Remove call cost handling.
30403         (compute_inline_parameters): Initialize caller edge call costs.
30404         (cgraph_estimate_edge_growth): New function.
30405         (cgraph_estimate_growth): Use it.
30406         (cgraph_edge_badness): Likewise.
30407         (cgraph_check_inline_limits): Take an edge argument.
30408         (cgraph_decide_inlining_of_small_functions): Adjust.
30409         (cgraph_decide_inlining): Likewise.
30410         * tree-inline.c (estimate_num_insns): Only account for call
30411         return value if it is used.
30412         (expand_call_inline): Avoid diagnostics on recursive inline
30413         functions here.
30414         * lto-cgraph.c (lto_output_edge): Output edge call costs.
30415         (input_edge): Input edge call costs.
30416
30417 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30418
30419         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
30420
30421 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
30422
30423         * doc/invoke.texi (Spec Files): Fix typo.
30424
30425 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
30426
30427         * profile.c (branch_prob): Move declaration of local variable.  Remove
30428         obsolete ??? comment.  Expand the location explicitly instead of using
30429         the LOCATION_FILE and LOCATION_LINE macros.
30430
30431 2011-04-06  Wei Guozhi  <carrot@google.com>
30432
30433         PR target/47855
30434         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
30435         (arm_cond_branch): Likewise.
30436         (arm_cond_branch_reversed): Likewise.
30437         (arm_jump): Likewise.
30438         (push_multi): Likewise.
30439         * config/arm/constraints.md (Py): New constraint.
30440
30441 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
30442
30443         PR bootstrap/48471
30444         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
30445         Move these...
30446         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
30447         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
30448         #ifdef DBX_DEBUGGING_INFO.
30449
30450 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
30451
30452         PR bootstrap/48403
30453         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
30454         if old and new states differ.
30455
30456 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
30457
30458         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
30459         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
30460         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
30461         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
30462         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
30463         mcfv4e): Use Alias.
30464         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
30465         ColdFire options to -mcpu= options.
30466
30467 2011-04-05  Jeff Law  <law@redhat.com>
30468
30469         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
30470         check if BB is a successor of LOOP->header and return
30471         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
30472
30473 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30474
30475         * cprop.c (struct reg_use): Remove.
30476         (reg_use_table): Make an array of RTX.
30477         (find_used_regs, constprop_register, local_cprop_pass,
30478         bypass_block): Simplify users of reg_use_table.
30479         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
30480         on one of the uses found by find_used_regs.
30481
30482 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
30483
30484         PR bootstrap/48469
30485         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
30486         declaration.
30487
30488 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
30489
30490         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
30491         as an rtx.
30492         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
30493
30494 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30495
30496         PR middle-end/48441
30497         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
30498
30499 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
30500
30501         * combine.c: Include obstack.h.
30502         (struct insn_link): Define.
30503         (uid_log_links): Adjust type.
30504         (FOR_EACH_LOG_LINK): New macro.
30505         (insn_link_obstack): Declare.
30506         (alloc_insn_link): Define.
30507         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
30508         type of link variables.
30509         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
30510         (try_combine, record_promoted_values, distribute_notes): Likewise.
30511         (distribute_links): Likewise.  Tweak prototype.
30512         (clear_log_links): Delete.
30513         (adjust_for_new_dest): Call alloc_insn_link.
30514         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
30515
30516 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
30517
30518         * gcse.c (modify_mem_list): Convert to an array of VECs.
30519         (canon_modify_mem_list, compute_transp): Tweak formatting.
30520         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
30521         (load_killed_in_block_p): Likewise.
30522         (record_last_mem_set_info): Likewise.
30523         (clear_modify_mem_tables): Likewise.
30524
30525 2011-04-05  Tom de Vries  <tom@codesourcery.com>
30526
30527         PR middle-end/48461
30528         * function.c (emit_use_return_register_into_block): Only define if
30529         HAVE_return.
30530
30531 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
30532
30533         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
30534
30535 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
30536
30537         * config/rx/rx-opts.h: New.
30538         * config/rx/rx.c (rx_cpu_type): Remove.
30539         (rx_handle_option): Don't assert that global structures are in
30540         use.  Access variables via opts pointer.  Defer most handling of
30541         OPT_mint_register_.  Use error_at.
30542         (rx_option_override): Handle deferred OPT_mint_register_ here.
30543         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
30544         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
30545         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
30546         (rx_cpu_types): New Enum and EnumValue entries.
30547         (mint-register=): Use Defer and use Var accordingly.
30548
30549 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
30550
30551         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
30552         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
30553         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
30554         Move these...
30555         (debug_free_queue, debug_nesting, symbol_queue_index):
30556         ...and these...
30557         * dbxout.c: ...to here.  Make static.
30558
30559 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
30560
30561         * gcse.c (modify_pair): Define.  Define a VEC of it.
30562         (canon_modify_mem_list): Convert to an array of VECs.
30563         (free_insn_expr_list_list): Delete.
30564         (clear_modify_mem_tables): Call VEC_free instead.
30565         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
30566         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
30567         (canon_list_insert, compute_transp): Likewise.
30568
30569 2011-04-05  Tom de Vries  <tom@codesourcery.com>
30570
30571         PR target/43920
30572         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
30573         for size.
30574
30575 2011-04-05  Tom de Vries  <tom@codesourcery.com>
30576
30577         PR target/43920
30578         * function.c (emit_use_return_register_into_block): New function.
30579         (thread_prologue_and_epilogue_insns): Use
30580         emit_use_return_register_into_block.
30581
30582 2011-04-05  Tom de Vries  <tom@codesourcery.com>
30583
30584         PR target/43920
30585         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
30586         insn.
30587
30588 2011-04-05  Tom de Vries  <tom@codesourcery.com>
30589
30590         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
30591
30592 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
30593
30594         * config/arm/arm.md (define_constants for unspec): Replace with
30595         define_c_enum.
30596         (define_constants for unspecv): Replace with define_c_enum.
30597         * config/arm/neon.md (define_constants for unspec): Replace with
30598         define_c_enum.
30599
30600 2011-04-04  Richard Henderson  <rth@redhat.com>
30601
30602         PR bootstrap/48400
30603         * dwarf2out.c (output_line_info): Always emit line info from
30604         at least one section.
30605         (dwarf2out_init): Create text_section_line_info here ...
30606         (set_cur_line_info_table): ... not here.
30607
30608 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
30609
30610         PR target/48380
30611         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
30612         not called.
30613
30614         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
30615
30616 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
30617
30618         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
30619         (expr_equiv_p): Remove.
30620         (insert_set_in_table): Look at <dest, src> pair instead of expr.
30621         (hash_scan_set): Update call to insert_set_in_table.
30622         (dump_hash_table): Dump <dest, src> pair.
30623         (lookup_set): Simplify.  Lookup <dest, src> pair.
30624         (compute_transp): Remove, fold heavily simplified code into...
30625         (compute_local_properties): ...here.  Expect COMP and TRANSP
30626         unconditionally.
30627         (find_avail_set): Take set directly from struct expr.
30628         (find_bypass-set): Likewise.
30629         (bypass_block): Likewise.
30630         (cprop_insn): Likewise.  Remove redundant INSN_P test.
30631
30632         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
30633         checks on form of COND from find_implicit_sets to here.
30634         (find_implicit_sets): Cleanup control flow. Split critical edges
30635         if it exposes implicit sets.  Allocate/resize implicit_sets as
30636         necessary.
30637         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
30638         changed something.  Run df_analyze after find_implicit_sets if any
30639         edges were split.  Do not allocate implicit_sets here.
30640
30641         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
30642         (gcse_obstack): Renamed to cprop_obstack.
30643         (GNEW, GNEWVEC, GNEWVAR): Remove.
30644         (gmalloc): Remove.
30645         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
30646         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
30647         (gcse_alloc): Likewise, and rename to cprop_alloc.
30648         (alloc_gcse_men, free_gcse_mem): Remove.
30649         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
30650         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
30651         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
30652
30653         * cprop.c (oprs_not_set_p): Remove.
30654         (mark_set, mark_clobber): Remove.
30655         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
30656         (reg_not_set_p): New function.
30657         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
30658         (cprop_insn): Likewise.
30659         (cprop_jump): Use FOR_EACH_EDGE.
30660
30661 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
30662
30663         PR bootstrap/48403
30664         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
30665         (rank_for_schedule): Use scheduled_insns vector instead of
30666         last_scheduled_insn.
30667         (ok_for_early_queue_removal): Likewise.
30668         (queue_to_ready): Search forward in nonscheduled_insns_begin if
30669         we have a dbg_cnt.
30670         (choose_ready): Likewise.
30671         (commit_schedule): Use VEC_iterate.
30672         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
30673         a dbg_cnt, use it and ensure the first insn is in the ready list.
30674         (haifa_sched_init): Allocate scheduled_insns.
30675         (sched_extend_ready_list): Don't allocate it; reserve space.
30676         (haifa_sched_finish): Free it.
30677
30678 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
30679
30680         * optc-gen.awk: Always remove type from Variable entry before
30681         recording in var_seen.
30682
30683 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
30684
30685         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
30686         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
30687         call to tidy_fallthru_edges.
30688
30689 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
30690
30691         * doc/options.texi (ToLower): Document.
30692         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
30693         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
30694         * opts.h (cl_option): Add cl_tolower field.
30695         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
30696         arguments with lowercase strings.
30697         * config/rx/rx.opt (mcpu=): Add ToLower.
30698         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
30699         argument.
30700
30701 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
30702
30703         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
30704
30705 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
30706
30707         * config/vax/vax.c: Include reload.h.
30708
30709 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
30710
30711         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
30712         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
30713         (sparc_preferred_reload_class): New function.
30714
30715 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
30716
30717         PR debug/48401
30718         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
30719         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
30720
30721 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
30722
30723         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
30724         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
30725
30726 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
30727
30728         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
30729         (ASM_OUTPUT_ALIGNED_BSS): Define.
30730
30731 2011-04-03  Michael Matz  <matz@suse.de>
30732
30733         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
30734         and next_slot members.
30735         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
30736         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
30737         (lto_streamer_cache_append): Declare.
30738         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
30739         unsigned index, remove offset parameter, ensure that we append
30740         or update existing entries.
30741         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
30742         parameter, update next_slot for append.
30743         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
30744         parameter.
30745         (lto_streamer_cache_insert_at): Likewise.
30746         (lto_streamer_cache_append): New function.
30747         (lto_streamer_cache_lookup): Use unsigned index.
30748         (lto_streamer_cache_get): Likewise.
30749         (lto_record_common_node): Don't test tree_node_can_be_shared.
30750         (preload_common_node): Adjust call to lto_streamer_cache_insert.
30751         (lto_streamer_cache_delete): Don't free offsets member.
30752         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
30753         (lto_output_string_with_length): Use lto_output_data_stream.
30754         (lto_output_tree_header): Remove ix parameter, don't write it.
30755         (lto_output_builtin_tree): Likewise.
30756         (lto_write_tree): Adjust callers to above, don't track and write
30757         offset, write unsigned index.
30758         (output_unreferenced_globals): Don't emit all global vars.
30759         (write_global_references): Use unsigned indices.
30760         (lto_output_decl_state_refs): Likewise.
30761         (write_symbol): Likewise.
30762         * lto-streamer-in.c (lto_input_chain): Move earlier.
30763         (input_function): Use unsigned index.
30764         (input_alias_pairs): Don't read and then ignore all global vars.
30765         (lto_materialize_tree): Remove ix_p parameter, don't read index,
30766         don't pass it back, use lto_streamer_cache_append.
30767         (lto_register_var_decl_in_symtab): Use unsigned index.
30768         (lto_register_function_decl_in_symtab): Likewise.
30769         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
30770         index.
30771         (lto_get_builtin_tree): Don't read index, use
30772         lto_streamer_cache_append.
30773         (lto_read_tree): Adjust call to lto_materialize_tree.
30774
30775         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
30776         don't use function calls in arguments to MIN.
30777
30778         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
30779         twice.
30780
30781         * gimple.c (gimple_type_leader_entry): Mark deletable.
30782
30783 2011-04-03  Alan Modra  <amodra@gmail.com>
30784
30785         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
30786
30787 2011-04-03  Michael Matz  <matz@suse.de>
30788
30789         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
30790         an integer.
30791         * tree.h (tree_decl_non_common.vindex): Adjust comment.
30792
30793 2011-04-03  Michael Matz  <matz@suse.de>
30794
30795         * cgraphbuild.c (record_reference): Canonicalize constructor values.
30796         * gimple-fold.c (canonicalize_constructor_val): Accept being called
30797         without function context.
30798         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
30799         current_function_decl and cfun.
30800
30801 2011-04-03  Michael Matz  <matz@suse.de>
30802
30803         * tree.c (decl_init_priority_insert): Don't create entry for
30804         default priority.
30805         (decl_fini_priority_insert): Ditto.
30806         (fields_compatible_p, find_compatible_field): Remove.
30807         * tree.h (fields_compatible_p, find_compatible_field): Remove.
30808         * gimple.c (gimple_compare_field_offset): Adjust block comment.
30809
30810 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
30811
30812         * combine.c (try_combine): Remove useless local variable.
30813
30814 2011-04-03  Richard Guenther  <rguenther@suse.de>
30815             Ira Rosen  <ira.rosen@linaro.org>
30816
30817         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
30818         non-variable offsets and compare the remaining bases of the two
30819         accesses instead of looking for exact same data-ref.
30820
30821 2011-04-02  Kai Tietz  <ktietz@redhat.com>
30822
30823         PR target/48416
30824         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
30825
30826         * i386.c (ix86_is_msabi_thiscall): New helper function.
30827         (ix86_is_type_thiscall): New helper function.
30828         (ix86_comp_type_attributes): Handle thiscall for method-functions
30829         special.
30830         (init_cumulative_args): Likewise.
30831         (find_drap_reg): Likewise.
30832         (ix86_static_chain): Likewise.
30833         (x86_this_parameter): Likewise.
30834         (x86_output_mi_thunk): Likewise.
30835
30836 2011-04-01  Olivier Hainque  <hainque@adacore.com>
30837             Nicolas Setton  <setton@adacore.com>
30838             Eric Botcazou  <ebotcazou@adacore.com>
30839
30840         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
30841         (add_gnat_descriptive_type_attribute): New function.
30842         (gen_array_type_die): Call it.
30843         (gen_enumeration_type_die): Likewise.
30844         (gen_struct_or_union_type_die): Likewise.
30845         (modified_type_die): Likewise.
30846         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
30847         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
30848         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
30849
30850 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
30851
30852         PR bootstrap/48148
30853         * dwarf2out.c (resolve_addr): Don't call force_decl_die
30854         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
30855
30856         Revert:
30857         2011-03-17  Richard Guenther  <rguenther@suse.de>
30858
30859         PR bootstrap/48148
30860         * lto-cgraph.c (input_overwrite_node): Clear the abstract
30861         origin for decls in other ltrans units.
30862         (input_varpool_node): Likewise.
30863
30864 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
30865
30866         PR middle-end/48335
30867         * expr.c (expand_assignment): Handle all possibilities
30868         if TO_RTX is CONCAT.
30869         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
30870         (store_split_bit_field): If SUBREG_REG (op0) or
30871         op0 itself has smaller mode than word, return it
30872         for offset 0 and const0_rtx for out-of-bounds stores.
30873         If word is const0_rtx, skip it.
30874
30875 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
30876
30877         * config/h8300/h8300.c (print_operand_address): Rename to...
30878         (h8300_print_operand_address): ...this. Make static. Adjust comments.
30879         Call h8300_print_operand and h8300_print_operand_address instead of
30880         print_operand and print_operand_address. Declare.
30881         (print_operand): Renake to...
30882         (h8300_print_operand): ...this. Make static. Adjust comments.
30883         Call h8300_print_operand instead of print_operand. Declare.
30884         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
30885         (h8300_register_move_cost): Likewise.
30886         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
30887         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
30888         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
30889         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
30890         * config/h8300/h8300-protos.h (print_operand): Delete.
30891         (print_operand_address): Delete.
30892
30893 2011-04-01  Richard Henderson  <rth@redhat.com>
30894
30895         PR 48400
30896         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
30897         in strict mode before dwarf4.  Re-order tests to early out
30898         before switching sections.
30899
30900 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
30901
30902         * config/h8300/constraints.md: New file.
30903         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
30904         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
30905         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
30906         * config/h8300/predicates.md (bit_operand): Likewise.
30907         (incdec_operand): Use satisfies_constraint_M and
30908         satisfies_constraint_O.  Don't use C code block.
30909         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
30910         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
30911         (compute_mov_length): Use satisfies_constraint_G.
30912         (fix_bit_operand): Use satisfies_constraint_U.
30913         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
30914         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
30915         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
30916         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
30917         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
30918         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
30919         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30920         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
30921         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
30922         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
30923         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
30924         (EXTRA_MEMORY_CONSTRAINT): Delete.
30925
30926 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
30927             Michael Meissner  <meissner@linux.vnet.ibm.com>
30928
30929         PR target/48262
30930         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
30931         operands, as per the specifications.
30932
30933         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
30934         (vec_extract_evenv4sf): Ditto.
30935         (vec_extract_evenv8hi): Ditto.
30936         (vec_extract_evenv16qi): Ditto.
30937         (vec_extract_oddv4si): Ditto.
30938
30939 2011-03-31  Mark Wielaard  <mjw@redhat.com>
30940
30941         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
30942         high_pc attribute if the CU has no associated code. Only output
30943         DW_AT_entry_pc for CU if not generating strict dwarf and
30944         dwarf_version < 4.
30945
30946 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
30947
30948         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
30949         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
30950         out of ...
30951         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
30952         * final.c (final_start_function): Call the new function rather
30953         than using a NULL argument for dwarf2out_frame_debug.
30954
30955         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
30956         that contains the prologue.
30957
30958         * haifa-sched.c (queue_insn): New arg REASON.  All callers
30959         changed.  Print it in debugging output.
30960
30961         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
30962
30963         * sched-ebb.c (begin_schedule_ready): Remove second argument.
30964         Split most of the code into...
30965         (begin_move_insn): ... here.  New function.
30966         (ebb_sched_info): Add a pointer to it.
30967         * haifa-sched.c (scheduled_insns): New static variable.
30968         (sched_extend_ready_list): Allocate it.
30969         (schedule_block): Use it to record the order of scheduled insns.
30970         Perform RTL changes to move insns only after all scheduling
30971         decisions have been made.
30972         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
30973         begin_move_insn field.
30974         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
30975         * sched-int.h (struct haifa_sched_info): Remove second argument
30976         from begin_schedule_ready hook.  Add new member begin_move_insn.
30977         * sched-rgn.c (begin_schedule_ready): Remove second argument.
30978         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
30979
30980         * haifa-sched.c (prune_ready_list): New function, broken out of
30981         schedule_block.
30982         (schedule_block): Use it.
30983
30984 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30985
30986         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
30987
30988 2011-04-01  Kai Tietz  <ktietz@redhat.com>
30989
30990         * config.gcc (*-*-mingw*): Allow as option the
30991         posix threading model.
30992         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
30993         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
30994         definition.
30995         (CPP_SPEC): Add pthread/no-pthread handling.
30996         (LIB_SPEC): Likewise.
30997         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
30998         (LIB_SPEC): Likewise.
30999         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
31000         flag to pass -pthread option for shared libgcc build.
31001         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
31002         for shared libgcc build.
31003         * config/i386/t-mingw-pthread: New file.
31004         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
31005         New define to enable use of library pthread by default.
31006         * config/i386/mingw.opt (pthread): New driver option.
31007         (no-pthread): New driver option.
31008         * config/i386/cygming.opt: Make sure trailing empty line is retained.
31009         * config/i386/mingw-w64.opt: Likewise.
31010
31011 2011-04-01  Gary Funck  <gary@intrepid.com>
31012
31013         * c-decl.c (grokdeclarator): Fix formatting.
31014
31015 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
31016
31017         * expr.c (emit_block_move_via_movmem): Use n_generator_args
31018         instead of n_operands.
31019         (set_storage_via_setmem): Likewise.
31020         * optabs.c (maybe_gen_insn): Likewise.
31021         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
31022         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
31023         (mips_expand_builtin_direct): Likewise.
31024         * config/spu/spu.c (expand_builtin_args): Likewise.
31025
31026 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
31027
31028         * recog.h (insn_data_d): Add n_generator_args.
31029         * genoutput.c (data): Likewise.
31030         (output_insn_data): Print it.
31031         (max_opno, num_dups): Delete.
31032         (scan_operands): Just fill in "d->operand[...]".
31033         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
31034
31035 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
31036
31037         * gensupport.h (pattern_stats): New structure.
31038         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
31039         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
31040         (max_operand_1, max_operand_vec): Delete.
31041         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
31042
31043 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
31044
31045         * emit-rtl.c (emit_pattern_after_setloc): New function.
31046         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
31047         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
31048         (emit_pattern_after): New function.
31049         (emit_insn_after, emit_jump_insn_after): Call it.
31050         (emit_call_insn_after, emit_debug_insn_after): Likewise.
31051         (emit_pattern_before_setloc): New function.
31052         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
31053         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
31054         Likewise.
31055         (emit_pattern_before): New function.
31056         (emit_insn_before, emit_jump_insn_before): Call it.
31057         (emit_call_insn_before, emit_debug_insn_before): Likewise.
31058
31059 2011-03-31  Richard Henderson  <rth@redhat.com>
31060
31061         * dwarf2out.c (dw_separate_line_info_ref): Remove.
31062         (dw_separate_line_info_entry): Remove.
31063         (enum dw_line_info_opcode): New.
31064         (dw_line_info_entry): Use it.
31065         (dw_line_info_table, dw_line_info_table_p): New.
31066         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
31067         (line_info_table, line_info_label_num): Remove.
31068         (line_info_table_in_use): Remove.
31069         (separate_line_info_table): Remove.
31070         (separate_line_info_table_allocated): Remove.
31071         (separate_line_info_table_in_use): Remove.
31072         (LINE_INFO_TABLE_INCREMENT): Remove.
31073         (line_info_label_num): New.
31074         (cur_line_info_table): New.
31075         (text_section_line_info, cold_text_section_line_info): New.
31076         (separate_line_info): New.
31077         (SEPARATE_LINE_CODE_LABEL): Remove.
31078         (print_dwarf_line_table): Remove.
31079         (debug_dwarf): Don't dump it.
31080         (output_one_line_info_table): New.
31081         (output_line_info): Use it.
31082         (new_line_info_table): New.
31083         (set_cur_line_info_table): New.
31084         (dwarf2out_switch_text_section): Use it.
31085         (dwarf2out_begin_function): Likewise.
31086         (push_dw_line_info_entry): New.
31087         (dwarf2out_source_line): Rewrite for new line info tables.
31088         (dwarf2out_init): Remove dead initailizations.
31089
31090 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
31091
31092         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
31093         various flags.
31094         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
31095         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
31096         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
31097         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
31098         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
31099         * opt-functions.awk (flag_init, switch_bit_fields): New.
31100         (switch_flags): Don't handle flags moved to bit-fields.  Don't
31101         generate CL_MISSING_OK or CL_SAVE.
31102         * optc-gen.awk: Update to generate bit-field output as well as
31103         flags field.
31104         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
31105         bit-field instead of CL_REJECT_DRIVER flag.
31106         * opts-common.c (generate_canonical_option,
31107         decode_cmdline_option): Use bit-fields instead of CL_* flags.
31108         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
31109         instead of CL_REJECT_NEGATIVE flag.
31110         * toplev.c (print_switch_values): Use cl_report bit-field instead
31111         of CL_REPORT flag.
31112
31113 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
31114
31115         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
31116         a zero minimum index only if it is redundant.
31117
31118 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
31119
31120         PR rtl-optimization/48381
31121         * ira-color.c (assign_hard_reg): Use hard reg set intersection
31122         instead of ira_class_hard_reg_index for calculating conflicting
31123         hard registers.
31124
31125 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
31126
31127         * cprop.c: Clean up hash table building.
31128         (reg_avail_info): Remove.
31129         (oprs_available_p): Remove.
31130         (record_last_reg_set_info): Remove.
31131         (record_last_set_info): Remove.
31132         (reg_available_p): New function.
31133         (gcse_constant_p): Do not treat unfolded conditions as constants.
31134         (make_set_regs_unavailable): New function.
31135         (hash_scan_set): Simplify with new reg_available_p.
31136         (compute_hash_table_work): Traverse insns stream only once.
31137         Do not compute reg_avail_info. Traverse insns in reverse order.
31138         Record implicit sets after recording explicit sets from the block.
31139
31140 2011-03-31  Michael Matz  <matz@suse.de>
31141
31142         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
31143
31144 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
31145
31146         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
31147         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
31148         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31149         (h8300_mode_dependent_address_p): New function.
31150         (h8300_get_index): Make static.
31151
31152 2011-03-31  Jeff Law  <law@redhat.com>
31153
31154         * reload1.c (elimination_effects): Fix typo in recent change.
31155
31156         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
31157         typo potentially leading to null pointer dereference.
31158
31159         * caller-save.c (new_saved_hard_reg): Eliminate return value.
31160         (setup_save_areas): Corresponding changes to avoid useless
31161         assignments.
31162
31163         * jump.c (reversed_comparison_code_parts): Avoid successive return
31164         statements when REVERSE_CONDITION is defined.
31165
31166         * expr.c (expand_assignment): Avoid useless assignments.
31167         (expand_expr_real_1): Likewise.
31168         (expand_expr_real_2): Avoid useless statements.
31169
31170         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
31171
31172         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
31173
31174         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
31175         statements.
31176
31177         * stmt.c (expand_expr_stmt): Avoid useless assignment.
31178
31179 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
31180
31181         PR target/47109
31182         * doc/tm.texi.in (TARGET_VERSION): Remove.
31183         * doc/tm.texi: Regenerate.
31184         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
31185         * collect2.c (main): Don't use TARGET_VERSION.
31186         * mips-tdump.c (main): Don't use TARGET_VERSION.
31187         * mips-tfile.c (main): Don't use TARGET_VERSION.
31188         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
31189         * config/rs6000/vxworksae.h: Remove.
31190         * config/alpha/alpha.h (TARGET_VERSION): Remove.
31191         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
31192         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
31193         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
31194         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
31195         * config/arm/arm.h (TARGET_VERSION): Remove.
31196         * config/arm/coff.h (TARGET_VERSION): Remove.
31197         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
31198         * config/arm/elf.h (TARGET_VERSION): Remove.
31199         * config/arm/freebsd.h (TARGET_VERSION): Remove.
31200         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
31201         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
31202         * config/arm/pe.h (TARGET_VERSION): Remove.
31203         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
31204         * config/arm/semi.h (TARGET_VERSION): Remove.
31205         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
31206         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
31207         * config/arm/vxworks.h (TARGET_VERSION): Remove.
31208         * config/avr/avr.h (TARGET_VERSION): Remove.
31209         * config/bfin/bfin.h (TARGET_VERSION): Remove.
31210         * config/fr30/fr30.h (TARGET_VERSION): Remove.
31211         * config/frv/frv.h (TARGET_VERSION): Remove.
31212         * config/h8300/h8300.h (TARGET_VERSION): Remove.
31213         * config/i386/cygwin.h (TARGET_VERSION): Remove.
31214         * config/i386/darwin.h (TARGET_VERSION): Remove.
31215         * config/i386/darwin64.h (TARGET_VERSION): Remove.
31216         * config/i386/djgpp.h (TARGET_VERSION): Remove.
31217         * config/i386/freebsd.h (TARGET_VERSION): Remove.
31218         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
31219         * config/i386/gnu.h (TARGET_VERSION): Remove.
31220         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
31221         * config/i386/i386elf.h (TARGET_VERSION): Remove.
31222         * config/i386/linux.h (TARGET_VERSION): Remove.
31223         * config/i386/linux64.h (TARGET_VERSION): Remove.
31224         * config/i386/lynx.h (TARGET_VERSION): Remove.
31225         * config/i386/mingw32.h (TARGET_VERSION): Remove.
31226         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
31227         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
31228         * config/i386/netware.h (TARGET_VERSION): Remove.
31229         * config/i386/nto.h (TARGET_VERSION): Remove.
31230         * config/i386/openbsd.h (TARGET_VERSION): Remove.
31231         * config/i386/vxworks.h (TARGET_VERSION): Remove.
31232         * config/ia64/elf.h (TARGET_VERSION): Remove.
31233         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
31234         * config/ia64/hpux.h (TARGET_VERSION): Remove.
31235         * config/ia64/linux.h (TARGET_VERSION): Remove.
31236         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
31237         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
31238         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
31239         * config/lm32/lm32.h (TARGET_VERSION): Remove.
31240         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
31241         * config/m32c/m32c.h (TARGET_VERSION): Remove.
31242         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
31243         * config/m32r/m32r.h (TARGET_VERSION): Remove.
31244         * config/m68k/linux.h (TARGET_VERSION): Remove.
31245         * config/m68k/m68k.h (TARGET_VERSION): Remove.
31246         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
31247         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
31248         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
31249         * config/mep/mep.h (TARGET_VERSION): Remove.
31250         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
31251         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
31252         * config/mips/iris6.h (MACHINE_TYPE): Remove.
31253         * config/mips/linux.h (TARGET_VERSION): Remove.
31254         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
31255         * config/mips/vxworks.h (TARGET_VERSION): Remove.
31256         * config/mmix/mmix.h (TARGET_VERSION): Remove.
31257         * config/mn10300/linux.h (TARGET_VERSION): Remove.
31258         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
31259         * config/pa/pa.h (TARGET_VERSION): Remove.
31260         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
31261         * config/picochip/picochip.h (TARGET_VERSION): Remove.
31262         * config/rs6000/aix.h (TARGET_VERSION): Remove.
31263         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
31264         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
31265         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
31266         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
31267         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
31268         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
31269         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
31270         * config/rs6000/linux.h (TARGET_VERSION): Remove.
31271         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
31272         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
31273         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
31274         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
31275         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
31276         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
31277         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
31278         * config/s390/linux.h (TARGET_VERSION): Remove.
31279         * config/s390/s390.h (TARGET_VERSION): Remove.
31280         * config/s390/tpf.h (TARGET_VERSION): Remove.
31281         * config/score/score.h (TARGET_VERSION): Remove.
31282         * config/sh/linux.h (TARGET_VERSION): Remove.
31283         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
31284         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
31285         * config/sh/sh.h (TARGET_VERSION): Remove.
31286         * config/sh/sh64.h (TARGET_VERSION): Remove.
31287         * config/sh/superh.h (TARGET_VERSION): Remove.
31288         * config/sh/vxworks.h (TARGET_VERSION): Remove.
31289         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
31290         * config/sparc/linux.h (TARGET_VERSION): Remove.
31291         * config/sparc/linux64.h (TARGET_VERSION): Remove.
31292         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
31293         TARGET_NAME32, TARGET_NAME): Remove.
31294         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
31295         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
31296         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
31297         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
31298         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
31299         * config/spu/spu.h (TARGET_VERSION): Remove.
31300         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
31301         * config/v850/v850.h (TARGET_VERSION): Remove.
31302         * config/vax/linux.h (TARGET_VERSION): Remove.
31303         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
31304         * config/xtensa/elf.h (TARGET_VERSION): Remove.
31305         * config/xtensa/linux.h (TARGET_VERSION): Remove.
31306
31307 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
31308
31309         PR target/48142
31310         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
31311         frame-related from frame-unrelated adjustments to the stack pointer.
31312
31313 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
31314
31315         * common.opt (fdebug-types-section): Move earlier.
31316         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
31317
31318 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
31319
31320         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
31321         var.
31322
31323 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
31324
31325         * tree.h (CASE_CHAIN): Define.
31326         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
31327         (gimple_redirect_edge_and_branch): Likewise.
31328
31329 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
31330
31331         PR middle-end/48367
31332         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
31333         calculation.
31334
31335 2011-03-30  Jeff Law  <law@redhat.com>
31336
31337         * PR bootstrap/48371
31338         * reload1.c (reload): Fix botch in last change.
31339
31340         * reload.h (struct reload): Fix typo introduced in last change.
31341
31342 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
31343
31344         * config/arm/arm.opt (mhard-float, msoft-float): Mark
31345         Undocumented.  Remove help text.
31346         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
31347         -mhard-float.
31348
31349 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
31350
31351         * doc/options.texi (NegativeAlias): Document.
31352         (Alias): Mention NegativeAlias.
31353         * opt-functions.awk: Handle NegativeAlias.
31354         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
31355         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
31356         * opts.h (CL_NEGATIVE_ALIAS): Define.
31357         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
31358         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
31359         OPT_mspe_.
31360         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
31361         Alias entries.
31362         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
31363         mno-spe and mno-isel instead of mspe=no and -misel=no.
31364
31365 2011-03-29  Mark Wielaard  <mjw@redhat.com>
31366
31367         * common.opt (fdebug-types-section): New flag.
31368         * doc/invoke.texi: Document new -fno-debug-types-section flag.
31369         * dwarf2out.c (use_debug_types): New define.
31370         (struct die_struct): Mark die_id with GTY desc use_debug_types.
31371         (print_die): Guard output of type unit signatures using
31372         use_debug_types.
31373         (build_abbrev_table): Replace assert of dwarf_version >= 4
31374         with assert on use_debug_types.
31375         (size_of_die): Likewise.
31376         (unmark_dies): Likewise.
31377         (value_format): Decide AT_ref_external form on use_debug_types.
31378         (output_die): Replace dwarf_version version check guard with
31379         use_debug_types where appropriate.
31380         (modified_type_die): Likewise.
31381         (gen_reference_type_die): Likewise.
31382         (dwarf2out_start_source_file): Likewise.
31383         (dwarf2out_end_source_file): Likewise.
31384         (prune_unused_types_walk_attribs): Likewise.
31385         (dwarf2out_finish): Likewise.
31386
31387 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
31388
31389         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
31390
31391 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
31392
31393         PR rtl-optimization/48332
31394         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
31395         mode of input operand N and modeN to its actual mode.
31396
31397 2011-03-30  Jeff Law  <law@redhat.com>
31398
31399         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
31400         define accessor macro.
31401         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
31402         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
31403         (reg_equiv_init): Likewise.
31404         (reg_equivs_size): New variable.
31405         (reg_equiv_init_size): Remove.
31406         (allocate_initial_values): Move prototype to here from....
31407         * integrate.h (allocate_initial_values): Remove prototype.
31408         * integrate.c: Include reload.h.
31409         (allocate_initial_values): Corresponding changes.
31410         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
31411         (fix_reg_equiv_init, no_equiv): Corresponding changes.
31412         (update_equiv_regs): Corresponding changes.
31413         (ira): Corresponding changes.
31414         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
31415         (push_secondary_reload): Corresponding changes.
31416         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
31417         (make_memloc, find_reloads_address): Corresponding changes.
31418         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
31419         (find_reloads_address_1): Corresponding changes.
31420         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
31421         (refers_to_regno_for_reload_p): Corresponding changes.
31422         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
31423         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
31424         * reload1.c: Include ggc.h.
31425         (grow_reg_equivs): New function.
31426         (replace_pseudos_in, reload): Corresponding changes.
31427         (calculate_needs_all_insns, alter_regs): Corresponding changes.
31428         (eliminate_regs_1, elimination_effects): Corresponding changes.
31429         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
31430         (delete_output_reload): Likewise.
31431         * caller-save.c (mark_referenced_regs): Corresponding changes.
31432         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
31433         * frv/predicates.md (frv_load_operand): Corresponding changes.
31434         * microblaze/microblaze.c (double_memory_operand): Corresponding
31435         changes.
31436         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
31437         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
31438         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
31439         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
31440         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
31441         changes.
31442         * pa/pa.c (emit_move_sequence): Corresponding changes.
31443         * vax/vax.c (nonindexed_address_p): Corresponding changes.
31444
31445 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
31446
31447         PR target/47551
31448         * config/arm/arm.c (coproc_secondary_reload_class): Handle
31449         structure modes.  Don't check neon_vector_mem_operand for
31450         vector or structure modes.
31451
31452 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
31453             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
31454
31455         PR target/43590
31456         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
31457         operand 1 and reshuffle the operands to match.
31458         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
31459
31460 2011-03-30  Christian Schüler  <cschueler@gmx.de>
31461
31462         PR driver/48208
31463         * config/c.opt (F): Added 'Driver' to -F option.
31464
31465         PR driver/48260
31466         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
31467           handler function.
31468         * config/darwin.opt: Added '-arch' option.
31469
31470 2011-03-30  Nick Clifton  <nickc@redhat.com>
31471
31472         * config/rx/rx.md: Add peepholes and patterns to combine
31473         extending loads and simple arithmetic instructions.
31474         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
31475         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
31476         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
31477         modes to use pre-decrement and post-increment addressing.
31478         (rx_is_restricted_memory_address): Add range checking of REG+INT
31479         addresses.
31480         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
31481         (rx_memory_move_cost): Adjust cost of stores.
31482         (rx_adjust_insn_length): New function.
31483
31484 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
31485
31486         PR c/48305
31487         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
31488         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
31489         matching arg00/arg01 types.
31490
31491 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
31492
31493         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
31494         last_location to UNKNOWN_LOCATION.
31495
31496 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
31497
31498         PR target/48349
31499         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
31500         FLOAT_SSE_REGS.
31501
31502 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
31503             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31504
31505         PR bootstrap/48337
31506         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
31507         Init(PROCESSOR_V7).
31508         (sparc_cpu): Likewise.
31509         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
31510         PROCESSOR_V7.
31511
31512 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
31513
31514         PR target/48336
31515         PR middle-end/48342
31516         PR rtl-optimization/48345
31517         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
31518         hard regs for given mode from profitable regs when doing secondary
31519         allocation.
31520
31521 2011-03-29  Jeff Law  <law@redhat.com>
31522
31523         PR bootstrap/48327
31524         * tree-ssa-threadupdate.c (struct redirection_data): Remove
31525         do_not_duplicate field.
31526         (lookup_redirection_data): Corresponding changes.
31527         (create_duplicates): Always create a template block.
31528         (redirect_edges): Remove code which reused the original block
31529         when it was going to become unreachable code.
31530         (thread_block): Don't set do_not_duplicate field.
31531
31532 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
31533
31534         * lto-opts.c (register_user_option_p, lto_register_user_option):
31535         Make type argument unsigned.
31536         * lto-streamer.h (lto_register_user_option): Make type argument
31537         unsigned.
31538         * opth-gen.awk: Make CL_* macros unsigned.
31539         * opts-common.c (find_opt): Make lang_mask argument unsigned.
31540         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
31541         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
31542         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
31543         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
31544         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
31545         (find_opt): Make lang_mask argument unsigned.
31546
31547 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
31548
31549         PR rtl-optimization/48331
31550         PR rtl-optimization/48334
31551         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
31552         for any used algorithm.
31553
31554 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
31555
31556         * ira-conflicts.c (build_object_conflicts): Add unused attribute
31557         to parent_max.
31558
31559 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
31560
31561         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
31562         (alpha_option_override): Don't set alpha_sr_alias_set.
31563         (emit_frame_store_1): Use gen_frame_mem rather than calling
31564         set_mem_alias_set.
31565         (alpha_expand_epilogue): Ditto.
31566
31567 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
31568
31569         PR tree-optimization/48290
31570         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
31571         vectorization, check that relevant phis in the basic block after
31572         the inner loop are really inner loop's exit phis.
31573
31574 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
31575
31576         PR debug/48190
31577         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
31578         (cached_dw_loc_list_def): New structure.
31579         (cached_dw_loc_list): New typedef.
31580         (cached_dw_loc_list_table): New variable.
31581         (cached_dw_loc_list_table_hash): New function.
31582         (cached_dw_loc_list_table_eq): Likewise.
31583         (add_location_or_const_value_attribute): Take a bool cache_p.
31584         Cache the list when the parameter is true.
31585         (gen_formal_parameter_die): Update caller.
31586         (gen_variable_die): Likewise.
31587         (dwarf2out_finish): Likewise.
31588         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
31589         while generating debug info for the decl.
31590         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
31591         (dwarf2out_init): Initialize cached_dw_loc_list_table.
31592         (resolve_addr): Cache the result of resolving a chain of
31593         location lists.
31594
31595 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
31596
31597         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
31598         conflict object hard regset nodes have intersecting hard reg sets.
31599
31600         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
31601         after regstat_init_n_sets_and_refs.
31602
31603         * ira.c: Add more comments at the top.
31604         (setup_stack_reg_pressure_class, setup_pressure_classes):
31605         Add comments how we compute the register pressure classes.
31606         (setup_allocno_and_important_classes): Add more comments.
31607         (setup_class_translate_array, reorder_important_classes)
31608         (setup_reg_class_relations): Add comments.
31609
31610         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
31611         start of the file.
31612
31613         * ira-color.c: Add 2011 to the Copyright line.
31614         (assign_hard_reg):  Add more comments.
31615         (improve_allocation): Ditto.
31616
31617         * ira-costs.c: Add 2011 to the Copyright line.
31618         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
31619         comments.
31620         (setup_regno_cost_classes_by_mode): Ditto.
31621
31622         Initial patches from ira-improv branch:
31623
31624         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
31625
31626         * ira-build.c (ira_create_object): Remove initialization of
31627         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
31628         (ira_create_allocno): Remove initialization of
31629         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
31630         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
31631         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
31632         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
31633         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
31634         Initialize ALLOCNO_ADD_DATA.
31635         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
31636         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
31637         ALLOCNO_REG.
31638         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
31639         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
31640
31641         * ira.c (ira_reallocate): Remove.
31642         (setup_pressure_classes): Call
31643         ira_init_register_move_cost_if_necessary.  Use
31644         ira_register_move_cost instead of ira_get_register_move_cost.
31645         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
31646         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
31647
31648         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
31649         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
31650         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
31651         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
31652         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
31653         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
31654         Fix formatting.
31655         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
31656         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
31657         (struct allocno_color_data): New.
31658         (allocno_color_data_t): New typedef.
31659         (allocno_color_data): New definition.
31660         (ALLOCNO_COLOR_DATA): New macro.
31661         (struct object_color_data): New.
31662         (object_color_data_t): New typedef.
31663         (object_color_data): New definition.
31664         (OBJECT_COLOR_DATA): New macro.
31665         (update_copy_costs, calculate_allocno_spill_cost): Call
31666         ira_init_register_move_cost_if_necessary.  Use
31667         ira_register_move_cost instead of ira_get_register_move_cost.
31668         (move_spill_restore, update_curr_costs): Ditto.
31669         (allocno_spill_priority): Make it inline.
31670         (color_pass): Allocate and free allocno_color_dat and object_color_data.
31671         (struct coalesce_data, coalesce_data_t): New.
31672         (allocno_coalesce_data): New definition.
31673         (ALLOCNO_COALESCE_DATA): New macro.
31674         (merge_allocnos, coalesced_allocno_conflict_p): Use
31675         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
31676         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
31677         (coalesce_allocnos): Ditto.
31678         (setup_coalesced_allocno_costs_and_nums): Ditto.
31679         (collect_spilled_coalesced_allocnos): Ditto.
31680         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
31681         (setup_slot_coalesced_allocno_live_ranges): Ditto.
31682         (coalesce_spill_slots): Ditto.
31683         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
31684         free allocno_coalesce_data.
31685
31686         * ira-conflicts.c: Fix formatting.
31687         (process_regs_for_copy): Call
31688         ira_init_register_move_cost_if_necessary.  Use
31689         ira_register_move_cost instead of ira_get_register_move_cost.
31690         (build_object_conflicts): Optimize.
31691
31692         * ira-costs.c (record_reg_classes): Optimize.  Call
31693         ira_init_register_move_cost_if_necessary.  Use
31694         ira_register_move_cost, ira_may_move_in_cost, and
31695         ira_may_move_out_cost instead of ira_get_register_move_cost and
31696         ira_get_may_move_cost.
31697         (record_address_regs): Ditto.
31698         (scan_one_insn): Optimize.
31699         (find_costs_and_classes): Optimize.
31700         (process_bb_node_for_hard_reg_moves): Call
31701         ira_init_register_move_cost_if_necessary.  Use
31702         ira_register_move_cost instead of ira_get_register_move_cost.
31703
31704         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
31705         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
31706         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
31707         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
31708         definitions.
31709         (ira_initiate_emit_data, ira_finish_emit_data)
31710         (create_new_allocno): New functions.
31711         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
31712         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
31713         Use ira_register_move_cost instead of ira_get_register_move_cost.
31714
31715         * ira-int.h: Fix some comments.
31716         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
31717         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
31718         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
31719         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
31720         add_data.
31721         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
31722         bitfield after mode.  Make hard_regno a short int.  Make
31723         hard_regno short.  Remove first_coalesced_allocno and
31724         next_coalesced_allocno.  Move mem_optimized_dest_p,
31725         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
31726         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
31727         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
31728         temp, colorable_p.  Add new member add_data.
31729         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
31730         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
31731         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
31732         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
31733         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
31734         (ALLOCNO_ADD_DATA): New macro.
31735         (ira_emit_data_t): New typedef.
31736         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
31737         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
31738         from struct ira_allocno.
31739         (ALLOCNO_EMIT_DATA): New macro.
31740         (ira_allocno_emit_data, allocno_emit_reg): New.
31741         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
31742         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
31743         (OBJECT_ADD_DATA): New macro.
31744         (ira_reallocate): Remove.
31745         (ira_initiate_emit_data, ira_finish_emit_data): New.
31746         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
31747         (ira_init_register_move_cost_if_necessary): New.
31748         (ira_object_conflict_iter_next): Merge into
31749         ira_object_conflict_iter_cond.
31750         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
31751
31752         * ira-live.c (process_single_reg_class_operands): Call
31753         ira_init_register_move_cost_if_necessary.  Use
31754         ira_register_move_cost instead of ira_get_register_move_cost.
31755
31756         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
31757
31758         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
31759
31760         * ira-costs.c: Fix formatting.
31761         (cost_classes, cost_classes_num): Remove.
31762         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
31763         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
31764         (cost_classes_del, cost_classes_htab): New.
31765         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
31766         (initiate_regno_cost_classes, setup_cost_classes): New.
31767         (setup_regno_cost_classes_by_aclass): New.
31768         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
31769         (record_reg_classes): Use regno_cost_classes instead of
31770         cost_classes.  Move checking opposite operand up.
31771         (record_address_regs): Use regno_cost_classes
31772         instead of cost_classes.
31773         (scan_one_insn): Ditto.  Use always general register.
31774         (print_allocno_costs): Use regno_cost_classes instead of
31775         cost_classes.
31776         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
31777         (find_costs_and_classes): Set up cost classes for each registers.
31778         Use also their mode for this.  Use regno_cost_classes instead of
31779         cost_classes.
31780         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
31781         cost_classes.
31782         (free_ira_costs, ira_init_costs): Don't use cost_classes.
31783         (ira_costs, ira_set_pseudo_classes): Call
31784         initiate_regno_cost_classes and finish_regno_cost_classes.
31785
31786         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
31787
31788         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
31789
31790         * target.def (ira_cover_classes): Remove.
31791
31792         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
31793
31794         * doc/tm.texi.in: Ditto.
31795
31796         * ira-conflicts.c: Remove mentioning cover classes from the file.
31797         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
31798         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
31799
31800         * targhooks.c (default_ira_cover_classes): Remove.
31801
31802         * targhooks.h (default_ira_cover_classes): Ditto.
31803
31804         * haifa-sched.c: Remove mentioning cover classes from the file.
31805         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
31806         ira_pressure_classes and ira_pressure_classes_num instead of
31807         ira_reg_class_cover_size and ira_reg_class_cover.  Use
31808         sched_regno_pressure_class instead of sched_regno_cover_class.
31809         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
31810         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
31811
31812         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
31813         classes from the file.
31814         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
31815         (struct object_hard_regs, struct object_hard_regs_node): New.
31816         (struct ira_object): New members profitable_hard_regs,
31817         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
31818         (struct ira_allocno): Rename cover_class to aclass.  Rename
31819         cover_class_cost and updated_cover_class_cost to class_cost and
31820         updated_class_cost.  Remove splay_removed_p and
31821         left_conflict_size.  Add new members colorable_p.
31822         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
31823         (ALLOCNO_COLORABLE_P): New macro.
31824         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
31825         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
31826         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
31827         (OBJECT_...): Rename parameter C to O.
31828         (OBJECT_PROFITABLE_HARD_REGS): New macro.
31829         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
31830         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
31831         (struct target_ira_int): New members x_ira_max_memory_move_cost,
31832         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
31833         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
31834         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
31835         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
31836         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
31837         x_ira_reg_class_subunion.
31838         (ira_max_memory_move_cost, ira_max_register_move_cost)
31839         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
31840         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
31841         (ira_important_class_nums, ira_reg_class_superunion): New macros.
31842         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
31843         (ira_reg_class_union): Rename to ira_reg_class_subunion.
31844         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
31845         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
31846         (ira_tune_allocno_costs_and_cover_classes): Rename to
31847         ira_tune_allocno_costs.
31848         (ira_debug_hard_regs_forest): New.
31849         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
31850         (ira_object_conflict_iter_next): Fix comments.
31851         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
31852         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
31853         cover_class to aclass.
31854         (ira_allocate_and_accumulate_costs): Ditto.
31855         (ira_allocate_and_set_or_copy_costs): Ditto.
31856
31857         * opts.c (decode_options): Remove ira_cover_class check.
31858
31859         * ira-color.c: Remove mentioning cover classes from the file.  Use
31860         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
31861         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
31862         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
31863         (splay-tree.h): Remove include.
31864         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
31865         before copy_freq_compare_func.
31866         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
31867         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
31868         New definitions.
31869         (hard_regs_roots, hard_regs_node_vec): Ditto.
31870         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
31871         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
31872         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
31873         (create_new_object_hard_regs_node): Ditto.
31874         (add_new_object_hard_regs_node_to_forest): Ditto.
31875         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
31876         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
31877         Ditto.
31878         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
31879         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
31880         (remove_unused_object_hard_regs_nodes): Ditto.
31881         (enumerate_object_hard_regs_nodes): Ditto.
31882         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
31883         (object_hard_regs_subnode_t): Ditto.
31884         (struct object_hard_regs_subnode): Ditto.
31885         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
31886         (setup_object_hard_regs_subnode_index): Ditto.
31887         (get_object_hard_regs_subnodes_num): Ditto.
31888         (form_object_hard_regs_nodes_forest): Ditto.
31889         (finish_object_hard_regs_nodes_tree): Ditto.
31890         (finish_object_hard_regs_nodes_forest): Ditto.
31891         (allocnos_have_intersected_live_ranges_p): Rename to
31892         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
31893         (pseudos_have_intersected_live_ranges_p): Rename to
31894         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
31895         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
31896         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
31897         (update_copy_costs): Remove assert.  Skip cost update if the hard
31898         reg does not belong the class.
31899         (assign_hard_reg): Process only profitable hard regs.
31900         (uncolorable_allocnos_num): Make it scalar.
31901         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
31902         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
31903         and ira_reg_class_max_nregs.
31904         (bucket_allocno_compare_func): Check frequency first.
31905         (sort_bucket): Add compare function as a parameter.
31906         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
31907         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
31908         (push_allocno_to_stack): Rewrite for checking new allocno
31909         colorability.
31910         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
31911         (push_only_colorable): Pass new parameter to sort_bucket.
31912         (push_allocno_to_spill): Remove.
31913         (allocno_spill_priority_compare): Make it inline and rewrite.
31914         (splay_tree_allocate, splay_tree_free): Remove.
31915         (allocno_spill_sort_compare): New function.
31916         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
31917         build and use splay tree.  Choose first allocno in uncolorable
31918         allocno bucket to spill.  Remove setting spill cost.
31919         (all_conflicting_hard_regs): Remove.
31920         (setup_allocno_available_regs_num): Check only profitable hard
31921         regs.  Print info about hard regs nodes.
31922         (setup_allocno_left_conflicts_size): Remove.
31923         (put_allocno_into_bucket): Don't call
31924         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
31925         (improve_allocation): New.
31926         (color_allocnos): Call setup_profitable_hard_regs,
31927         form_object_hard_regs_nodes_forest, improve_allocation,
31928         finish_object_hard_regs_nodes_forest.  Setup spill cost.
31929         (print_loop_title): Use pressure classes.
31930         (color_allocnso): Ditto.
31931         (do_coloring): Remove allocation and freeing splay_tree_node_pool
31932         and allocnos_for_spilling.
31933         (ira_sort_regnos_for_alter_reg): Don't setup members
31934         {first,next}_coalesced_allocno.
31935         (color): Remove allocating and freeing removed_splay_allocno_vec.
31936         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
31937         prohibited_class_mode_regs.
31938
31939         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
31940         formatting.
31941         (update_allocno_pressure_excess_length): Use pressure classes.
31942         (inc_register_pressure, dec_register_pressure): Check for pressure
31943         class.
31944         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
31945         pressure class.  Use ira_reg_class_nregs instead of
31946         ira_reg_class_max_nregs.
31947         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
31948         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
31949         (single_reg_class): Use ira_reg_class_nregs instead of
31950         ira_reg_class_max_nregs.
31951         (process_bb_node_lives): Use pressure classes.
31952
31953         * ira-emit.c: Remove mentioning cover classes from the file.  Use
31954         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
31955         (change_loop): Use pressure classes.
31956         (modify_move_list): Call ira_set_allocno_class instead of
31957         ira_set_allocno_cover_class.
31958
31959         * ira-build.c: Remove mentioning cover classes from the file.  Use
31960         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
31961         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
31962         ALLOCNO_UPDATED_CLASS_COST instead of
31963         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
31964         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
31965         (ira_create_allocno): Remove initialization of
31966         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
31967         ALLOCNO_COLORABLE_P.
31968         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
31969         Update conflict regs for the objects.
31970         (create_cap_allocno): Remove assert.  Don't propagate
31971         ALLOCNO_AVAILABLE_REGS_NUM.
31972         (ira_free_allocno_costs): New function.
31973         (finish_allocno): Change a part of code into call of
31974         ira_free_allocno_costs.
31975         (low_pressure_loop_node_p): Use pressure classes.
31976         (object_range_compare_func): Don't compare classes.
31977         (setup_min_max_conflict_allocno_ids): Ditto.
31978
31979         * loop-invariant.c: Remove mentioning cover classes from the file.
31980         Use ira_pressure_classes and ira_pressure_classes_num instead of
31981         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
31982         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
31983         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
31984         Use reg_allocno_class instead of reg_cover_class.
31985         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
31986         STACK_REG_COVER_CLASS.
31987         (get_regno_cover_class): Rename to get_regno_pressure_class.
31988         (move_loop_invariants): Initialize and finalize regstat.
31989
31990         * ira.c: Remove mentioning cover classes from the file.  Add
31991         comments about coloring without cover classes.  Use ALLOCNO_CLASS
31992         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
31993         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
31994         setup_class_subset_and_memory_move_costs.
31995         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
31996         (setup_cover_and_important_classes): Rename to
31997         setup_allocno_and_important_classes.
31998         (setup_class_translate_array): New.
31999         (setup_class_translate): Call it for allocno and pressure classes.
32000         (cover_class_order): Rename to allocno_class_order.
32001         (comp_reg_classes_func): Use ira_allocno_class_translate instead
32002         of ira_class_translate.
32003         (reorder_important_classes): Set up ira_important_class_nums.
32004         (setup_reg_class_relations): Set up ira_reg_class_superunion.
32005         (print_class_cover): Rename to print_classes.  Add parameter.
32006         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
32007         Print pressure classes too.
32008         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
32009         setup_reg_subclasses.
32010         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
32011         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
32012         (setup_prohibited_class_mode_regs): Use
32013         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
32014         (clarify_prohibited_class_mode_regs): New function.
32015         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
32016         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
32017         (ira_init_once): Initialize them.
32018         (free_register_move_costs): Process them.
32019         (ira_init): Move calls of find_reg_classes and
32020         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
32021         Call clarify_prohibited_class_mode_regs.
32022         (ira_no_alloc_reg): Remove.
32023         (too_high_register_pressure_p): Use pressure classes.
32024
32025         * sched-deps.c: Remove mentioning cover classes from the file.
32026         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
32027         ira_pressure_classes and ira_pressure_classes_num instead of
32028         ira_reg_class_cover_size and ira_reg_class_cover.
32029         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
32030         sched_regno_pressure_class instead of sched_regno_cover_class.
32031         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
32032         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
32033
32034         * ira.h: Add 2010 to Copyright.
32035         (ira_no_alloc_reg): Remove external.
32036         (struct target_ira): Rename x_ira_hard_regno_cover_class,
32037         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
32038         x_ira_class_translate to x_ira_hard_regno_allocno_class,
32039         x_ira_allocno_classes_num, x_ira_allocno_classes, and
32040         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
32041         x_ira_pressure_classes, x_ira_pressure_class_translate, and
32042         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
32043         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
32044         x_ira_no_alloc_regs.
32045         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
32046         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
32047         ira_allocno_classes_num and ira_allocno_classes.
32048         (ira_class_translate): Rename to ira_allocno_class_translate.
32049         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
32050         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
32051         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
32052         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
32053         (ira_no_alloc_regs): New.
32054
32055         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
32056         classes from the file.  Use ALLOCNO_CLASS instead of
32057         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
32058         ALLOCNO_COVER_CLASS_COST.
32059         (regno_cover_class): Rename to regno_aclass.
32060         (record_reg_classes): Use ira_reg_class_subunion instead of
32061         ira_reg_class_union.
32062         (record_address_regs): Check overflow.
32063         (scan_one_insn): Ditto.
32064         (print_allocno_costs): Print total mem cost fore regional allocation.
32065         (print_pseudo_costs): Use REG_N_REFS.
32066         (find_costs_and_classes): Use classes intersected with them on the
32067         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
32068         ira_reg_class_union.  Use ira_allocno_class_translate and
32069         regno_aclass instead of ira_class_translate and regno_cover_class.
32070         Modify code for finding regno_aclass.  Setup preferred classes for
32071         the next pass.
32072         (setup_allocno_cover_class_and_costs): Rename to
32073         setup_allocno_class_and_costs.  Use regno_aclass instead of
32074         regno_cover_class.  Use ira_set_allocno_class instead of
32075         ira_set_allocno_cover_class.
32076         (init_costs, finish_costs): Use regno_aclass instead of
32077         regno_cover_class.
32078         (ira_costs): Use setup_allocno_class_and_costs instead of
32079         setup_allocno_cover_class_and_costs.
32080         (ira_tune_allocno_costs_and_cover_classes): Rename to
32081         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
32082         by processing objects.  Use ira_reg_class_max_nregs instead of
32083         ira_reg_class_nregs.
32084
32085         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
32086
32087         * sched-int.h: Remove mentioning cover classes from the file.
32088         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
32089
32090         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
32091         classes from the file.
32092         (struct reg_pref): Rename coverclass into allocnoclass.
32093         (reg_cover_class): Rename to reg_allocno_class.
32094
32095         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
32096
32097         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
32098
32099         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
32100
32101         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
32102
32103         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
32104
32105         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
32106
32107         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
32108
32109         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
32110
32111         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
32112
32113         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
32114
32115         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
32116         (i386_ira_cover_classes): Ditto.
32117
32118         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
32119
32120         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
32121
32122         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
32123
32124         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
32125
32126         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
32127
32128         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
32129
32130         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
32131         (mips_ira_cover_classes): Ditto.
32132
32133         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
32134
32135         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
32136
32137         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
32138
32139         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
32140
32141         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
32142
32143         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
32144         (IRA_COVER_CLASSES_VSX): Ditto.
32145
32146         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
32147         (rs6000_ira_cover_classes): Ditto.
32148
32149         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
32150
32151         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
32152
32153         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
32154
32155         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
32156
32157         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
32158
32159         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
32160
32161         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
32162
32163         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
32164
32165         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
32166
32167         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
32168
32169 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
32170
32171         PR debug/48253
32172         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
32173         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
32174         dw_fde_unlikely_section_end_label, cold_in_std_section,
32175         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
32176         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
32177         fields.
32178         (output_fde): Use dw_fde_second_{begin,end} if second is
32179         true, otherwise dw_fde_{begin,end}.
32180         (output_call_frame_info): Test dw_fde_second_begin != NULL
32181         instead of dw_fde_switched_sections.
32182         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
32183         fields, initialize new fields.  Initialize in_std_section
32184         unconditionally from the first partition.
32185         (dwarf2out_end_epilogue): Don't override dw_fde_end when
32186         dw_fde_second_begin is non-NULL.
32187         (dwarf2out_switch_text_section): Stop initializing removed
32188         dw_fde_struct fields, initialize new fields, initialize
32189         also dw_fde_end here.  Set dw_fde_switch_cfi even when
32190         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
32191         (struct var_loc_list_def): Add last_before_switch field.
32192         (arange_table, arange_table_allocated, arange_table_in_use,
32193         ARANGE_TABLE_INCREMENT, add_arange): Removed.
32194         (size_of_aranges): Count !in_std_section and !second_in_std_section
32195         hunks in fdes, instead of looking at arange_table_in_use.
32196         (output_aranges): Add aranges_length argument, don't call
32197         size_of_aranges here.  Instead of using aranges_table*
32198         emit ranges for fdes when !in_std_section resp.
32199         !second_in_std_section.
32200         (dw_loc_list): Break ranges crossing section switch.
32201         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
32202         use dw_fde_second_end instead of dw_fde_end as end of last range.
32203         (gen_subprogram_die): Don't call add_arange.  Use
32204         dw_fde_{begin,end} for first partition and if switched
32205         section dw_fde_second_{begin,end} for the second.
32206         (var_location_switch_text_section_1,
32207         var_location_switch_text_section): New functions.
32208         (dwarf2out_begin_function): Initialize cold_text_section even
32209         when function_section () isn't text_section.
32210         (prune_unused_types): Don't walk arange_table.
32211         (dwarf2out_finish): Don't needlessly test
32212         flag_reorder_blocks_and_partition when testing cold_text_section_used.
32213         If info_section_emitted, call size_of_aranges and if it indicates
32214         non-empty .debug_aranges, call output_aranges with the computed
32215         size.  Stop using removed dw_fde_struct fields, use
32216         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
32217         for second.
32218
32219         PR debug/48203
32220         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
32221         create ENTRY_VALUE if incoming or address of incoming's MEM
32222         is a hard REG.
32223         * dwarf2out.c (mem_loc_descriptor): Don't emit
32224         DW_OP_GNU_entry_value of DW_OP_fbreg.
32225         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
32226         on ENTRY_VALUE is able to find the canonical parameter VALUE.
32227         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
32228         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
32229         ENTRY_VALUE_EXPs.
32230         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
32231         is a REG_P or MEM_P with REG_P address, compute hash directly
32232         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
32233         (preserve_only_constants): Don't clear VALUES forwaring
32234         ENTRY_VALUE to some other VALUE.
32235
32236 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
32237
32238         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
32239         instead of GEN_INT.
32240
32241 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
32242
32243         * cfgexpand.c (expand_gimple_cond): Always set the source location and
32244         block before expanding the statement.
32245         (expand_gimple_stmt_1): Likewise.  Set them here...
32246         (expand_gimple_stmt): ...and not here.  Tidy.
32247         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
32248         unknown.
32249
32250 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
32251
32252         * Makefile.in: New rule for cprop.o.
32253         * gcse.c: Move constant/copy propagation to cprop.c.
32254         (compute_local_properties): Only handle expression tables.
32255         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
32256         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
32257         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
32258         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
32259         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
32260         compute_cprop_data, find_used_regs, try_replace_reg,
32261         find_avail_set, cprop_jump, constprop_register, cprop_insn,
32262         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
32263         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
32264         find_bypass_set, reg_killed_on_edge, bypass_block,
32265         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
32266         execute_rtl_cprop, pass_rtl_cprop): Move to...
32267         * cprop.c: ...here.  New file, constant/copy propagation for RTL
32268         moved from gcse.c to here with minor cleanups in duplicated code.
32269
32270 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
32271
32272         * config/i386/i386.c (flag_opts): Fix a typo in
32273         -mavx256-split-unaligned-store.
32274
32275 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
32276
32277         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
32278         LIBCALL_VALUE): Remove macros.
32279         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32280         TARGET_FUNCTION_VALUE_REGNO_P): Define.
32281         (h8300_function_value, h8300_libcall_value,
32282         h8300_function_value_regno_p): New functions.
32283
32284 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
32285
32286         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
32287
32288 2011-03-28  Jeff Law  <law@redhat.com>
32289
32290         * tree-ssa-threadupdate.c (redirect_edges): Call
32291         create_edge_and_update_destination_phis as needed.
32292         (create_edge_and_update_destination_phis): Accept new BB argument.
32293         All callers updated.
32294         (thread_block): Do not update the profile when threading around
32295         intermediate blocks.
32296         (thread_single_edge): Likewise.
32297         (determine_bb_domination_status): If BB is not a successor of the
32298         loop header, return NONDOMINATING.
32299         (register_jump_thread): Note when we register a jump thread around
32300         an intermediate block.
32301         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
32302         (thread_across_edge): Use it.
32303
32304 2011-03-28  Tristan Gingold  <gingold@adacore.com>
32305
32306         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
32307         when for_return is 2.
32308
32309 2011-03-28  Jeff Law  <law@redhat.com>
32310
32311         * var-tracking.c (canonicalize_values_mark): Delete unused
32312         lhs assignment.
32313         (canonicalize_values_star, set_variable_part): Likewise.
32314         (clobber_variable_part, delete_variable_part): Likewise.
32315
32316 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
32317
32318         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
32319
32320 2011-03-28  Martin Jambor  <mjambor@suse.cz>
32321
32322         * tree-inline.c (expand_call_inline): Do not check that destination
32323         node is analyzed.
32324         (optimize_inline_calls): Assert that destination node is analyzed.
32325         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
32326         not call tree_lowering_passes.
32327         * cgraph.h (cgraph_analyze_function): Declare.
32328         * cgraphunit.c (cgraph_analyze_function): Make public.
32329
32330 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
32331
32332         * config/sparc/sparc-opts.h: New.
32333         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
32334         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
32335         (sparc_option_override): Store processor_type enumeration rather
32336         than string in cpu_default.  Remove name and enumeration from
32337         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
32338         without using sparc_select.  Use target_flags_explicit instead of
32339         fpu_option_set.
32340         * config/sparc/sparc.h (enum processor_type): Move to
32341         sparc-opts.h.
32342         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
32343         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
32344         HeaderInclude entry.
32345         (mcpu=, mtune=): Use Var and Enum.
32346         (sparc_processor_type): New Enum and EnumValue entries.
32347
32348 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32349             Iain Sandoe  <iains@gcc.gnu.org>
32350
32351         PR target/48245
32352         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
32353
32354 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
32355
32356         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
32357         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
32358         Insert new statements at it in lieu of STMT.
32359         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
32360         * tree-vect-stmts.c (vectorizable_store): Likewise.
32361         (vectorizable_load): Likewise.
32362
32363 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
32364
32365         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
32366         (divtf3): Ditto.
32367         (multf3): Ditto.
32368         (subtf3): Ditto.
32369
32370 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
32371
32372         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
32373         unaligned 256bit load/store.
32374         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
32375         (*avx_movdqu<avxmodesuffix>): Likewise.
32376
32377 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32378
32379         PR target/48288
32380         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
32381         * config/pa/pa.md (iordi3): Use new predicate in expander.
32382         (iorsi3): Likewise.
32383
32384 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
32385
32386         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
32387         FUNCTION_VALUE_REGNO_P): Remove macros.
32388         * config/mips/mips-protos.h (mips_function_value): Remove.
32389         * config/mips/mips.c (mips_function_value): Rename to...
32390         (mips_function_value_1): ... this. Make static.  Handle receiving
32391         the function type in 'fn_decl_or_type' argument.
32392         (mips_function_value, mips_libcall_value,
32393         mips_function_value_regno_p): New function.
32394         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32395         TARGET_FUNCTION_VALUE_REGNO_P): Define.
32396
32397 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
32398
32399         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
32400         and -mavx256-split-unaligned-store.
32401         (ix86_option_override_internal): Split 32-byte AVX unaligned
32402         load/store by default.
32403         (ix86_avx256_split_vector_move_misalign): New.
32404         (ix86_expand_vector_move_misalign): Use it.
32405
32406         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
32407         -mavx256-split-unaligned-store.
32408
32409         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
32410         256bit load/store.  Generate unaligned store on misaligned memory
32411         operand.
32412         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
32413         256bit load/store.
32414         (*avx_movdqu<avxmodesuffix>): Likewise.
32415
32416         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
32417         -mavx256-split-unaligned-store.
32418
32419 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
32420
32421         PR target/38598
32422         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
32423         Update commentary.
32424
32425 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
32426
32427         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
32428         opno arguments with an expand_operand.  Use create_input_operand.
32429         (mips_prepare_builtin_target): Delete.
32430         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
32431         functions.
32432         (mips_expand_builtin_direct): Use create_output_operand and
32433         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
32434         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
32435         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
32436
32437 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
32438
32439         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
32440         function.
32441         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
32442
32443 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
32444
32445         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
32446         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
32447         basic blocks and call commit_edge_insertions directly.
32448         (fixup_abnormal_edges): Move from here to...
32449         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
32450         on the edges and return whether some have actually been inserted.
32451         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
32452         compensation code.
32453
32454 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
32455
32456         PR rtl-optimization/48144
32457         * sel-sched-ir.c (merge_history_vect): Factor out from ...
32458         (merge_expr_data): ... here.
32459         (av_set_intersect): Rename to av_set_code_motion_filter.
32460         Update all callers.  Call merge_history_vect when an expression
32461         is found in both sets.
32462         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
32463
32464 2011-03-26  Alan Modra  <amodra@gmail.com>
32465
32466         * config/rs6000/predicates.md (word_offset_memref_op): Handle
32467         cmodel medium addresses.
32468         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
32469         64-bit gpr loads and stores.
32470         (rs6000_secondary_reload_ppc64): New function.
32471         * config/rs6000/rs6000-protos.h: Declare it.
32472         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
32473
32474 2011-03-26  Alan Modra  <amodra@gmail.com>
32475
32476         PR target/47487
32477         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
32478         GNU Go in traceback table.
32479
32480 2011-03-25  Richard Henderson  <rth@redhat.com>
32481
32482         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
32483         if there are exactly 6 operands.
32484         (set_storage_via_setmem): Similarly.
32485
32486 2011-03-25  Kai Tietz  <ktietz@redhat.com>
32487
32488         * collect2.c (write_c_file_stat): Handle backslash
32489         as right-hand directory separator.
32490         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
32491         checking just for slash.
32492         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
32493         instead of checking for trailing slash.
32494         * gcc.c (record_temp_file): Use filename_cmp instead
32495         of strcmp.
32496         (do_spec_1): Likewise.
32497         (replace_outfile_spec_function): Likewise.
32498         (is_directory): Use filename_ncmp instead of strncmp.
32499         (print_multilib_info): Likewise.
32500         * gcov.c (find_source): Use filename_cmp instead
32501         instead of strcmp.
32502         (make_gcov_file_name): Fix order of slash/backslash
32503         checks.
32504         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
32505         (add_standard_paths): Likewise.
32506         * mips-tfile.c (saber_stop): Handle backslash.
32507         * prefix.c (update_path): Use filename_ncmp instead of
32508         strncmp.
32509         * profile.c (output_location): Use filename_cmp instead
32510         of strcmp.
32511         * read-md.c (handle_toplevel_file): Handle backslash.
32512         * tlink.c (frob_extension):  Likewise.
32513         * tree-cfg.c (same_line_p): Use filename_cmp instead of
32514         strcmp.
32515         * tree-dump.c (dequeue_and_dump): Handle backslash.
32516         * tree.c (get_file_function_name): Likewise.
32517         * gengtype.c (read_input_list): Likewise.
32518         (get_file_realbasename): Likewise.
32519         (get_output_file_with_visibility): Use filename_cmp
32520         instead of strcmp.
32521
32522 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
32523
32524         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
32525         case to VFPv1.
32526
32527 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
32528
32529         * fold-const.c (expr_location_or): New function.
32530         (fold_truth_not_expr): Call it.
32531
32532 2011-03-25  Jeff Law  <law@redhat.com>
32533
32534         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
32535         va_end.
32536         * c-family/c-common.c (def_fn_type): Likewise.
32537         * emit-rtl.c (gen_rtvec): Likewise.
32538         * lto/lto-lang.c (def_fn_type): Likewise.
32539
32540 2011-03-25  Richard Guenther  <rguenther@suse.de>
32541
32542         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
32543         also generate copies.
32544         (fini_copy_prop): Handle constant values properly.
32545
32546 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
32547
32548         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
32549         mode size instead of bitsize with DWARF2_ADDR_SIZE.
32550         (hash_loc_operands, compare_loc_operands): Handle
32551         DW_OP_GNU_entry_value.
32552
32553 2011-03-25  Kai Tietz  <ktietz@redhat.com>
32554
32555         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
32556         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
32557         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
32558         comment and use macro TARGET_64BIT_MS_ABI instead.
32559         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
32560         and change default behavior for 32-bit MS_ABI.
32561         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
32562         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
32563         32-bit, too.
32564         (ix86_cfun_abi): Likewise.
32565         (ix86_maybe_switch_abi): Adjust comment.
32566         (init_cumulative_args): Check for bit-ness in MS_ABI case.
32567         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
32568         instead of checking for SYSV_ABI.
32569         (ix86_nsaved_sseregs): Likewise.
32570         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
32571         to 16 bytes.
32572         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
32573         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
32574         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
32575         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
32576         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
32577
32578 2011-03-25  Richard Guenther  <rguenther@suse.de>
32579
32580         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
32581         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
32582         (verify_gimple): Remove.
32583         * tree-cfg.c (verify_gimple_call): Merge verification
32584         from verify_stmts.
32585         (verify_gimple_phi): Merge verification from verify_stmts.
32586         (verify_gimple_label): New function.
32587         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
32588         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
32589         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
32590         (verify_stmts): Rename to verify_gimple_in_cfg.
32591         (verify_gimple_in_cfg): New function.
32592         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
32593         * tree-ssa.c (verify_ssa): Likewise.
32594         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
32595
32596 2011-03-25  Richard Guenther  <rguenther@suse.de>
32597
32598         * passes.c (init_optimization_passes): Add FRE pass after
32599         early SRA.
32600
32601 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
32602             Andrew Stubbs  <ams@codesourcery.com>
32603
32604         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
32605         for Cortex-A8.
32606         (arm_movdi_vfp_cortexa8): New pattern.
32607         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
32608         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
32609         instructions when tuning for Cortex-A8.  Set attribute "arch".
32610         * config/arm/arm.md: Move include arm-tune.md up a bit.
32611         (define_attr "arch"): Add "onlya8" and "nota8" values.
32612         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
32613
32614 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
32615
32616         PR bootstrap/48282
32617         Revert:
32618         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
32619
32620         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
32621         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
32622         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
32623         * passes.c (init_optimization_passes): Move
32624         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
32625
32626 2011-03-25  Kai Tietz  <ktietz@redhat.com>
32627
32628         * c-typeck.c (comptypes_internal): Replace target
32629         hook call of comp_type_attributes by version in tree.c file.
32630         * gimple.c (gimple_types_compatible_p_1): Likewise.
32631         * tree-ssa.c (useless_type_conversion_p): Likewise.
32632         * tree.c (build_type_attribute_qual_variant): Likewise.
32633         (attribute_value_equal): New static helper function.
32634         (comp_type_attributes): New function.
32635         (merge_attributes): Use attribute_value_equal for comparison.
32636         (attribute_list_contained): Likewise.
32637         * tree.h (comp_type_attributes): New prototype.
32638
32639 2011-03-25  Richard Guenther  <rguenther@suse.de>
32640
32641         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
32642         of complex types at -O0.
32643         (verify_gimple_assign_binary): Likewise.
32644         (verify_gimple_assign_ternary): Likewise.
32645
32646 2011-03-24  Mark Wielaard  <mjw@redhat.com>
32647
32648         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
32649         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
32650
32651 2011-03-24  Mark Wielaard  <mjw@redhat.com>
32652
32653         PR debug/48041
32654         * dwarf2out.c (output_abbrev_section): Only write table when
32655         abbrev_die_table_in_use > 1.
32656
32657 2011-02-24  Richard Henderson  <rth@redhat.com>
32658
32659         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
32660         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
32661         (alpha_expand_unaligned_load_words): Use extql.
32662         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
32663         (emit_insxl): Handle all modes for consistency.
32664
32665 2011-02-24  Richard Henderson  <rth@redhat.com>
32666
32667         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
32668         (alpha_expand_unaligned_load): Likewise.
32669         (alpha_expand_unaligned_store): Likewise.
32670         (alpha_expand_unaligned_load_words): Likewise.
32671         (alpha_expand_unaligned_store_words): Likewise.
32672         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
32673         (alpha_split_lock_test_and_set_12): Likewise.
32674         (print_operand, alpha_fold_builtin_extxx): Likewise.
32675         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
32676         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
32677         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
32678         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
32679         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
32680         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
32681         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
32682         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
32683         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
32684         (extwl, extll, extql): Similarly.
32685         (inswh, inslh, insqh): Similarly.
32686         (mskbl, mskwl, mskll, mskql): Similarly.
32687         (mskwh, msklh, mskqh): Similarly.
32688
32689 2011-02-24  Richard Henderson  <rth@redhat.com>
32690
32691         * config/alpha/alpha.md (attribute isa): Add er, ner.
32692         (attribute enabled): Handle them.
32693         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
32694
32695 2011-02-24  Richard Henderson  <rth@redhat.com>
32696
32697         * config/alpha/alpha.md (attribute isa): Add vms.
32698         (attribute enabled): Handle it.
32699         (*movsf): Merge *movsf_{nofix,fix,nofp}.
32700         (*movdf): Merge *movdf_{nofix,fix,nofp}.
32701         (*movtf): Rename from *movtf_internal for consistency.
32702         (*movsi): Merge with *movsi_nt_vms.
32703         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
32704         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
32705         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
32706         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
32707
32708 2011-02-24  Richard Henderson  <rth@redhat.com>
32709
32710         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
32711         (extendqisi2, extendhisi2): Likewise.
32712         (extendqidi2): Simplify BWX/non-BWX expansions.
32713         (extendhidi2): Similarly.
32714
32715 2011-02-24  Richard Henderson  <rth@redhat.com>
32716
32717         * config/alpha/alpha.md (attribute isa): New.
32718         (attribute enabled): New.
32719         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
32720         (zero_extendqisi2, zero_extendqidi2): Similarly.
32721         (zero_extendhisi2, zero_extendhidi2): Similarly.
32722         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
32723
32724 2011-02-24  Richard Henderson  <rth@redhat.com>
32725
32726         * config/alpha/predicates.md (input_operand): Revert last change;
32727         update comment to mention 32-bit VMS rather than Windows.
32728
32729 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
32730
32731         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
32732         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
32733         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
32734         * passes.c (init_optimization_passes): Move
32735         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
32736
32737 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
32738
32739         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
32740
32741 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
32742
32743         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
32744         correctly.
32745
32746 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
32747
32748         PR debug/48204
32749         * simplify-rtx.c (simplify_const_unary_operation): Call
32750         real_convert when changing mode class with FLOAT_EXTEND.
32751
32752 2011-03-24  Nick Clifton  <nickc@redhat.com>
32753
32754         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
32755         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
32756         * config/rx/rx.c (rx_option_override): Set align_jumps,
32757         align_loops and align_labels if not set by the user.
32758         (rx_align_for_label): New function.
32759         (rx_max_skip_for_label): New function.
32760         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
32761         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
32762         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
32763         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
32764         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
32765
32766 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
32767
32768         PR rtl-optimization/48263
32769         * optabs.c (expand_binop_directly): Reinstate convert_modes code
32770         and original commutative_p handling.  Use maybe_gen_insn.
32771
32772 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32773
32774         * reload.c (find_reloads_subreg_address): Add address_reloaded
32775         parameter and return true there if the full address has been
32776         reloaded.
32777         (find_reloads_toplev): Pass address_reloaded flag.
32778         (find_reloads_address_1): Don't use address_reloaded parameter.
32779
32780 2011-03-24  Jeff Law  <law@redhat.com>
32781
32782         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
32783         unused variable "ann".
32784         (remove_unused_locals): Likewise.
32785
32786         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
32787         statement.
32788
32789         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
32790         after it is freed.
32791
32792 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32793
32794         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
32795         for invalid symbolic addresses.
32796         (s390_secondary_reload): Don't use s390_check_symref_alignment for
32797         larl operands.
32798
32799 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
32800
32801         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
32802         the argument in calls to fold_truth_not_expr.
32803
32804 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
32805
32806         * tree.c (record_node_allocation_statistics): New function.
32807         (make_node_stat, copy_node_stat, build_string): Call it.
32808         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
32809         (build1_stat, build_omp_clause): Likewise.
32810
32811 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
32812
32813         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
32814         last commit.
32815
32816 2011-03-24  Richard Guenther  <rguenther@suse.de>
32817
32818         PR tree-optimization/48271
32819         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
32820         blocks that still exist.
32821
32822 2011-03-24  Richard Guenther  <rguenther@suse.de>
32823
32824         PR tree-optimization/48270
32825         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
32826         not free datarefs before ddrs.
32827
32828 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
32829
32830         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
32831         from the address built for a reference with variable offset.
32832
32833 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
32834
32835         PR target/48237
32836         * config/i386/i386.md (*movdf_internal_rex64): Do not split
32837         alternatives that can be handled with movq or movabsq insn.
32838         (*movdf_internal): Disable for !TARGET_64BIT.
32839         (*movdf_internal_nointeger): Ditto.
32840         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
32841
32842 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
32843
32844         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
32845         (FUNCTION_ARG_ADVANCE): Likewise.
32846         * tm.texi.in: Change references to them to hook references.
32847         * tm.texi: Regenerate.
32848         * targhooks.c (default_function_arg): Eliminate check for target macro.
32849         (default_function_incoming_arg): Likewise.
32850         (default_function_arg_advance): Likewise.
32851         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
32852         (function_arg_advance): Likewise.
32853         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
32854
32855 2011-03-24  Richard Guenther  <rguenther@suse.de>
32856
32857         PR middle-end/48269
32858         * tree-object-size.c (addr_object_size): Do not double-account
32859         for MEM_REF offsets.
32860
32861 2011-03-24  Diego Novillo  <dnovillo@google.com>
32862
32863         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
32864         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
32865         (lto_input_data_block): Move from lto-opts.c.  Make extern.
32866         Update all users.
32867         (lto_input_string): Rename from input_string.  Make extern.
32868         Update all users.
32869         * lto-streamer-out.c (lto_output_string_with_length): Rename from
32870         output_string_with_length.
32871         Output 0 to indicate a non-NULL string.  Update all callers to
32872         not emit 0.
32873         (lto_output_string): Rename from output_string.  Make extern.
32874         Update all users.
32875         (lto_output_decl_state_streams): Make extern.
32876         (lto_output_decl_state_refs): Make extern.
32877         * lto-streamer.h (lto_input_string): Declare.
32878         (lto_input_data_block): Declare.
32879         (lto_output_string): Declare.
32880         (lto_output_string_with_length): Declare.
32881         (lto_output_decl_state_streams): Declare.
32882         (lto_output_decl_state_refs): Declare.
32883
32884 2011-03-24  Richard Guenther  <rguenther@suse.de>
32885
32886         PR tree-optimization/46562
32887         * tree.c (build_invariant_address): New function.
32888         * tree.h (build_invariant_address): Declare.
32889         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
32890         a renamed function moved ...
32891         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
32892         Take valueization callback parameter.
32893         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
32894         * gimple-fold.h: New file.
32895         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
32896         (ccp_fold, fold_const_aggregate_ref,
32897         fold_ctor_reference, fold_nonarray_ctor_reference,
32898         fold_array_ctor_reference, fold_string_cst_ctor_reference,
32899         get_base_constructor): Move ...
32900         * gimple-fold.c: ... here.
32901         (gimple_fold_stmt_to_constant_1): New function
32902         split out from ccp_fold.  Take a valueization callback parameter.
32903         Valueize all operands.
32904         (gimple_fold_stmt_to_constant): New wrapper function.
32905         (fold_const_aggregate_ref_1): New function split out from
32906         fold_const_aggregate_ref.  Take a valueization callback parameter.
32907         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
32908         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
32909         invariant POINTER_PLUS_EXPRs to invariant form.
32910         (vn_valueize): New function.
32911         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
32912         * tree-vrp.c (vrp_valueize): New function.
32913         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
32914         to fold statements to constants.
32915         * tree-ssa-pre.c (eliminate): Properly guard propagation of
32916         function declarations.
32917         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
32918         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
32919
32920 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
32921
32922         * config/h8300/predicates.md (jump_address_operand): Fix register
32923         mode check.
32924
32925 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
32926
32927         * doc/invoke.texi (max-stores-to-sink): Document.
32928         * params.h (MAX_STORES_TO_SINK): Define.
32929         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
32930         if either vectorization or if-conversion is disabled.
32931         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
32932         tree-vect-data-refs.c vect_equal_offsets.
32933         (dr_equal_offsets_p): New function.
32934         (find_data_references_in_bb): Remove static.
32935         * tree-data-ref.h (find_data_references_in_bb): Declare.
32936         (dr_equal_offsets_p): Likewise.
32937         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
32938         (vect_drs_dependent_in_basic_block): Update calls to
32939         vect_equal_offsets.
32940         (vect_check_interleaving): Likewise.
32941         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
32942         (cond_if_else_store_replacement): Rename to...
32943         (cond_if_else_store_replacement_1): ... this.  Change arguments and
32944         documentation.
32945         (cond_if_else_store_replacement): New function.
32946         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
32947         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
32948
32949 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
32950
32951         PR target/46934
32952         * config/arm/arm.md (casesi): Use the gen_int_mode() function
32953         to subtract lower bound instead of GEN_INT().
32954
32955 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
32956
32957         PR other/48179
32958         PR other/48221
32959         PR other/48234
32960         * doc/extend.texi (Alignment): Move section to match order in TOC.
32961         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
32962         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
32963
32964 2011-03-23  Jeff Law  <law@redhat.com>
32965
32966         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
32967         before removing the edge.
32968
32969         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
32970         it may have been freed by redirect_branch_edge or
32971         redirect_edge_succ_nodup.
32972
32973 2011-03-23  Richard Guenther  <rguenther@suse.de>
32974
32975         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
32976         (check_va_list_escapes): Likewise.
32977         (check_all_va_list_escapes): Likewise.
32978
32979 2011-03-23  Richard Guenther  <rguenther@suse.de>
32980
32981         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
32982         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
32983         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
32984         (alias.o): Likewise.
32985         (ipa-type-escape.o): Remove.
32986         (ipa-struct-reorg.o): Likewise.
32987         (GTFILES): Remove ipa-struct-reorg.c.
32988         * alias.c: Do not include ipa-type-escape.h.
32989         * tree-ssa-alias.c: Likewise.
32990         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
32991         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
32992         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
32993         and ipa-type-escape passes.
32994         * tree-pass.h (pass_ipa_type_escape): Remove.
32995         (pass_ipa_struct_reorg): Likewise.
32996         * ipa-struct-reorg.h: Remove.
32997         * ipa-struct-reorg.c: Likewise.
32998         * ipa-type-escape.h: Likewise.
32999         * ipa-type-escape.c: Likewise.
33000         * doc/invoke.texi (-fipa-struct-reorg): Remove.
33001         (--param struct-reorg-cold-struct-ratio): Likewise.
33002         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
33003         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
33004         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
33005
33006 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33007
33008         * config/s390/2084.md: Enable all insn reservations also for z9_ec
33009         cpu attribute value.
33010         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
33011         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
33012         * config/s390/s390.c (processor_flags_table): New constant array.
33013         (s390_handle_arch_option): Remove.
33014         (s390_handle_option): Remove s390_handle_arch_option invocations
33015         and OPT_mwarn_framesize_ handling.
33016         (s390_option_override): Remove s390_handle_arch_option invocation.
33017         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
33018         warnings.
33019         * config/s390/s390.md (cpu attribute): Add z9_ec value.
33020         * config/s390/s390.opt (s390_tune, s390_arch)
33021         (march=): Replace s390_arch_option enum and values with
33022         processor_type.  Set variable name to s390_arch.  Set
33023         initialization value.
33024         (mtune=): Replace s390_arch_option with processor_type.  Set
33025         variable name to s390_tune.  Set initialization value.
33026
33027 2011-03-23  Julian Brown  <julian@codesourcery.com>
33028
33029         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
33030         accesses which are not naturally aligned.
33031
33032 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
33033
33034         PR target/47553
33035         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
33036
33037 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
33038
33039         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
33040         parameter from "int" to "enum insn_code".
33041         (expand_operand_type): New enum.
33042         (expand_operand): New structure.
33043         (create_expand_operand): New function.
33044         (create_fixed_operand, create_output_operand): Likewise
33045         (create_input_operand, create_convert_operand_to): Likewise.
33046         (create_convert_operand_from, create_address_operand): Likewise.
33047         (create_integer_operand): Likewise.
33048         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
33049         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
33050         (expand_insn, expand_jump_insn): Likewise.
33051         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
33052         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
33053         (expand_movstr, expand_builtin___clear_cache): Likewise.
33054         (expand_builtin_lock_release): Likewise.
33055         * explow.c (allocate_dynamic_stack_space): Likewise.
33056         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
33057         and use the default handling in that case.
33058         * expmed.c (check_predicate_volatile_ok): Delete.
33059         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
33060         (emit_cstore): Likewise.
33061         * expr.c (emit_block_move_via_movmem): Likewise.
33062         (set_storage_via_setmem, expand_assignment): Likewise.
33063         (emit_storent_insn, try_casesi): Likewise.
33064         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
33065         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
33066         (expand_vec_shift_expr, expand_binop_directly): Likewise.
33067         (expand_twoval_unop, expand_twoval_binop): Likewise.
33068         (expand_unop_direct, emit_indirect_jump): Likewise.
33069         (emit_conditional_move, vector_compare_rtx): Likewise.
33070         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
33071         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
33072         (expand_sync_lock_test_and_set): Likewise.
33073         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
33074         (emit_unop_insn): Likewise.
33075         (expand_copysign_absneg): Change icode to an insn_code.
33076         (create_convert_operand_from_type): New function.
33077         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
33078         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
33079         (expand_insn, expand_jump_insn): Likewise.
33080         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
33081         than const_int_operand for operand 2.
33082
33083 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33084
33085         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
33086         if possible.
33087
33088 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
33089
33090         * emit-rtl.c (emit_pattern_before_noloc): New function.
33091         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
33092         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
33093         (emit_pattern_after_noloc): New function.
33094         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
33095         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
33096
33097 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
33098
33099         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
33100         (__ffsDI2): Likewise.
33101
33102 2011-03-22  Richard Henderson  <rth@redhat.com>
33103
33104         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
33105         of !TARGET_ABI_OPEN_VMS.
33106         (alpha_trampoline_init, alpha_start_function): Likewise.
33107         (alpha_expand_epilogue, alpha_file_start): Likewise.
33108         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
33109         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
33110         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
33111         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
33112         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
33113
33114 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33115
33116         * config/s390/s390-opts.h: New.
33117         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
33118         s390_arch_flags, s390_warn_framesize, s390_stack_size,
33119         s390_stack_guard): Remove.
33120         (s390_handle_arch_option): Return void.  Take enum
33121         s390_arch_option value instead of string and searching array.
33122         (s390_handle_option): Don't assert that global structures are in
33123         use.  Access variables via opts pointer.  Use error_at.  Don't use
33124         sscanf for -mstack-guard= or -mstack-size=.  Update call to
33125         s390_handle_arch_option.
33126         (s390_option_override): Update call to s390_handle_arch_option.
33127         (s390_emit_prologue): Use %d format for s390_stack_size in
33128         diagnostic.  Use %wd for HOST_WIDE_INT.
33129         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
33130         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
33131         * config/s390/s390.opt (config/s390/s390-opts.h): New
33132         HeaderInclude entry.
33133         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
33134         s390_arch_flags, s390_warn_framesize): New Variable entries.
33135         (s390_arch_option): New Enum and EnumValue entries.
33136         (march=): Use Enum instead of Var.
33137         (mstack-guard=, mstack-size=): Use UInteger and Var.
33138         (mtune=): Use Enum.
33139
33140 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33141
33142         * config/score/score.c (score_handle_option): Don't assert that
33143         global structures are in use.  Access target_flags via opts
33144         pointer.  Use value of -march= option to determine target_flags
33145         settings.
33146         * config/score/score.opt (march=): Use Enum.
33147         (score_arch): New Enum and EnumValue entries.
33148
33149 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33150
33151         * config/mep/mep.c (option_mtiny_specified): Remove.
33152         (mep_option_override): Move register handling for -mivc2 from
33153         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
33154         instead of option_mtiny_specified.
33155         (mep_handle_option): Access target_flags via opts pointer.  Don't
33156         assert that global structures are in use.  Defer part of -mivc2
33157         handling and move it to mep_option_override.
33158         * config/mep/mep.opt (IVC2): New Mask entry.
33159         (mivc2): Use Var and Defer instead of Mask.
33160
33161 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33162
33163         * config/v850/v850-opts.h: New.
33164         * config/v850/v850.c (small_memory): Replace with
33165         small_memory_physical_max array.  Make that array static const.
33166         (v850_handle_memory_option): Take integer value of argument.  Take
33167         gcc_options pointer, option text and location.  Return void.
33168         Update for changes to small memory structures.
33169         (v850_handle_option): Access target_flags via opts pointer.  Don't
33170         assert that global structures are in use.  Update calls to
33171         v850_handle_memory_option.
33172         (v850_encode_data_area): Update references to small memory settings.
33173         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
33174         (enum small_memory_type): Move to v850-opts.h.
33175         * config/v850/v850.opt (config/v850/v850-opts.h): New
33176         HeaderInclude entry.
33177         (small_memory_max): New Variable entry.
33178         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
33179         (mtda, mzda): Likewise.
33180
33181 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33182
33183         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
33184         pointer.  Don't assert that global structures are in use.
33185
33186 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33187
33188         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
33189         via opts pointer.  Don't assert that global structures are in use.
33190
33191 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33192
33193         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
33194         (munix=93): Use Var.
33195         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
33196         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
33197         * config/pa/pa-opts.h: New.
33198         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
33199         (pa_handle_option): Don't assert that global structures are in
33200         use.  Access target_flags via opts pointer.  Don't handle
33201         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
33202         OPT_munix_98 here.
33203         (pa_option_override): Handle deferred OPT_mfixed_range_.
33204
33205 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33206
33207         * config/mn10300/mn10300-opts.h: New.
33208         * config/mn10300/mn10300.c (mn10300_processor,
33209         mn10300_tune_string): Remove.
33210         (mn10300_handle_option): Don't assert that global structures are
33211         in use.  Access mn10300_processor via opts pointer.  Don't handle
33212         OPT_mtune_ here.
33213         * config/mn10300/mn10300.h (enum processor_type): Move to
33214         mn10300-opts.h.
33215         (mn10300_processor): Remove.
33216         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
33217         HeaderInclude entry.
33218         (mn10300_processor): New Variable entry.
33219         (mtune=): Use Var.
33220
33221 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33222
33223         * config/microblaze/microblaze.c: Don't include opts.h.
33224         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
33225         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
33226         (mno-clearbss): Use Var and Warn.
33227
33228 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33229
33230         * config/m32r/m32r-opts.h: New.
33231         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
33232         (m32r_handle_option): Don't assert that global structures are in
33233         use.  Access target_flags and m32r_cache_flush_func via opts
33234         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
33235         OPT_mno_flush_trap here.
33236         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
33237         include of m32r-opts.h.
33238         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
33239         HeaderInclude entry.
33240         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
33241         (mmodel=): Use Enum and Var.
33242         (m32r_model): New Enum and EnumValue entries.
33243         (mno-flush-trap): Use Var.
33244         (msdata=): Use Enum and Var.
33245         (m32r_sdata): New Enum and EnumValue entries.
33246
33247 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33248
33249         * config/m32c/m32c.c: Don't include opts.h.
33250         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
33251         m32c_handle_option): Remove.
33252         (m32c_option_override): Check global_options_set.x_target_memregs
33253         instead of target_memregs_set.
33254         * config/m32c/m32c.h (target_memregs): Remove.
33255         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
33256         variable.
33257
33258 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33259
33260         * config/iq2000/iq2000-opts.h: New.
33261         * config/iq2000/iq2000.c: Don't include opts.h.
33262         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
33263         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
33264         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
33265         HeaderInclude entry.
33266         (iq2000_tune): New Variable entry.
33267         (march=): Add comment.  Use Enum.
33268         (iq2000_arch): New Enum and EnumValue entries.
33269         (mcpu=): Use Enum and Var.
33270         (iq2000_tune): New Enum and EnumValue entries.
33271
33272 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33273
33274         * config/ia64/ia64-opts.h: New.
33275         * config/ia64/ia64.c (ia64_tune): Remove.
33276         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
33277         here.  Use error_at.
33278         (ia64_option_override): Handle deferred OPT_mfixed_range_.
33279         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
33280         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
33281         HeaderInclude entry.
33282         (ia64_tune): New Variable entry.
33283         (mfixed-range=): Use Defer and Var.
33284         (mtune=): Use Enum and Var.
33285         (ia64_tune): New Enum and EnumValue entries.
33286
33287 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33288
33289         * config/frv/frv-opts.h: New.
33290         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
33291         frv-opts.h.
33292         (frv_cpu_type): Remove.
33293         * config/frv/frv.c: Don't include opts.h.
33294         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
33295         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
33296         (frv_cpu_type): New Variable entry.
33297         (frv_cpu): New Enum and EnumValue entries.
33298
33299 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33300
33301         * config/cris/cris.c (cris_handle_option): Access target_flags via
33302         opts pointer.  Don't assert that global structures are in use.
33303         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
33304         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
33305
33306 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33307
33308         * config/bfin/bfin-opts.h: New.
33309         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
33310         bfin_si_revision, bfin_workarounds): Remove.
33311         (bfin_cpus): Make static const.
33312         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
33313         not bfin_lib_id_given.
33314         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
33315         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
33316         pointer. Use error_at.  Don't assert that global structures are in use.
33317         * config/bfin/bfin.h: Include bfin-opts.h.
33318         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
33319         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
33320         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
33321         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
33322         entries.
33323
33324 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33325
33326         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
33327         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
33328         or -msoft-float here.
33329         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
33330         -msoft-float and -mhard-float.
33331         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
33332         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
33333         msoft-float.
33334         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
33335         -msoft-float.
33336         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
33337         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
33338         not mhard-float.
33339         (LIBGCC_SPEC): Don't handle -msoft-float.
33340         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
33341         -mhard-float.
33342         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
33343         msoft-float.
33344         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
33345         -mfloat-abi=*, not -msoft-float and -mhard-float.
33346         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
33347         -msoft-float.
33348         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
33349         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
33350         mhard-float and msoft-float.
33351         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
33352         mfloat-abi=soft in comments, not mhard-float and msoft-float.
33353         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
33354         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
33355         mhard-float.
33356         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
33357         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
33358         msoft-float.
33359         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
33360         not mhard-float.
33361         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
33362         not msoft-float.
33363
33364 2011-03-22  Richard Henderson  <rth@redhat.com>
33365
33366         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
33367         TARGET_ABI_WINDOWS_NT.
33368         (alpha_output_function_end_prologue): Likewise.
33369         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
33370         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
33371         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
33372         (trap, *movsi_nt_vms): Likewise.
33373         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
33374         (*tablejump_osf_nt_internal): Remove.
33375         * config/alpha/predicates.md (input_operand): Only test Pmode.
33376
33377 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33378
33379         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
33380         via opts pointer.  Use error_at.  Don't assert that global
33381         structures are in use.
33382
33383 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33384
33385         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
33386         (ix86_handle_option): Access ix86_isa_flags and
33387         ix86_isa_flags_explicit via opts pointer.  Don't assert that
33388         global structures are in use.
33389         (ix86_function_specific_save, ix86_function_specific_restore):
33390         Update ix86_isa_flags_explicit field name.
33391         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
33392         (ix86_isa_flags_explicit): Rename TargetSave entry to
33393         x_ix86_isa_flags_explicit.
33394
33395 2011-03-22  Richard Henderson  <rth@redhat.com>
33396
33397         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
33398         (alpha_option_override, direct_return): Likewise.
33399         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
33400         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
33401         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
33402         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
33403         (alpha_expand_epilogue, alpha_end_function): Likewise.
33404         (alpha_init_libfuncs): Likewise.
33405         (struct machine_function): Remove unicosmk members.
33406         (print_operand) ['t']: Remove.
33407         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
33408         unicosmk_output_module_name, unicosmk_output_common,
33409         current_section_align, unicosmk_output_text_section_asm_op,
33410         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
33411         unicosmk_section_type_flags, unicosmk_unique_section,
33412         unicosmk_asm_named_section, unicosmk_insert_attributes,
33413         unicosmk_output_align, unicosmk_defer_case_vector,
33414         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
33415         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
33416         unicosmk_output_ssib, unicosmk_add_call_info_word,
33417         unicosmk_extern_head, unicosmk_output_default_externs,
33418         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
33419         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
33420         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
33421         * config/alpha/alpha-protos.h: Update.
33422         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
33423         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
33424         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
33425         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
33426         (*mulsi_se, mulvsi3): Likewise.
33427         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
33428         (*divmodsi_internal, call, call_value, realign): Likewise.
33429         (moddi3, umoddi3): Likewise; remove duplicate expander.
33430         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
33431         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
33432         (*movdi_nofix): Remove r/U alternative.
33433         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
33434         * config/alpha/constraints.md ("U"): Remove.
33435         * config/alpha/predicates.md (call_operand"): Don't test
33436         TARGET_ABI_UNICOSMK.
33437
33438 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33439
33440         * target.def (handle_option): Take gcc_options and
33441         cl_decoded_option pointers and location_t.
33442         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
33443         * doc/tm.texi: Regenerate.
33444         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
33445         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
33446         * lto-opts.c (lto_reissue_options): Generate option structure for
33447         targetm.handle_option call.
33448         * opts.c (target_handle_option): Update call to
33449         targetm.handle_option.  Remove assertions about values now passed
33450         down to hook.
33451         * targhooks.c (default_target_handle_option): New.
33452         * targhooks.h (default_target_handle_option): Declare.
33453         * config/alpha/alpha.c: Include opts.h.
33454         (alpha_handle_option): Update to new hook interface.
33455         * config/arm/arm.c: Include opts.h.
33456         (arm_handle_option): Update to new hook interface.
33457         * config/arm/t-arm (arm.o): Update dependencies.
33458         * config/bfin/bfin.c: Include opts.h.
33459         (bfin_handle_option): Update to new hook interface.
33460         * config/cris/cris.c: Include opts.h.
33461         (cris_handle_option): Update to new hook interface.
33462         * config/frv/frv.c: Include opts.h.
33463         (frv_handle_option): Update to new hook interface.
33464         * config/i386/i386.c: Include opts.h.
33465         (ix86_handle_option): Update to new hook interface.
33466         (ix86_valid_target_attribute_inner_p): Generate option structure
33467         for call to ix86_handle_option.
33468         * config/i386/t-i386 (i386.o): Update dependencies.
33469         * config/ia64/ia64.c: Include opts.h.
33470         (ia64_handle_option): Update to new hook interface.
33471         * config/ia64/t-ia64 (ia64.o): Update dependencies.
33472         * config/iq2000/iq2000.c: Include opts.h.
33473         (iq2000_handle_option): Update to new hook interface.
33474         * config/m32c/m32c.c: Include opts.h.
33475         (m32c_handle_option): Update to new hook interface.
33476         * config/m32r/m32r.c: Include opts.h.
33477         (m32r_handle_option): Update to new hook interface.
33478         * config/m68k/m68k.c: Include opts.h.
33479         (m68k_handle_option): Update to new hook interface.
33480         * config/mep/mep.c: Include opts.h.
33481         (mep_handle_option): Update to new hook interface.
33482         * config/microblaze/microblaze.c: Include opts.h.
33483         (microblaze_handle_option): Update to new hook interface.
33484         * config/mips/mips.c: Include opts.h.
33485         (mips_handle_option): Update to new hook interface.
33486         * config/mn10300/mn10300.c: Include opts.h.
33487         (mn10300_handle_option): Update to new hook interface.
33488         * config/pa/pa.c: Include opts.h.
33489         (pa_handle_option): Update to new hook interface.
33490         * config/pdp11/pdp11.c: Include opts.h.
33491         (pdp11_handle_option): Update to new hook interface.
33492         * config/rs6000/rs6000.c: Include opts.h.
33493         (rs6000_handle_option): Update to new hook interface.
33494         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
33495         * config/rx/rx.c: Include opts.h.
33496         (rx_handle_option): Update to new hook interface.
33497         * config/s390/s390.c: Include opts.h.
33498         (s390_handle_option): Update to new hook interface.
33499         * config/score/score.c: Include opts.h.
33500         (score_handle_option): Update to new hook interface.
33501         * config/sh/sh.c: Include opts.h.
33502         (sh_handle_option): Update to new hook interface.
33503         * config/sparc/sparc.c: Include opts.h.
33504         (sparc_handle_option): Update to new hook interface.
33505         * config/v850/v850.c: Include opts.h.
33506         (v850_handle_option): Update to new hook interface.
33507
33508 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33509
33510         * gcc.c (driver_unknown_option_callback): Only permit and save
33511         unknown -Wno- options.
33512         (driver_wrong_lang_callback): Save options directly instead of via
33513         driver_unknown_option_callback.
33514
33515 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
33516
33517         * combine.c (simplify_set): Try harder to find the best CC mode when
33518         simplifying a nested COMPARE on the RHS.
33519
33520 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
33521
33522         * config/alpha/gnu.h: Remove.
33523         * config/arc: Remove directory.
33524         * config/arm/netbsd.h: Remove.
33525         * config/arm/t-pe: Remove.
33526         * config/crx: Remove directory.
33527         * config/i386/netbsd.h: Remove.
33528         * config/m68hc11: Remove directory.
33529         * config/m68k/uclinux-oldabi.h: Remove.
33530         * config/mcore/mcore-pe.h: Remove.
33531         * config/mcore/t-mcore-pe: Remove.
33532         * config/netbsd-aout.h: Remove.
33533         * config/rs6000/gnu.h: Remove.
33534         * config/sh/sh-symbian.h: Remove.
33535         * config/sh/symbian-base.c: Remove.
33536         * config/sh/symbian-c.c: Remove.
33537         * config/sh/symbian-cxx.c: Remove.
33538         * config/sh/symbian-post.h: Remove.
33539         * config/sh/symbian-pre.h: Remove.
33540         * config/sh/t-symbian: Remove.
33541         * config/svr3.h: Remove.
33542         * config/vax/netbsd.h: Remove.
33543         * config.build: Don't handle i[34567]86-*-pe.
33544         * config.gcc: Remove handling of deprecations for most deprecated
33545         targets.
33546         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
33547         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
33548         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
33549         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
33550         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
33551         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
33552         Remove cases.
33553         * config.host: Don't handle i[34567]86-*-pe.
33554         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
33555         (ASM_SPEC32): Don't handle -mcall-gnu.
33556         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
33557         -mcall-gnu.
33558         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
33559         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
33560         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
33561         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
33562         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
33563         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
33564         conditional on SYMBIAN.
33565         * configure.ac: Don't handle powerpc*-*-gnu*.
33566         * configure: Regenerate.
33567         * doc/extend.texi (interrupt attribute): Don't mention CRX.
33568         * doc/install-old.texi (m6811, m6812): Don't mention.
33569         * doc/install.texi (arc-*-elf*): Don't document multilib option.
33570         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
33571         (m68k-uclinuxoldabi): Don't mention.
33572         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
33573         Remove.
33574         (-mcall-gnu): Remove.
33575         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
33576         families): Remove constraint documentation.
33577
33578 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
33579
33580         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
33581         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
33582         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
33583
33584 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
33585
33586         PR target/48226
33587         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
33588         vector when peeking at the next token for vector, don't expand the
33589         keywords.
33590
33591 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
33592
33593         * config/avr/avr-protos.h (expand_epilogue): Change prototype
33594         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
33595         * config/avr/avr.c (init_cumulative_args)
33596         (avr_function_arg_advance): Use it.
33597         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
33598         sibcall epilogues.
33599         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
33600         (avr_function_ok_for_sibcall): ...this new function.
33601         (avr_lookup_function_attribute1): New static Function.
33602         (avr_naked_function_p, interrupt_function_p)
33603         (signal_function_p, avr_OS_task_function_p)
33604         (avr_OS_main_function_p): Use it.
33605         * config/avr/avr.md ("sibcall", "sibcall_value")
33606         ("sibcall_epilogue"): New expander.
33607         ("*call_insn", "*call_value_insn"): New insn.
33608         ("call_insn", "call_value_insn"): Remove
33609         ("call", "call_value", "epilogue"): Change expander to handle
33610         sibling calls.
33611
33612 2011-03-21  Nick Clifton  <nickc@redhat.com>
33613
33614         * doc/invoke.texi (Overall Options): Move closing brace to end of
33615         options list.
33616         (Optimization Options): Add missing @gol.
33617         (Directory Options): Likewise.
33618         (i386 and x86-64 Options): Likewise.
33619         (RS6000 and PowerPC Options): Likewise.
33620         (i386 and x86-64 Windows Options): Likewise.
33621         (V850 Options): Add text missing from descriptions.
33622
33623 2011-03-22  Richard Henderson  <rth@redhat.com>
33624
33625         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
33626         (avr_incoming_return_addr_rtx): New.
33627         (emit_push_byte): New.
33628         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
33629         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
33630         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
33631         (emit_pop_byte): New.
33632         (expand_epilogue): Use it.  Pop frame pointer by bytes.
33633         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
33634         (INCOMING_RETURN_ADDR_RTX): New.
33635         (INCOMING_FRAME_SP_OFFSET): New.
33636         (ARG_POINTER_CFA_OFFSET): New.
33637         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
33638         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
33639         (pophi): Remove.
33640
33641         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
33642
33643 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
33644
33645         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
33646         (FUNCTION_ARG_ADVANCE): Likewise.
33647         * tm.texi.in: Change references to them to hook references.
33648         * tm.texi: Regenerate.
33649         * targhooks.c (default_function_arg): Eliminate check for target
33650         macro.
33651         (default_function_incoming_arg): Likewise.
33652         (default_function_arg_advance): Likewise.
33653         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
33654         (function_arg_advance): Likewise.
33655         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
33656
33657 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
33658
33659         * tree.c (build_call_1): New function.
33660         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
33661
33662 2011-03-22  Richard Guenther  <rguenther@suse.de>
33663
33664         PR tree-optimization/48228
33665         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
33666         for single-arg PHIs.
33667
33668 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
33669
33670         PR rtl-optimization/48143
33671         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
33672         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
33673         sse2_cvtps2pd): Likewise.
33674
33675 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33676
33677         * recog.c (canonicalize_change_group): Use validate_unshare_change.
33678
33679 2011-03-22  Richard Guenther  <rguenther@suse.de>
33680
33681         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
33682         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
33683         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
33684         and REALIGN_LOAD_EXPR.
33685         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
33686         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
33687         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
33688         DOT_PROD_EXPR case ...
33689         (expand_expr_real_2): ... here.
33690         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
33691         and REALIGN_LOAD_EXPR.
33692         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
33693         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
33694         (vect_create_epilog_for_reduction): Likewise.
33695         (vectorizable_reduction): Likewise.
33696         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
33697         * tree-vect-stmts.c (vectorizable_load): Likewise.
33698
33699 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
33700
33701         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
33702
33703 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33704
33705         * config/s390/s390.c (s390_delegitimize_address): Fix offset
33706         handling for PLTOFF/GOTOFF.
33707
33708 2011-03-22  Nick Clifton  <nickc@redhat.com>
33709
33710         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
33711         trailing backslash from the end of the macro definition.
33712
33713 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33714
33715         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
33716         and PLT unspecs.
33717
33718 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
33719
33720         * expr.h (prepare_operand): Move to...
33721         * optabs.h (prepare_operand): ...here and change the insn code
33722         parameter from "int" to "enum insn_code".
33723         (insn_operand_matches): Declare.
33724         * expr.c (init_expr_target): Use insn_operand_matches.
33725         (compress_float_constant): Likewise.
33726         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
33727         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
33728         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
33729         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
33730         Likewise.
33731         (gen_cond_trap): Likewise.
33732         (prepare_operand): Likewise.  Change icode to an insn_code.
33733         (insn_operand_matches): New function.
33734         * reload.c (find_reloads_address_1): Use insn_operand_matches.
33735         * reload1.c (gen_reload): Likewise.
33736         * targhooks.c (default_secondary_reload): Likewise.
33737
33738 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
33739
33740         * config/alpha/alpha.md (unspec): New define_c_enum.
33741         (unspecv): Ditto.
33742
33743 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
33744
33745         PR debug/48214
33746         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
33747         between a call and its CALL_ARG_LOCATION note.
33748
33749 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
33750
33751         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
33752
33753 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
33754
33755         PR c/42544
33756         PR c/48197
33757         * c-common.c (shorten_compare): If primopN is first sign-extended
33758         to opN and then zero-extended to result type, set primopN to opN.
33759
33760 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
33761
33762         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
33763         for barrier handlers.
33764
33765 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
33766
33767         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
33768         UNSPEC constants to be in the unspec enumeration, and redefine
33769         all UNSPECV constants to be in the unspecv enumeration, so that
33770         dumps print which unspec/unspec_volatile this is.
33771         * config/rs6000/vector.md (UNSPEC_*): Ditto.
33772         * config/rs6000/paired.md (UNSPEC_*): Ditto.
33773         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
33774         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
33775         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
33776
33777         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
33778         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
33779         UNSPECV_LWSYNC, since these are used as unspec_volatile.
33780         * config/rs6000/sync.md (isync, lwsync): Ditto.
33781
33782 2011-03-21  Richard Guenther  <rguenther@suse.de>
33783
33784         * params.def (lto-min-partition): Fix typo.
33785
33786 2011-03-21  Richard Guenther  <rguenther@suse.de>
33787
33788         PR c/47939
33789         * c-decl.c (grokdeclarator): Drop to the main variant only
33790         for array types.  Drop flag_gen_aux_info check.
33791
33792 2011-03-21  Richard Guenther  <rguenther@suse.de>
33793
33794         PR translation/47911
33795         * params.def (lto-partitions): Fix typo.
33796         (lto-min-partition): Fix wording.
33797
33798 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
33799
33800         * config/rs6000/t-freebsd: Remove duplication from file.
33801
33802 2011-03-21  Richard Guenther  <rguenther@suse.de>
33803
33804         PR middle-end/47661
33805         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
33806
33807 2011-03-21  Richard Guenther  <rguenther@suse.de>
33808
33809         PR lto/48210
33810         * params.def (lto-partitions): Require at least 1 partition.
33811
33812 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33813
33814         * gthr-solaris.h: Remove.
33815         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
33816         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
33817         (LIB_SPEC): Likewise.
33818         * config/sol2.opt (threads): Remove.
33819         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
33820         (sparc*-*-solaris2*): Likewise.
33821         * configure.ac (enable_threads): Enable solaris support.
33822         * configure: Regenerate.
33823         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
33824         * doc/install.texi (Configuration, --enable-threads=lib): Remove
33825         solaris.
33826
33827 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33828
33829         * config.gcc: Obsolete *-*-solaris2.8*.
33830         * doc/install.texi (Specific, *-*-solaris2*): Document it.
33831
33832 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33833
33834         PR bootstrap/48135
33835         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
33836         reference.  Solaris 8 perl works.
33837
33838 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33839
33840         PR bootstrap/48135
33841         * doc/install.texi (Prerequisites): Move jar etc. up.
33842         Explain support library version requirements.
33843
33844 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33845
33846         PR bootstrap/48135
33847         * doc/install.texi (Prerequisites): Move Perl to build
33848         requirements.  Always necessary on Solaris 2 with Sun ld.
33849
33850 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33851
33852         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
33853         binutils 2.21.
33854         (Specific, i?86-*-solaris2.[89]): Likewise.
33855         (Specific, i?86-*-solaris2.10): Likewise.
33856         (Specific, mips-sgi-irix6): Likewise.
33857         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
33858         Update for binutils 2.21.
33859
33860 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33861
33862         * configure.ac (gcc_cv_lto_plugin): Fix typo.
33863         Allow -fuse-linker-plugin for non-default plugin linker.
33864         * configure: Regenerate.
33865
33866 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
33867
33868         PR bootstrap/48167
33869         * gengtype.c (files_rules): Added rule for cp/parser.h.
33870
33871 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
33872
33873         PR target/48213
33874         * config/s390/s390.c (s390_delegitimize_address): Don't call
33875         lowpart_subreg if orig_x has BLKmode.
33876
33877 2011-03-21  Kai Tietz  <ktietz@redhat.com>
33878
33879         PR target/12171
33880         * doc/plugins.texi: Adjust documentation for plugin register_callback.
33881         * tree.h (attribute_spec): Add new member affects_type_identity.
33882         * attribs.c (empty_attribute_table): Adjust attribute_spec
33883         initializers.
33884         * config/alpha/alpha.c: Likewise.
33885         * config/arc/arc.c: Likewise.
33886         * config/arm/arm.c: Likewise.
33887         * config/avr/avr.c: Likewise.
33888         * config/bfin/bfin.c: Likewise.
33889         * config/crx/crx.c: Likewise.
33890         * config/darwin.h: Likewise.
33891         * config/h8300/h8300.c: Likewise.
33892         * config/i386/cygming.h: Likewise.
33893         * config/i386/i386.c: Likewise.
33894         * config/ia64/ia64.c: Likewise.
33895         * config/m32c/m32c.c: Likewise.
33896         * config/m32r/m32r.c: Likewise.
33897         * config/m68hc11/m68hc11.c: Likewise.
33898         * config/m68k/m68k.c: Likewise.
33899         * config/mcore/mcore.c: Likewise.
33900         * config/mep/mep.c: Likewise.
33901         * config/microblaze/microblaze.c: Likewise.
33902         * config/mips/mips.c: Likewise.
33903         * config/rs6000/rs6000.c: Likewise.
33904         * config/rx/rx.c: Likewise.
33905         * config/sh/sh.c: Likewise.
33906         * config/sol2.h: Likewise.
33907         * config/sparc/sparc.c: Likewise.
33908         * config/spu/spu.c: Likewise.
33909         * config/stormy16/stormy16.c: Likewise.
33910         * config/v850/v850.c: Likewise.
33911
33912 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
33913
33914         * simplify-rtx.c (simplify_binary_operation_1): Handle
33915         (xor (and A B) C) case when B and C are both constants.
33916
33917 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
33918
33919         * tree-dfa.c (add_referenced_var): Fix typo in comment.
33920
33921 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
33922
33923         PR bootstrap/48168
33924         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
33925
33926 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
33927
33928         PR rtl-optimization/48156
33929         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
33930         assume df and df_lr are not NULL.
33931
33932 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
33933
33934         PR debug/48023
33935         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
33936         between a call and its CALL_ARG_LOCATION note.
33937
33938 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
33939
33940         PR debug/48178
33941         * config/sh/sh.c (find_barrier): Don't emit a constant pool
33942         between a call and its corresponding CALL_ARG_LOCATION note.
33943
33944 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
33945
33946         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
33947         instead of loop. Use HARD_REGISTER_NUM_P predicate.
33948         * haifa-sched.c (setup_ref_regs): Ditto.
33949         * caller-save.c (add_used_regs_1): Ditto.
33950         * dse.c (look_for_hardregs): Ditto.
33951         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
33952         * sched-rgn.c (check_live_1): Ditto.
33953
33954 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
33955
33956         * c-decl.c (diagnose_mismatched_decls): Give an error for
33957         redefining a typedef with variably modified type.
33958
33959 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
33960
33961         * c-decl.c (grokfield): Don't allow typedefs for structures or
33962         unions with no tag by default.
33963         * doc/extend.texi (Unnamed Fields): Update.
33964
33965 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
33966
33967         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
33968         Rewrite using indirect functions.
33969         (lwp_slwpcb): Ditto.
33970         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
33971         (avx_vinsertf128<mode>): Ditto.
33972
33973 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33974
33975         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
33976         unspecs.
33977
33978 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33979
33980         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
33981         splitting between a call and its corresponding CALL_ARG_LOCATION note.
33982
33983 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
33984
33985         PR rtl-optimization/48170
33986         * gcse.c (hoist_code): Remove bogus asserts.
33987
33988 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
33989
33990         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
33991         computation for prologue/epilogue.
33992
33993 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33994
33995         * Makefile.in (check-consistency): Remove.
33996
33997 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
33998
33999         PR debug/48176
34000         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
34001         arange_table_in_use is 0, but either text_section_used or
34002         cold_text_section_used is true.  Don't call it if
34003         !info_section_emitted.
34004
34005 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
34006
34007         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
34008         FUNCTION_VALUE_REGNO_P): Remove.
34009         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
34010         Remove.
34011         * config/avr/avr.c (avr_ret_register): Make static inline.
34012         (avr_function_value_regno_p): New function.
34013         (avr_libcall_value): Make static. Add 'func' argument.
34014         (avr_function_value): Make static. Rename 'func' argument to
34015         'fn_decl_or_type', forward it to avr_libcall_value. Call
34016         avr_ret_register function instead of RET_REGISTER macro.
34017         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
34018
34019 2011-03-18  Jason Merrill  <jason@redhat.com>
34020
34021         PR c++/23372
34022         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
34023
34024 2011-03-18  Richard Guenther  <rguenther@suse.de>
34025
34026         * doc/install.texi (--enable-gold): Remove.
34027         (--with-plugin-ld): Document.
34028         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
34029
34030 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
34031
34032         PR middle-end/47790
34033         * expr.c (optimize_bitfield_assignment_op): Revamp to work
34034         again after expansion changes.
34035
34036 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
34037
34038         * combine.c (try_combine): Do simplification only call of
34039         subst() on i2 even when i1 is present. Update comments.
34040
34041 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
34042
34043         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
34044         and UNSPEC_PCREL_SYMOFF.
34045
34046 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34047
34048         * config/s390/s390.md: Use define_c_enum for the unspec constant
34049         definitions.
34050
34051 2011-03-18  Richard Henderson  <rth@redhat.com>
34052             Jakub Jelinek  <jakub@redhat.com>
34053
34054         PR bootstrap/48161
34055         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
34056         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
34057
34058 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
34059
34060         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34061         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
34062         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
34063         Change return type to bool.
34064         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34065
34066 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
34067
34068         PR debug/48163
34069         * var-tracking.c (prepare_call_arguments): If CALL target
34070         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
34071         pc instead of looking it up using cselib_lookup and use
34072         Pmode for it if x has VOIDmode.
34073         * dwarf2out.c (gen_subprogram_die): If also both first and
34074         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
34075
34076         PR debug/48163
34077         * function.c (assign_parms): For data.passed_pointer parms
34078         use MEM of data.entry_parm instead of data.entry_parm itself
34079         as DECL_INCOMING_RTL.
34080         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
34081         also when passed and declared mode is the same, DECL_RTL
34082         is a MEM with pseudo as address and DECL_INCOMING_RTL is
34083         a MEM too.
34084
34085 2011-03-16  Jeff Law  <law@redhat.com>
34086
34087         PR rtl-optimization/37273
34088         * ira-costs.c (scan_one_insn): Detect constants living in memory and
34089         handle them like argument loads from stack slots.  Do not double
34090         count memory for memory constants and argument loads from stack slots.
34091
34092 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
34093
34094         PR debug/48160
34095         * var-tracking.c (prepare_call_arguments): Check SUBREG.
34096
34097 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
34098
34099         PR target/48171
34100         * config/i386/i386.opt: Add Save to -mavx and -mfma.
34101
34102 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
34103
34104         PR bootstrap/48153
34105         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
34106         if dwarf_strict.
34107         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
34108         Clear call_arg_locations and call_arg_loc_last always.
34109
34110         PR middle-end/48152
34111         * var-tracking.c (prepare_call_arguments): If argument needs to be
34112         passed by reference, adjust argtype and mode.
34113
34114 2011-03-17  Richard Guenther  <rguenther@suse.de>
34115
34116         PR middle-end/48134
34117         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
34118         a value make sure to fold the statement.
34119
34120 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
34121
34122         PR target/43872
34123         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
34124         return condition with !cfun->calls_alloca.
34125
34126 2011-03-17  Richard Guenther  <rguenther@suse.de>
34127
34128         PR bootstrap/48148
34129         * lto-cgraph.c (input_overwrite_node): Clear the abstract
34130         origin for decls in other ltrans units.
34131         (input_varpool_node): Likewise.
34132
34133 2011-03-17  Richard Guenther  <rguenther@suse.de>
34134
34135         PR middle-end/48165
34136         * tree-object-size.c (compute_object_offset): Properly return
34137         the offset operand of MEM_REFs as sizetype.
34138
34139 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
34140
34141         PR rtl-optimization/48141
34142         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
34143         * dse.c: Include params.h.
34144         (active_local_stores_len): New variable.
34145         (add_wild_read, dse_step1): Clear it when setting active_local_stores
34146         to NULL.
34147         (record_store, check_mem_read_rtx): Decrease it when removing
34148         from the chain.
34149         (scan_insn): Likewise.  Increase it when adding to chain, if it
34150         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
34151         set active_local_stores to NULL before the addition.
34152         * Makefile.in (dse.o): Depend on $(PARAMS_H).
34153
34154         PR rtl-optimization/48141
34155         * dse.c (record_store): If no positions are needed in an insn
34156         that cannot be deleted, at least unchain it from active_local_stores.
34157
34158 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
34159
34160         PR debug/47510
34161         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
34162         (lookup_type_die_strip_naming_typedef): ... here.
34163         (get_context_die): Use it.
34164         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
34165         the anonymous struct named by the naming typedef.
34166
34167 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
34168
34169         PR target/48154
34170         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
34171         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
34172
34173 2011-03-16  Jeff Law  <law@redhat.com>
34174
34175         * tree-vrp.c (identify_jump_threads): Slightly simplify type
34176         check for operands of conditional.  Allow type to be a pointer.
34177
34178 2011-03-16  Richard Guenther  <rguenther@suse.de>
34179
34180         PR tree-optimization/48149
34181         * fold-const.c (fold_binary_loc): Fold
34182         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
34183
34184 2011-03-16  Richard Guenther  <rguenther@suse.de>
34185
34186         PR tree-optimization/26134
34187         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
34188         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
34189         (non_rewritable_mem_ref_base): Handle complex type component
34190         accesses, constrain offsets for vector and complex extracts
34191         more properly.
34192
34193 2011-03-16  Richard Guenther  <rguenther@suse.de>
34194
34195         PR tree-optimization/48146
34196         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
34197         operands avoiding the need for renaming.
34198
34199 2011-03-16  Richard Guenther  <rguenther@suse.de>
34200
34201         * gimple-fold.c (maybe_fold_reference): Open-code relevant
34202         constant folding.  Move MEM_REF canonicalization first.
34203         Rely on fold_const_aggregate_ref for initializer folding.
34204         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
34205
34206 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
34207
34208         PR middle-end/48136
34209         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
34210         arg0/arg1 or their arguments are always fold converted to matching
34211         types.
34212
34213         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
34214         to nargs.
34215
34216 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34217
34218         PR lto/46944
34219         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
34220         Handle in-tree gold.
34221         (ld_vers): Extract binutils version for gold.
34222         (gcc_cv_ld_hidden): Handle gold here.
34223         (gcc_cv_lto_plugin): Determine level of linker plugin support.
34224         * configure: Regenerate.
34225         * config.in: Regenerate.
34226         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
34227         -fuse-linker-plugin otherwise.
34228         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
34229         (LINK_COMMAND_SPEC): Use it.
34230         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
34231
34232 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
34233
34234         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
34235         * calls.c: Remove debug.h include.
34236         (emit_call_1): Don't call virtual_call_token debug hook.
34237         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
34238         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
34239         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
34240         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
34241         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
34242         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
34243         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
34244         dwarf2out_virtual_call): Remove.
34245         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
34246         copy_call_info and virtual_call hooks.
34247         (dwarf2out_init): Don't initialize vcall_insn_table,
34248         debug_dcall_section and debug_vcall_section.
34249         (prune_unused_types): Don't mark nodes from dcall_table.
34250         (dwarf2out_finish): Don't output dcall or vcall tables.
34251         * final.c (final_scan_insn): Don't call direct_call or
34252         virtual_call debug hooks.
34253         * debug.h (struct gcc_debug_hooks): Remove direct_call,
34254         virtual_call_token, copy_call_info and virtual_call hooks.
34255         (debug_nothing_uid): Remove prototype.
34256         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
34257         copy_call_info and virtual_call hooks.
34258         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
34259         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
34260         * debug.c (do_nothing_debug_hooks): Likewise.
34261         (debug_nothing_uid): Remove.
34262         * doc/invoke.texi (-fenable-icf-debug): Remove.
34263         * common.opt (-fenable-icf-debug): Likewise.
34264
34265         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
34266         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
34267         call's MEM.  Handle functions returning aggregate through a hidden
34268         first pointer.  For virtual calls add clobbered pc to call arguments
34269         chain.
34270         * dwarf2out.c (gen_subprogram_die): Emit
34271         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
34272         can't be emitted.
34273
34274         PR debug/45882
34275         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
34276         * rtl.h (ENTRY_VALUE_EXP): Define.
34277         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
34278         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
34279         * print-rtl.c (print_rtx): Likewise.
34280         * gengtype.c (adjust_field_rtx_def): Likewise.
34281         * var-tracking.c (vt_add_function_parameter): Adjust
34282         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
34283         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
34284         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
34285         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
34286         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
34287
34288         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
34289         Call var_location debug hook even on CALL_INSNs.
34290         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
34291         * rtl.def (ENTRY_VALUE): New.
34292         * dwarf2out.c: Include cfglayout.h.
34293         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
34294         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
34295         (struct call_arg_loc_node): New type.
34296         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
34297         tail_call_site_count): New variables.
34298         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
34299         DW_TAG_GNU_call_site_parameter.
34300         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
34301         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
34302         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
34303         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
34304         and DW_AT_GNU_all_source_call_sites.
34305         (mem_loc_descriptor): Handle ENTRY_VALUE.
34306         (add_src_coords_attributes): Don't add enything if
34307         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
34308         (dwarf2out_abstract_function): Save and clear call_arg_location,
34309         call_site_count and tail_call_site_count around dwarf2out_decl call.
34310         (gen_call_site_die): New function.
34311         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
34312         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
34313         (dwarf2out_function_decl): Clear call_arg_locations,
34314         call_arg_loc_last, set call_site_count and tail_call_site_count
34315         to -1 and free block_map.
34316         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
34317         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
34318         followed by any real instructions.
34319         (dwarf2out_begin_function): Set call_site_count and
34320         tail_call_site_count to 0.
34321         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
34322         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
34323         attempt to force a DIE for it and worst case remove the attribute.
34324         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
34325         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
34326         the decl itself.
34327         * var-tracking.c: Include tm_p.h.
34328         (vt_stack_adjustments): For calls call note_register_arguments.
34329         (argument_reg_set): New variable.
34330         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
34331         ensure the VALUE is resolved.
34332         (call_arguments): New variable.
34333         (prepare_call_arguments): New function.
34334         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
34335         (struct expand_loc_callback_data): Add ignore_cur_loc field.
34336         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
34337         always use the best expression.
34338         (vt_expand_loc): Add ignore_cur_loc argument.
34339         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
34340         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
34341         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
34342         note for all calls.
34343         (vt_add_function_parameter): Use cselib_lookup_from_insn.
34344         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
34345         argument.  Don't call cselib_preserve_only_values and
34346         cselib_reset_table.
34347         (note_register_arguments): New function.
34348         (vt_initialize): Compute argument_reg_set.  Call
34349         vt_add_function_parameters before processing basic blocks instead of
34350         afterwards.  For calls call prepare_call_arguments before calling
34351         cselib_process_insn.
34352         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
34353         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
34354         (var-tracking.o): Depend on $(TM_P_H).
34355         * cfglayout.h (insn_scope): New prototype.
34356         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
34357         * cfglayout.c (insn_scope): No longer static.
34358         * insn-notes.def (CALL_ARG_LOCATION): New.
34359         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
34360         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
34361         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
34362         nothing for DECL_EXTERNAL BLOCK_VARS.
34363
34364 2011-03-16  Alan Modra  <amodra@gmail.com>
34365
34366         PR target/45844
34367         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
34368         create invalid offset address for vsx splat insn.
34369         * config/rs6000/predicates.md (splat_input_operand): New.
34370         * config/rs6000/vsx.md (vsx_splat_*): Use it.
34371
34372 2011-03-15  Xinliang David Li  <davidxl@google.com>
34373
34374         PR c/47837
34375         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
34376         (normalize_preds): New function.
34377         (is_use_properly_guarded): Normalize def predicates.
34378
34379 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
34380
34381         PR target/46788
34382         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
34383         in the output template.
34384
34385 2011-03-15  Richard Guenther  <rguenther@suse.de>
34386
34387         PR middle-end/47650
34388         * tree-pretty-print.c (dump_function_declaration): Properly
34389         dump unprototyped and varargs function types.
34390
34391 2011-03-15  Richard Guenther  <rguenther@suse.de>
34392
34393         PR tree-optimization/13954
34394         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
34395         and friends.
34396
34397 2011-03-15  Richard Guenther  <rguenther@suse.de>
34398
34399         PR tree-optimization/48037
34400         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
34401         selects into BIT_FIELD_REFs.
34402         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
34403         vector select.
34404
34405 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
34406
34407         PR tree-optimization/48129
34408         * builtins.c (fold_builtin_snprintf): Convert to type of
34409         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
34410         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
34411
34412 2011-03-15  Richard Guenther  <rguenther@suse.de>
34413
34414         PR tree-optimization/41490
34415         * tree-ssa-dce.c (propagate_necessity): Handle returns without
34416         value but with VUSE.
34417         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
34418         return statements.
34419         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
34420         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
34421         * tree-tailcall.c (find_tail_calls): Ignore returns.
34422
34423 2011-03-15  Richard Guenther  <rguenther@suse.de>
34424
34425         PR middle-end/48031
34426         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
34427         or variable-indexed array accesses when in gimple form.
34428
34429 2011-03-15  Richard Guenther  <rguenther@suse.de>
34430
34431         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
34432
34433 2011-03-15  Alan Modra  <amodra@gmail.com>
34434
34435         PR target/48032
34436         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
34437         presume symbol_refs without a symbol_ref_decl are suitably
34438         aligned, nor other trees we may see here.  Handle anchor symbols.
34439         (legitimate_constant_pool_address_p): Comment.  Add mode param.
34440         Check cmodel=medium addresses.  Adjust all calls.
34441         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
34442         creating cmodel=medium optimized access to locals.
34443         * config/rs6000/constraints.md (R): Pass QImode to
34444         legitimate_constant_pool_address_p.
34445         * config/rs6000/predicates.md (input_operand): Pass mode to
34446         legitimate_constant_pool_address_p.
34447         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
34448         Update prototype.
34449
34450 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
34451
34452         PR target/48053
34453         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
34454         64-bit constants being loaded into registers other than GPRs such
34455         as loading 0 into a VSX register.
34456
34457 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34458
34459         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
34460
34461 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
34462
34463         PR middle-end/47917
34464         * builtins.c (fold_builtin_snprintf): New function.
34465         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
34466         (fold_builtin_4): Likewise.
34467
34468         PR middle-end/38878
34469         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
34470         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
34471         and C - X == X also strip nops from +/-/p+ operand.
34472         When optimizing -X == C, fold C to arg0's type.
34473
34474         PR debug/47946
34475         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
34476         emit it as add_AT_int instead of add_AT_unsigned.
34477
34478 2011-03-14  Tom Tromey  <tromey@redhat.com>
34479
34480         * unwind-dw2.c: Include sys/sdt.h if it exists.
34481         (_Unwind_DebugHook): Use STAP_PROBE2.
34482         * config.in, configure: Rebuild.
34483         * configure.ac: Check for sys/sdt.h.
34484
34485 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
34486
34487         * config/i386/i386.md (ROUND_FLOOR): New constant.
34488         (ROUND_CEIL): Ditto.
34489         (ROUND_TRUNC): Ditto.
34490         (ROUND_MXCSR): Ditto.
34491         (ROUND_NO_EXC): Ditto.
34492         (rint<mode>2): Use new defines instead of numerical constants.
34493         (floor<mode>2): Ditto.
34494         (ceil<mode>2): Ditto.
34495         (btrunc<mode>2): Ditto.
34496         * config/i386/i386-builtin-types.def: Define ROUND function type
34497         aliases.
34498         * config/i386/i386.c (enum ix86_builtins): Add
34499         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
34500         (struct builtin_description): Add
34501         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
34502         (ix86_expand_sse_round): New static function.
34503         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
34504         function types.
34505         (ix86_builtin_vectorized_function): Handle
34506         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
34507
34508 2011-03-14  Tom Tromey  <tromey@redhat.com>
34509
34510         * c-parser.c (c_parser_asm_string_literal): Clear
34511         warn_overlength_strings.
34512
34513 2011-03-14  Tom Tromey  <tromey@redhat.com>
34514
34515         * c-parser.c (disable_extension_diagnostics): Save
34516         warn_overlength_strings.
34517         (restore_extension_diagnostics): Restore warn_overlength_strings.
34518
34519 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
34520
34521         * BASE-VER: Change to 4.7.0.
34522
34523 2011-03-14  Richard Guenther  <rguenther@suse.de>
34524
34525         PR middle-end/48098
34526         * tree.c (build_vector_from_val): Adjust assert to requirements
34527         and reality.
34528
34529 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
34530
34531         PR bootstrap/48102
34532         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
34533
34534 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
34535
34536         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
34537         terms of target_flags_explicit. Adjust copyright year.
34538
34539         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
34540         * config/rs6000/t-freebsd: New file. Add override for
34541         LIB2FUNCS_EXTRA.
34542
34543 2011-03-13  Chris Demetriou  <cgd@google.com>
34544
34545         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
34546         (-fno-diagnostics-show-option): this, to reflect current default.
34547         (-Werror=): Update text about -fno-diagnostics-show-option.
34548
34549 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
34550
34551         PR target/48053
34552         * config/rs6000/predicates.md (easy_vector_constant_add_self,
34553         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
34554         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
34555         mode is not V2DImode or V2DFmode.
34556         (vspltis_constant): Do not handle V2DImode and V2DFmode.
34557         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
34558         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
34559         registers to 0.
34560         (movdi_internal64): Likewise.
34561
34562 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
34563
34564         PR tree-optimization/47127
34565         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
34566         parameter.
34567         (set_cloog_options): Same.
34568         (scop_to_clast): Same.
34569         (print_clast_stmt): Do not call cloog_state_malloc and
34570         cloog_state_free.
34571         (print_generated_program): Same.
34572         (gloog): Same.
34573         * graphite-clast-to-gimple.h (cloog_state): Declared.
34574         (scop_to_clast): Adjust declaration.
34575         * graphite.c (cloog_state): Defined here.
34576         (graphite_initialize): Call cloog_state_malloc.
34577         (graphite_finalize): Call cloog_state_free.
34578
34579 2011-03-11  Jason Merrill  <jason@redhat.com>
34580
34581         * attribs.c (lookup_attribute_spec): Take const_tree.
34582         * tree.h: Adjust.
34583
34584 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
34585
34586         * config/sparc/sparc.c (sparc_option_override): Use
34587         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
34588
34589 2011-03-11  Richard Guenther  <rguenther@suse.de>
34590
34591         PR tree-optimization/48067
34592         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
34593         multiplication result will be only used once on the target
34594         stmt.
34595
34596 2011-03-11  Richard Guenther  <rguenther@suse.de>
34597
34598         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
34599
34600 2011-03-11  Richard Guenther  <rguenther@suse.de>
34601
34602         PR lto/48073
34603         * tree.c (find_decls_types_r): Do not walk types only reachable
34604         from IDENTIFIER_NODEs.
34605
34606 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
34607
34608         PR middle-end/48044
34609         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
34610         all vnode->force_output nodes as needed.
34611
34612 2011-03-11  Jason Merrill  <jason@redhat.com>
34613
34614         PR c++/48069
34615         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
34616         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
34617
34618 2011-03-11  Martin Jambor  <mjambor@suse.cz>
34619
34620         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
34621         cgraph_node.
34622
34623 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
34624
34625         PR tree-optimization/48063
34626         * ipa-inline.c (cgraph_decide_inlining): Don't try to
34627         inline functions called once if !tree_can_inline_p (node->callers).
34628
34629 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
34630
34631         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
34632         extra_objs.
34633         * config/score/score3.c: Delete.
34634         * config/score/score3.h: Delete.
34635         * config/score/mul-div.S: Delete.
34636         * config/score/sfp-machine.h: Add new file.
34637         * config/score/constraints.md: Add new file.
34638         * config/score/t-score-softfp: Add new file.
34639         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
34640         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
34641         (score7_extra_constraint): Delete.
34642         (score7_option_override): Remove unused code.
34643         * config/score/score.c: Remove score3 and score5 define and code.
34644         * config/score/score.h: Remove score3 and score5 define and code.
34645         * config/score/score.md: Remove score3 template and unusual insn.
34646         * config/score/score.opt: Remove score3 and score5 options.
34647
34648 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34649
34650         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
34651         when _HPUX_SOURCE is defined.
34652         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
34653
34654 2011-03-10  Jason Merrill  <jason@redhat.com>
34655
34656         PR c++/48029
34657         * stor-layout.c (layout_type): Don't set structural equality
34658         on arrays of incomplete type.
34659         * tree.c (type_hash_eq): Handle comparing them properly.
34660
34661 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
34662
34663         PR debug/48043
34664         * config/s390/s390.c (s390_delegitimize_address): Make sure the
34665         result mode matches original rtl mode.
34666
34667 2011-03-10  Nick Clifton  <nickc@redhat.com>
34668
34669         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
34670         (andsi3, andsi3_flags): Fix timings for three operand alternative.
34671
34672 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
34673
34674         PR rtl-optimization/47866
34675         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
34676         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
34677         if target wasn't scalar.
34678         * function.c (assign_stack_temp_for_type): Assert that neither
34679         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
34680         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
34681         macro.
34682         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
34683
34684 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34685
34686         * config/s390/s390-protos.h (s390_label_align): New prototype.
34687         * config/s390/s390.c (s390_label_align): New function.
34688         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
34689
34690 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
34691
34692         PR target/47755
34693         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
34694         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
34695         (output_vec_const_move): Ditto.
34696
34697 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
34698
34699         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
34700         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
34701         * config/mips/mips.c (mips_preferred_reload_class): Make static.
34702         Change 'rclass' argument and result type to reg_class_t.
34703         (TARGET_PREFERRED_RELOAD_CLASS): Define.
34704
34705 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
34706
34707         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
34708         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
34709         (TARGET_MEMORY_MOVE_COST): Define.
34710         (avr_register_move_cost, avr_memory_move_cost): New Functions.
34711
34712 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
34713
34714         PR debug/47881
34715         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
34716         removed anything.
34717
34718         PR tree-optimization/48022
34719         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
34720         for EQ/NE_EXPR.
34721
34722 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
34723
34724         PR debug/47991
34725         * var-tracking.c (find_use_val): Return NULL for
34726         cui->sets && cui->store_p BLKmode MEMs.
34727
34728 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
34729
34730         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
34731         Remove.
34732         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
34733         xstormy16_print_operand_address): Remove.
34734         * config/stormy16/stormy16.c (xstormy16_print_operand,
34735         xstormy16_print_operand_address): Make static.
34736         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
34737
34738 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
34739
34740         PR target/47862
34741         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
34742         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
34743         before definition.
34744
34745 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
34746
34747         PR bootstrap/48000
34748         * cfgloopmanip.c (fix_bb_placements): Return immediately
34749         if FROM is BASE_LOOP's header.
34750
34751 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
34752
34753         * gimplify.c (gimplify_function_tree): Fix building calls
34754         to __builtin_return_address.
34755
34756 2011-03-07  Alan Modra  <amodra@gmail.com>
34757
34758         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
34759         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
34760         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
34761         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
34762         return_mode args.
34763         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
34764         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
34765         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
34766         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
34767         * config/rs6000/rs6000.c
34768         (rs6000_elf_end_indicate_exec_stack): Rename to..
34769         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
34770         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
34771         (rs6000_file_start): ..here.
34772         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
34773         file scope variables.
34774         (call_ABI_of_interest): New function.
34775         (init_cumulative_args): Set above vars when function return value
34776         is a float, vector, or small struct.
34777         (rs6000_function_arg_advance_1): Likewise for function args.
34778         (rs6000_va_start): Set rs6000_passes_float if variable arg function
34779         references float args.
34780
34781 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
34782
34783         * doc/cfg.texi: Remove "See" before @ref.
34784         * doc/invoke.texi: Likewise.
34785
34786 2011-03-05  Jason Merrill  <jason@redhat.com>
34787
34788         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
34789
34790 2011-03-05  Anthony Green  <green@moxielogic.com>
34791
34792         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
34793
34794 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
34795
34796         PR rtl-optimization/47899
34797         * cfgloopmanip.c (fix_bb_placements): Fix first argument
34798         to flow_loop_nested_p when moving the loop upward.
34799
34800 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
34801
34802         PR target/47719
34803         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
34804
34805 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
34806
34807         PR tree-optimization/47967
34808         * ipa-cp.c (build_const_val): Return NULL instead of creating
34809         VIEW_CONVERT_EXPR for mismatching sizes.
34810         (ipcp_create_replace_map): Return NULL if build_const_val failed.
34811         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
34812         give up on versioning.
34813
34814 2011-03-05  Alan Modra  <amodra@gmail.com>
34815
34816         PR target/47986
34817         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
34818         full cmodel medium/large lo_sum + high addresses.
34819
34820 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34821
34822         * config/s390/s390.c (s390_decompose_address): Reject non-literal
34823         pool references in UNSPEC_LTREL_OFFSET.
34824
34825 2011-03-04  Jan Hubicka  <jh@suse.cz>
34826
34827         PR lto/47497
34828         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
34829         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
34830         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
34831         Add node pointers.
34832         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
34833         cgraph_add_thunk): Add node pointers.
34834         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
34835         associated to right node.
34836         (input_node): Update use of cgraph_same_body_alias
34837         and cgraph_add_thunk.
34838
34839 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
34840
34841         * config/i386/i386.opt (mprefer-avx128): New flag.
34842         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
34843         modes when the flag -mprefer-avx128 is on.
34844
34845 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
34846
34847         * dwarf2out.c (compare_loc_operands): Fix address handling.
34848
34849 2011-03-04  Alan Modra  <amodra@gmail.com>
34850
34851         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
34852
34853 2011-03-04  Richard Guenther  <rguenther@suse.de>
34854
34855         PR middle-end/47968
34856         * expmed.c (extract_bit_field_1): Prefer vector modes that
34857         vec_extract patterns can handle.
34858
34859 2011-03-04  Richard Guenther  <rguenther@suse.de>
34860
34861         PR middle-end/47975
34862         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
34863
34864 2011-03-04  Richard Henderson  <rth@redhat.com>
34865
34866         * explow.c (emit_stack_save): Remove 'after' parameter.
34867         (emit_stack_restore): Likewise.
34868         * expr.h: Update to match.
34869         * builtins.c, calls.c, stmt.c: Likewise.
34870         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
34871         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
34872         * function.c (expand_function_end): Insert the emit_stack_save
34873         sequence before parm_birth_insn instead of after.
34874
34875 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
34876
34877         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
34878         (ssse3_pmaddubsw128): Ditto.
34879         (ssse3_pmaddubsw): Ditto.
34880
34881 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
34882
34883         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
34884
34885 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
34886
34887         PR c/47963
34888         * gimplify.c (omp_add_variable): Only call omp_notice_variable
34889         on TYPE_SIZE_UNIT if it is a DECL.
34890
34891         PR debug/47283
34892         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
34893         first operand is not is_gimple_mem_ref_addr, try to fold it.
34894         If the operand still isn't is_gimple_mem_ref_addr, clear
34895         MEM_EXPR on op0.
34896
34897 2011-03-03  Richard Guenther  <rguenther@suse.de>
34898
34899         PR middle-end/47283
34900         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
34901         match comment.
34902         (refs_may_alias_p_1): For release branches return true if
34903         we are confused by our input.
34904
34905 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34906
34907         * config/s390/s390.c (s390_function_value): Rename to ...
34908         (s390_function_and_libcall_value): ... this.
34909         (s390_function_value): New function.
34910         (s390_libcall_value): New function.
34911         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
34912         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
34913         target macro definitions.
34914         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
34915
34916 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
34917
34918         * config/i386/freebsd64.h (CC1_SPEC): Define.
34919         * config/i386/linux64.h (CC1_SPEC): Define.
34920         * config/i386/x86-64.h (CC1_SPEC): Don't define.
34921
34922 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
34923
34924         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
34925         Remove.
34926         * config/stormy16/stormy16.c: Include reload.h.
34927         (xstormy16_memory_move_cost): New function.
34928         (TARGET_MEMORY_MOVE_COST): Define.
34929
34930 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
34931
34932         PR rtl-optimization/47925
34933         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
34934         with side effects.  Remove the more-specific check for volatile asms.
34935
34936 2011-03-02  Alan Modra  <amodra@gmail.com>
34937
34938         PR target/47935
34939         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
34940         toc relative addresses for valid offsets.
34941
34942 2011-03-01  Richard Guenther  <rguenther@suse.de>
34943
34944         PR tree-optimization/47890
34945         * tree-vect-loop.c (get_initial_def_for_induction): Set
34946         related stmt properly.
34947
34948 2011-03-01  Richard Guenther  <rguenther@suse.de>
34949
34950         PR lto/47924
34951         * lto-streamer.c (lto_record_common_node): Also register
34952         the canonical type.
34953
34954 2011-03-01  Richard Guenther  <rguenther@suse.de>
34955
34956         PR lto/46911
34957         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
34958         Do not stream DECL_ABSTRACT_ORIGIN.
34959         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
34960         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
34961         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
34962         Do not stream DECL_ABSTRACT_ORIGIN.
34963         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
34964         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
34965
34966 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
34967
34968         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
34969         FUNCTION_VALUE_REGNO_P): Remove.
34970         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
34971         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
34972         Add 'outgoing' argument.
34973         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
34974         function.
34975         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
34976         TARGET_FUNCTION_VALUE_REGNO_P): Define.
34977
34978 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
34979
34980         PR debug/28047
34981         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
34982         (lookup_filename): Likewise.
34983         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
34984
34985 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
34986             Jakub Jelinek  <jakub@redhat.com>
34987
34988         PR middle-end/47893
34989         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
34990         (assign_stack_local_1): Change last argument type to int.
34991         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
34992         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
34993         don't record padding space into frame_space_list nor use those areas.
34994         (assign_stack_local): Adjust caller.
34995         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
34996         of assign_stack_local, pass 0 as last argument.
34997         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
34998         callers.
34999
35000 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
35001
35002         PR debug/47283
35003         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
35004         Use target address_mode and pointer_mode hooks instead of hardcoded
35005         Pmode and ptr_mode.  Handle some simple cases of extending if
35006         POINTERS_EXTEND_UNSIGNED < 0.
35007         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
35008         Call convert_debug_memory_address.
35009         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
35010         convert_debug_memory_address.
35011
35012         PR middle-end/46790
35013         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
35014         * configure: Regenerated.
35015         * config.in: Regenerated.
35016         * varasm.c (default_function_section): Return NULL
35017         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
35018
35019 2011-02-28  Martin Jambor  <mjambor@suse.cz>
35020
35021         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
35022         the description to match the printed values.
35023
35024 2011-02-28  Richard Guenther  <rguenther@suse.de>
35025
35026         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
35027         of the copied scope tree.
35028
35029 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35030
35031         * doc/extend.texi (Function Attributes): Avoid deeply (and
35032         wrongly) nested tables.
35033
35034 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
35035
35036         PR middle-end/47903
35037         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
35038         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
35039         r isn't op0 nor op1.
35040
35041 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
35042
35043         * config/avr/avr.md: Remove magic comment for emacs.
35044
35045 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
35046
35047         PR target/45261
35048         * config/avr/avr.c (avr_option_override): Use error on bad options.
35049         (avr_help): New function.
35050         (TARGET_HELP): Define.
35051
35052 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
35053
35054         PR target/42240
35055         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
35056         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
35057
35058 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
35059
35060         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
35061         (ARM Options): Ditto.
35062         (i386 and x86-64 Options): Ditto.
35063         (RX Options): Ditto.
35064         (SPARC Options): Ditto.
35065
35066 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
35067
35068         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
35069         FreeBSD 6 and later.  Generally use cpu generic.
35070
35071 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
35072
35073         * doc/cpp.texi: Update copyright years.
35074
35075 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
35076
35077         PR target/46898
35078         * config/lm32/lm32.md (ashrsi3): Added needed variable.
35079
35080 2011-02-25  Jon Beniston  <jon@beniston.com>
35081
35082         PR target/46898
35083         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
35084         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
35085         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
35086         (lm32_block_move_inline): Add type cast to remove warning.
35087         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
35088         (gen_int_relational): Move declarations to start of function.
35089
35090 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
35091
35092         PR tree-optimization/45470
35093         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
35094         can throw internally only.
35095         * tree-vect-stmts.c (vectorizable_call): Likewise.
35096
35097 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
35098
35099         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
35100         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
35101         * config/stormy16/stormy16-protos.h
35102         (xstormy16_preferred_reload_class): Remove.
35103         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
35104         static. Change 'rclass' argument and return type to reg_class_t.
35105         (TARGET_PREFERRED_RELOAD_CLASS,
35106         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
35107
35108 2011-02-24  Richard Guenther  <rguenther@suse.de>
35109
35110         * lto-streamer-in.c (input_bb): Do not find referenced vars
35111         in debug statements.
35112
35113 2011-02-23  Jason Merrill  <jason@redhat.com>
35114
35115         * common.opt (fabi-version): Document v5 and v6.
35116
35117 2011-02-23  Richard Guenther  <rguenther@suse.de>
35118
35119         PR tree-optimization/47849
35120         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
35121
35122 2011-02-23  Jie Zhang  <jie@codesourcery.com>
35123
35124         * opts-common.c (decode_cmdline_option): Print empty string
35125         argument as "" in decoded->orig_option_with_args_text.
35126         * gcc.c (execute): Print empty string argument as ""
35127         in the verbose output.
35128         (do_spec_1): Keep empty string argument.
35129
35130 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
35131
35132         * config.gcc: Declare score-* and crx-* obsolete.
35133
35134 2011-02-23  Jie Zhang  <jie@codesourcery.com>
35135
35136         PR rtl-optimization/47763
35137         * web.c (web_main): Ignore naked clobber when replacing register.
35138
35139 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
35140
35141         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
35142         Remove.
35143
35144 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
35145
35146         PR doc/47848
35147         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
35148
35149 2011-02-22  Mike Stump  <mikestump@comcast.net>
35150
35151         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
35152         assembler.
35153         * configure: Regenerate.
35154
35155 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
35156
35157         PR rtl-optimization/46002
35158         * ira-color.c (update_copy_costs): Change class intersection
35159         test to reg_class_contents[] test of 'hard_regno'.
35160
35161 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
35162
35163         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
35164         than Driver option.
35165         * config/hpux11.opt (mt): Likewise.
35166         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
35167         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
35168         * config/vax/elf.opt (mno-asm-pic): Likewise.
35169         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
35170
35171 2011-02-21  Mike Stump  <mikestump@comcast.net>
35172
35173         PR target/47822
35174         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
35175         tree so we can get save the type.
35176         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
35177         for CFString instead of trying to use past the end of the builtins.
35178         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
35179         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
35180         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
35181         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
35182         Rename to darwin_builtin_cfstring.
35183         (darwin_init_cfstring_builtins): Return the built type.
35184
35185 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
35186
35187         PR target/47840
35188         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
35189         (_mm256_insert_epi64): Use _mm_insert_epi64.
35190
35191 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
35192
35193         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35194         * config/stormy16/stormy16-protos.h
35195         (xstormy16_mode_dependent_address_p): Remove.
35196         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
35197         Make static. Change return type to bool. Change argument type to
35198         const_rtx. Remove dead code.
35199         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35200
35201 2011-02-21  Richard Guenther  <rguenther@suse.de>
35202
35203         PR lto/47820
35204         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
35205         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
35206         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
35207         TUs context.
35208         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
35209         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
35210
35211 2011-02-20  Richard Guenther  <rguenther@suse.de>
35212
35213         PR lto/47822
35214         * tree.c (free_lang_data_in_decl): Clean builtins from
35215         the TU decl BLOCK_VARS.
35216
35217 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
35218
35219         PR debug/47620
35220         PR debug/47630
35221         * haifa-sched.c (fix_tick_ready): Skip tick computation
35222         for debug insns.
35223
35224 2011-02-19  Richard Guenther  <rguenther@suse.de>
35225
35226         PR lto/47647
35227         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
35228         Remove lazy BLOCK_VARS streaming.
35229         (lto_input_ts_block_tree_pointers): Likewise.
35230         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
35231
35232 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
35233
35234         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
35235
35236 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
35237
35238         * config/i386/biarch32.h, config/i386/mach.h,
35239         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
35240
35241 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
35242
35243         PR target/47800
35244         * config/i386/i386.md (peephole2 for shift and plus): Use
35245         operands[1] original mode in the first insn.
35246
35247 2011-02-18  Mike Stump  <mikestump@comcast.net>
35248
35249         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
35250
35251 2011-02-18  Jan Hubicka  <jh@suse.cz>
35252
35253         PR middle-end/47788
35254         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
35255         to zero when the function is not inlinable at all.
35256
35257 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35258
35259         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
35260         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
35261         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
35262         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
35263         * config/pa/t-pa64: Likewise.
35264         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
35265
35266 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
35267
35268         PR driver/47787
35269         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
35270
35271 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35272
35273         PR target/47792
35274         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
35275
35276 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
35277
35278         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
35279         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
35280         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
35281         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
35282         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
35283         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
35284         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
35285         m32r_load_postinc_p, m32r_store_preinc_predec_p,
35286         m32r_legitimate_address_p): New functions.
35287         * config/m32r/constraints.md (constraint "S"): Don't use
35288         STORE_PREINC_PREDEC_P.
35289         (constraint "U"): Don't use LOAD_POSTINC_P.
35290
35291 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
35292
35293         PR rtl-optimization/46178
35294         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
35295         compute ira_hard_regno_cover_class[].
35296
35297 2011-02-18  Richard Guenther  <rguenther@suse.de>
35298
35299         PR lto/47798
35300         * lto-streamer.h (lto_global_var_decls): Declare.
35301         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
35302         statics for global var processing.
35303
35304 2011-02-18  Richard Guenther  <rguenther@suse.de>
35305
35306         PR tree-optimization/47737
35307         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
35308         edge dominance check.
35309
35310 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
35311
35312         PR debug/47780
35313         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
35314         avoid invalid rtx sharing.
35315
35316 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
35317
35318         * doc/cpp.texi (Obsolete Features): Add background on the
35319         origin of assertions.
35320
35321 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
35322
35323         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
35324         objc_abi == 2.
35325         * config/darwin.c (output_objc_section_asm_op): Added support for
35326         ABI v1 and v2.
35327         (is_objc_metadata): New.
35328         (darwin_objc2_section): New.
35329         (darwin_objc1_section): New.
35330         (machopic_select_section): Added support for ABI v1 and v2.
35331         (darwin_emit_objc_zeroed): New.
35332         (darwin_output_aligned_bss): Detect objc metadata and treat it
35333         appropriately.
35334         (darwin_asm_output_aligned_decl_common): Same.
35335         (darwin_asm_output_aligned_decl_local): Same.
35336         * config/darwin-sections.def: Updated for ABI v1 and v2.
35337         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
35338         compiling Objective-C code for the NeXT runtime, default to using
35339         ABI version 0 for 32-bit, and version 2 for 64-bit.
35340
35341 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
35342
35343         * common.opt (optimize_fast): New Variable.
35344         * opts.c (default_options_optimization): Use opts->x_optimize_fast
35345         instead of local variable ofast.
35346
35347 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
35348
35349         * doc/invoke.texi (fobjc-abi-version): Documented.
35350         (fobjc-nilcheck): Documented.
35351         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
35352         version.
35353
35354 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
35355
35356         PR driver/47390
35357         * common.opt (export-dynamic): New Driver option.
35358         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
35359
35360 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
35361
35362         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
35363
35364 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
35365             Jan Hubicka  <jh@suse.cz>
35366
35367         PR debug/47106
35368         PR debug/47402
35369         * cfgexpand.c (account_used_vars_for_block): Remove.
35370         (estimated_stack_frame_size): Use referenced vars.
35371         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
35372         that were referenced in the original function.  Test src_fn
35373         rather than cfun.  Drop redundant get_var_ann.
35374         (setup_one_parameter): Drop redundant get_var_ann.
35375         (declare_return_variable): Likewise.
35376         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
35377         (copy_arguments_for_versioning): Drop redundant get_var_ann.
35378         * ipa-inline.c (compute_inline_parameters): Do not compute
35379         disregard_inline_limits here.
35380         (compute_inlinable_for_current, pass_inlinable): New.
35381         (pass_inline_parameters): Require PROP_referenced_vars.
35382         * cgraphunit.c (cgraph_process_new_functions): Don't run
35383         compute_inline_parameters explicitly unless function is in SSA form.
35384         (cgraph_analyze_function): Set .disregard_inline_limits.
35385         * tree-sra.c (convert_callers): Compute inliner parameters
35386         only for functions already in SSA form.
35387
35388 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
35389
35390         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
35391         -mlittle-endian-data.
35392
35393 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
35394
35395         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
35396         -mno-fpu, not -fpu and -no-fpu.
35397         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
35398         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
35399
35400 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
35401
35402         PR target/43653
35403         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
35404         input reload with PLUS RTX.
35405
35406 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
35407
35408         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
35409         of InverseVar(MDMX).
35410
35411 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
35412
35413         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
35414         --m4-340.
35415
35416 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
35417
35418         * config/mn10300/mn10300.opt (mno-crt0): New.
35419
35420 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
35421
35422         * config/m68k/uclinux.opt (static-libc): New Driver option.
35423
35424 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
35425
35426         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
35427
35428 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
35429
35430         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
35431         %{muser-extend-enabled}.
35432
35433 2011-02-16  Richard Guenther  <rguenther@suse.de>
35434
35435         PR tree-optimization/47738
35436         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
35437         the TODO from tree_predictive_commoning.
35438
35439 2011-02-15  Jeff Law  <law@redhat.com>
35440
35441         Revert
35442         2011-01-25  Jeff Law  <law@redhat.com>
35443
35444         PR rtl-optimization/37273
35445         * ira-costs.c (scan_one_insn): Detect constants living in memory and
35446         handle them like argument loads from stack slots.  Do not double
35447         count memory for memory constants and argument loads from stack slots.
35448
35449 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
35450
35451         PR target/47755
35452         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
35453         mode for vector constants.  Remove code that checks for TImode.
35454
35455 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
35456
35457         PR debug/47106
35458         PR debug/47402
35459         * cgraph.h (compute_inline_parameters): Return void.
35460         * ipa-inline.c (compute_inline_parameters): Adjust.
35461
35462 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
35463
35464         PR debug/47106
35465         PR debug/47402
35466         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
35467         rather than decl.
35468         * cfgexpand.c (estimated_stack_frame_size): Likewise.
35469         * ipa-inline.c (compute_inline_parameters): Adjust.
35470
35471 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
35472
35473         PR debug/47106
35474         PR debug/47402
35475         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
35476         Adjust all users.  Pass FN to...
35477         * tree-flow-inline.h (first_referenced_var): ... this.  Add
35478         fn argument.
35479         * ipa-struct-reorg.c: Adjust.
35480         * tree-dfa.c: Adjust.
35481         * tree-into-ssa.c: Adjust.
35482         * tree-sra.c: Adjust.
35483         * tree-ssa-alias.c: Adjust.
35484         * tree-ssa-live.c: Adjust.
35485         * tree-ssa.c: Adjust.
35486         * tree-ssanames.c: Adjust.
35487         * tree-tailcall.c: Adjust.
35488
35489 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
35490
35491         PR debug/47106
35492         PR debug/47402
35493         * tree-flow.h (referenced_var_lookup): Add fn parameter.
35494         Adjust all callers.
35495         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
35496         * tree-flow-inline.h: Adjust.
35497         * gimple-pretty-print.c: Adjust.
35498         * tree-into-ssa.c: Adjust.
35499         * tree-ssa.c: Adjust.
35500         * cfgexpand.c: Adjust.
35501
35502 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
35503
35504         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
35505         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35506         (EXTRA_CONSTRAINT): Delete.
35507         * config/iq2000/constraints.md: New file.
35508         * config/iq2000/iq2000.md: Include it.
35509         (define_insn ""): Delete.
35510         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
35511         unsupported constraint letters from patterns.
35512         (call_value, call_value_internal1): Likewise.
35513         (call_value_multiple_internal1): Likewise.
35514
35515 2011-02-15  Nick Clifton  <nickc@redhat.com>
35516
35517         * config/mn10300/mn10300.c: Include tm-constrs.h.
35518         (struct liw_data): New data structure describing an LIW candidate
35519         instruction.
35520         (extract_bundle): Use struct liw_data.  Allow small integer
35521         operands for some instructions.
35522         (check_liw_constraints): Use struct liw_data.  Remove swapped
35523         parameter.  Add comments describing the checks.  Fix bug when
35524         assigning the source of liw1 to the source of liw2.
35525         (liw_candidate): Delete.  Code moved into extract_bundle.
35526         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
35527         before swapping.
35528         * config/mn10300/predicates.md (liw_operand): New predicate.
35529         Allows registers and small integer constants.
35530         * config/mn10300/constraints.md (O): New constraint.  Accetps
35531         integers in the range -8 to +7 inclusive.
35532         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
35533         for moving a small integer into a register.  Give this alternative
35534         LIW attributes.
35535         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
35536         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
35537         using the J,K,L and M constraints,
35538         (liw): Remove SI mode on second operands to allow for HI and QI
35539         mode values.
35540         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
35541         instruction.
35542
35543 2011-02-15  Richard Guenther  <rguenther@suse.de>
35544
35545         PR tree-optimization/47743
35546         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
35547         for a non-type-compatible VN lookup bail out.
35548
35549 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
35550
35551         * config/fr30/constraints.md: New file.
35552         * config/fr30/fr30.md: Include it.
35553         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
35554         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35555         (EXTRA_CONSTRAINT): Delete.
35556
35557 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
35558
35559         * config/frv/constraints.md: New file.
35560         * config/frv/predicates.md: Include it.
35561         * config/frv/frv.c (reg_class_from_letter): Delete.
35562         (frv_option_override): Don't initialize it.
35563         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
35564         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
35565         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
35566         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
35567         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
35568         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35569         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
35570         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
35571         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
35572         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
35573         (REG_CLASS_FROM_CONSTRAINT): Delete.
35574
35575 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
35576
35577         PR middle-end/47581
35578         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
35579         if frame size is 0 in a leaf function.
35580
35581 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35582
35583         PR pch/14940
35584         * config/alpha/host-osf.c: New file.
35585         * config/alpha/x-osf: New file.
35586         * config.host (alpha*-dec-osf*): Use it.
35587
35588 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
35589
35590         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35591         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
35592         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
35593         (rx_mode_dependent_address_p): ...this. Make static. Change argument
35594         type to const_rtx.
35595         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35596
35597 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
35598
35599         * config/stormy16/constraints.md: New file.
35600         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
35601         Use satisfies_constraint_Q and satisfies_constraint_R.
35602         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
35603         Delete.
35604         (xstormy16_legitiamte_address_p): Declare.
35605         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
35606         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35607         (EXTRA_CONSTRAINT): Delete.
35608         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
35609         Un-staticize.
35610         (xstormy16_extra_constraint_p): Delete.
35611
35612 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
35613
35614         PR tree-optimization/46494
35615         * loop-unroll.c (split_edge_and_insert): Adjust comment.
35616         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
35617         (pass_rtl_loop_done): Add TODO_verify_flow.
35618         * fwprop.c (pass_rtl_fwprop): Likewise.
35619         * modulo-sched.c (pass_sms): Likewise.
35620         * tree-ssa-dom.c (pass_dominator): Likewise.
35621         * tree-ssa-loop-ch.c (pass_ch): Likewise.
35622         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
35623         (pass_tree_loop_done): Likewise.
35624         * tree-ssa-pre.c (execute_pre): Likewise.
35625         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
35626         * tree-ssa-sink.c (pass_sink_code): Likewise.
35627         * tree-vrp.c (pass_vrp): Likewise.
35628
35629 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
35630
35631         * config/v850/constraints.md: New file.
35632         * config/v850/v850.md: Include it.
35633         * config/v850/predicates.md (reg_or_0_operand): Use
35634         satisfies_constraint_G.
35635         (special_symbolref_operand): Use satisfies_constraint_K.
35636         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
35637         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
35638         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
35639         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
35640         (EXTRA_CONSTRAINT): Delete.
35641         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
35642         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
35643         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
35644
35645 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
35646
35647         PR target/47696
35648         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
35649         description.
35650
35651 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
35652
35653         * config/mcore/constraints.md: New file.
35654         * config/mcore/mcore.md: Include it.
35655         * config/mcore/mcore.c (reg_class_from_letter): Delete.
35656         * config/mcore/mcore.h (reg_class_from_letter): Delete.
35657         (REG_CLASS_FROM_LETTER): Delete.
35658         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
35659         insn_const_int_ok_for_constraint.
35660         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
35661         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
35662         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35663         (EXTRA_CONSTRAINT): Delete.
35664
35665 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35666
35667         PR ada/41929
35668         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
35669         (IS_SIGHANDLER): Define.
35670         (sparc64_is_sighandler): New function, split off from
35671         sparc64_fallback_frame_state.
35672         (sparc_is_sighandler): New function, split off from
35673         sparc_fallback_frame_state.
35674         (sparc64_fallback_frame_state): Merge with ...
35675         (sparc_fallback_frame_state): ... this into ...
35676         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
35677         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
35678         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
35679         stack instead of hardcoded offsets.
35680
35681 2011-02-14  Andriy Gapon  <avg@freebsd.org>
35682
35683         PR target/45808
35684         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
35685
35686 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35687
35688         * configure: Regenerate.
35689
35690 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
35691
35692         PR driver/45731
35693         * gcc.c (asm_options): Correct spec matching --target-help.
35694
35695 2011-02-12  Martin Jambor  <mjambor@suse.cz>
35696
35697         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
35698         to gimple call error.
35699
35700 2011-02-12  Mike Stump  <mikestump@comcast.net>
35701
35702         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
35703         comments in backslash regions.
35704
35705 2011-02-12  Mike Stump  <mikestump@comcast.net>
35706             Jakub Jelinek  <jakub@redhat.com>
35707             Iain Sandoe  <iains@gcc.gnu.org>
35708
35709         PR target/47324
35710         * dwarf2out.c (output_cfa_loc): When required, apply the
35711         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
35712         (output_loc_sequence): Likewise.
35713         (output_loc_operands_raw): Likewise.
35714         (output_loc_sequence_raw): Likewise.
35715         (output_cfa_loc): Likewise.
35716         (output_loc_list): Suppress register number adjustment when
35717         calling output_loc_sequence()
35718         (output_die): Likewise.
35719
35720 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
35721
35722         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
35723         Remove macros.
35724         * config/xtensa/xtensa.c (xtensa_register_move_cost,
35725         xtensa_memory_move_cost): New functions.
35726         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
35727
35728 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
35729
35730         PR lto/47225
35731         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
35732         in the current directory.
35733         * configure: Rebuilt.
35734
35735 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
35736
35737         * config/darwin.c (darwin_override_options): Add a hunk missed
35738         from the commit of r168571.  Trim comment line lengths and
35739         correct indents of the preceding block.
35740
35741 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
35742
35743         * gcc.c (driver_handle_option): Concatenate the argument to -F with
35744         the switch.
35745
35746 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
35747
35748         * common.opt (nostartfiles): New Driver option.
35749
35750 2011-02-11  Xinliang David Li  <davidxl@google.com>
35751
35752         PR tree-optimization/47707
35753         * tree-chrec.c (convert_affine_scev): Keep type precision.
35754
35755 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
35756
35757         PR tree-optimization/47420
35758         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
35759
35760 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
35761
35762         PR rtl-optimization/47614
35763         * rtl.h (check_for_inc_dec): Declare.
35764         * dse.c (check_for_inc_dec): Externalize...
35765         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
35766         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
35767
35768 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
35769
35770         PR driver/47678
35771         * gcc.c (main): Do not compile inputs if there were errors in
35772         option handling.
35773         * opts-common.c (read_cmdline_option): Check for wrong language
35774         after other error checks.
35775
35776 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
35777
35778         * cgraph.c: Fix comment typos.
35779         * cgraph.h: Likewise.
35780         * cgraphunit.c: Likewise.
35781         * ipa-cp.c: Likewise.
35782         * ipa-inline.c: Likewise.
35783         * ipa-prop.c: Likewise.
35784         * ipa-pure-const.c: Likewise.
35785         * ipa-ref.c: Likewise.
35786         * ipa-reference.c: Likewise.
35787
35788 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
35789
35790         PR debug/47684
35791         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
35792
35793 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35794
35795         PR testsuite/47400
35796         * doc/sourcebuild.texi (Require Support): Document
35797         dg-require-ascii-locale.
35798
35799 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
35800
35801         * doc/lto.texi (Write summary): Fix missing parentheses.
35802
35803 2011-02-10  DJ Delorie  <dj@redhat.com>
35804
35805         * config/m32c/m32c.c (m32c_option_override): Disable
35806         -fcombine-stack-adjustments until flag value tracking and compare
35807         optimization can be rewritten.
35808
35809 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
35810
35811         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
35812         PROCESSOR_POWER7.
35813         (PROCESSOR_DEFAULT64): Likewise.
35814
35815 2011-02-10  Richard Henderson  <rth@redhat.com>
35816
35817         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
35818         change from 2011-02-03.
35819         * config/rx/rx.c (flags_from_code): Likewise.
35820         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
35821         is valid, n/pz otherwise.
35822         (rx_select_cc_mode): Return CCmode if Y is not zero.
35823
35824 2011-02-10  Richard Guenther  <rguenther@suse.de>
35825
35826         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
35827
35828 2011-02-10  Richard Guenther  <rguenther@suse.de>
35829
35830         PR tree-optimization/47677
35831         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
35832
35833 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
35834
35835         PR target/47665
35836         * combine.c (make_compound_operation): Only change shifts into
35837         multiplication for SCALAR_INT_MODE_P.
35838
35839 2011-02-10  Jie Zhang  <jie@codesourcery.com>
35840
35841         PR testsuite/47622
35842         Revert
35843         2011-02-05  Jie Zhang  <jie@codesourcery.com>
35844         PR debug/42631
35845         * web.c (entry_register): Don't clobber the number of the
35846         first uninitialized reference in used[].
35847
35848 2011-02-09  Richard Guenther  <rguenther@suse.de>
35849
35850         PR tree-optimization/47664
35851         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
35852         all edges again.
35853
35854 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
35855
35856         PR target/46481
35857         PR target/47032
35858         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
35859         PROCESSOR_POWER7.
35860         (PROCESSOR_DEFAULT64): Same.
35861         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
35862
35863 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35864
35865         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
35866
35867 2011-02-09  Martin Jambor  <mjambor@suse.cz>
35868
35869         PR middle-end/45505
35870         * tree-sra.c (struct access): New flags grp_scalar_read and
35871         grp_scalar_write.  Changed description of assignment read and write
35872         flags.
35873         (dump_access): Dump new flags, reorder all of them.
35874         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
35875         to detect multiple scalar reads.
35876         (analyze_access_subtree): Use the new scalar read write flags instead
35877         of the old flags.  Adjusted comments.
35878
35879 2011-02-08  DJ Delorie  <dj@redhat.com>
35880
35881         PR target/47548
35882         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
35883         patterns.
35884
35885 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
35886
35887         * config/m68k/uclinux.opt: New.
35888         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
35889
35890 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
35891
35892         * config/cris/elf.opt (sim): New Driver option.
35893
35894 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
35895
35896         * config/xtensa/elf.opt: New.
35897         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
35898
35899 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
35900
35901         * config/vax/elf.opt: New.
35902         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
35903
35904 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
35905
35906         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
35907
35908 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
35909
35910         * config/gnu-user.opt: New.
35911         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
35912         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
35913         *-*-uclinux*): Use gnu-user.opt.
35914
35915 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
35916
35917         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
35918         * config/i386/gnu.h (CPP_SPEC): Likewise.
35919
35920 2011-02-08  Ian Lance Taylor  <iant@google.com>
35921
35922         * common.opt (fcx-limited-range): Add SetByCombined flag.
35923         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
35924         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
35925         (fassociative-math, freciprocal-math): Likewise.
35926         (funsafe-math-optimizations): Likewise.
35927         * opth-gen.awk: Handle SetByCombined.
35928         * optc-gen.awk: Likewise.
35929         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
35930         (set_unsafe_math_optimizations_flags): Likewise.
35931         * doc/options.texi (Option properties): Document SetByCombined.
35932
35933 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
35934
35935         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
35936         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
35937         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
35938         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
35939         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
35940
35941 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
35942
35943         PR tree-optimization/46834
35944         PR tree-optimization/46994
35945         PR tree-optimization/46995
35946         * graphite-sese-to-poly.c (used_outside_reduction): New.
35947         (detect_commutative_reduction): Call used_outside_reduction.
35948         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
35949         translate_scalar_reduction_to_array only when at least one
35950         loop-phi/close-phi tuple has been detected.
35951
35952 2011-02-08  Richard Guenther  <rguenther@suse.de>
35953
35954         PR middle-end/47639
35955         * tree-vect-generic.c (expand_vector_operations_1): Update
35956         stmts here ...
35957         (expand_vector_operations): ... not here.  Cleanup EH info
35958         and the CFG if required.
35959
35960 2011-02-08  Richard Guenther  <rguenther@suse.de>
35961
35962         PR tree-optimization/47641
35963         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
35964         require type compatibility.
35965
35966 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35967
35968         * gimple-low.c (lower_function_body): Don't remove the location of
35969         the return statement here.
35970         (lower_gimple_return): Do it here instead but only if the return
35971         statement is actually used twice.
35972
35973 2011-02-08  Richard Guenther  <rguenther@suse.de>
35974
35975         PR tree-optimization/47632
35976         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
35977         unused up_to_stmt parameter, return whether cfg-cleanup is
35978         necessary, remove EH info properly.
35979         (forward_propagate_into_gimple_cond): Adjust caller.
35980         (forward_propagate_into_cond): Likewise.
35981         (forward_propagate_comparison): Likewise.
35982         (tree_ssa_forward_propagate_single_use_vars): Make
35983         forward_propagate_comparison case similar to the two others.
35984
35985 2011-02-08  Nick Clifton  <nickc@redhat.com>
35986
35987         * config/mn10300/mn10300.opt (mliw): New command line option.
35988         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
35989         (liw_bundling): New automaton.
35990         (liw): New attribute.
35991         (liw_op): New attribute.
35992         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
35993         (movsi_internal): Add LIW attributes.
35994         (andsi3): Likewise.
35995         (iorsi3): Likewise.
35996         (xorsi3): Likewise.
35997         (addsi3): Separate register and immediate alternatives.
35998         Add LIW attributes.
35999         (subsi3): Likewise.
36000         (cmpsi): Likewise.
36001         (aslsi3): Likewise.
36002         (lshrsi3): Likewise.
36003         (ashrsi3): Likewise.
36004         (liw): New pattern.
36005         * config/mn10300/mn10300.c (liw_op_names): New
36006         (mn10300_print_operand): Handle 'W' operand descriptor.
36007         (extract_bundle): New function.
36008         (check_liw_constraints): New function.
36009         (liw_candidate): New function.
36010         (mn10300_bundle_liw): New function.
36011         (mn10300_reorg): New function.
36012         (TARGET_MACHINE_DEPENDENT_REORG): Define.
36013         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
36014         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
36015         __LIW__ or __NO_LIW__.
36016         * doc/invoke.texi: Describe the -mliw command line option.
36017
36018 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36019
36020         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
36021         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
36022         pthread_mutex_unlock): Remove.
36023         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
36024         * config/pa/t-pa64: Likewise.
36025         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
36026         shared libc if not linking against libpthread.
36027         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36028
36029 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
36030
36031         PR target/47558
36032         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
36033         on 10.6 and later to ensure that we always use the unwinder from
36034         the system.  Only add -no_compact_unwind when tarteting darwin
36035         10.6 or later.
36036
36037 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
36038
36039         PR target/46997
36040         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
36041         (vec_interleave_lowv2sf): Ditto.
36042         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
36043         (vec_extract_oddv2sf): Ditto.
36044
36045 2011-02-07  Mike Stump  <mikestump@comcast.net>
36046
36047         PR target/42333
36048         Add __ieee_divdc3 entry point.
36049         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
36050         entry point.
36051         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
36052         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
36053         * config/darwin.c (darwin_rename_builtins): Add.
36054         * config/darwin-protos.h (darwin_rename_builtins): Add.
36055
36056 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
36057
36058         PR target/47636
36059         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
36060         for the condition.
36061
36062 2011-02-07  Mike Stump  <mikestump@comcast.net>
36063
36064         * config/darwin.opt (mmacosx-version-min): Update default OS version.
36065
36066 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
36067
36068         PR target/47534
36069         * config/avr/libgcc.S (exit): Move .endfunc
36070
36071 2011-02-07  Richard Guenther  <rguenther@suse.de>
36072
36073         PR tree-optimization/47615
36074         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
36075         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
36076         (run_scc_vn): Initialize it.
36077         (visit_reference_op_load): Use it.
36078         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
36079
36080 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36081
36082         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
36083         DImode trapping arithmetic libfuncs.
36084
36085 2011-02-07  Richard Guenther  <rguenther@suse.de>
36086
36087         PR tree-optimization/47621
36088         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
36089         two duplicates ...
36090         (execute_update_addresses_taken): ... here.  Make it more
36091         conservative in what we accept.
36092
36093 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
36094
36095         * config/sparc/freebsd.h (ASM_SPEC): Define.
36096         * config/sparc/vxworks.h (ASM_SPEC): Define.
36097
36098 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
36099
36100         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
36101
36102 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
36103
36104         * doc/invoke.texi: Remove reference to compiler internals from
36105         user documentation.
36106
36107         * reg-notes.def: Remove REG_VALUE_PROFILE.
36108         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
36109
36110 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
36111
36112         PR middle-end/47610
36113         * varasm.c (default_section_type_flags): If decl is NULL,
36114         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
36115
36116 2011-02-05  Jie Zhang  <jie@codesourcery.com>
36117
36118         PR debug/42631
36119         * web.c (entry_register): Don't clobber the number of the
36120         first uninitialized reference in used[].
36121
36122 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
36123
36124         PR tree-optimization/46194
36125         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
36126         (build_classic_dist_vector_1): Do not represent classic distance
36127         vectors when the access functions are variating in different loops.
36128
36129 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
36130
36131         * config/mips/iris6.opt: New.
36132         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
36133
36134 2011-02-04  Richard Henderson  <rth@redhat.com>
36135             Steve Ellcey  <sje@cup.hp.com>
36136
36137         PR target/46997
36138         * config/ia64/predicates.md (mux1_brcst_element): New.
36139         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
36140         * config/ia64/ia64.c (ia64_unpack_assemble): New.
36141         (ia64_unpack_sign): New.
36142         (ia64_expand_unpack): Rewrite using new routines.
36143         (ia64_expand_widen_sum): Ditto.
36144         (ia64_expand_dot_prod_v8qi): Ditto.
36145         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
36146         routines, add endian check.
36147         (pmpy2_even): Rename from pmpy2_r, add endian check.
36148         (pmpy2_odd): Rename from pmpy2_l, add endian check.
36149         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
36150         (vec_widen_smult_hi_v4hi): Ditto.
36151         (vec_widen_umult_lo_v4hi): Ditto.
36152         (vec_widen_umult_hi_v4hi): Ditto.
36153         (mulv2si3): Change endian checks.
36154         (sdot_prodv4hi): Rewrite with new calls.
36155         (udot_prodv4hi): New.
36156         (vec_pack_ssat_v4hi): Add endian check.
36157         (vec_pack_usat_v4hi): Ditto.
36158         (vec_pack_ssat_v2si): Ditto.
36159         (max1_even): Rename from max1_r, add endian check.
36160         (max1_odd): Rename from max1_l, add endian check.
36161         (*mux1_rev): Format change.
36162         (*mux1_mix): Ditto.
36163         (*mux1_shuf): Ditto.
36164         (*mux1_alt): Ditto.
36165         (*mux1_brcst_v8qi): Use new predicate.
36166         (vec_extract_evenv8qi): Remove endian check.
36167         (vec_extract_oddv8qi): Ditto.
36168         (vec_interleave_lowv4hi): Format change.
36169         (vec_interleave_highv4hi): Ditto.
36170         (mix2_even): Rename from mix2_r, add endian check.
36171         (mix2_odd): Rename from mux2_l, add endian check.
36172         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
36173         (vec_extract_evenodd_helper): Format change.
36174         (vec_extract_evenv4hi): Remove endian check.
36175         (vec_extract_oddv4hi): Remove endian check.
36176         (vec_interleave_lowv2si): Format change.
36177         (vec_interleave_highv2si): Format change.
36178         (vec_initv2si): Remove endian check.
36179         (vecinit_v2si): Add endian check.
36180         (reduc_splus_v2sf): Add endian check.
36181         (reduc_smax_v2sf): Ditto.
36182         (reduc_smin_v2sf): Ditto.
36183         (vec_initv2sf): Remove endian check.
36184         (fpack): Add endian check.
36185         (fswap): Add endian check.
36186         (vec_interleave_highv2sf): Add endian check.
36187         (vec_interleave_lowv2sf): Add endian check.
36188         (fmix_lr): Add endian check.
36189         (vec_setv2sf): Format change.
36190         (*vec_extractv2sf_0_be): Use shift to extract operand.
36191         (*vec_extractv2sf_1_be): New.
36192         (vec_pack_trunc_v4hi): Add endian check.
36193         (vec_pack_trunc_v2si): Format change.
36194
36195 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
36196
36197         PR inline-asm/23200
36198         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
36199         do bb, locus and block comparison and disallow loads if it is not set.
36200         (stmt_is_replaceable_p): New function.
36201         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
36202         callers.
36203         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
36204         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
36205         SSA_NAME_DEF_STMT.
36206         * tree-flow.h (stmt_is_replaceable_p): New prototype.
36207
36208 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
36209
36210         * config/rs6000/xilinx.opt: New.
36211         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
36212
36213 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
36214
36215         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
36216
36217 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
36218
36219         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
36220         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
36221         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
36222         secondary_reload_info, xtensa_secondary_reload): Remove.
36223         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
36224         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
36225         (xtensa_preferred_reload_class): Make static. Change return and
36226         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
36227         Use CONST_DOUBLE_P predicate.
36228         (xtensa_preferred_output_reload_class): New function.
36229         (xtensa_secondary_reload): Make static.
36230
36231 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
36232
36233         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
36234         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
36235         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
36236
36237 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
36238
36239         PR middle-end/31490
36240         * output.h (SECTION_RELRO): Define.
36241         (SECTION_MACH_DEP): Adjust.
36242         (get_variable_section): New prototype.
36243         * varpool.c (varpool_finalize_named_section_flags): New function.
36244         (varpool_assemble_pending_decls): Call it.
36245         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
36246         * cgraphunit.c (cgraph_output_in_order): Call
36247         varpool_finalize_named_section_flags.
36248         * varasm.c (get_section): Allow section flags conflicts between
36249         relro and read-only sections if the section hasn't been declared yet.
36250         Set SECTION_OVERRIDE after diagnosing section type conflict.
36251         (get_variable_section): No longer static.
36252         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
36253         readonly sections that need relocations.
36254         (decl_readonly_section_1): New function.
36255         (decl_readonly_section): Use it.
36256
36257         Revert:
36258         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
36259                     Steve Ellcey  <sje@cup.hp.com>
36260
36261         PR middle-end/31490
36262         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
36263         if section attribute used.
36264
36265 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
36266
36267         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
36268         * config/darwin.c (SECTION_NO_ANCHOR): Define.
36269         (darwin_init_sections): Remove assertion.
36270
36271 2011-02-03  Nick Clifton  <nickc@redhat.com>
36272
36273         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
36274         lt and ge.
36275         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
36276         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
36277         instead of "n" and "pz".
36278         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
36279         CC_FLAG_S.
36280
36281 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
36282
36283         PR target/47312
36284         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
36285         fma, expand FMA_EXPR as fma{,f,l} call.
36286
36287         PR lto/47274
36288         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
36289         copy them into a unsigned char variable and pass address of it to
36290         lto_output_data_stream.
36291
36292         PR target/47564
36293         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
36294         around backend_init_target and lang_dependent_init_target calls.
36295         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
36296         (verify_cgraph_node): Don't call set_cfun here.  Use
36297         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
36298         Set error_found for incorrectly represented calls to thunks.
36299
36300 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
36301
36302         PR debug/43092
36303         PR rtl-optimization/43494
36304         * rtl.h (for_each_inc_dec_fn): New type.
36305         (for_each_inc_dec): Declare.
36306         * rtlanal.c (struct for_each_inc_dec_ops): New type.
36307         (for_each_inc_dec_find_inc_dec): New fn.
36308         (for_each_inc_dec_find_mem): New fn.
36309         (for_each_inc_dec): New fn.
36310         * dse.c (struct insn_size): Remove.
36311         (replace_inc_dec, replace_inc_dec_mem): Remove.
36312         (emit_inc_dec_insn_before): New fn.
36313         (check_for_inc_dec): Use it, along with for_each_inc_dec.
36314         (canon_address): Pass mem modes to cselib_lookup.
36315         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
36316         (cselib_lookup_from_insn): Likewise.
36317         (cselib_subst_to_values): Likewise.
36318         * cselib.c (find_slot_memmode): New var.
36319         (cselib_find_slot): New fn.  Use it instead of
36320         htab_find_slot_with_hash everywhere.
36321         (entry_and_rtx_equal_p): Use find_slot_memmode.
36322         (autoinc_split): New fn.
36323         (rtx_equal_for_cselib_p): Rename and implement in terms of...
36324         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
36325         Deal with autoinc.  Special-case recursion into MEMs.
36326         (cselib_hash_rtx): Likewise.
36327         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
36328         address and MEM modes.
36329         (cselib_subst_to_values): Add memmode, pass it on.
36330         Deal with autoinc.
36331         (cselib_lookup): Add memmode argument, pass it on.
36332         (cselib_lookup_from_insn): Add memmode.
36333         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
36334         (struct cselib_record_autoinc_data): New.
36335         (cselib_record_autoinc_cb): New fn.
36336         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
36337         mode to cselib_lookup.  Reset autoinced REGs here instead of...
36338         (cselib_process_insn): ... here.
36339         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
36340         to cselib_lookup.
36341         (add_uses): Likewise, also to cselib_subst_to_values.
36342         (add_stores): Likewise.
36343         * sched-deps.c (add_insn_mem_dependence): Pass mode to
36344         cselib_subst_to_values.
36345         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
36346         * gcse.c (do_local_cprop): Adjusted.
36347         * postreload.c (reload_cse_simplify_set): Adjusted.
36348         (reload_cse_simplify_operands): Adjusted.
36349         * sel-sched-dump (debug_mem_addr_value): Pass mode.
36350
36351 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
36352
36353         PR tree-optimization/45122
36354         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
36355         unsafe assumptions when there's more than one loop exit.
36356
36357 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
36358
36359         PR target/47272
36360         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
36361         Document using vector double with the load/store builtins, and
36362         that the load/store builtins always use Altivec instructions.
36363
36364         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
36365         to use altivec memory instructions, even on VSX.
36366         (vector_altivec_store_<mode>): Ditto.
36367
36368         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
36369         function.
36370
36371         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36372         V2DF, V2DI support to load/store overloaded builtins.
36373
36374         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
36375         altivec load/store builtins for V2DF/V2DI types.
36376
36377         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
36378         set avoid indexed addresses on power6 if -maltivec.
36379         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
36380         vector_altivec_load/vector_altivec_store builtins.
36381         (altivec_expand_st_builtin): Ditto.
36382         (altivec_expand_builtin): Add VSX memory builtins.
36383         (rs6000_init_builtins): Add V2DI types to internal types.
36384         (altivec_init_builtins): Add support for V2DF/V2DI altivec
36385         load/store builtins.
36386         (rs6000_address_for_altivec): Insure memory address is appropriate
36387         for Altivec.
36388
36389         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
36390         vec_vsx_ld and vec_vsx_st.
36391         (vsx_store_<mode>): Ditto.
36392
36393         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
36394         variables to hold long long types for VSX vector memory builtins.
36395         (RS6000_BTI_unsigned_long_long): Ditto.
36396         (long_long_integer_type_internal_node): Ditti.
36397         (long_long_unsigned_type_internal_node): Ditti.
36398
36399         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
36400         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
36401         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
36402
36403         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
36404         short cuts.
36405         (vec_vsx_st): Ditto.
36406
36407 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
36408
36409         * config/pa/pa-hpux10.opt: New.
36410         * config/hpux11.opt (pthread): New Driver option.
36411         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
36412         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
36413
36414 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
36415
36416         * config/ia64/vms.opt: New.
36417         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
36418
36419 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
36420
36421         PR target/47580
36422         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
36423         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
36424         generator functions.
36425         (vsx_floatuns<VSi><mode>2): Ditto.
36426         (vsx_fix_trunc<mode><VSi>2): Ditto.
36427         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
36428
36429 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
36430
36431         * config/i386/djgpp.opt (posix): New Driver option.
36432
36433 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
36434
36435         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
36436         Move to the unsupported targets list.
36437
36438 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
36439
36440         PR rtl-optimization/47525
36441         * df-scan.c: Update copyright years.
36442         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
36443         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
36444
36445 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36446
36447         * config/i386/sysv4.h (TARGET_VERSION): Remove.
36448         (SUBTARGET_RETURN_IN_MEMORY): Remove.
36449         (ASM_OUTPUT_ASCII): Remove.
36450         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
36451
36452 2011-02-02  Jeff Law  <law@redhat.com>
36453
36454         PR middle-end/47543
36455         * reload.c (find_reloads_address): Handle reg+d address where both
36456         components are invalid by reloading the entire address.
36457
36458 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
36459             Richard Guenther  <rguenther@suse.de>
36460
36461         PR tree-optimization/40979
36462         PR bootstrap/47044
36463         * passes.c (init_optimization_passes): After LIM call copy_prop
36464         and DCE to clean up.
36465         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
36466
36467 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
36468
36469         PR tree-optimization/47576
36470         PR tree-optimization/47555
36471         * doc/invoke.texi (scev-max-expr-complexity): Documented.
36472         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
36473         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
36474         * tree-scalar-evolution.c (follow_ssa_edge): Use
36475         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
36476
36477 2011-02-02  Richard Guenther  <rguenther@suse.de>
36478
36479         PR tree-optimization/47566
36480         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
36481
36482 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
36483
36484         PR debug/47106
36485         PR debug/47402
36486         * tree-inline.c (declare_return_variable): Remove unused caller
36487         variable.
36488
36489         PR debug/47106
36490         PR debug/47402
36491         * tree-flow-inline.h (clear_is_used, is_used_p): New.
36492         * cfgexpand.c (account_used_vars_for_block): Use them.
36493         * tree-nrv.c (tree_nrv): Likewise.
36494         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
36495         (dump_scope_block): Likewise.
36496         (remove_unused_locals): Likewise.
36497
36498         PR debug/47106
36499         PR debug/47402
36500         * tree-inline.c (declare_return_variable): Add result decl to
36501         local decls only once.
36502         * gimple-low.c (record_vars_into): Mark newly-created variables
36503         as referenced.
36504
36505 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
36506
36507         PR debug/47498
36508         PR debug/47501
36509         PR debug/45136
36510         PR debug/45130
36511         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
36512         debug insns.
36513         (no_real_insns_p, schedule_block, set_priorities): Drop special
36514         treatment of boundary debug insns.
36515         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
36516         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
36517         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
36518         (BOUNDARY_DEBUG_INSN_P): Likewise.
36519         (SCHEDULE_DEBUG_INSN_P): Likewise.
36520         * sched-rgn.c (init_ready_list): Drop special treatment of
36521         boundary debug insns.
36522         * final.c (rest_of_clean_state): Clear notes' BB.
36523
36524 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
36525
36526         * config/openbsd.opt (assert=): New Driver option.
36527
36528 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
36529
36530         * config/i386/nto.opt: New.
36531         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
36532
36533 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
36534
36535         * config/i386/netware.opt: New.
36536         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
36537
36538 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
36539
36540         * config/interix.opt (posix): New Driver option.
36541
36542 2011-02-01  DJ Delorie  <dj@redhat.com>
36543
36544         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
36545
36546         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
36547         class for A0/A1.
36548
36549 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
36550
36551         PR tree-optimization/47561
36552         * toplev.c (process_options): Print the Graphite flags.  Add
36553         flag_loop_flatten to the list of options requiring Graphite.
36554
36555 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
36556
36557         * config/i386/cygming.opt (posix): New Driver option.
36558
36559 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
36560
36561         * config/arm/vxworks.opt: New.
36562         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
36563
36564 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
36565
36566         * config/alpha/elf.opt: New.
36567         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
36568         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
36569
36570 2011-02-01  Richard Guenther  <rguenther@suse.de>
36571
36572         PR tree-optimization/47559
36573         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
36574         store-motion on references that can throw.
36575
36576 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
36577
36578         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
36579         * tree-pass.h (TDF_CSELIB): New macro.
36580         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
36581         cselib_lookup): Check for it rather than for TDF_DETAILS.
36582
36583 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
36584
36585         PR driver/47547
36586         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
36587         is HOST_BIT_BUCKET.
36588
36589         * opts.c (finish_options): Don't add x_aux_base_name if it is
36590         HOST_BIT_BUCKET.
36591
36592 2011-02-01  Richard Guenther  <rguenther@suse.de>
36593
36594         PR tree-optimization/47555
36595         Revert
36596         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
36597
36598         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
36599
36600 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
36601
36602         PR gcc/46692
36603         * config/lm32/t-lm32: Add multilib for all CPU options.
36604
36605 2011-02-01  Richard Guenther  <rguenther@suse.de>
36606
36607         PR tree-optimization/47541
36608         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
36609         sure to have a field at offset zero.
36610
36611 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
36612
36613         * config/arc/arc.opt (EB, EL): New Driver options.
36614
36615 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
36616
36617         * config/alpha/osf5.opt: New.
36618         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
36619
36620 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
36621
36622         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
36623
36624 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
36625
36626         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
36627         -floop-interchange.
36628         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
36629         is an alias of -floop-interchange and that it requires the
36630         Graphite infrastructure.
36631         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
36632         flag_loop_interchange based on the value of flag_tree_loop_linear.
36633
36634 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
36635             Richard Guenther  <rguenther@suse.de>
36636
36637         PR tree-optimization/47538
36638         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
36639         type instead of r1type, except for comparisons.  For right
36640         shifts and comparisons punt if there are mismatches in
36641         sizetype vs. non-sizetype types.
36642
36643 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36644
36645         * doc/sourcebuild.texi (Effective-Target Keywords): Document
36646         avx_runtime.
36647
36648 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36649
36650         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
36651         version number.
36652         * configure: Regenerate.
36653
36654 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36655
36656         * configure.ac (gcc_cv_ld_static_option): Define.
36657         (gcc_cv_ld_dynamic_option): Define.
36658         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
36659         instead.
36660         (HAVE_LD_STATIC_DYNAMIC): Update message.
36661         (LD_STATIC_OPTION): Define.
36662         (LD_DYNAMIC_OPTION): Define.
36663         * configure: Regenerate.
36664         * config.in: Regenerate.
36665         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
36666         HAVE_LD_STATIC_DYNAMIC]: Use them.
36667
36668 2011-01-31  Nick Clifton  <nickc@redhat.com>
36669
36670         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
36671         registers inside interrupt handlers if the handler is not a leaf
36672         function.
36673
36674 2011-01-31  Nick Clifton  <nickc@redhat.com>
36675
36676         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
36677         reg_renumber returning an INVALID_REGNUM.
36678
36679 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
36680
36681         PR libgcj/44341
36682         * doc/install.texi: Document host options discarded when cross
36683         configuring target libraries.
36684
36685 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
36686
36687         Reverted:
36688         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
36689         PR debug/45136
36690         PR debug/45130
36691         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
36692         debug insns.
36693         (no_real_insns_p, schedule_block, set_priorities): Drop special
36694         treatment of boundary debug insns.
36695         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
36696         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
36697         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
36698         (BOUNDARY_DEBUG_INSN_P): Likewise.
36699         (SCHEDULE_DEBUG_INSN_P): Likewise.
36700         * sched-rgn.c (init_ready_list): Drop special treatment of
36701         boundary debug insns.
36702         * final.c (rest_of_clean-state): Clear notes' BB.
36703
36704 2011-01-31  Alan Modra  <amodra@gmail.com>
36705
36706         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
36707         toc relative expressions as we do in print_operand_address.
36708
36709 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
36710
36711         * doc/extend.texi: Follow spelling conventions.
36712         * doc/invoke.texi: Fix a typo.
36713
36714 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
36715
36716         * config/hpux11.opt: New.
36717         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
36718         ia64*-*-hpux*): Use hpux11.opt.
36719
36720 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
36721
36722         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
36723         to tmake_file.
36724
36725 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
36726
36727         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
36728         support sites.
36729
36730 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
36731
36732         * doc/install.texi (Binaries): Remove outdated reference for
36733         Motorola 68HC11/68HC12 downloads.
36734
36735 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
36736
36737         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
36738         Drepper's paper.
36739
36740 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
36741
36742         PR bootstrap/47147
36743         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
36744         used by NetBSD.
36745
36746 2011-01-28  Ahmad Sharif  <asharif@google.com>
36747
36748         * value-prof.c (check_counter): Corrected error message.
36749
36750 2011-01-29  Jie Zhang  <jie@codesourcery.com>
36751
36752         * config/arm/arm.c (arm_legitimize_reload_address): New.
36753         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
36754         arm_legitimize_reload_address.
36755         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
36756
36757 2011-01-28  Ian Lance Taylor  <iant@google.com>
36758
36759         * godump.c (go_define): Ignore macros whose definitions include
36760         two adjacent operands.
36761
36762 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
36763
36764         PR target/42894
36765         * varasm.c (force_const_mem): Store copy of x in desc->constant
36766         instead of x itself.
36767         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
36768         itself into REG_EQUAL note.
36769
36770 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
36771
36772         * config/freebsd.opt (posix, rdynamic): New Driver options.
36773
36774 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36775
36776         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
36777         -Bstatic/-Bdynamic.
36778         * configure: Regenerate.
36779
36780 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
36781
36782         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
36783         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
36784
36785 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
36786
36787         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
36788         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
36789         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
36790         (s390_preferred_reload_class): Make static. Change return and
36791         'rclass' argument type to reg_class_t.
36792
36793 2011-01-27  Jan Hubicka  <jh@suse.cz>
36794
36795         PR middle-end/46949
36796         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
36797         (process_function_and_variable_attributes): Check defined weakrefs.
36798
36799 2011-01-27  Martin Jambor  <mjambor@suse.cz>
36800
36801         PR tree-optimization/47228
36802         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
36803         build_ref_for_offset.
36804
36805 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36806
36807         * config/spu/spu-elf.h (ASM_SPEC): Remove.
36808
36809 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
36810
36811         PR rtl-optimization/46856
36812         * postreload.c (reload_combine_recognize_const_pattern): Do not
36813         separate cc0 setter and user on cc0 targets.
36814
36815 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
36816
36817         PR c/43082
36818         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
36819         passed a VOID_TYPE expression, immediately emit an error and
36820         return error_mark_node.
36821
36822 2011-01-26  Jeff Law  <law@redhat.com>
36823
36824         PR rtl-optimization/47464
36825         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
36826         rather than may_trap_p as needed.
36827
36828 2011-01-26  DJ Delorie  <dj@redhat.com>
36829
36830         PR rtl-optimization/46878
36831         * combine.c (insn_a_feeds_b): Check for the implicit cc0
36832         setter/user dependency as well.
36833
36834 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
36835
36836         PR rtl-optimization/44469
36837         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
36838         after removing trivially dead basic blocks.
36839
36840 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
36841
36842         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
36843         * config/frv/frv.h (LINK_SPEC): Likewise.
36844         * config/i386/netware.h (LINK_SPEC): Likewise.
36845         * config/m68k/linux.h (ASM_SPEC): Likewise.
36846         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
36847         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
36848         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
36849         * config/sparc/linux.h (ASM_SPEC): Likewise.
36850         * config/sparc/linux64.h (ASM_SPEC): Likewise.
36851         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
36852
36853 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
36854
36855         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
36856         * config/frv/frv.h (ASM_SPEC): Likewise.
36857         * config/m68k/linux.h (ASM_SPEC): Likewise.
36858         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
36859         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
36860         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
36861         * config/sparc/linux.h (ASM_SPEC): Likewise.
36862         * config/sparc/linux64.h (ASM_SPEC): Likewise.
36863         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
36864
36865 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
36866
36867         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
36868         * config/frv/frv.h (LINK_SPEC): Likewise.
36869         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
36870
36871 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
36872
36873         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
36874         * config/frv/frv.h (ASM_SPEC): Likewise.
36875         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
36876         * config/m68k/linux.h (ASM_SPEC): Likewise.
36877         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
36878         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
36879         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
36880         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
36881         * config/sparc/linux.h (ASM_SPEC): Likewise.
36882         * config/sparc/linux64.h (ASM_SPEC): Likewise.
36883         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
36884         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
36885
36886 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
36887
36888         PR target/46997
36889         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
36890         (*mux2): Ditto.
36891         (vec_extract_evenodd_help): Ditto.
36892         (vec_extract_evenv4hi): Ditto.
36893         (vec_extract_oddv4hi): Ditto.
36894         (vec_interleave_lowv2si): Ditto.
36895         (vec_interleave_highv2si): Ditto.
36896         (vec_extract_evenv2si): Ditto.
36897         (vec_extract_oddv2si: Ditto.
36898         (vec_pack_trunc_v2si): Ditto.
36899
36900 2011-01-22  Jan Hubicka  <jh@suse.cz>
36901
36902         PR target/47237
36903         * cgraph.h (cgraph_local_info): New field can_change_signature.
36904         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
36905         signature can change.
36906         (ipcp_estimate_growth): Call sequence simplify only if calle signature
36907         can change.
36908         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
36909         (cgraph_function_versioning): We can not change signature of functions
36910         that don't allow that.
36911         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
36912         (lto_input_node): Likewise.
36913         * ipa-inline.c (compute_inline_parameters): Compute
36914         local.can_change_signature.
36915         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
36916         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
36917         functions that can not change signature.
36918         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
36919         init_cumulative_args): Do not use local calling conventions
36920         for functions that can not change signature.
36921
36922 2011-01-22  Jan Hubicka  <jh@suse.cz>
36923
36924         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
36925
36926 2011-01-26  Richard Guenther  <rguenther@suse.de>
36927
36928         PR tree-optimization/47190
36929         * cgraphunit.c (process_common_attributes): New function.
36930         (process_function_and_variable_attributes): Use it.
36931
36932 2011-01-26  Richard Guenther  <rguenther@suse.de>
36933
36934         PR lto/47423
36935         * cgraphbuild.c (record_eh_tables): Record reference to personality
36936         function.
36937
36938 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
36939
36940         PR debug/45454
36941         * sel-sched.c (moveup_expr): Don't let debug insns prevent
36942         non-debug insns from moving up.
36943
36944 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
36945
36946         PR target/40125
36947         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
36948         t-dlldir{,-x} fragment for build and add it to tmake_file.
36949         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
36950         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
36951         * config/i386/t-dlldir: New file.
36952         (SHLIB_DLLDIR): Define.
36953         * config/i386/t-dlldir-x: New file.
36954         (SHLIB_DLLDIR): Define.
36955         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
36956         (SHLIB_INSTALL): Use it.
36957
36958 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
36959
36960         PR target/47246
36961         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
36962         lower bound of the allowed Thumb-2 coprocessor load/store
36963         index range to -256. Add explaining comment.
36964
36965 2011-01-25  Ian Lance Taylor  <iant@google.com>
36966
36967         * godump.c (go_define): Improve lexing of macro expansion to only
36968         accept expressions which match Go spec.
36969
36970 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
36971
36972         PR c++/43601
36973         * tree.c (handle_dll_attribute): Handle it.
36974         * doc/extend.texi (@item dllexport): Mention it.
36975         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
36976
36977 2011-01-25  Ian Lance Taylor  <iant@google.com>
36978
36979         PR tree-optimization/26854
36980         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
36981         (decl_jump_unsafe): Move higher in file, with no other change.
36982         (bind): Set has_jump_unsafe_decl if appropriate.
36983         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
36984         (check_earlier_gotos): Likewise.
36985         (c_check_switch_jump_warnings): Likewise.
36986
36987 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
36988
36989         * doc/invoke.texi (Warning Options): Add missing hyphen.
36990         (-fprofile-dir): Minor grammatical fixes.
36991         (-fbranch-probabilities): Likewise.
36992
36993 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
36994
36995         PR debug/45136
36996         PR debug/45130
36997         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
36998         debug insns.
36999         (no_real_insns_p, schedule_block, set_priorities): Drop special
37000         treatment of boundary debug insns.
37001         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
37002         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
37003         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
37004         (BOUNDARY_DEBUG_INSN_P): Likewise.
37005         (SCHEDULE_DEBUG_INSN_P): Likewise.
37006         * sched-rgn.c (init_ready_list): Drop special treatment of
37007         boundary debug insns.
37008         * final.c (rest_of_clean-state): Clear notes' BB.
37009
37010 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37011
37012         * Makefile.in (LAMBDA_H): Removed.
37013         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
37014         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
37015         lambda-trans.o, and tree-loop-linear.o.
37016         (lto-symtab.o): Remove dependence on LAMBDA_H.
37017         (tree-loop-linear.o): Remove rule.
37018         (lambda-mat.o): Same.
37019         (lambda-trans.o): Same.
37020         (lambda-code.o): Same.
37021         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
37022         (tree-vect-slp.o): Same.
37023         * hwint.h (gcd): Moved here.
37024         (least_common_multiple): Same.
37025         * lambda-code.c: Removed.
37026         * lambda-mat.c: Removed.
37027         * lambda-trans.c: Removed.
37028         * lambda.h: Removed.
37029         * tree-loop-linear.c: Removed.
37030         * lto-symtab.c: Do not include lambda.h.
37031         * omega.c (gcd): Removed.
37032         * passes.c (init_optimization_passes): Remove pass_linear_transform.
37033         * tree-data-ref.c (print_lambda_vector): Moved here.
37034         (lambda_vector_copy): Same.
37035         (lambda_matrix_copy): Same.
37036         (lambda_matrix_id): Same.
37037         (lambda_vector_first_nz): Same.
37038         (lambda_matrix_row_add): Same.
37039         (lambda_matrix_row_exchange): Same.
37040         (lambda_vector_mult_const): Same.
37041         (lambda_vector_negate): Same.
37042         (lambda_matrix_row_negate): Same.
37043         (lambda_vector_equal): Same.
37044         (lambda_matrix_right_hermite): Same.
37045         * tree-data-ref.h: Do not include lambda.h.
37046         (lambda_vector): Moved here.
37047         (lambda_matrix): Same.
37048         (dependence_level): Same.
37049         (lambda_transform_legal_p): Removed declaration.
37050         (lambda_collect_parameters): Same.
37051         (lambda_compute_access_matrices): Same.
37052         (lambda_vector_gcd): Same.
37053         (lambda_vector_new): Same.
37054         (lambda_vector_clear): Same.
37055         (lambda_vector_lexico_pos): Same.
37056         (lambda_vector_zerop): Same.
37057         (lambda_matrix_new): Same.
37058         * tree-flow.h (least_common_multiple): Removed declaration.
37059         * tree-parloops.c (lambda_trans_matrix): Moved here.
37060         (LTM_MATRIX): Same.
37061         (LTM_ROWSIZE): Same.
37062         (LTM_COLSIZE): Same.
37063         (LTM_DENOMINATOR): Same.
37064         (lambda_trans_matrix_new): Same.
37065         (lambda_matrix_vector_mult): Same.
37066         (lambda_transform_legal_p): Same.
37067         * tree-pass.h (pass_linear_transform): Removed declaration.
37068         * tree-ssa-loop.c (tree_linear_transform): Removed.
37069         (gate_tree_linear_transform): Removed.
37070         (pass_linear_transform): Removed.
37071         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
37072         flag_loop_interchange.
37073
37074 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
37075
37076         PR tree-optimization/47265
37077         PR tree-optimization/47443
37078         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
37079         if name still has some uses.
37080
37081 2011-01-25  Martin Jambor  <mjambor@suse.cz>
37082
37083         PR tree-optimization/47382
37084         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
37085         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
37086
37087 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
37088
37089         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
37090         sjlj_except_unwind_info.
37091
37092 2011-01-25  Richard Guenther  <rguenther@suse.de>
37093
37094         PR tree-optimization/47426
37095         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
37096         visible functions results escape.
37097
37098 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
37099
37100         PR target/45701
37101         * config/arm/arm.c (any_sibcall_uses_r3): New function.
37102         (arm_get_frame_offsets): Use it.
37103
37104 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37105             Jakub Jelinek  <jakub@redhat.com>
37106
37107         PR tree-optimization/47271
37108         * tree-if-conv.c (bb_postdominates_preds): New.
37109         (if_convertible_bb_p): Call bb_postdominates_preds.
37110         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
37111         (predicate_scalar_phi): Call bb_postdominates_preds.
37112
37113 2011-01-25  Nick Clifton  <nickc@redhat.com>
37114
37115         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
37116         * config/rx/rx.c (rx_function_value): Likewise.
37117         (rx_promote_function_mode): Likewise.
37118         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
37119         in order to make it legitimate.
37120         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
37121         make sure that the first operand is the same as the result register.
37122         (addsi3_unspec): Delete.
37123         (subdi3): Do not accept immediate operands.
37124         (subdi3_internal): Likewise.
37125
37126 2011-01-25  Jeff Law  <law@redhat.com>
37127
37128         PR rtl-optimization/37273
37129         * ira-costs.c (scan_one_insn): Detect constants living in memory and
37130         handle them like argument loads from stack slots.  Do not double
37131         count memory for memory constants and argument loads from stack slots.
37132
37133 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
37134
37135         PR tree-optimization/47427
37136         PR tree-optimization/47428
37137         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
37138         coalesce if the new root var would be TREE_READONLY.
37139
37140 2011-01-25  Richard Guenther  <rguenther@suse.de>
37141
37142         PR middle-end/47414
37143         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
37144         correct type for TBAA.
37145
37146 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37147
37148         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
37149         (close_phi_written_to_memory): Call for_each_index with
37150         dr_indices_valid_in_loop.
37151
37152 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37153
37154         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
37155         when it is initialized.
37156
37157 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37158
37159         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
37160         call to graphite_find_data_references_in_stmt.
37161         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
37162         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
37163         call to graphite_find_data_references_in_stmt.
37164         (analyze_drs_in_stmts): Same.
37165         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
37166         in which the scalar analysis of indices is performed.
37167         (create_data_ref): Same.  Update call to dr_analyze_indices.
37168         (find_data_references_in_stmt): Update call to create_data_ref.
37169         (graphite_find_data_references_in_stmt): Same.
37170         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
37171         declaration.
37172         (create_data_ref): Same.
37173         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
37174         call to create_data_ref.
37175
37176 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37177
37178         * graphite-sese-to-poly.c (build_poly_scop): Move
37179         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
37180
37181 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37182
37183         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
37184         VAR_DECL, PARM_DECL, and RESULT_DECL.
37185
37186 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37187
37188         * graphite-dependences.c (reduction_dr_1): Allow several reductions
37189         in a reduction PBB.
37190         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
37191         that have already been marked as PBB_IS_REDUCTION.
37192
37193 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37194
37195         * graphite-scop-detection.c (same_close_phi_node): New.
37196         (remove_duplicate_close_phi): New.
37197         (make_close_phi_nodes_unique): New.
37198         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
37199
37200 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37201
37202         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
37203         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
37204         of both data references to be the same.
37205
37206 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37207
37208         * graphite-dependences.c (build_lexicographical_constraint): Remove
37209         the gdim parameter.
37210         (build_lexicographical_constraint): Adjust call to
37211         ppl_powerset_is_empty.
37212         (dependence_polyhedron): Same.
37213         (graphite_legal_transform_dr): Same.
37214         (graphite_carried_dependence_level_k): Same.
37215         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
37216         parameter.
37217         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
37218
37219 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37220
37221         * graphite-sese-to-poly.c
37222         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
37223         (close_phi_written_to_memory): New.
37224         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
37225         and unshare_expr.
37226
37227 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37228
37229         * doc/install.texi: Update the expected version number of PPL to 0.11.
37230         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
37231         #if PPL_VERSION_MINOR < 11.
37232
37233 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37234
37235         * graphite-dependences.c: Include graphite-cloog-util.h.
37236         (new_poly_ddr): Inlined into dependence_polyhedron.
37237         (free_poly_ddr): Moved close by new_poly_ddr.
37238         (dependence_polyhedron_1): Renamed dependence_polyhedron.
37239         Early return NULL when ppl_powerset_is_empty returns true.
37240         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
37241         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
37242         (graphite_legal_transform_dr): Call new_poly_ddr.
37243         (graphite_carried_dependence_level_k): Same.
37244         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
37245         (dot_transformed_deps_stmt_1): Removed.
37246         (dot_deps_stmt_1): Call dot_deps_stmt_2.
37247         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
37248         (dot_deps_1): Call dot_deps_2.
37249         * Makefile.in (graphite-dependences.o): Add missing dependence on
37250         graphite-cloog-util.h.
37251
37252 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37253
37254         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
37255         (build_lexicographical_constraint): Same.
37256         (dependence_polyhedron_1): Same.
37257         (graphite_legal_transform_dr): Same.
37258         (graphite_carried_dependence_level_k): Same.
37259         * graphite-ppl.c (ppl_powerset_is_empty): New.
37260         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
37261         * tree-data-ref.c (dump_data_reference): Print the basic block index.
37262
37263 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37264
37265         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
37266         the "a followed by b" relation and document it.
37267
37268 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37269
37270         * graphite-dependences.c (build_lexicographical_constraint): Stop the
37271         iteration when the bag of constraints is empty.
37272
37273 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37274
37275         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
37276
37277 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37278
37279         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
37280         nest and two loop depths as parameters.
37281         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
37282         lst_perfect_nestify.
37283
37284 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37285
37286         * graphite-dependences.c (print_pddr): Call
37287         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
37288
37289 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
37290
37291         * graphite-ppl.c (debug_gmp_value): New.
37292         * graphite-ppl.h (debug_gmp_value): Declared.
37293
37294 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
37295
37296         * doc/install.texi: Document availability of cloog-0.16.
37297
37298 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
37299
37300         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
37301         invalid postdominance info.
37302
37303 2011-01-24  Jan Hubicka  <jh@suse.cz>
37304
37305         PR c/21659
37306         * doc/extend.texi (weak pragma): Drop claim that it must
37307         appear before definition.
37308         * varasm.c (merge_weak, declare_weak): Only sanity check
37309         that DECL is not output at a time it is declared weak.
37310
37311 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
37312
37313         * machmode.def: Fixed comments.
37314
37315 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
37316
37317         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
37318
37319 2011-01-24  Paul Koning  <ni1d@arrl.net>
37320
37321         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
37322         WORDS_BIG_ENDIAN.
37323
37324 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
37325
37326         PR target/46519
37327         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
37328         (block_info): Add scanned and prev.
37329         (move_or_delete_vzeroupper_2): Return if the basic block
37330         has been scanned and the upper 128bit state is unchanged
37331         from the last scan.
37332         (move_or_delete_vzeroupper_1): Return true if the exit
37333         state is changed.
37334         (move_or_delete_vzeroupper): Visit basic blocks using the
37335         work-list based algorithm based on vt_find_locations in
37336         var-tracking.c.
37337
37338         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
37339
37340 2011-01-24  Nick Clifton  <nickc@redhat.com>
37341
37342         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
37343         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
37344         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
37345         then define __v850e1__.
37346         * doc/invoke.texi: Document -mv850es.
37347
37348 2011-01-24  Richard Henderson  <rth@redhat.com>
37349
37350         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
37351         compound unordered comparisons.
37352         * config/rx/rx.c (rx_split_fp_compare): Remove.
37353         * config/rx/rx-protos.h: Update.
37354         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
37355         (cbranchsf4): Don't call rx_split_fp_compare.
37356         (*cbranchsf4): Use rx_split_cbranch.
37357         (*cmpsf): Don't accept "i" constraint.
37358         (*conditional_branch): Only valid after reload.
37359         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
37360
37361 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
37362
37363         PR target/47385
37364         * config/rs6000/altivec.md (vector constant splitters): Add
37365         support for creating vector single precision constants if -mvsx is
37366         used and we would create the constant using Altivec primitives.
37367
37368 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
37369             Richard Sandiford  <rdsandiford@googlemail.com>
37370
37371         PR rtl-optimization/47166
37372         * reload1.c (emit_reload_insns): Disable the spill_reg_store
37373         mechanism for PRE_MODIFY and POST_MODIFY.
37374         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
37375         reloadreg.
37376
37377 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
37378
37379         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
37380
37381 2011-01-22  Jan Hubicka  <jh@suse.cz>
37382
37383         PR lto/47333
37384         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
37385
37386 2011-01-22  Jan Hubicka  <jh@suse.cz>
37387
37388         PR tree-optimization/43884
37389         PR lto/44334
37390         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
37391         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
37392
37393 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
37394
37395         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
37396         * config/s390/s390.c (s390_register_move_cost,
37397         s390_memory_move_cost): New.
37398         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
37399
37400 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37401
37402         PR middle-end/47401
37403         * except.c (sjlj_assign_call_site_values): Move setting the
37404         crtl->uses_eh_lsda flag to ...
37405         (sjlj_mark_call_sites): ... here.
37406         (sjlj_emit_function_enter): Support NULL dispatch label.
37407         (sjlj_build_landing_pads): In a function with no landing pads
37408         that still has must-not-throw regions, generate code to register
37409         a personality function with empty LSDA.
37410
37411 2011-01-21  Richard Henderson  <rth@redhat.com>
37412
37413         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
37414
37415         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
37416
37417         * compare-elim.c: New file.
37418         * Makefile.in (OBJS-common): Add it.
37419         (compare-elim.o): New.
37420         * common.opt (fcompare-elim): New.
37421         * opts.c (default_options_table): Add OPT_fcompare_elim.
37422         * tree-pass.h (pass_compare_elim_after_reload): New.
37423         * passes.c (init_optimization_passes): Add it.
37424         * recog.h: Protect against re-inclusion.
37425         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
37426         * doc/invoke.texi (-fcompare-elim): Document it.
37427         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
37428         * doc/tm.texi: Rebuild.
37429
37430 2011-01-22  Nick Clifton  <nickc@redhat.com>
37431
37432         * config/rx/rx.md (cstoresf4): Pass comparison operator to
37433         rx_split_fp_compare.
37434
37435 2011-01-22  Nick Clifton  <nickc@redhat.com>
37436
37437         * config/rx/rx.md (UNSPEC_CONST): New.
37438         (deallocate_and_return): Wrap the amount popped off the stack in
37439         an UNSPEC_CONST in order to stop it being rejected by
37440         -mmax-constant-size.
37441         (pop_and_return): Add a "(return)" rtx.
37442         (call): Drop the immediate operand.
37443         (call_internal): Likewise.
37444         (call_value): Likewise.
37445         (call_value_internal): Likewise.
37446         (sibcall_internal): Likewise.
37447         (sibcall_value_internal): Likewise.
37448         (sibcall): Likewise.  Generate an explicit call using
37449         sibcall_internal.
37450         (sibcall_value): Likewise.
37451         (mov<>): FAIL if a constant operand is not legitimate.
37452         (addsi3_unpsec): New pattern.
37453
37454         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
37455         (ok_for_max_constant): New function.
37456         (gen_safe_add): New function.
37457         (rx_expand_prologue): Use gen_safe_add.
37458         (rx_expand_epilogue): Likewise.
37459         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
37460         UNSPEC CONSTs.
37461
37462 2011-01-21  Jeff Law  <law@redhat.com>
37463
37464         PR tree-optimization/47053
37465         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
37466         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
37467         statements are deleted.
37468         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
37469         is nonempty, then purge dead edges and cleanup the CFG.
37470
37471 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
37472
37473         PR debug/47402
37474         Temporarily revert:
37475         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
37476         PR debug/47106
37477         * tree-dfa.c (create_var_ann): Mark variable as used.
37478
37479 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
37480
37481         PR middle-end/45566
37482         * except.c (convert_to_eh_region_ranges): Emit queued no-region
37483         notes from other section in hot/cold partitioning even if
37484         last_action is -3.  Increment call_site_base.
37485
37486         PR rtl-optimization/47366
37487         * fwprop.c (forward_propagate_into): Return bool.  If
37488         any changes are made, -fnon-call-exceptions is used and
37489         REG_EH_REGION note is present, call purge_dead_edges
37490         and return true if it purged anything.
37491         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
37492         any EH edges were purged.
37493
37494 2011-01-21  Jeff Law  <law@redhat.com>
37495
37496         PR rtl-optimization/41619
37497         * caller-save.c (setup_save_areas): Break out code to determine
37498         which hard regs are live across calls by examining the reload chains
37499         so that it is always used.
37500         Eliminate code which checked REG_N_CALLS_CROSSED.
37501
37502 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
37503
37504         PR tree-optimization/47355
37505         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
37506         NOP has non-debug uses beyond PHIs in new_bb.
37507
37508 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
37509
37510         PR debug/47106
37511         * cfgexpand.c (account_used_vars_for_block): Only account vars
37512         that are annotated as used.
37513         (estimated_stack_frame_size): Don't set TREE_USED.
37514         * tree-dfa.c (create_var_ann): Mark variable as used.
37515
37516 2011-01-21  Richard Guenther  <rguenther@suse.de>
37517
37518         PR middle-end/47395
37519         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
37520
37521 2011-01-21  Richard Guenther  <rguenther@suse.de>
37522
37523         PR tree-optimization/47365
37524         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
37525         (vn_reference_lookup_pieces): Adjust.
37526         (vn_reference_lookup): Likewise.
37527         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
37528         (vn_reference_lookup_3): Only look through kills if in
37529         VN_WALKREWRITE mode.
37530         (vn_reference_lookup_pieces): Adjust.
37531         (vn_reference_lookup): Likewise.
37532         (visit_reference_op_load): Likewise.
37533         (visit_reference_op_store): Likewise.
37534         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
37535         (compute_avail): Likewise.
37536         (eliminate): Likewise.
37537
37538 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
37539
37540         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
37541         DECL_IGNORED_P non-reg vars if they are used.
37542
37543         PR tree-optimization/47391
37544         * varpool.c (const_value_known_p): Return false if
37545         decl is volatile.
37546
37547 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
37548
37549         PR bootstrap/47215
37550         * config/i386/i386.c (ix86_local_alignment): Handle
37551         case for va_list_type_node is nil.
37552         (ix86_canonical_va_list_type): Likewise.
37553
37554 2011-01-21  Alan Modra  <amodra@gmail.com>
37555
37556         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
37557         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
37558
37559 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37560
37561         * config/arm/arm.md (define_attr type): Rename f_load
37562         and f_store to f_fpa_load and f_fpa_store. Update.
37563         (write_conflict): Deal with rename fallout.
37564         (*push_fp_multi): Likewise.
37565         * config/arm/fpa.md (f_load): Use f_fpa_load.
37566         (f_store): Use f_fpa_store.
37567         (*movsf_fpa): Likewise.
37568         (*movdf_fpa): Likewise.
37569         (*movxf_fpa): Likewise.
37570         (*thumb2_movsf_fpa): Likewise.
37571         (*thumb2_movdf_fpa): Likewise.
37572         (*thumb2_movxf_fpa): Likewise.
37573         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
37574         f_loadd and f_stored.
37575         (*thumb2_movdi_vfp): Likewise.
37576         (*thumb2_movsf_vfp): Fix attribute to f_loads.
37577         (*thumb2_movsi_vfp): Likewise.
37578         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
37579         Use f_loads instead of f_load.
37580         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
37581
37582 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
37583
37584         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
37585         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
37586         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
37587         (xtensa_mode_dependent_address_p): New function.
37588         (constantpool_address_p): Make static. Change return type to bool.
37589         Change argument type to const_rtx. Use CONST_INT_P predicate.
37590
37591 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
37592
37593         PR debug/46583
37594         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
37595
37596 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
37597
37598         PR debug/47283
37599         * cfgexpand.c (expand_debug_expr): Instead of generating
37600         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
37601         etc. handling.
37602
37603 2011-01-20  Richard Guenther  <rguenther@suse.de>
37604
37605         PR middle-end/47370
37606         * tree-inline.c (remap_gimple_op_r): Recurse manually for
37607         the pointer operand of MEM_REFs.
37608
37609 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
37610
37611         PR tree-optimization/46130
37612         * ipa-split.c (consider_split): If return_bb contains non-virtual
37613         PHIs other than for retval or if split_function would not adjust it,
37614         refuse to split.
37615
37616 2011-01-20  Richard Guenther  <rguenther@suse.de>
37617
37618         PR tree-optimization/47167
37619         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
37620         Revert previous change, only avoid enumeral type changes.
37621
37622 2011-01-19  Mike Stump  <mikestump@comcast.net>
37623
37624         * doc/tm.texi.in (BRANCH_COST): Englishify.
37625         * doc/tm.texi (BRANCH_COST): Likewise.
37626
37627 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
37628
37629         PR c++/47291
37630         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
37631         (gen_scheduled_generic_parms_dies): New functions.
37632         (gen_struct_or_union_type_die): Schedule template parameters DIEs
37633         generation for the end of CU compilation.
37634         (dwarf2out_finish): Generate template parameters DIEs here.
37635
37636 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
37637
37638         PR debug/46240
37639         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
37640         debug bind stmt on merge edges.
37641
37642 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
37643
37644         PR debug/47079
37645         PR debug/46724
37646         * function.c (instantiate_expr): Instantiate incoming rtl of
37647         implicit arguments, and recurse on VALUE_EXPRs.
37648         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
37649         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
37650
37651 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
37652
37653         * c-parser.c (c_parser_for_statement): Initialize
37654         collection_expression.
37655
37656 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
37657
37658         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
37659
37660 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
37661
37662         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
37663         (LINK_SHLIB_SPEC): Don't use %(link_path).
37664         (SUBTARGET_EXTRA_SPECS): Remove link_path.
37665
37666 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
37667
37668         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
37669         (NO_SHARED_LIB_SUPPORT): Remove.
37670         (LINK_SHLIB_SPEC): Remove one conditional definition.
37671
37672 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
37673
37674         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
37675         %{call_shared}.
37676         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
37677         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
37678         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
37679         %{call_shared} and conditionals on these options not being passed.
37680         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
37681         %{call_shared}.
37682
37683 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
37684
37685         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
37686         simplify.
37687
37688         * ipa-split.c: Spelling fixes.
37689
37690 2011-01-19  Richard Henderson  <rth@redhat.com>
37691
37692         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
37693         (*mulsi3): Likewise.
37694
37695         * longlong.h [__mn10300__] (count_leading_zeros): New.
37696         [__mn10300__] (umul_ppmm, smul_ppmm): New.
37697         [__mn10300__] (add_ssaaaa, subddmmss): New.
37698         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
37699         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
37700
37701 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37702
37703         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
37704
37705 2011-01-19  Richard Henderson  <rth@redhat.com>
37706
37707         * config/mn10300/mn10300.md (addsi3_flags): New.
37708         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
37709         (subsi3_flags, subc_internal, subdi3): New.
37710         (subdi3_internal, *subdi3_degenerate): New.
37711         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
37712
37713         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
37714         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
37715         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
37716         * config/mn10300/mn10300-protos.h: Update.
37717         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
37718         (return_ret): Likewise.  Rename from return_internal_regs.
37719         (return_internal): Remove.
37720
37721         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
37722         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
37723         (mn10300_legitimate_constant_p): Likewise.
37724         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
37725         (mn10300_frame_size): New.
37726         (mn10300_expand_prologue): Use it.
37727         (mn10300_expand_epilogue): Likewise.
37728         (mn10300_initial_offset): Likewise.
37729         * config/mn10300/mn10300-protos.h: Update.
37730         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
37731         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
37732         (prologue, epilogue, return_internal): Tidy output code.
37733         (mn10300_store_multiple_operation, return): Likewise.
37734         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
37735         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
37736         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
37737         (load_pic, am33_load_pic): New.
37738         (mn10300_load_pic0, mn10300_load_pic1): New.
37739
37740         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
37741         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
37742         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
37743         (cc_flags_for_mode, cc_flags_for_code): New.
37744         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
37745         overflow flag is not valid.  Validate that the flags we need
37746         for the comparison are valid.
37747         (mn10300_output_cmp): Remove.
37748         (mn10300_output_add): New.
37749         (mn10300_select_cc_mode): Use cc_flags_for_code.
37750         (mn10300_split_cbranch): New.
37751         (mn10300_match_ccmode): New.
37752         (mn10300_split_and_operand_count): New.
37753         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
37754         to the function.
37755         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
37756         (addsi3): ... here.  Use mn10300_output_add.
37757         (*addsi3_flags): New.
37758         (*am33_subsi3, *mn10300_subsi3): Merge...
37759         (subsi3): ... here.  Use attribute isa.
37760         (*subsi3_flags): New.
37761         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
37762         when possible.
37763         (*am33_andsi3, *mn10300_andsi3): Merge...
37764         (andsi3): ... here.
37765         (*andsi3_flags): New.
37766         (andsi3 splitters): New.
37767         (*am33_iorsi3, *mn10300_iorsi3): Merge...
37768         (iorsi3): ... here.
37769         (*iorsi3_flags): New.
37770         (*am33_xorsi3, *mn10300_xorsi3): Merge...
37771         (xorsi3): ... here.
37772         (*xorsi3_flags): New.
37773         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
37774         (one_cmplsi2): ... here.
37775         (*one_cmplsi2_flags): New.
37776         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
37777         instead of "dax" in constraints.  Use mn10300_split_cbranch.
37778         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
37779         use matching constraints to eliminate a self-comparison.
37780         (*integer_conditional_branch): Rename from integer_conditional_branch.
37781         Use int_mode_flags to match CC_REG.
37782         (*cbranchsi4_btst, *btstsi): New.
37783         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
37784         mn10300_split_cbranch.
37785         (*am33_cmpsf): Rename from am33_cmpsf.
37786         (*float_conditional_branch): Rename from float_conditional_branch.
37787         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
37788         (zero_extendqisi2): ... here.
37789         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
37790         (zero_extendhisi2): ... here.
37791         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
37792         (extendqisi2): ... here.
37793         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
37794         (extendhisi2): ... here.
37795         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
37796         (ashlsi3): ... here.
37797         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
37798         (lshrsi3): ... here.
37799         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
37800         (ashrsi3): ... here.
37801         (consecutive add peephole): Remove.
37802         * config/mn10300/predicates.md (label_ref_operand): New.
37803         (int_mode_flags): New.
37804         (CCZN_comparison_operator): New.
37805
37806         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
37807         (throughput_42_latency_43): New reservation.
37808         (mulsidi3, umulsidi3): New expanders.
37809         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
37810         the MDR register to allocation; separately allocate the low and
37811         high parts of the DImode result.
37812         (umulsidi3_internal): Similarly.
37813         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
37814         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
37815         (udivsi3, umodsi3): Remove.
37816         (udivmodsi4, divmodsi4): New expanders.
37817         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
37818         (*divmodsi4): Simiarly.
37819         (ext_internal): New.
37820
37821         * config/mn10300/constraints.md ("z"): New constraint.
37822         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
37823         (FIXED_REGISTERS): Don't fix MDR.
37824         (CALL_USED_REGSITERS): Reformat nicely.
37825         (REG_ALLOC_ORDER): Add MDR.
37826         (enum regclass): Add MDR_REGS.
37827         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
37828         (IRA_COVER_CLASSES): Add MDR_REGS.
37829         (REGNO_REG_CLASS): Handle MDR_REG.
37830         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
37831         (mn10300_register_move_cost): Likewise.
37832         * config/mn10300/mn10300.md (MDR_REG): New.
37833         (*movsi_internal): Handle moves to/from MDR_REGS.
37834
37835         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
37836         POST_MODIFY.
37837         (mn10300_secondary_reload): Tidy combination reload classes.
37838         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
37839         addresses for AM33.  Allow symbolic offsets for reg+imm.
37840         (mn10300_regno_in_class_p): New.
37841         (mn10300_legitimize_reload_address): New.
37842         * config/mn10300/mn10300.h (enum reg_class): Remove
37843         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
37844         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
37845         SP_OR_GENERAL_REGS.
37846         (REG_CLASS_NAMES): Update to match.
37847         (REG_CLASS_CONTENTS): Likewise.
37848         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
37849         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
37850         (REGNO_IN_RANGE_P): Remove.
37851         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
37852         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
37853         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
37854         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
37855         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
37856         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
37857         (REGNO_GENERAL_P): New.
37858         (HAVE_POST_MODIFY_DISP): New.
37859         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
37860         (LEGITIMIZE_RELOAD_ADDRESS): New.
37861         * config/mn10300/mn10300-protos.h: Update.
37862
37863         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
37864         DATA_REGS for AM33 stack-pointer destination.
37865         (mn10300_preferred_output_reload_class): Likewise.
37866         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
37867         into a form appropriate for ...
37868         (TARGET_SECONDARY_RELOAD): New.
37869         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
37870         * config/mn10300/mn10300-protos.h: Update.
37871         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
37872         reload_insi; use the "A" constraint for the scratch; handle AM33
37873         moves of sp to non-address registers.
37874
37875         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
37876         (*movqi_internal): ... here.
37877         (*am33_movhi, *mn10300_movhi): Merge into...
37878         (*movhi_internal): ... here.
37879         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
37880         as the source/destination of moves from/to SP.
37881         (movsf): Only allow for AM33-2.
37882         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
37883         any integer constant constraint.  Only allow for AM33-2.  Tidy
37884         all of the alternative outputs.
37885         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
37886         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
37887         for MN103.
37888         (udivsi3, umodsi3): New patterns for MN103 only.
37889
37890 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
37891
37892         * doc/tm.texi.in: Spell out that a lack of register class unions
37893         can lead to ICEs.
37894         * doc/tm.texi: Regenerate.
37895
37896 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
37897
37898         PR rtl-optimization/47337
37899         * dce.c (check_argument_store): New function.
37900         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
37901
37902         PR tree-optimization/47290
37903         * tree-eh.c (infinite_empty_loop_p): New function.
37904         (cleanup_empty_eh): Use it.
37905
37906 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
37907
37908         PR target/46997
37909         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
37910         (a64_expand_widen_sum): Ditto.
37911         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
37912         (vec_extract_evenodd_help): Ditto.
37913         (vec_extract_evenv4hi): Ditto.
37914         (vec_extract_oddv4hi): Ditto.
37915         (vec_extract_evenv2si): Ditto.
37916         (vec_extract_oddv2si): Ditto.
37917         (vec_extract_evenv2sf): Ditto.
37918         (vec_extract_oddv2sf): Ditto.
37919         (vec_pack_trunc_v4hi: Ditto.
37920         (vec_pack_trunc_v2si): Ditto.
37921         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
37922         (vec_interleave_highv8qi): Ditto.
37923         (mix1_r): Ditto.
37924         (vec_extract_oddv8qi): Ditto.
37925         (vec_interleave_lowv4hi): Ditto.
37926         (vec_interleave_highv4hi): Ditto.
37927         (vec_interleave_lowv2si): Ditto.
37928         (vec_interleave_highv2si): Ditto.
37929
37930 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37931
37932         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
37933         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
37934         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
37935         (pa_c_mode_for_suffix): New.
37936         (TARGET_EXPAND_BUILTIN): Define.
37937         (TARGET_C_MODE_FOR_SUFFIX): Define.
37938         (pa_builtins): Define.
37939         (pa_init_builtins): Register __float128 type and init new support
37940         builtins.
37941         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
37942         * config/pa/quadlib.c (_U_Qfcopysign): New.
37943
37944 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
37945
37946         PR middle-end/46894
37947         * explow.c (allocate_dynamic_stack_space): Do not assume more than
37948         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
37949         are defined.
37950
37951 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
37952
37953         PR tree-optimization/47179
37954         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
37955         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
37956
37957 2011-01-18  Richard Guenther  <rguenther@suse.de>
37958
37959         PR rtl-optimization/47216
37960         * emit-rtl.c: Include tree-flow.h.
37961         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
37962         of replicating it with different semantics.
37963         * Makefile.in (emit-rtl.o): Adjust.
37964
37965 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37966
37967         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
37968         (cortex_a9_dp): Handle neon types correctly.
37969
37970 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
37971
37972         PR rtl-optimization/47299
37973         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
37974         subtarget.  Use normal multiplication if both operands are constants.
37975         * expmed.c (expand_widening_mult): Don't try to optimize constant
37976         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
37977         before using it.
37978
37979 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37980
37981         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
37982         spacing after 'e.g.', typos, comma, hyphenation.
37983
37984 2011-01-17  Richard Henderson  <rth@redhat.com>
37985
37986         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
37987         (rx_restricted_mem_operand): New.
37988         (rx_shift_operand): Use register_operand.
37989         (rx_source_operand, rx_compare_operand): Likewise.
37990         * config/rx/rx.md (addsi3_flags): New expander.
37991         (adddi3): Rewrite as expander.
37992         (adc_internal, *adc_flags, adddi3_internal): New patterns.
37993         (subsi3_flags): New expander.
37994         (subdi3): Rewrite as expander.
37995         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
37996
37997         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
37998         (rx_init_builtins): Remove sat builtin.
37999         (rx_expand_builtin): Likewise.
38000         * config/rx/rx.md (ssaddsi3): New.
38001         (*sat): Rename from sat.  Represent the CC_REG input.
38002
38003         * config/rx/predicates.md (rshift_operator): New.
38004         * config/rx/rx.c (rx_expand_insv): Remove.
38005         * config/rx/rx-protos.h: Update.
38006         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
38007         operand to the canonical position.
38008         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
38009         (*bitclr, *bitclr_in_memory): Similarly.
38010         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
38011         (insv): Retain the zero_extract in the expansion.
38012
38013         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
38014         (bswaphi2, bitinvert, revw): Likewise.
38015
38016         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
38017         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
38018         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
38019         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
38020         (bitset, bitset_in_memory): Likewise.
38021         (bitinvert, bitinvert_in_memory): Likewise.
38022         (bitclr, bitclr_in_memory): Likewise.
38023         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
38024         (rx_strend, rx_cmpstrn): Likewise.
38025         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
38026         (bitop peep2 patterns): Remove.
38027
38028         * config/rx/rx.c (rx_match_ccmode): New.
38029         * config/rx/rx-protos.h: Update.
38030         * config/rx/rx.md (abssi2): Clobber, don't set flags.
38031         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
38032         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
38033         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
38034         (fix_truncsfsi2, floatsisf2): Likewise.
38035         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
38036         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
38037         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
38038         (*subsi3_flags, *xorsi3_flags): New.
38039
38040         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
38041
38042         * config/rx/rx.c (rx_print_operand): Remove workaround for
38043         unsplit comparison operations.
38044
38045         * config/rx/rx.md (movsicc): Split after reload.
38046         (*movsicc): Merge *movsieq and *movsine via match_operator.
38047         (*stcc): New pattern.
38048
38049         * config/rx/rx.c (rx_float_compare_mode): Remove.
38050         * config/rx/rx.h (rx_float_compare_mode): Remove.
38051         * config/rx/rx.md (cstoresi4): Split after reload.
38052         (*sccc): New pattern.
38053
38054         * config/rx/predicates.md (label_ref_operand): New.
38055         (rx_z_comparison_operator): New.
38056         (rx_zs_comparison_operator): New.
38057         (rx_fp_comparison_operator): New.
38058         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
38059         Validate that the flags are set properly for the comparison.
38060         (rx_gen_cond_branch_template): Remove.
38061         (rx_cc_modes_compatible): Remove.
38062         (mode_from_flags): New.
38063         (flags_from_code): Rename from flags_needed_for_conditional.
38064         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
38065         (rx_select_cc_mode): Likewise.
38066         (rx_split_fp_compare): New.
38067         (rx_split_cbranch): New.
38068         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
38069         (*cbranchsi4): Use match_operator and rx_split_cbranch.
38070         (*cbranchsf4): Similarly.
38071         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
38072         match_operator and rx_split_cbranch.
38073         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
38074         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
38075         (*cmpsi): Rename from cmpsi.
38076         (*tstsi): Rename from tstsi.
38077         (*cmpsf): Rename from cmpsf; use CC_Fmode.
38078         (*conditional_branch): Rename from conditional_branch.
38079         (*reveresed_conditional_branch): Remove.
38080         (b<code>): Remove expander.
38081         * config/rx/rx-protos.h: Update.
38082
38083         * config/rx/rx.c (rx_compare_redundant): Remove.
38084         * config/rx/rx.md (cmpsi): Don't use it.
38085         * config/rx/rx-protos.h: Update.
38086
38087         * config/rx/rx-modes.def (CC_F): New mode.
38088         * config/rx/rx.c (rx_select_cc_mode): New.
38089         * config/rx/rx.h (SELECT_CC_MODE): Use it.
38090         * config/rx/rx-protos.h: Update.
38091
38092 2011-01-17  Richard Henderson  <rth@redhat.com>
38093
38094         * except.c (dump_eh_tree): Fix stray ; after for statement.
38095
38096 2011-01-17  Richard Guenther  <rguenther@suse.de>
38097
38098         PR tree-optimization/47313
38099         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
38100         handling before copying the body.  Properly deal with
38101         by-reference result in SSA form.
38102
38103 2011-01-17  Ian Lance Taylor  <iant@google.com>
38104
38105         PR target/47219
38106         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
38107         (struct_value_alias_set): Don't define.
38108         (sparc_option_override): Don't set sparc_sr_alias_set and
38109         struct_value_alias_set.
38110         (save_or_restore_regs): Use gen_frame_mem rather than calling
38111         set_mem_alias_set.
38112         (sparc_struct_value_rtx): Likewise.
38113
38114 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
38115
38116         PR target/47318
38117         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
38118         (_mm_maskstore_pd): Likewise.
38119         (_mm_maskload_ps): Likewise.
38120         (_mm_maskstore_ps): Likewise.
38121         (_mm256_maskload_pd): Change mask to __m256i.
38122         (_mm256_maskstore_pd): Likewise.
38123         (_mm256_maskload_ps): Likewise.
38124         (_mm256_maskstore_ps): Likewise.
38125
38126         * config/i386/i386-builtin-types.def: Updated.
38127         (ix86_expand_special_args_builtin): Likewise.
38128
38129         * config/i386/i386.c (bdesc_special_args): Update
38130         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
38131         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
38132         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
38133         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
38134
38135         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
38136         Use <avxpermvecmode> on mask register.
38137         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
38138
38139 2011-01-17  Olivier Hainque  <hainque@adacore.com>
38140             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38141             Eric Botcazou  <ebotcazou@adacore.com>
38142
38143         PR target/46655
38144         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
38145         if <= USHRT_MAX in 32-bit mode.
38146
38147 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38148
38149         * doc/install.texi (Configuration, Specific): Wrap long
38150         lines in examples.  Allow line wrapping in long options
38151         and URLs where beneficial for PDF output.
38152
38153 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
38154
38155         * config/mips/mips.c (mips_classify_symbol): Don't return
38156         SYMBOL_PC_RELATIVE for nonlocal labels.
38157
38158 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
38159
38160         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
38161
38162 2011-01-15  Jan Hubicka  <jh@suse.cz>
38163
38164         PR tree-optimization/47276
38165         * ipa.c (function_and_variable_visibility): Do not try to mark alias
38166         declarations as needed.
38167
38168 2011-01-15  Martin Jambor  <mjambor@suse.cz>
38169
38170         * common.opt (fdevirtualize): New flag.
38171         * doc/invoke.texi (Option Summary): Document it.
38172         * opts.c (default_options_table): Add devirtualize flag.
38173         * ipa-prop.c (detect_type_change): Return immediately if
38174         devirtualize flag is not set.
38175         (detect_type_change_ssa): Likewise.
38176         (compute_known_type_jump_func): Likewise.
38177         (ipa_analyze_virtual_call_uses): Likewise.
38178
38179 2011-01-14  Martin Jambor  <mjambor@suse.cz>
38180
38181         PR tree-optimization/45934
38182         PR tree-optimization/46302
38183         * ipa-prop.c (type_change_info): New type.
38184         (stmt_may_be_vtbl_ptr_store): New function.
38185         (check_stmt_for_type_change): Likewise.
38186         (detect_type_change): Likewise.
38187         (detect_type_change_ssa): Likewise.
38188         (compute_complex_assign_jump_func): Check for dynamic type change.
38189         (compute_complex_ancestor_jump_func): Likewise.
38190         (compute_known_type_jump_func): Likewise.
38191         (compute_scalar_jump_functions): Likewise.
38192         (ipa_analyze_virtual_call_uses): Likewise.
38193         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
38194
38195 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38196
38197         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
38198         * config/i386/i386.opt (msse5): New Alias.
38199
38200 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38201
38202         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
38203         * config/sparc/linux64.h (CC1_SPEC): Likewise.
38204         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
38205         * config/sparc/sparc.h (CC1_SPEC): Likewise.
38206
38207 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38208
38209         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
38210         -mcpu options.
38211         * config/sparc/linux64.h (CC1_SPEC): Likewise.
38212         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
38213         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
38214         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
38215         Likewise.
38216         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
38217
38218 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38219
38220         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
38221
38222 2011-01-14  Mike Stump  <mikestump@comcast.net>
38223
38224         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
38225         * config/fr30/fr30.md: Likweise
38226         (movsi_push): Likewise.
38227         (movsi_pop): Likewise.
38228         (enter_func): Likewise.
38229         * config/moxie/moxie.md (movsi_push): Likewise.
38230         (movsi_pop): Likewise.
38231
38232 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38233
38234         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
38235         %{no_archive} %{exact_version}.
38236         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
38237         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
38238         %{no_archive} %{exact_version}.
38239         * config/mips/openbsd.h (LINK_SPEC): Likewise.
38240         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
38241         * config/mips/vxworks.h: Likewise.
38242
38243 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38244
38245         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
38246
38247 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38248
38249         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
38250         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
38251
38252 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38253
38254         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
38255         -nodefaultlib.
38256
38257 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38258
38259         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
38260         for mcpu not cpu.
38261         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
38262         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
38263         not cpu.
38264         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
38265         Don't handle -shlib.
38266
38267 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38268
38269         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
38270         (CC1_SPEC): Don't handle -profile.
38271
38272 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38273
38274         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
38275         * config/mips/mips.h (CC1_SPEC): Likewise.
38276
38277 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38278
38279         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
38280         * config/mips/mips.h (CC1_SPEC): Likewise.
38281
38282 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38283
38284         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
38285         * config/m32r/linux.h (LINK_SPEC): Likewise.
38286         * config/mips/linux.h (LINK_SPEC): Likewise.
38287         * config/mips/linux64.h (LINK_SPEC): Likewise.
38288         * config/sparc/linux.h (LINK_SPEC): Likewise.
38289         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
38290         LINK_SPEC): Likewise.
38291         * config/xtensa/linux.h (LINK_SPEC): Likewise.
38292
38293 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38294
38295         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
38296         %{version:-v}.
38297         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
38298
38299 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38300
38301         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
38302         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
38303
38304 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
38305
38306         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
38307
38308 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38309
38310         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
38311         supports -Bstatic/-Bdynamic.
38312         * configure: Regenerate.
38313
38314 2011-01-14  Jan Hubicka  <jh@suse.cz>
38315             Jack Howarth  <howarth@bromo.med.uc.edu>
38316
38317         PR target/46037
38318         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
38319         when checking debug_info_level. Test write_symbols instead of
38320         debug_hooks->var_location when setting flag_var_tracking_uninit.
38321
38322 2011-01-14  Richard Guenther  <rguenther@suse.de>
38323
38324         PR tree-optimization/47179
38325         * target.def (ref_may_alias_errno): New target hook.
38326         * targhooks.h (default_ref_may_alias_errno): Declare.
38327         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
38328         (default_ref_may_alias_errno): New function.
38329         * target.h (struct ao_ref_s): Declare.
38330         * tree-ssa-alias.c: Include target.h.
38331         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
38332         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
38333         (targhooks.o): Likewise.
38334         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
38335         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
38336
38337 2011-01-14  Richard Guenther  <rguenther@suse.de>
38338
38339         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
38340
38341 2011-01-14  Richard Guenther  <rguenther@suse.de>
38342
38343         PR tree-optimization/47280
38344         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
38345         return CFG changes.
38346         (tree_ssa_forward_propagate_single_use_vars): Deal with
38347         CFG changes from associate_plusminus.
38348
38349 2011-01-14  Richard Guenther  <rguenther@suse.de>
38350
38351         PR middle-end/47281
38352         Revert
38353         2011-01-11  Richard Guenther  <rguenther@suse.de>
38354
38355         PR tree-optimization/46076
38356         * tree-ssa.c (useless_type_conversion_p): Conversions from
38357         unprototyped to empty argument list function types are useless.
38358
38359 2011-01-14  Richard Guenther  <rguenther@suse.de>
38360
38361         PR tree-optimization/47286
38362         * tree-ssa-structalias.c (new_var_info): Register variables are global.
38363
38364 2011-01-14  Martin Jambor  <mjambor@suse.cz>
38365
38366         PR middle-end/46823
38367         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
38368
38369 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
38370
38371         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
38372         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
38373         * config/xtensa/xtensa.c (xtensa_libcall_value,
38374         xtensa_function_value_regno_p): New functions.
38375         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
38376
38377 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
38378
38379         PR c++/47213
38380         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
38381         PE specific hook.
38382         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
38383         New function prototype.
38384         * config/i386/winnt.c (i386_pe_assemble_visibility):
38385         Warn only if attribute was specified by user.
38386
38387 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
38388
38389         PR target/47251
38390         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
38391         floating point.
38392         (floatunsdidf2_fcfidu): Ditto.
38393
38394 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38395
38396         * config/s390/s390.c (print_operand_address): Replace 'error' with
38397         'output_operand_lossage'.
38398         (print_operand): Likewise.
38399
38400 2011-01-13  Jeff Law  <law@redhat.com>
38401
38402         PR rtl-optimization/39077
38403         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
38404         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
38405         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
38406         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
38407         * gcse.c (prune_insertions_deletions): New function.
38408         (compute_pre_data): Use it.
38409
38410 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
38411
38412         PR debug/PR46973
38413         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
38414         static function.
38415         (prune_unused_types_mark): Use it.
38416
38417 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
38418
38419         PR rtl-optimization/45352
38420         * sel-sched.c: Update copyright years.
38421         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
38422         in the advancing loop when we have issued issue_rate insns.
38423
38424 2011-01-12  Richard Henderson  <rth@redhat.com>
38425
38426         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
38427         (TARGET_MD_ASM_CLOBBERS): New.
38428
38429         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
38430         (TARGET_DELEGITIMIZE_ADDRESS): New.
38431
38432         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
38433         (clzsi2, *bsch): New patterns.
38434
38435         * config/mn10300/mn10300.md (INT): New mode iterator.
38436         (*mov<INT>_clr): New pattern, and peep2 to generate it.
38437
38438         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
38439         flag_split_wide_types.
38440
38441         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
38442         (mn10300_trampoline_init): Rewrite without a template, an immediate
38443         load and a direct branch.
38444         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
38445
38446 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
38447
38448         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
38449         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
38450         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
38451         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
38452
38453 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
38454
38455         PR debug/47209
38456         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
38457         of type.
38458
38459 2011-01-12  Jan Hubicka  <jh@suse.cz>
38460
38461         PR driver/47244
38462         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
38463         (PLUGIN_COND_CLOSE): New macro.
38464         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
38465
38466 2011-01-12  Richard Guenther  <rguenther@suse.de>
38467
38468         PR lto/47259
38469         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
38470         register variables in a MEM_REF.
38471
38472 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
38473
38474         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
38475         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
38476         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
38477         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
38478         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
38479         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
38480         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
38481         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
38482         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
38483         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
38484         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
38485         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
38486         * config/gnu-user.h: New.  Copied from linux.h.
38487         (LINUX_TARGET_STARTFILE_SPEC): Rename to
38488         GNU_USER_TARGET_STARTFILE_SPEC.
38489         (LINUX_TARGET_ENDFILE_SPEC): Rename to
38490         GNU_USER_TARGET_ENDFILE_SPEC.
38491         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
38492         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
38493         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
38494         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
38495         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
38496         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
38497         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
38498         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
38499         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
38500         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
38501         * config/arm/linux-eabi.h (CC1_SPEC): Use
38502         GNU_USER_TARGET_CC1_SPEC.
38503         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
38504         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
38505         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
38506         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
38507         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
38508         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
38509         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
38510         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
38511
38512 2011-01-12  Richard Guenther  <rguenther@suse.de>
38513
38514         PR other/46946
38515         * doc/invoke.texi (ffast-math): Document it is turned on
38516         with -Ofast.
38517
38518 2011-01-12  Jan Hubicka  <jh@suse.cz>
38519
38520         PR tree-optimization/47233
38521         * opts.c (common_handle_option): Disable ipa-reference with profile
38522         feedback.
38523
38524 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
38525
38526         * c-parser.c (c_parser_objc_at_property_declaration): Improved
38527         error message.
38528
38529 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
38530
38531         * c-parser.c (c_lex_one_token): Updated and reindented some
38532         comments.  No changes in code.
38533
38534 2011-01-11  Ian Lance Taylor  <iant@google.com>
38535
38536         * godump.c (go_output_var): Don't output the variable if there is
38537         already a type with the same name.
38538
38539 2011-01-11  Ian Lance Taylor  <iant@google.com>
38540
38541         * godump.c (go_format_type): Don't generate float80.
38542
38543 2011-01-11  Richard Henderson  <rth@redhat.com>
38544
38545         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
38546         declaration.  Rewrite for both speed and size.
38547         (mn10300_address_cost_1): Remove.
38548         (mn10300_register_move_cost): New.
38549         (mn10300_memory_move_cost): New.
38550         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
38551         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
38552         extensions, shifts, BSWAP, CLZ.
38553         (mn10300_wide_const_load_uses_clr): Remove.
38554         (TARGET_REGISTER_MOVE_COST): New.
38555         (TARGET_MEMORY_MOVE_COST): New.
38556         * config/mn10300/mn10300-protos.h: Update.
38557         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
38558
38559         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
38560         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
38561         * config/mn10300/mn10300-protos.h: Update.
38562         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
38563         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
38564         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
38565         (*test_int_bitfield, *test_byte_bitfield): Remove.
38566         (*bit_test, *subreg_bit_test): Remove.
38567         * config/mn10300/predicates.md (const_8bit_operand): Remove.
38568
38569         * config/mn10300/constraints.md ("c"): Rename from "A".
38570         ("A", "D"): New constraint letters.
38571         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
38572         (fmssf4, fnmasf4, fnmssf4): Likewise.
38573
38574         * config/mn10300/mn10300.md (isa): New attribute.
38575         (enabled): New attribute.
38576
38577         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
38578         (abssf2, negsf2): Define only for hardware fp.
38579         (sqrtsf2): Reformat.
38580         (addsf3, subsf3, mulsf3): Merge expander and insn.
38581
38582         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
38583         (DEBUGGER_AUTO_OFFSET): Remove.
38584         (DEBUGGER_ARG_OFFSET): Remove.
38585
38586         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
38587         Emit register stores with the same offsets as the hardware.
38588         (mn10300_store_multiple_operation): Don't check that the register
38589         save offsets are monotonic.
38590         * config/mn10300/mn10300-protos.h: Update.
38591
38592         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
38593
38594         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
38595         in terms of the value on the stack, not the MDR register.
38596
38597 2011-01-11  Jan Hubicka  <jh@suse.cz>
38598
38599         PR lto/45721
38600         PR lto/45375
38601         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
38602         (symbol_alias_set_destroy, symbol_alias_set_contains,
38603         propagate_aliases_backward): Declare.
38604         * lto-streamer-out.c (struct sets): New sturcture.
38605         (trivally_defined_alias): New function.
38606         (output_alias_pair_p): Rewrite.
38607         (output_unreferenced_globals): Fix output of alias pairs.
38608         (produce_symtab): Likewise.
38609         * ipa.c (function_and_variable_visibility): Set weak alias destination
38610         as needed in lto.
38611         * varasm.c (symbol_alias_set_t): Remove.
38612         (symbol_alias_set_destroy): Export.
38613         (propagate_aliases_forward, propagate_aliases_backward): New functions
38614         based on ...
38615         (compute_visible_aliases): ... this one; remove.
38616         (trivially_visible_alias): New
38617         (trivially_defined_alias): New.
38618         (remove_unreachable_alias_pairs): Rewrite.
38619         (finish_aliases_1): Reorganize code checking if alias is defined.
38620         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
38621         in LTO mode.
38622
38623 2011-01-11  Richard Guenther  <rguenther@suse.de>
38624
38625         PR tree-optimization/46076
38626         * tree-ssa.c (useless_type_conversion_p): Conversions from
38627         unprototyped to empty argument list function types are useless.
38628
38629 2011-01-11  Richard Guenther  <rguenther@suse.de>
38630
38631         PR middle-end/45235
38632         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
38633         volatile MEMs as MEM_READONLY_P.
38634
38635 2011-01-11  Richard Guenther  <rguenther@suse.de>
38636
38637         PR tree-optimization/47239
38638         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
38639
38640 2011-01-11  Jeff Law  <law@redhat.com>
38641
38642         PR tree-optimization/47086
38643         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
38644         IVs from statements that might throw.
38645
38646 2011-01-10  Jan Hubicka  <jh@suse.cz>
38647
38648         PR lto/45375
38649         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
38650
38651 2011-01-10  Jan Hubicka  <jh@suse.cz>
38652
38653         PR lto/45375
38654         * profile.c (read_profile_edge_counts): Ignore profile inconistency
38655         when correcting profile.
38656
38657 2011-01-10  Jan Hubicka  <jh@suse.cz>
38658
38659         PR lto/46083
38660         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
38661         DECL_FINI_PRIORITY.
38662         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
38663         Restore DECL_FINI_PRIORITY.
38664
38665 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38666
38667         * doc/gimple.texi: Fix quoting of multi-word return values in
38668         @deftypefn statements.  Ensure presence of return value.  Wrap
38669         overlong @deftypefn lines.
38670         (is_gimple_operand, is_gimple_min_invariant_address): Remove
38671         descriptions of removed functions.
38672         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
38673         of multi-word return value in @deftypefn statement.
38674
38675 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38676
38677         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
38678         (Conditional Expressions, Logical Operators)
38679         (Statement and operand traversals): Do not indent smallexample
38680         code.  Fix duplicate function argument in example.
38681
38682 2011-01-10  Jeff Law  <law@redhat.com>
38683
38684         PR tree-optimization/47141
38685         * ipa-split.c (split_function): Handle case where we are
38686         returning a value and the return block has a virtual operand phi.
38687
38688 2011-01-10  Jan Hubicka  <jh@suse.cz>
38689
38690         PR tree-optimization/47234
38691         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
38692         (pass_feedback_split_functions): Declare.
38693         * passes.c (init_optimization_passes): Add ipa-split as subpass of
38694         tree-profile.
38695         * ipa-split.c (gate_split_functions): Update comments; disable
38696         split-functions for profile_arc_flag and branch_probabilities.
38697         (gate_feedback_split_functions): New function.
38698         (execute_feedback_split_functions): New function.
38699         (pass_feedback_split_functions): New global var.
38700
38701 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
38702
38703         PR lto/46760
38704         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
38705         calling gimple_call_set_cannot_inline.
38706
38707 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
38708
38709         * config/darwin-sections.def: Remove unused section.
38710
38711 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
38712
38713         PR c++/47218
38714         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
38715
38716 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
38717
38718         PR objc/47232
38719         * c-parser.c (c_parser_declaration_or_fndef): Improved
38720         error message.
38721
38722 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
38723
38724         * config/i386/winnt.c (i386_pe_start_function): Make sure
38725         to switch back to function's section.
38726
38727 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
38728
38729         PR gcc/46902
38730         PR testsuite/46912
38731         * plugin.c: Move include of dlfcn.h from here...
38732         * system.h: ... to here.
38733
38734 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38735
38736         * doc/cpp.texi (C++ Named Operators): Fix markup for header
38737         file name.
38738         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
38739         two extra empty pages in PDF output.
38740
38741 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
38742
38743         PR objc/47078
38744         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
38745         for error recovery purposes behave as if it was not specified so
38746         that the default type is usd.
38747
38748 2011-01-07  Jan Hubicka  <jh@suse.cz>
38749
38750         PR tree-optmization/46469
38751         * ipa.c (function_and_variable_visibility): Clear needed flags on
38752         nodes with external decls; handle weakrefs merging correctly.
38753
38754 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
38755
38756         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
38757         not false.
38758
38759 2011-01-07  Jan Hubicka  <jh@suse.cz>
38760
38761         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
38762         and no longer claim that gold is required for linker plugin.
38763         * configure: Regenerate.
38764         * gcc.c (PLUGIN_COND): New macro.
38765         (LINK_COMMAND_SPEC): Use it.
38766         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
38767         * config.in (HAVE_LTO_PLUGIN): New.
38768         * configure.ac (--with-lto-plugin): New parameter; autodetect
38769         HAVE_LTO_PLUGIN.
38770
38771 2011-01-07  Jan Hubicka  <jh@suse.cz>
38772
38773         PR tree-optimization/46367
38774         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
38775         when we can update original.
38776         (cgraph_mark_inline_edge): Sanity check.
38777         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
38778
38779 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
38780
38781         * config/spu/spu.h (ASM_COMMENT_START): Define.
38782
38783 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
38784
38785         PR driver/42445
38786         * gcc.c (%>S): New.
38787         (SWITCH_KEEP_FOR_GCC): Likewise.
38788         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
38789         (do_spec_1): Handle "%>".
38790
38791         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
38792
38793 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
38794
38795         PR target/47201
38796         * config/i386/i386.c (ix86_delegitimize_address): If
38797         simplify_gen_subreg fails, return orig_x.
38798
38799         PR bootstrap/47187
38800         * value-prof.c (gimple_stringop_fixed_value): Handle
38801         lhs of the call properly.
38802
38803 2011-01-07  Jan Hubicka  <jh@suse.cz>
38804
38805         PR lto/45375
38806         * lto-opt.c (lto_reissue_options): Set flag_shlib.
38807
38808 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
38809
38810         * target.def (function_switched_text_sections): New hook.
38811         * doc/tm.texi: Regenerated.
38812         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
38813         * final.c (default_function_switched_text_sections): New.
38814         (final_scan_insn): Call function_switched_text_sections when a
38815         mid-function section change occurs.
38816         * output.h (default_function_switched_text_sections): Declare.
38817         * config/darwin-protos.h (darwin_function_switched_text_sections):
38818         Likewise.
38819         * config/darwin.c (darwin_function_switched_text_sections): New.
38820         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
38821
38822 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
38823
38824         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
38825         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
38826         the secondary code fragment when outputting for DWARF == 2.
38827
38828 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
38829
38830         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
38831         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
38832         Remove.
38833         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
38834         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
38835
38836 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
38837
38838         PR debug/46704
38839         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
38840         when it is not empty.
38841
38842 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
38843
38844         Bobcat Enablement
38845         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
38846         (case ${target}): Add btver1.
38847         * config/i386/driver-i386.c (host_detect_local_cpu): Let
38848         -march=native recognize btver1 processors.
38849         * config/i386/i386-c.c (ix86_target_macros_internal): Add
38850         btver1 def_and_undef
38851         * config/i386/i386.c (struct processor_costs btver1_cost): New
38852         btver1 cost table.
38853         (m_BTVER1): New definition.
38854         (m_AMD_MULTIPLE): Includes m_BTVER1.
38855         (initial_ix86_tune_features): Add btver1 tune.
38856         (processor_target_table): Add btver1 entry.
38857         (static const char *const cpu_names): Add btver1 entry.
38858         (software_prefetching_beneficial_p): Add btver1.
38859         (ix86_option_override_internal): Add btver1 instruction sets.
38860         (ix86_issue_rate): Add btver1.
38861         (ix86_adjust_cost): Add btver1.
38862         * config/i386/i386.h (TARGET_BTVER1): New definition.
38863         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
38864         (enum processor_type): Add PROCESSOR_BTVER1.
38865         * config/i386/i386.md (define_attr "cpu"): Add btver1.
38866
38867 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38868
38869         PR target/43309
38870         * config/i386/i386.c (legitimize_tls_address)
38871         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
38872         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
38873         (tls_initial_exec_64_sun): New pattern.
38874
38875 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
38876
38877         * doc/invoke.texi (Overall Options): Improve wording and markup
38878         of the description of -wrapper.
38879
38880 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
38881
38882         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
38883         rdynamic, threads): New Driver options.
38884
38885 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38886
38887         PR target/38118
38888         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
38889         if coming from .tdata.
38890         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
38891
38892 2011-01-06  Jan Hubicka  <jh@suse.cz>
38893
38894         PR lto/47188
38895         * collect2.c (main): Do not enable LTOmode when plugin is active.
38896
38897 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38898
38899         PR other/45915
38900         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
38901         --version output if supported.
38902         * configure: Regenerate.
38903
38904 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
38905
38906         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
38907         Driver options.
38908
38909 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
38910
38911         PR c/47150
38912         * c-convert.c (convert): When converting a complex expression
38913         other than COMPLEX_EXPR to a different complex type, ensure
38914         c_save_expr is called instead of save_expr, unless in_late_binary_op.
38915         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
38916         when converting COMPLEX_TYPE.
38917
38918 2011-01-06  Ira Rosen  <irar@il.ibm.com>
38919
38920         PR tree-optimization/47139
38921         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
38922         only the last reduction value is used outside the loop.  Update
38923         documentation.
38924
38925 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
38926
38927         * config/rtems.opt: New.
38928         * config.gcc (*-*-rtems*): Use rtems.opt.
38929
38930 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
38931
38932         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
38933         processors do not support 3DNow instructions.
38934
38935 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
38936
38937         * config/spu/spu.c (spu_option_override): Set parameter
38938         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
38939
38940 2011-01-05  Jan Hubicka  <jh@suse.cz>
38941
38942         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
38943         at the command line.
38944
38945 2011-01-05  Martin Jambor  <mjambor@suse.cz>
38946
38947         PR lto/47162
38948         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
38949         deltas on streamed outgoing edges.
38950         (output_node_opt_summary): Output info for outgoing edges only when
38951         the node is in new parameter set.
38952         (output_cgraph_opt_summary): New parameter set, passed to the two
38953         aforementioned functions.  Update its forward declaration and its
38954         callee too.
38955
38956 2011-01-05  Tom Tromey  <tromey@redhat.com>
38957
38958         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
38959         operator to c_finish_omp_atomic.
38960         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
38961         (build_unary_op): Update.
38962         (build_modify_expr): Update.
38963         (build_asm_expr): Update.
38964
38965 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
38966
38967         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
38968         newly inserted insns.
38969         (pad_bb): Likewise.
38970         (spu_emit_branch_hint): Likewise.
38971         (insert_hbrp_for_ilb_runout): Likewise.
38972         (spu_machine_dependent_reorg): Call df_finish_pass after
38973         schedule_insns returns.
38974
38975 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
38976
38977         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
38978
38979 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
38980
38981         PR tree-optimization/47005
38982         * tree-sra.c (struct access): Add 'non_addressable' bit.
38983         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
38984         (decide_one_param_reduction): Return 0 if the parameter is passed by
38985         reference and one of the accesses in the group is non_addressable.
38986
38987 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
38988
38989         PR tree-optimization/47056
38990         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
38991         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
38992         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
38993
38994 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
38995
38996         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
38997         initializer.  Skip view conversions from aggregate types.
38998
38999 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
39000
39001         PR bootstrap/47055
39002         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
39003
39004 2011-01-04  Philipp Thomas  <pth@suse.de>
39005
39006         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
39007         obvious typo.
39008
39009 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
39010
39011         * function.c (thread_prologue_and_epilogue_insns): Do not crash
39012         on empty epilogue sequences.
39013
39014 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
39015
39016         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
39017         non-static): New Driver options.
39018
39019 2011-01-04  Jie Zhang  <jie@codesourcery.com>
39020
39021         PR driver/47137
39022         * gcc.c (default_compilers[]): Set combinable field to 0
39023         for all assembly languages.
39024
39025 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
39026
39027         * config/mips/loongson3a.md: New file.
39028         * config/mips/mips.md: Include loongson3a.md.
39029         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
39030         TUNE_LOONGSON_3A.
39031
39032 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
39033
39034         PR middle-end/47017
39035         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
39036         instead of convert_memory_address_addr_space on the base expression.
39037
39038 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
39039
39040         * config/spu/spu.c (spu_option_override): Update error text
39041         for bad -march= / -mtune= values.
39042
39043 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
39044
39045         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
39046         if branch-hint optimization will be performed.
39047
39048 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
39049
39050         PR tree-optimization/47148
39051         * ipa-split.c (split_function): Convert arguments to
39052         DECL_ARG_TYPE if possible.
39053
39054         PR tree-optimization/47155
39055         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
39056         when computing uns.
39057
39058         PR rtl-optimization/47157
39059         * combine.c (try_combine): If undobuf.other_insn becomes
39060         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
39061         and set *new_direct_jump_p too.
39062
39063 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
39064
39065         PR tree-optimization/47021
39066         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
39067
39068 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
39069
39070         * gcc.c (process_command): Update copyright notice dates.
39071         * gcov.c (print_version): Likewise.
39072         * gcov-dump.c (print_version): Likewise.
39073         * mips-tfile.c (main): Likewise.
39074         * mips-tdump.c (main): Likewise.
39075
39076 2011-01-03  Martin Jambor  <mjambor@suse.cz>
39077
39078         PR tree-optimization/46801
39079         * tree-sra.c (type_internals_preclude_sra_p): Check whether
39080         aggregate fields start at byte boundary instead of the bit-field flag.
39081
39082 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
39083
39084         PR driver/47137
39085         * gcc.c (main): Revert revision 168407.
39086
39087 2011-01-03  Martin Jambor  <mjambor@suse.cz>
39088
39089         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
39090
39091 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
39092
39093         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
39094         vector optab to expand vector/scalar shift, update gimple to vector.
39095
39096 2011-01-03  Martin Jambor  <mjambor@suse.cz>
39097
39098         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
39099         a thunk.
39100
39101 2011-01-03  Martin Jambor  <mjambor@suse.cz>
39102
39103         PR tree-optimization/46984
39104         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
39105         HOST_WIDE_INT.
39106         (cgraph_create_indirect_edge): Fixed line length.
39107         (cgraph_indirect_call_info): Declare.
39108         (cgraph_make_edge_direct) Update declaration.
39109         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
39110         (cgraph_create_indirect_edge): Use it.
39111         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
39112         callees.
39113         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
39114         the new thunk_delta representation.
39115         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
39116         HOST_WIDE_INT.
39117         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
39118         (ipa_read_indirect_edge_info): Likewise.
39119         * lto-cgraph.c (output_edge_opt_summary): New function.
39120         (output_node_opt_summary): Call it on all outgoing edges.
39121         (input_edge_opt_summary): New function.
39122         (input_node_opt_summary): Call it on all outgoing edges.
39123
39124 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
39125
39126         PR driver/47137
39127         * gcc.c (main): Don't check have_o when settting combine_inputs.
39128
39129 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
39130
39131         * regrename.c: Add general comment describing the pass.
39132         (struct du_head): Remove 'length' field.
39133         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
39134         (regrename_optimize): Do not sort chains.  Rework comments, add others.
39135         Force renaming to the preferred class (if any) in the first pass and do
39136         not consider registers that belong to it in the second pass.
39137         (create_new_chain): Do not set 'length' field.
39138         (scan_rtx_reg): Likewise.
39139
39140 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
39141
39142         PR tree-optimization/47140
39143         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
39144         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
39145         to bit_value_binop.
39146
39147         PR rtl-optimization/47028
39148         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
39149         parm_birth_insn instead of at the beginning of first bb.
39150
39151 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
39152
39153         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
39154         Remove the word "see" before "@pxref".
39155         * doc/rtl.texi: Remove the word "see" before "@pxref".
39156
39157 2011-01-01  Jan Hubicka  <jh@suse.cz>
39158
39159         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
39160         memory.
39161
39162 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
39163
39164         PR target/38662
39165         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
39166
39167 \f
39168 Copyright (C) 2011 Free Software Foundation, Inc.
39169
39170 Copying and distribution of this file, with or without modification,
39171 are permitted in any medium without royalty provided the copyright
39172 notice and this notice are preserved.