15e99e4fbeb9f561f34e41642f1c429c039f44cc
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-07-06  Richard Guenther  <rguenther@suse.de>
2
3         * tree.c (build_common_tree_nodes_2): Merge with
4         build_common_tree_nodes.
5         * tree.h (build_common_tree_nodes): Adjust prototype.
6         (build_common_tree_nodes_2): Remove.
7         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
9
10 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
11
12         PR tree-optimization/49618
13         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
14         t recurse on the decl.
15         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
16         return true if expr isn't known to be defined in current
17         TU or some other LTO partition.
18
19 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
20
21         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
22         override CASE_VALUES_THRESHOLD.
23
24         * stmt.c (toplevel): Include params.h.
25         (case_values_threshold): Use the --param case-values-threshold
26         value if non-zero, otherwise use machine dependent value.
27         (expand_case): Use case_values_threshold.
28
29         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
30
31         * doc/invoke.texi (--param case-values-threshold): Document.
32
33 2011-07-05  Richard Henderson  <rth@redhat.com>
34
35         * dwarf2out.c (dwarf2out_cfi_label): Make static.
36         (dwarf2out_flush_queued_reg_saves): Make static.
37         (dwarf2out_reg_save): Remove.
38         (dwarf2out_return_save): Remove.
39         (dwarf2out_return_reg): Remove.
40         (dwarf2out_reg_save_reg): Remove.
41         (dwarf2out_def_cfa): Merge into ...
42         (dwarf2out_frame_init): ... here.
43         * dwarf2out.h, tree.h: Remove declarations as necessary.
44
45 2011-07-05  Richard Henderson  <rth@redhat.com>
46
47         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
48         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
49         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
50         the alloc insn.
51
52         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
53         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
54         (process_epilogue): Don't call dwarf2out_def_cfa.
55
56         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
57         indicate the return address save.
58         (process_cfa_register): Likewise.
59
60         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
61         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
62
63         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
64         for ar.pfs save at alloc insn.
65
66 2011-07-05  Richard Henderson  <rth@redhat.com>
67
68         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
69         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
70         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
71         stack pointer save.
72         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
73         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
74         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
75         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
76
77 2011-07-05  Richard Henderson  <rth@redhat.com>
78
79         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
80         VUNSPEC_* constants here instead of via define_constants.
81         (VUNSPEC_PEM): New constant.
82         (procedure_entry_mask): New insn.
83         (prologue): New expander.
84         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
85         (vax_expand_prologue): Rename from vax_output_function_prologue;
86         emit rtl instead of text.
87         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
88         (print_operand): Add 'x' prefix.
89
90 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
91
92         PR middle-end/47715
93         * calls.c (precompute_register_parameters): Promote the function
94         argument before checking non-legitimate constant.
95
96 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
97
98         PR tree-optimization/47654
99         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
100         (lst_do_strip_mine_loop): Return an int.
101         (lst_do_strip_mine): Same.
102         (scop_do_strip_mine): Same.
103         (scop_do_block): Loop blocking should strip-mine at least two loops.
104         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
105         (scop_do_interchange): Same.
106         * graphite-poly.h (scop_do_interchange): Update declaration.
107         (scop_do_strip_mine): Same.
108
109 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
110
111         * graphite-clast-to-gimple.c (precision_for_value): Removed.
112         (precision_for_interval): Removed.
113         (gcc_type_for_interval): Use mpz_sizeinbase.
114
115 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
116
117         * graphite-ppl.h (value_max): Correct computation of max.
118
119 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
120
121         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
122
123 2011-07-05  Richard Guenther  <rguenther@suse.de>
124
125         * c-decl.c (c_init_decl_processing): Defer building common
126         tree nodes to c_common_nodes_and_builtins.
127
128 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
129
130         PR tree-optimization/49580
131         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of 
132         the loop's number of iterations.
133         * tree-parloops.c (transform_to_exit_first_loop): Add the 
134         handling of the loop's number of iterations before the call 
135         to gimple_duplicate_sese_tail.
136         Insert the stmt caclculating the new rhs of the loop's
137         condition stmt to the preheader instead of iters_bb.
138
139 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
140
141         PR rtl-optimization/47449
142         * fwprop.c (forward_propagate_subreg): Don't propagate hard
143         register nor zero/sign extended hard register.
144
145 2011-07-05  Richard Guenther  <rguenther@suse.de>
146
147         PR tree-optimization/49518
148         PR tree-optimization/49628
149         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
150         irrelevant and invariant data-references.
151         (vect_analyze_data_ref_access): For invariant loads clear the
152         group association.
153
154 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
155
156         PR rtl-optimization/49619
157         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
158         pass VOIDmode as op0_mode to recursive call, and return temp even
159         when different from tor, just if it is not IOR of the original
160         PLUS arguments.
161
162         PR rtl-optimization/49472
163         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
164         negating MULT, negate the second operand instead of first.
165         (simplify_binary_operation_1) <case MULT>: If one operand is
166         a NEG and the other is MULT, don't attempt to optimize by
167         negation of the MULT operand if it only moves the NEG operation
168         around.
169
170         PR debug/49602
171         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
172         get_current_def return value if it can't be trusted to be
173         the current value of the variable in the current bb.
174
175 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
176
177         PR target/49600
178         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
179         general register to memory for !TARGET_INTER_UNIT_MOVES.
180
181 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
182
183         PR target/44643
184         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
185         instead of TREE_READONLY.
186
187 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
188
189         * doc/extend.texi (AVR Built-in Functions): Update documentation
190         of __builtin_avr_fmul*.
191         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
192         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
193         * config/avr/avr.md (fmul): Rename to fmul_insn.
194         (fmuls): Rename to fmuls_insn.
195         (fmulsu): Rename to fmulsu_insn.
196         (fmul,fmuls,fmulsu): New expander.
197         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
198         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
199         * config/avr/libgcc.S (__fmul): New function.
200         (__fmuls): New function.
201         (__fmulsu,__fmulsu_exit): New function.
202
203 2011-07-04  Richard Guenther  <rguenther@suse.de>
204
205         PR tree-optimization/49615
206         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
207         basic-block index check.
208
209 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
210
211         * longlong.h (count_leading_zeros, count_trailing_zeros,
212         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
213         resp. 64.
214
215 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
216
217         PR tree-optimization/49610
218         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
219         a basic block.
220
221 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
222             Olivier Hainque  <hainque@adacore.com>
223             Nicolas Setton  <setton@adacore.com>
224
225         * tree.h (TYPE_ARTIFICIAL): New flag.
226         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
227         the DIE of the type if it is artificial.
228         (gen_array_type_die): Likewise.
229         (gen_enumeration_type_die): Likewise.
230         (gen_struct_or_union_type_die): Likewise.
231         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
232         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
233
234 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
235
236         * tree-object-size.c (pass_through_call): Handle
237         BUILT_IN_ASSUME_ALIGNED.
238
239 2011-07-01  Martin Jambor  <mjambor@suse.cz>
240
241         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
242
243 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
244
245         PR middle-end/48016
246         * explow.c (update_nonlocal_goto_save_area): Use proper mode
247         for stack save area.
248         * function.c (expand_function_start): Likewise.
249
250 2011-07-01  Richard Guenther  <rguenther@suse.de>
251
252         PR middle-end/49596
253         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
254         may have unknown refs.
255
256 2011-07-01  Kai Tietz  <ktietz@redhat.com>
257
258         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
259
260 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
261
262         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
263         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
264         (Specific, mips-sgi-irix6): Likewise.
265
266 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
267
268         PR libmudflap/49549
269         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
270
271 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
272
273         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
274         [idx]= and [idx1 ... idx2]= before initializers if needed for
275         array initializers.
276
277 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
278
279         * config.gcc (score-*-elf): Remove score7.o.
280         * config/score/t-score-elf: Likewise.
281         * config/score/score.c: Merge score7 to score.c and
282         remove forwarding functions.
283         * config/score/score7.c: Deleted.
284         * config/score/score7.h: Deleted.
285
286 2011-07-01  Richard Guenther  <rguenther@suse.de>
287
288         PR tree-optimization/49603
289         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
290
291 2011-06-30  Martin Jambor  <mjambor@suse.cz>
292
293         * tree-sra.c (struct access): Rename total_scalarization to
294         grp_total_scalarization
295         (completely_scalarize_var): New function.
296         (sort_and_splice_var_accesses): Set total_scalarization in the
297         representative access.
298         (analyze_access_subtree): Propagate total scalarization accross the
299         tree, no holes in totally scalarized trees, simplify coverage
300         computation.
301         (analyze_all_variable_accesses): Call completely_scalarize_var instead
302         of completely_scalarize_record.
303
304 2011-06-30  Richard Henderson  <rth@redhat.com>
305
306         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
307         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
308         * config/i386/i386.c: Don't include dwarf2out.h.
309         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
310         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
311         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
312         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
313         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
314
315 2011-06-30  Richard Henderson  <rth@redhat.com>
316
317         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
318         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
319         * final.c (final_scan_insn): Look for it, and invoke
320         dwarf2out_frame_debug before the insn if found.
321
322 2011-06-30  Richard Henderson  <rth@redhat.com>
323
324         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
325         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
326
327 2011-06-30  Richard Henderson  <rth@redhat.com>
328
329         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
330         Define a vector of this type.
331         (regs_saved_in_regs): Use a VEC.
332         (num_regs_saved_in_regs): Remove.
333         (compare_reg_or_pc): New.
334         (record_reg_saved_in_reg): Split out from...
335         (dwarf2out_flush_queued_reg_saves): ... here.
336         (clobbers_queued_reg_save): Update for VEC.
337         (reg_saved_in): Likewise.
338         (dwarf2out_frame_debug_init): Likewise.
339         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
340         (dwarf2out_frame_debug_cfa_register): Likewise.
341
342 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
343
344         PR tree-optimization/49572
345         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
346         type of the RHS instead of that of the LHS for the expression type.
347
348 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
349
350         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
351         unconditionally.
352
353 2011-06-30  Richard Guenther  <rguenther@suse.de>
354
355         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
356         * tree-ssa-structalias.c (create_variable_info_for): Do not
357         add initial constraints for non-var-decls.  Properly handle
358         globals in other ltrans partitions.
359         (intra_create_variable_infos): Manually create constraints for
360         the fake no-alias parameter.
361         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
362         and assert there are no clones.
363
364 2011-06-30  Richard Guenther  <rguenther@suse.de>
365
366         PR tree-optimization/46787
367         * tree-data-ref.c (dr_address_invariant_p): Remove.
368         (find_data_references_in_stmt): Invariant accesses are ok now.
369         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
370         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
371         invariant loads.
372
373 2011-06-30  Martin Jambor  <mjambor@suse.cz>
374
375         PR tree-optimization/49094
376         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
377         (build_accesses_from_assign): Use it.
378
379 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
380
381         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
382         handling of BUILT_IN_ASSUME_ALIGNED.
383
384         PR debug/49364
385         * dwarf2out.c (output_abbrev_section): Don't return early
386         if abbrev_die_table_in_use is 1.
387         (dwarf2out_finish): Instead don't call output_abbrev_section
388         nor emit abbrev_section_label in that case.
389
390 2011-06-30  Nick Clifton  <nickc@redhat.com>
391
392         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
393         for the V850E.
394
395 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
396
397         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
398         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
399
400 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
401
402         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
403         both pattern and original statements if necessary.
404         (vect_transform_loop): Likewise.
405         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
406         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
407         Mark the pattern statement only if the original statement doesn't
408         have its own uses.
409         (process_use): Call vect_mark_relevant with additional parameter.
410         (vect_mark_stmts_to_be_vectorized): Likewise.
411         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
412         (vect_analyze_stmt): Handle both pattern and original statements
413         if necessary.
414         (vect_transform_stmt): Don't store vectorized pattern statement
415         in the original statement.
416         (vect_is_simple_use_1): Use related pattern statement only if the
417         original statement is irrelevant.
418         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
419
420 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
421
422         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
423         option.
424         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
425         entry.
426         (TARGET_AVX128_OPTIMAL): New definition.
427         * config/i386/i386.c (initial_ix86_tune_features): Initialize
428         X86_TUNE_AVX128_OPTIMAL entry.
429         (ix86_option_override_internal): Enable the generation
430         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
431         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
432         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
433
434 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
435
436         PR tree-optimization/49539
437         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
438         names by means of stmt_references_abnormal_ssa_name.
439         (associate_plusminus): Call can_propagate_from before propagating
440         from definition statements.
441         (ssa_forward_propagate_and_combine): Remove superfluous newline.
442
443 2011-06-29  Richard Guenther  <rguenther@suse.de>
444
445         * doc/invoke.texi: Document -scev dump modifier.
446         * tree-pass.h (TDF_SCEV): New dump flag.
447         * tree-dump.c (dump_option_value_in): Add scev.
448         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
449         * tree-scalar-evolution.c: Likewise.
450
451 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
452
453         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
454         (cxa_type_match): Correct declaration.
455         (__gnu_unwind_pr_common): Reconstruct additional indirection
456         when __cxa_type_match returns succeeded_with_ptr_to_base.
457
458 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
459
460         PR rtl-optimization/49114
461         * reload.c (struct replacement): Remove SUBREG_LOC member.
462         (push_reload): Do not set it.
463         (push_replacement): Likewise.
464         (subst_reload): Remove dead code.
465         (copy_replacements): Remove assertion.
466         (copy_replacements_1): Do not handle SUBREG_LOC.
467         (move_replacements): Likewise.
468         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
469         Detect subregs via recursive descent instead of via SUBREG_LOC.
470
471 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
472
473         * config/avr/avr.c (avr_encode_section_info): Dispatch to
474         default_encode_section_info.
475
476 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
477
478         PR tree-optimization/49545
479         * builtins.c (get_object_alignment_1): Update function comment.
480         Do not use DECL_ALIGN for functions, but test
481         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
482         * fold-const.c (get_pointer_modulus_and_residue): Don't check
483         for functions here.
484         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
485
486 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
487
488         PR debug/49567
489         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
490         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
491
492 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
493
494         PR target/34734
495         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
496         about uninitialized data attributed 'progmem' from here...
497         (avr_encode_section_info): ...to this new function.
498         (TARGET_ENCODE_SECTION_INFO): New define.
499         (avr_section_type_flags): For data in ".progmem.data", remove
500         section flag SECTION_WRITE.
501
502 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
503
504         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
505         _xmulhisi3_exit.
506         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
507         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
508         (__umulhisi3): Ditto.
509         * config/avr/avr.md (mulhisi3): New insn expender.
510         (umulhisi3): New insn expender.
511         (*mulhisi3_call): New insn.
512         (*umulhisi3_call): New insn.
513
514 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
515
516         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
517
518 2011-06-28  Richard Henderson  <rth@redhat.com>
519
520         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
521         all code and arguments that handled pushes.  Update all callers.
522
523 2011-06-28  Richard Henderson  <rth@redhat.com>
524
525         * config/arm/arm.c (arm_output_function_prologue): Don't call
526         thumb1_output_function_prologue.
527         (arm_expand_prologue): Avoid dead store.
528         (number_of_first_bit_set): Use ctz_hwi.
529         (thumb1_emit_multi_reg_push): New.
530         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
531         to emit the entire prologue as rtl.
532         (thumb1_output_interwork): Split out from
533         thumb1_output_function_prologue.
534         (thumb1_output_function_prologue): Remove.
535         (arm_attr_length_push_multi): Handle thumb1.
536         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
537         (prologue_thumb1_interwork): New.
538         (*push_multi): Allow thumb1; use push_mult_memory_operand.
539         * config/arm/predicates.md (push_mult_memory_operand): New.
540
541 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
542
543         * config/sparc/sync.md (*stbar): Delete.
544         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
545
546 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
547
548         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
549
550 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
551
552         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
553         (TARGET_64BIT_DEFAULT): Define.
554         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
555         of tm_file.
556         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
557
558 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
559
560         * common.opt (in_lto_p): New Variable entry.
561         * flags.h (in_lto_p): Move to common.opt.
562         * gcc.c: Include params.h.
563         (set_option_handlers): Also use common_handle_option and
564         target_handle_option.
565         (main): Call global_init_params, finish_params and init_options_struct.
566         * opts.c (debug_type_names): Move from toplev.c.
567         (print_filtered_help): Access quiet_flag through opts pointer.
568         (common_handle_option): Return early in the driver for some options.
569         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
570         opts pointer.
571         * toplev.c (in_lto_p): Move to common.opt.
572         (debug_type_names): Move to opts.c.
573         * Makefile.in (OBJS): Remove opts.o.
574         (OBJS-libcommon-target): Add opts.o.
575         (gcc.o): Update dependencies.
576
577 2011-06-28  Kai Tietz  <ktietz@redhat.com>
578
579         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
580
581 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
582
583         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
584         with '=' constraint modifier.
585         (*divdf3_vfp): Likewise.
586         ("*mulsf3_vfp"): Likewise.
587         ("*muldf3_vfp"): Likewise.
588         ("*mulsf3negsf_vfp"): Likewise.
589         ("*muldf3negdf_vfp"): Likewise.
590
591 2011-06-28  Nick Clifton  <nickc@redhat.com>
592
593         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
594         relaxation when performing an incremental link.
595
596 2011-06-28  Kai Tietz  <ktietz@redhat.com>
597
598         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
599         within BB from last to first.
600
601 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
602
603         * genattr-common.c: New.  Based on genattr.c.
604         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
605         (MOSTLYCLEANFILES): Add insn-attr-common.h.
606         (opts.o): Update dependencies.
607         (.PRECIOUS): Add insn-attr-common.h.
608         (simple_rtl_generated_h): Add insn-attr-common.h.
609         (build/genattr-common.o): New.
610         (genprogrtl): Add attr-common.
611         * genattr.c (main): Include insn-attr-common.h.  Don't generate
612         definitions of DELAY_SLOTS or INSN_SCHEDULING.
613         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
614
615 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
616
617         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
618         avr-*-* and avr-*-rtems* targets.
619
620         * config/avr/elf.h: New file.
621         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
622         (TARGET_ASM_SELECT_SECTION): Define.
623         (INIT_SECTION_ASM_OP): Undefine.
624         (FINI_SECTION_ASM_OP): Undefine.
625         (READONLY_DATA_SECTION_ASM_OP): Undefine.
626         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
627         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
628         * config/avr/avr.h:
629         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
630         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
631         (MAX_OFILE_ALIGNMENT): Move to elf.h.
632         (STRING_LIMIT): Move to elf.h.
633         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
634         (ASM_DECLARE_OBJECT_NAME): Remove.
635         (ESCAPES): Remove.
636         (ASM_OUTPUT_SKIP): Remove.
637         (DWARF2_DEBUGGING_INFO): Remove.
638         (OBJECT_FORMAT_ELF): Remove.
639         (USER_LABEL_PREFIX): Remove.
640         (ASM_OUTPUT_EXTERNAL): Remove.
641         (ASM_OUTPUT_ASCII): Remove.
642         (TYPE_ASM_OP): Remove.
643         (SIZE_ASM_OP): Remove.
644         (WEAK_ASM_OP): Remove.
645         (STRING_ASM_OP): Remove.
646         (SET_ASM_OP): Remove.
647         (ASM_WEAKEN_LABEL): Remove.
648         (TYPE_OPERAND_FMT): Remove.
649         (ASM_DECLARE_FUNCTION_SIZE): Remove.
650         (ASM_FINISH_DECLARE_OBJECT): Remove.
651         (NO_DOLLAR_IN_LABEL): Remove.
652         (ASM_GENERATE_INTERNAL_LABEL): Remove.
653         (ASM_OUTPUT_CASE_LABEL): Remove.
654         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
655         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
656         (gas_output_ascii): Remove.
657         (gas_output_limited_string): Remove.
658         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
659         * config/avr/avr-protos.h
660         (gas_output_ascii): Remove prototye.
661         (gas_output_limited_string): Remove prototype.
662
663 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
664
665         PR target/48637
666         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
667         asm operands.
668
669 2011-06-27  Jan Hubicka  <jh@suse.cz>
670
671         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
672         node instead of references in node.
673
674 2011-06-27  Richard Henderson  <rth@redhat.com>
675
676         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
677         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
678         inside ifdef.
679
680 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
681
682         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
683
684         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
685         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
686         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
687         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
688         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
689         (evaluate_stmt, execute_fold_all_builtins): Handle
690         BUILT_IN_ASSUME_ALIGNED.
691         * tree-ssa-dce.c (propagate_necessity): Likewise.
692         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
693         call_may_clobber_ref_p_1): Likewise.
694         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
695         (expand_builtin_assume_aligned): New function.
696         * doc/extend.texi (__builtin_assume_aligned): Document.
697
698         PR debug/49544
699         * cselib.c (promote_debug_loc): If cselib_preserve_constants
700         and l has two DEBUG_INSN owned locs instead of just one, adjust
701         the second location's setting_insn too.
702
703 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
704
705         PR libmudflap/38738
706         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
707
708 2011-06-27  Nick Clifton  <nickc@redhat.com>
709
710         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
711         bit position of highest bit set into a count of the high zero bits.
712
713 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
714
715         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
716
717 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
718
719         PR lto/48492
720         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
721         to a NULL parent.
722
723 2011-06-27  Richard Guenther  <rguenther@suse.de>
724
725         PR tree-optimization/49394
726         * passes.c (execute_one_pass): Restore current_pass after
727         applying IPA transforms.
728
729 2011-06-27  Kai Tietz  <ktietz@redhat.com>
730
731         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
732         out of type precision after operation.
733         (find_bswap): Take for limit value the integer auto-promotion
734         into account.
735
736 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
737
738         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
739         forward scan as well.
740
741 2011-06-27  Tristan Gingold  <gingold@adacore.com>
742
743         PR target/44241
744         * config/vms/vms-protos.h: New file.
745         * config/vms/vms-crtlmap.map: New file.
746         * config/vms/vms.c: New file.
747         * config/vms/make-crtlmap.awk: New file.
748         * config/vms/vms-crtl.h: File removed.
749         * config/vms/vms-crtl-64.h: File removed.
750         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
751         * config/alpha/vms64.h: Do not include vms-crtl-64.h
752         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
753         clear some builtins on VMS.  Calls vms_patch_builtins.
754         (avms_asm_output_external): Remove.
755         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
756         (struct crtl_name_spec): Remove
757         (DO_CTRL_NAMES): Remove.
758         * config/ia64/vms.h (struct crtl_name_spec): Remove
759         (DO_CTRL_NAMES): Remove.
760         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
761         clear some builtins on VMS.  Calls vms_patch_builtins.
762         (ia64_asm_output_external): Remove DO_CRTL_NAME.
763         * config/ia64/vms64.h: Do not include vms-crtl-64.h
764         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
765
766 2011-06-27  Tristan Gingold  <gingold@adacore.com>
767
768         * config/alpha/alpha.c (alpha_end_function): Always generate .end
769         directive on VMS.
770
771 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
772
773         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
774         the function receives nonlocal gotos.
775
776 2011-06-27  Richard Guenther  <rguenther@suse.de>
777
778         PR tree-optimization/49536
779         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
780         For non-scalar inner types use a scalar type according to
781         the scalar inner mode.
782
783 2011-06-27  Richard Guenther  <rguenther@suse.de>
784
785         PR tree-optimization/49365
786         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
787
788 2011-06-27  Richard Guenther  <rguenther@suse.de>
789
790         PR tree-optimization/49169
791         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
792         the alignment of function decls.
793
794 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
795
796         PR target/47997
797         * config/darwin.c (darwin_mergeable_string_section): Place string
798         constants in '.cstring' rather than '.const' when CF/NSStrings are
799         active.
800
801 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
802
803         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
804         (emit_save_register_window): Likewise.
805         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
806         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
807         Swap back %o7/%i7 in register naming.
808
809 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
810
811         PR driver/49371
812         * config/darwin.c (darwin_override_options): Improve warning when
813         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
814         is given with fpie/fPIE.
815         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
816         * config/darwin9.h (PIE_SPEC): New.
817
818 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
819
820         * timevar.c (timevar_print): Increase width for display of timevar
821         name.
822
823 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
824
825         PR c++/46400
826         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
827         instead of TYPE_CHAIN for chain_next for types.
828
829 2011-06-24  Richard Henderson  <rth@redhat.com>
830
831         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
832         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
833         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
834         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
835         (sparc_flat_expand_prologue): Emit individual instructions
836         instead of one of the above.
837
838 2011-06-24  Easwaran Raman  <eraman@google.com>
839
840         PR rtl-optimization/49429
841         PR target/49454
842         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
843         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
844         used to copy y into x.
845         * calls.c (initialize_argument_information): Mark
846         an argument addressable if it is passed by invisible reference.
847         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
848         if it is passed by reference.
849
850 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
851
852         PR rtl-optimization/49504
853         * rtlanal.c (nonzero_bits1): Properly handle addition or
854         subtraction of a pointer in Pmode if pointers extend unsigned.
855         (num_sign_bit_copies1): Likewise.
856
857 2011-06-24  Martin Jambor  <mjambor@suse.cz>
858
859         PR tree-optimizations/49516
860         * tree-sra.c (sra_modify_assign): Choose the safe path for
861         aggregate copies if we also did scalar replacements.
862
863 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
864
865         PR target/49335
866         * config/arm/predicates.md (add_operator): New.
867         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
868
869 2011-06-24  Andi Kleen  <ak@linux.intel.com>
870
871         * tree-sra.c (type_internals_preclude_sra_p): Add msg
872         parameter. Split up ifs and report reason in *msg.
873         (reject): Add.
874         (find_var_candiate): Add msg variable.
875         Split up ifs and report reason to reject.
876         (find_param_candidates): Add msg variable.
877         Pass msg to type_internals_preclude_sra_p.
878
879 2011-06-23  Jeff Law  <law@redhat.com>
880
881         PR middle-end/48770
882         * reload.h (reload): Change to return a bool.
883         * ira.c (ira): If requested by reload, run a fast DCE pass after
884         reload has completed.  Fix comment typo.
885         * reload1.c (need_dce): New file scoped static.
886         (reload): Set reload_completed here.  Return whether or not a DCE
887         pass after reload is needed.
888         (delete_dead_insn): Set need_dce as needed.
889
890         PR middle-end/49465
891         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
892         to detect threading through joiner block.  If there was already
893         an edge to the new target, then do not change the PHI nodes.
894
895 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
896
897         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
898         get_pointer_alignment to see if base isn't sufficiently aligned.
899
900 2011-06-23  Jan Hubicka  <jh@suse.cz>
901
902         PR tree-optimize/49373
903         * tree-pass.h (all_late_ipa_passes): Declare.
904         * cgraphunit.c (init_lowered_empty_function): Fix properties.
905         (cgraph_optimize): Execute late passes; remove unreachable funcions
906         after materialization.
907         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
908         LTOing.
909         * passes.c (all_late_ipa_passes): Declare.
910         (dump_passes, register_pass): Handle late ipa passes.
911         (init_optimization_passes): Move ipa_pta to late passes; schedule
912         fixup_cfg at beggining of all_passes.
913         (apply_ipa_transforms): New function.
914         (execute_one_pass): When doing simple ipa pass, apply all transforms.
915
916 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
917
918         * params.c: Include common/common-target.h.  Don't include tm.h.
919         (lang_independent_params): Move from toplev.c.
920         (global_init_params): New.
921         * params.h (global_init_params): Declare.
922         * target.def (default_params): Move to common-target.def.
923         * toplev.c (lang_independent_options): Remove.
924         (lang_independent_params): Move to params.c.
925         (general_init): Use global_init_params.
926         * common/common-target.def (option_default_params): Move from
927         target.def.
928         * common/config/ia64/ia64-common.c: Include params.h.
929         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
930         from ia64.c.
931         * common/config/rs6000/rs6000-common.c: Include params.h.
932         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
933         from rs6000.c.
934         * common/config/sh/sh-common.c: Include params.h.
935         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
936         from sh.c.
937         * common/config/spu/spu-common.c: Include params.h.
938         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
939         from spu.c.
940         * config/ia64/ia64.c (ia64_option_default_params,
941         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
942         * config/rs6000/rs6000.c (rs6000_option_default_params,
943         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
944         * config/sh/sh.c (sh_option_default_params,
945         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
946         * config/spu/spu.c (spu_option_default_params,
947         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
948         * Makefile.in (OBJS): Remove params.o.
949         (OBJS-libcommon-target): Add params.o.
950         (params.o, $(common_out_object_file)): Update dependencies.
951         * doc/tm.texi: Regenerate.
952
953 2011-06-23  Alan Modra  <amodra@gmail.com>
954
955         PR bootstrap/49383
956         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
957         invocation for 2011-06-09 changes.
958
959 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
960
961         PR libgomp/49490
962         * omp-low.c (expand_omp_for_static_nochunk): Only
963         use n ceil/ nthreads size for the first n % nthreads threads in the
964         team instead of all threads except for the last few ones which
965         get less work or none at all.
966
967         PR debug/49496
968         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
969         uses.
970
971 2011-06-22  Richard Guenther  <rguenther@suse.de>
972
973         PR tree-optimization/49493
974         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
975         Refer to the alias target of variables.
976         (associate_varinfo_to_alias_1): Remove.
977         (ipa_pta_execute): Do not associate aliases with anything.
978         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
979         (cgraph_function_node): Likewise.
980         (cgraph_function_or_thunk_node): Likewise.
981         (varpool_variable_node): Likewise.
982
983 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
984
985         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
986         * config.gcc (arm*-*-linux*): Default to gnu tls.
987         (arm*-*-*): Add --with-tls option.
988         (all_defaults): Add 'tls'.
989
990 2011-06-22  Richard Henderson  <rth@redhat.com>
991
992         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
993         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
994         (dwarf2out_frame_debug_cfa_window_save): Rename from
995         dwarf2out_window_save; make static.
996         * tree.h (dwarf2out_window_save): Don't declare.
997
998         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
999         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1000         (emit_save_register_window): Rename from gen_save_register_window;
1001         emit the insn and add REG_CFA_* notes.
1002         (sparc_expand_prologue): Update to match.
1003         * config/sparc/sparc.md (save_register_window_1): Simplify from
1004         save_register_window<P:mode>.
1005
1006 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1007
1008         PR target/49497
1009         * config/i386/i386.md (*lea_general_2): Always allow SImode.
1010         (*lea_general_2_zext): Likewise.
1011         (imul to lea peepholes): Use const359_operand and check
1012         TARGET_PARTIAL_REG_STALL.
1013
1014         * config/i386/predicates.md (const359_operand): New.
1015
1016 2011-06-22  Michael Matz  <matz@suse.de>
1017
1018         * cgraphunit.c (assemble_thunk): Use correct return type.
1019
1020 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
1021             Dmitry Melnik  <dm@ispras.ru>
1022
1023         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1024         (neon_output_shift_immediate): Ditto.
1025         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1026         prototype.
1027         (neon_output_shift_immediate): Ditto.
1028         * config/arm/neon.md (vashl<mode>3): Modified constraint.
1029         (vashr<mode>3_imm): New insn pattern.
1030         (vlshr<mode>3_imm): Ditto.
1031         (vashr<mode>3): Modified constraint.
1032         (vlshr<mode>3): Ditto.
1033         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1034         predicate.
1035         (imm_for_neon_rshift_operand): Ditto.
1036         (imm_lshift_or_reg_neon): Ditto.
1037         (imm_rshift_or_reg_neon): Ditto.
1038
1039         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1040
1041 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1042
1043         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1044         builtin calls even if likelyvalue is not CONSTANT.
1045         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1046         Return get_value_for_expr of first operand
1047         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1048         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1049         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1050         their non-checking counterparts.
1051         (call_may_clobber_ref_p_1): Likewise.
1052         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1053         like their non-checking counterparts.
1054         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1055         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1056         like their non-checking counterparts.
1057         (find_func_clobbers): Likewise.
1058         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1059         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1060
1061         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1062         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1063         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1064         of base type reference as argument.
1065         (resolve_addr_in_expr): Likewise.  Fix keep computation.
1066         (convert_descriptor_to_signed): Renamed to...
1067         (convert_descriptor_to_mode): ... this.  For wider types convert to
1068         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
1069         (typed_binop): New function.
1070         (scompare_loc_descriptor, ucompare_loc_descriptor,
1071         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1072         default to unsigned type instead of signed.
1073
1074         PR debug/47858
1075         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1076         (gimple_build_debug_source_bind_stat): New prototype.
1077         (gimple_build_debug_source_bind): Define.
1078         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1079         gimple_debug_source_bind_get_value,
1080         gimple_debug_source_bind_get_value_ptr,
1081         gimple_debug_source_bind_set_var,
1082         gimple_debug_source_bind_set_value): New inlines.
1083         * gimple.c (gimple_build_debug_source_bind_stat): New function.
1084         * gimple-pretty-print.c (dump_gimple_debug): Handle
1085         GIMPLE_DEBUG_SOURCE_BIND.
1086         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1087         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1088         * tree-parloops.c (eliminate_local_variables,
1089         separate_decls_in_region): Likewise.
1090         (separate_decls_in_region_debug): Renamed from
1091         separate_decls_in_region_debug_bind.  Handle
1092         gimple_debug_source_bind_p.
1093         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1094         prototypes.
1095         (DECL_HAS_DEBUG_ARGS_P): Define.
1096         (struct tree_function_decl): Add has_debug_args_flag field.
1097         * tree.c (debug_args_for_decl): New variable.
1098         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1099         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1100         (rewrite_debug_stmt_uses): New function.
1101         (rewrite_stmt): Use it to rewrite debug stmt uses.
1102         * rtl.def (DEBUG_PARAMETER_REF): New.
1103         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1104         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1105         DEBUG_PARAMETER_REF.
1106         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1107         * print-rtl.c (print_rtx): Likewise.
1108         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1109         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1110         debug stmts in the first bb.
1111         * tree-inline.c (remap_ssa_name): If remapping default def
1112         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1113         a source bind debug stmt.
1114         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1115         (maybe_move_debug_stmts_to_successors): Likewise.
1116         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
1117         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1118         debug args vector from old_decl to new_decl.
1119         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1120         or modified parameters, add debug bind stmts before call
1121         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
1122         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1123         on DECL_DEBUG_EXPRs from debug args vector.
1124         (expand_debug_source_expr): New function.
1125         (expand_debug_locations): Use it for source bind insns.
1126         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1127         * var-tracking.c (prepare_call_arguments): Add debug args
1128         to call_arguments if any.
1129         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
1130         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1131         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
1132         (get_ref_die_offset, parameter_ref_descriptor): New functions.
1133         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1134         (gen_subprogram_die): Handle parameters identified by
1135         DEBUG_PARAMETER_REF.
1136
1137 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
1138
1139         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1140         * doc/install.texi (Configuration): Document --with-tls.
1141         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1142         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1143         (arm_tls_descseq_addr): New.
1144         (legitimize_tls_address): Add tlsdesc support.
1145         (arm_cannot_copy_insn_p): Check for tlscall.
1146         (arm_emit_tls_decoration): Likewise.
1147         * config/arm/arm.h (TARGET_GNU2_TLS): New.
1148         (OPTION_DEFAULT_SPECS): Add with-tls support.
1149         * config/arm/arm.md (R1_REGNUM): Define.
1150         (tlscall): New.
1151         * config/arm/arm.opt (tls_type): New enumeration type and values.
1152         (mtls-dialect): New switch.
1153         * config/arm/arm-opts.h (enum tls_type): New.
1154
1155 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1156
1157         * attribs.c (register_attribute): Added assert to check that all
1158         attribute specs are registered with a name that is not empty and
1159         does not start with '_'.
1160         (decl_attributes): Avoid the lookup of the "naked" attribute spec
1161         if the function has no attributes.
1162         * tree.c (is_attribute_with_length_p): Removed.
1163         (is_attribute_p): Removed.
1164         (private_is_attribute_p): New.
1165         (private_lookup_attribute): New.
1166         (lookup_attribute): Removed.
1167         (lookup_ident_attribute): New.
1168         (remove_attribute): Require the first argument to be in the form
1169         'text', not '__text__'.  Updated asserts.
1170         (merge_attributes): Use lookup_ident_attributes instead of
1171         lookup_attribute.
1172         (merge_dllimport_decl_attributes): Use remove_attribute.
1173         (attribute_list_contained): Likewise.
1174         (attribute_list_equal): Immediately return 1 if the arguments are
1175         identical pointers.
1176         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
1177         'int'.  Require the first argument to be in the form 'text', not
1178         '__text__'.  Require the second argument to be an identifier.
1179         (lookup_attribute): Made inline.  Require the first argument to be
1180         in the form 'text', not '__text__'.
1181         (private_is_attribute_p, private_lookup_attribute): New.
1182         Updated comments.
1183
1184 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
1185
1186         * builtins.c: Add sync_ or SYNC__ to builtin names.
1187         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1188         * omp-low.c: Add sync_ or SYNC__ to builtin names.
1189
1190 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
1191
1192         PR target/33049
1193         * config/avr/avr.md (extzv): New expander.
1194         (*extzv): New insn.
1195         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1196         * config/avr/constraints.md (C04): New constraint.
1197         * doc/md.texi (Machine Constraints): Document it.
1198
1199 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
1200
1201         PR middle-end/49489
1202         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1203         unsignedp argument instead of 1 for clrsb_optab.
1204         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1205         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
1206         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1207         * optabs.c (widen_leading): Call widen_operand and expand_unop
1208         with 0 as unsignedp argument instead of 1 for clrsb_optab.
1209         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1210
1211 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
1212
1213         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1214
1215 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
1216
1217         * gensupport.c (add_define_attr): New static function.
1218         (is_predicable): Allow multi-alternative lists for the "predicable"
1219         attribute.
1220         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1221         (process_one_cond_exec): Call alter_attrs_for_insn.
1222         * doc/md.texi (Defining Attributes): Mention some standard names.
1223         (Conditional Execution): Update documentation for "predicable".
1224
1225         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1226         __builtin_clrsbll): Document.
1227         * doc/rtl.texi (clrsb): New entry.
1228         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
1229         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
1230         (expand_unop): Handle clrsb_optab.
1231         (init_optabs): Initialize it.
1232         * optabs.h (enum optab_index): New entry OTI_clrsb.
1233         (clrsb_optab): Define.
1234         * genopinit.c (optabs): Add an entry for it.
1235         * builtins.c (expand_builtin): Handle clrsb builtin functions.
1236         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1237         BUILT_IN_CLRSBLL): New.
1238         * rtl.def (CLRSB): New code.
1239         * dwarf2out.c (mem_loc_descriptor): Handle it.
1240         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1241         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1242         and popcount.
1243         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1244         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1245         (__ctzDI2): Move declaration.
1246         * config/bfin/bfin.md (clrsbsi2): New expander.
1247         (signbitssi2): Use the CLRSB rtx.
1248         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
1249         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1250
1251 2011-06-21  Richard Guenther  <rguenther@suse.de>
1252
1253         * ipa-inline-transform.c (inline_transform): Fix previous change.
1254
1255 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
1256
1257         PR tree-optimization/49478
1258         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1259         with constant operand.
1260
1261 2011-06-21  Richard Guenther  <rguenther@suse.de>
1262
1263         * ipa-inline-transform.c (inline_transform): Fix typo.
1264
1265 2011-06-21  Richard Guenther  <rguenther@suse.de>
1266
1267         PR tree-optimization/49483
1268         * tree-vect-stmts.c (vectorizable_assignment): Also handle
1269         VIEW_CONVERT_EXPR conversions.
1270
1271 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
1272
1273         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1274         * config/avr/avr-tables.opt: New file (generated).
1275         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1276         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1277         avr-mcus.def.
1278         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1279         (avr_option_override): Don't process -mmcu= argument here.  Set
1280         avr_current_device using avr_mcu_index.
1281         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1282         * config/avr/avr.opt (mmcu=): Use Enum.
1283         * config/avr/t-avr (avr-devices.o): Update dependencies.
1284         ($(srcdir)/config/avr/avr-tables.opt): New.
1285         * target.def (help): Remove.
1286         * doc/tm.texi.in (TARGET_HELP): Remove.
1287         * doc/tm.texi: Regenerate.
1288         * opts.c: Don't include target.h.
1289         (common_handle_option): Don't call targetm.help.
1290         * system.h (TARGET_HELP): Poison.
1291         * Makefile.in (opts.o): Update dependencies.
1292
1293 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1294
1295         * config/usegld.h: New file.
1296         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1297         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1298         (LIB_SPEC): Likewise.  Search /lib.
1299         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1300         (RDYNAMIC_SPEC): Handle GNU ld.
1301         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1302         Define.
1303         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1304         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1305         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1306         (STACK_CHECK_STATIC_BUILTIN): Define.
1307         * config/sol2.opt (compat-bsd): Remove.
1308         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1309         * config/sol2-bi.h: New file.
1310         * config/sol2-gld.h: Remove.
1311         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1312         (NO_DBX_BNSYM_ENSYM): Remove.
1313         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1314         (STACK_CHECK_STATIC_BUILTIN): Remove.
1315         Test USE_GLD instead of TARGET_GNU_LD.
1316         * config/i386/sol2-10.h: Rename to ...
1317         * config/i386/sol2-bi.h .. this.
1318         (SUBTARGET_EXTRA_SPECS): Redefine.
1319         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1320         (MULTILIB_DEFAULTS): Remove.
1321         (DEFAULT_ARCH32_P): Define.
1322         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1323         (ARCH64_SUBDIR): Define.
1324         Test USE_GLD instead of TARGET_GNU_LD.
1325         (I386_EMULATION): Rename to ...
1326         (ARCH32_EMULATION): ... this.
1327         (X86_64_EMULATION): Rename to ...
1328         (ARCH64_EMULATION): ... this.
1329         (TARGET_LD_EMULATION): Remove.
1330         (LINK_ARCH_SPEC): Remove.
1331         * config/i386/sol2-gas.h: Remove.
1332         * config/i386/t-sol2-10: Rename to ...
1333         * config/i386/t-sol2-64: ... this.
1334         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1335         (AS_SPARC64_FLAG): Define.
1336         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1337         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1338         depending on TARGET_CPU_DEFAULT.
1339         (CPP_CPU_SPEC): Redefine.
1340         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1341         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1342         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1343         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1344         ASM_ARCH_DEFAULT_SPEC): Redefine.
1345         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1346         LINK_ARCH_DEFAULT_SPEC.
1347         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1348         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1349         (ARCH64_SUBDIR): Define.
1350         (LINK_ARCH64_SPEC): Redefine.
1351         (CC1_SPEC): Redefine.
1352         (OPTION_DEFAULT_SPECS): Redefine.
1353         (MULTILIB_DEFAULTS): Define.
1354         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1355         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1356         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1357         (NO_DBX_BNSYM_ENSYM): Remove.
1358         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1359         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1360         (TARGET_ASM_NAMED_SECTION): Likewise.
1361         (STACK_CHECK_STATIC_BUILTIN): Remove.
1362         * config/sparc/sol2-bi.h: Remove.
1363         * config/sparc/sol2-gas-bi.h: Remove.
1364         * config/sparc/sol2-gas.h: Remove.
1365         * config/sparc/sol2-gld-bi.h: Remove.
1366         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1367         common parts ...
1368         (*-*-solaris2*): ... here.
1369
1370 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1371
1372         PR other/43564
1373         * ipa-inline.c (can_inline_edge_p): Check
1374         !DECL_DISREGARD_INLINE_LIMITS.
1375
1376 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1377
1378         PR middle-end/49139
1379         * cgraphunit.c (process_function_and_variable_attributes): warn when
1380         always_inline functions that are not inline.
1381         * ipa-inline-transform.c (inline_transform): Always call
1382         optimize_inline.
1383         * tree-inline.c (tree_inlinable_function_p): Use error instead
1384         of sorry.
1385         (expand_call_inline): Likewise.
1386
1387 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
1388
1389         * Makefile.in (dg_target_exps): Set.
1390         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1391         instead of 7, try to divide it more evenly.
1392
1393 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
1394
1395         PR target/49089
1396         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1397         (avx256_split_unaligned_store): New definition.
1398         (ix86_option_override_internal): Enable avx256 unaligned load/store
1399         splitting only when avx256_split_unaligned_load/store is set.
1400
1401 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1402
1403         * regrename.c (scan_rtx_reg): Handle the case where we write to an
1404         open chain in a smaller mode without failing the entire block.
1405
1406 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1407
1408         PR middle-end/47725
1409         * combine.c (cant_combine_insn_p): Don't check zero/sign
1410         extended hard registers.
1411
1412 2011-06-21  Alan Modra  <amodra@gmail.com>
1413
1414         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1415         CONST high part large-toc address.
1416         (rs6000_tls_referenced_p): Make static.
1417         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1418
1419 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1420
1421         PR middle-end/47725
1422         * combine.c (cant_combine_insn_p): Check zero/sign extended
1423         hard registers.
1424
1425 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1426
1427         PR target/49385
1428         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1429         one of the operands is a register.
1430
1431 2011-06-20  Kai Tietz  <ktietz@redhat.com>
1432
1433         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1434         operations in combination with binary and.
1435
1436 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1437
1438         * regrename.c (do_replace): Don't update notes.
1439
1440 2011-06-20  Alan Modra  <amodra@gmail.com>
1441
1442         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1443         of toc-relative address in CONST.
1444         (rs6000_delegitimize_address): Recognize changed address.
1445         (rs6000_legitimize_reload_address): Likewise.
1446         (rs6000_emit_move): Don't force these constants to memory.
1447         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1448         toc-relative address in CONST.
1449         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1450         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1451
1452 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1453
1454         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1455         (count_trailing_zeros): Likewise.
1456
1457 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1458
1459         PR other/49325
1460         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1461         .init_array can be used with .ctors on targets.
1462         * configure: Regenerated.
1463
1464 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
1465
1466         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1467         if the element type is volatile.
1468
1469 2011-06-18  Jan Hubicka  <jh@suse.cz>
1470
1471         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1472         extra name aliases.
1473         (lto_symtab_resolve_can_prevail_p): Likewise.
1474         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1475         * cgraphbuild.c (record_reference): Remove extra body alias code.
1476         (mark_load): Likewise.
1477         (mark_store): Likewise.
1478         * cgraph.h (varpool_node): Remove extra_name filed;
1479         add alias_of and extraname_alias.
1480         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1481         (varpool_alias_aliased_node): New inline function.
1482         (varpool_variable_node): New function.
1483         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1484         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1485         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1486         (input_varpool_node): Likewise.
1487         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1488         (varpool_externally_visible_p): Remove extra body alias code.
1489         (function_and_variable_visibility): Likewise.
1490         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1491         (ipa_pta_execute): Use it.
1492         * varpool.c (varpool_remove_node): Remove extra name alias code.
1493         (varpool_mark_needed_node): Likewise.
1494         (varpool_analyze_pending_decls): Analyze aliases.
1495         (assemble_aliases): New functoin.
1496         (varpool_assemble_decl): Use it.
1497         (varpool_create_variable_alias): New function.
1498         (varpool_extra_name_alias): Rewrite.
1499         (varpool_for_node_and_aliases): New function.
1500
1501 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
1502
1503         PR target/49411
1504         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1505         last_arg_constant and last argument doesn't match its predicate,
1506         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1507         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1508         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1509         spelling of error message.
1510         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1511         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1512         const_0_to_255_operand instead of const_int_operand.
1513
1514         Revert:
1515         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1516
1517         * config/i386/sse.md (blendbits): Remove mode attribute.
1518         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1519         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1520         Check integer value of operand 3 in insn constraint.
1521
1522 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
1523
1524         PR rtl-optimization/48542
1525         * reload.c (find_equiv_reg): Stop looking when finding a
1526         setjmp-type call.
1527         * reload1.c (reload_as_needed): Invalidate all reload
1528         registers when crossing a setjmp-type call.
1529
1530 2011-06-16  Jeff Law  <law@redhat.com>
1531
1532         * tree-ssa-threadupdate.c (struct redirection_data): New field
1533         intermediate_edge.
1534         (THREAD_TARGET2): Define.
1535         (redirection_data_eq): Also check that the intermediate edge is equal.
1536         (lookup_redirection_data): Drop useless argument.  Extract the
1537         outgoing_edge and intermediate edge from E.  Callers updated.
1538         (copy_phi_args, update_destination_phis): New functions.
1539         (fix_duplicate_block_edges): Likewise.
1540         (create_edge_and_update_destination_phis): Duplicate all the edges
1541         hung off e->aux.  Use copy_phi_args.
1542         (create_duplicates): Use fix_duplicate_block_edges.
1543         (fixup_template_block): Likewise.
1544         (redirect_edges): If necessary, redirect the joiner block's incoming
1545         edge to the duplicate of the joiner block.
1546         (thread_block): Don't muck up loops when threading through a joiner
1547         block.
1548         (thread_through_loop_header): Handle threading through a joiner block.
1549         (mark_threaded_blocks, register_jump_thread): Likewise.
1550         * tree-flow.h (register_jump_thread): Add new argument.  Callers
1551         updated.
1552         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1553         (thread_across_edge): Handle threading through a joiner block.
1554
1555 2011-06-16  Martin Jambor  <mjambor@suse.cz>
1556
1557         PR tree-optimization/49343
1558         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1559         calculate offset, provide 2nd operand for the new COMPONENT_REF.
1560
1561 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
1562
1563         * config/darwin-protos.h (machopic_select_rtx_section): Move to
1564         inside RTX_CODE ifdef.
1565
1566 2011-06-16  Tom de Vries  <tom@codesourcery.com>
1567
1568         PR target/45098
1569         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1570         Disallow NULL pointer for pointer arithmetic.
1571
1572 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1573
1574         PR target/49398
1575         Revert.
1576         2011-06-10  Wei Guozhi  <carrot@google.com>
1577
1578         PR target/45335
1579         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1580         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1581         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1582         related peephole2.
1583         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1584         related peephole2.
1585         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1586         (arm_legitimate_ldrd_p): New prototype.
1587         (arm_output_ldrd): New prototype.
1588         * config/arm/arm.c (arm_check_ldrd_operands): New function.
1589         (arm_legitimate_ldrd_p): New function.
1590         (arm_output_ldrd): New function.
1591
1592 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
1593
1594         PR middle-end/46500
1595         * doc/tm.texi.in: Update Copyright date.
1596         * doc/tm.texi: Regenerate.
1597         * targhooks.c (default_setup_incoming_varargs): Replace
1598         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1599         (default_pretend_outgoing_varargs_named): Likewise.
1600         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1601         (hook_callee_copies_named): Likewise.
1602         (default_function_arg_advance): Likewise.
1603         (default_function_arg): Likewise.
1604         (default_function_incoming_arg): Likewise.
1605         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1606         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1607         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1608         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1609         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1610         * targhooks.h (default_setup_incoming_varargs): Likewise.
1611         (default_pretend_outgoing_varargs_named): Likewise.
1612         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1613         (hook_callee_copies_named): Likewise.
1614         (default_function_arg_advance): Likewise.
1615         (default_function_arg): Likewise.
1616         (default_function_incoming_arg): Likewise.
1617         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1618         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1619         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1620         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1621         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1622         * target.def (pass_by_reference): Likewise.
1623         (setup_incoming_varargs, strict_argument_naming): Likewise.
1624         (pretend_outgoing_varargs_named, callee_copies): Likewise.
1625         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1626         (function_incoming_arg): Likewise.
1627         * target.h: Don't include "tm.h" .
1628         (cumulative_args_t): New typedef.
1629         [GCC_TM_H] (get_cumulative_args): New static inline function.
1630         [GCC_TM_H] (pack_cumulative_args): Likewise.
1631         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1632         argument type with cumulative_args_t.
1633         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1634         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1635         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1636         (frv_arg_partial_bytes, frv_function_arg): Likewise.
1637         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1638         (frv_function_arg_1): Likewise.
1639         * config/s390/s390.c (s390_pass_by_reference): Likewise.
1640         (s390_function_arg_advance, s390_function_arg): Likewise.
1641         * config/m32c/m32c.c (m32c_function_arg): Likewise.
1642         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1643         (m32c_strict_argument_naming): Likewise.
1644         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1645         (spu_function_arg_advance): Likewise.
1646         (spu_setup_incoming_varargs): Likewise.  Make static.
1647         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1648         Remove prototype.
1649         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1650         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1651         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1652         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1653         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1654         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1655         (mep_pass_by_reference, mep_function_arg): Likewise.
1656         (mep_function_arg_advance): Likewise.
1657         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1658         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1659         (m32r_function_arg, m32r_function_arg_advance): Likewise.
1660         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1661         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1662         (ix86_function_arg, ix86_pass_by_reference): Likewise.
1663         (ix86_setup_incoming_varargs): Likewise.
1664         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1665         (sh_strict_argument_naming): Likewise.
1666         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1667         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1668         (sh_function_arg_advance, sh_function_arg): Likewise.
1669         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1670         (pdp11_function_arg_advance): Likewise.
1671         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1672         Likewise.
1673         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1674         * config/avr/avr.c (avr_function_arg): Likewise.
1675         (avr_function_arg_advance): Likewise.
1676         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1677         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1678         (xtensa_function_arg_1): Likewise.
1679         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1680         Likewise.
1681         (xstormy16_function_arg): Likewise.
1682         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1683         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1684         (fr30_function_arg_advance): Likewise.
1685         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1686         (lm32_function_arg, lm32_function_arg_advance): Likewise.
1687         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1688         (moxie_function_arg, moxie_function_arg_advance): Likewise.
1689         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1690         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1691         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1692         (cris_function_arg, cris_function_incoming_arg): Likewise.
1693         (cris_function_arg_advance, cris_function_arg_1): Likewise.
1694         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1695         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1696         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1697         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1698         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1699         (mn10300_arg_partial_bytes): Likewise.
1700         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1701         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1702         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1703         (ia64_function_arg_1): Likewise.
1704         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1705         (m68k_function_arg): Likewise.
1706         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1707         (rs6000_function_arg, setup_incoming_varargs): Likewise.
1708         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1709         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1710         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1711         (picochip_arg_advance): Likewise.
1712         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1713         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1714         (mcore_function_arg_advance): Likewise.
1715         * config/score/score.c (score_pass_by_reference): Likewise.
1716         (score_function_arg_advance): Likewise.
1717         (score_arg_partial_bytes): Likewise.  Make static.
1718         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1719         * config/arm/arm.c (arm_arg_partial_bytes): Replace
1720         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1721         (arm_function_arg, arm_function_arg_advance): Likewise.
1722         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1723         * config/pa/pa.c (pa_pass_by_reference): Likewise.
1724         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1725         (pa_function_arg): Likewise.
1726         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1727         (mips_function_arg, mips_function_arg_advance): Likewise.
1728         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1729         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1730         * config/vax/vax.c (vax_function_arg): Likewise.
1731         (vax_function_arg_advance): Likewise.
1732         * config/h8300/h8300.c (h8300_function_arg): Likewise.
1733         (h8300_function_arg_advance): Likewise.
1734         * config/v850/v850.c (v850_pass_by_reference): Likewise.
1735         (v850_strict_argument_naming, v850_function_arg): Likewise.
1736         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1737         (v850_setup_incoming_varargs): Likewise.
1738         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1739         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1740         (mmix_function_arg, mmix_pass_by_reference): Likewise.
1741         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1742         with const void *.
1743         * config/bfin/bfin.c (setup_incoming_varargs): Replace
1744         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1745         (bfin_function_arg_advance, bfin_function_arg): Likewise.
1746         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1747         * calls.c (emit_call_1): Change type of args_so_far to
1748         cumulative_args_t.  Changed all callers.
1749         (initialize_argument_information): Likewise.
1750         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1751         * dse.c (get_call_args): Likewise.
1752         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1753         * function.c (pass_by_reference, reference_callee_copied): Likewise.
1754         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1755         New member args_so_far_v.  Changed all users.
1756         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1757         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1758         * config/mips/mips.c (mips_output_args_xfer): Likewise.
1759         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1760         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1761         * config/microblaze/microblaze.c (microblaze_expand_prologue):
1762         Likewise.
1763         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1764         m32r_pass_by_reference.
1765
1766 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
1767
1768         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1769         argument to be a VEC of statements.
1770         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1771         assert that pattern statements have to have their vector type set.
1772         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1773         Change the first argument to be a VEC of statements.  Update
1774         documentation.
1775         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1776         (vect_handle_widen_mult_by_const): New function.
1777         (vect_recog_widen_mult_pattern):  Change the first argument to be a
1778         VEC of statements.  Update documentation.  Check that the constant is
1779         INTEGER_CST.  Support multiplication by a constant that fits an
1780         intermediate type - call vect_handle_widen_mult_by_const.
1781         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1782         call.  Handle additional pattern statements if necessary.
1783
1784 2011-06-16  Nick Clifton  <nickc@redhat.com>
1785
1786         PR target/49427
1787         * config.gcc: Set cpu_type to v850 for any V850 architecture.
1788         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1789         md_file, extra_modes, out_file and extra_options are these are all
1790         deduced from cpu_type.
1791
1792 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1793
1794         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1795         truncation mask to 63.
1796
1797 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1798
1799         PR target/49313
1800         PR target/29524
1801         * longlong.h: Add AVR support:
1802         (count_leading_zeros): New macro.
1803         (count_trailing_zeros): New macro.
1804         (COUNT_LEADING_ZEROS_0): New macro.
1805         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1806         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1807         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1808         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1809         (LIB2FUNCS_EXCLUDE): Add _clz.
1810         * config/avr/libgcc.S (XCALL): Move up in file.
1811         (XJMP): New C Macro.
1812         (DEFUN): New asm macro.
1813         (ENDF): New asm macro.
1814         (__ffssi2): New function.
1815         (__ffshi2): New function.
1816         (__loop_ffsqi2): New function.
1817         (__ctzsi2): New function.
1818         (__ctzhi2): New function.
1819         (__clzdi2): New function.
1820         (__clzsi2): New function.
1821         (__clzhi2): New function.
1822         (__paritydi2): New function.
1823         (__paritysi2): New function.
1824         (__parityhi2): New function.
1825         (__parityqi2): New function.
1826         (__popcounthi2): New function.
1827         (__popcountsi2): New function.
1828         (__popcountdi2): New function.
1829         (__popcountqi2): New function.
1830         (__bswapsi2): New function.
1831         (__bswapdi2): New function.
1832         (__ashldi3): New function.
1833         (__ashrdi3): New function.
1834         (__lshrdi3): New function.
1835         Fix suspicous lines.
1836
1837 2011-06-16  Richard Guenther  <rguenther@suse.de>
1838
1839         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1840         the same as x != 0.
1841         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1842         to (bool) X & 1.
1843         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1844         equality compares against zero for the lower bit.
1845
1846 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1847
1848         PR tree-optimization/49419
1849         * tree-vrp.c (execute_vrp): Call init_range_assertions
1850         before estimate_numbers_of_iterations, call
1851         free_number_of_iterations_estimates before calling
1852         remove_range_assertions.
1853
1854 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1855
1856         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1857         (struct partial_schedule): Add rows_length field.
1858         (verify_partial_schedule): Check rows_length.
1859         (ps_insert_empty_row): Handle rows_length.
1860         (create_partial_schedule): Likewise.
1861         (free_partial_schedule): Likewise.
1862         (reset_partial_schedule): Likewise.
1863         (create_ps_insn): Remove rest_count argument.
1864         (remove_node_from_ps): Update rows_length.
1865         (add_node_to_ps): Update rows_length and call create_ps_insn
1866         without passing row_rest_count.
1867         (rotate_partial_schedule): Update rows_length.
1868
1869 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1870
1871         * ddg.c (add_intra_loop_mem_dep): New function.
1872         (build_intra_loop_deps): Call it.
1873
1874 2011-06-13  Jeff Law  <law@redhat.com>
1875
1876         * df-problems.c (df_lr_local_compute): Manually CSE
1877         PIC_OFFSET_TABLE_REGNUM.
1878         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1879         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1880
1881 2011-06-13  Jan Hubicka  <jh@suse.cz>
1882
1883         * cgraphunit.c (handle_alias_pairs): New function.
1884         (cgraph_finalize_compilation_unit): Use it.
1885         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1886         as externally visible.
1887
1888 2011-06-15  Richard Guenther  <rguenther@suse.de>
1889
1890         * expr.c (expand_expr_real_2): Reduce all integral types to
1891         bitfield precision.
1892         (expand_expr_real_1): Likewise.
1893
1894 2011-06-15  Martin Jambor  <mjambor@suse.cz>
1895
1896         PR tree-optimization/48613
1897         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1898         ipa_node_params_vector is NULL.
1899
1900 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
1901
1902         PR debug/49382
1903         * dwarf2out.c (dw_loc_list_node): Add force field.
1904         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1905         location in the list, even if it is modified before first real insn.
1906         (output_loc_list): Emit empty ranges with force flag set.
1907         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1908
1909 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
1910
1911         PR target/49349
1912         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1913         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
1914         above a fence.  Update comments.
1915         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1916         placed just above it.  Do not allow NULL place_to_insert.
1917
1918 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
1919
1920         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1921         (slpeel_tree_peel_loop_to_edge): Don't call
1922         remove_dead_stmts_from_loop.
1923         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1924         remove irrelevant pattern statements.  For irrelevant statements
1925         check if it is the last statement of a detected pattern, use
1926         corresponding pattern statement instead.
1927         (destroy_loop_vec_info): No need to remove pattern statements,
1928         only free stmt_vec_info.
1929         (vect_transform_loop): For irrelevant statements check if it is
1930         the last statement of a detected pattern, use corresponding
1931         pattern statement instead.
1932         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1933         pattern statements.  Set basic block for the new statement.
1934         (vect_pattern_recog): Update documentation.
1935         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1936         operands of pattern statements.
1937         (vectorizable_call): Fix printing.  In case of a pattern statement
1938         use the lhs of the original statement when creating a dummy
1939         statement to replace the original call.
1940         (vect_analyze_stmt): For irrelevant statements check if it is
1941         the last statement of a detected pattern, use corresponding
1942         pattern statement instead.
1943         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1944         statements use gsi of the original statement.
1945
1946 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1947
1948         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1949         common/common-target-def.h.
1950         * target.def (default_target_flags, handle_option,
1951         supports_split_stack, optimization_table, init_struct,
1952         except_unwind_info, unwind_tables_default, have_named_sections):
1953         Move to common/common-target.def.
1954         * target.h (enum opt_levels, struct default_options): Move to
1955         common/common-target.h.
1956         * targhooks.c (default_except_unwind_info,
1957         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1958         default_target_handle_option, empty_optimization_table): Move to
1959         common/common-targhooks.c.
1960         * targhooks.h (default_except_unwind_info,
1961         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1962         default_target_handle_option, empty_optimization_table): Move to
1963         common/common-targhooks.h.
1964         * common/common-target-def.h: Include common/common-targhooks.h.
1965         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1966         defined.
1967         * common/common-target.def (handle_option, option_init_struct,
1968         option_optimization_table, default_target_flags,
1969         except_unwind_info, supports_split_stack, unwind_tables_default,
1970         have_named_sections): Move from target.def.
1971         (HOOK_PREFIX): Undefine at end of file.
1972         * common/common-target.h: Include input.h.
1973         (enum opt_levels, struct default_options): Move from target.h.
1974         * common/common-targhooks.c, common/common-targhooks.h: New.
1975         * config.gcc (target_has_targetm_common): Default to yes.
1976         (moxie*): Set target_has_targetm_common=no.
1977         (hppa*-*-*): Don't set target_has_targetm_common=yes.
1978         * doc/tm.texi: Regenerate.
1979         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1980         (C_TARGET_DEF_H): Add common/common-targhooks.h.
1981         (GCC_OBJS): Remove vec.o.
1982         (OBJS): Remove hooks.o and vec.o.
1983         (OBJS-libcommon-target): Add vec.o, hooks.o and
1984         common/common-targhooks.o.
1985         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1986         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1987         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1988         cfglayout.o, $(out_object_file), $(common_out_object_file)):
1989         Update dependencies.
1990         (common/common-targhooks.o): New.
1991         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
1992         * common/config/pa/pa-common.c: Include more headers.  Take
1993         copyright dates from pa.c.
1994         (pa_option_optimization_table, pa_handle_option,
1995         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1996         TARGET_HANDLE_OPTION): Move from pa.c.
1997         * common/config/alpha/alpha-common.c,
1998         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1999         common/config/bfin/bfin-common.c,
2000         common/config/cris/cris-common.c,
2001         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2002         common/config/h8300/h8300-common.c,
2003         common/config/i386/i386-common.c,
2004         common/config/ia64/ia64-common.c,
2005         common/config/iq2000/iq2000-common.c,
2006         common/config/lm32/lm32-common.c,
2007         common/config/m32c/m32c-common.c,
2008         common/config/m32r/m32r-common.c,
2009         common/config/m68k/m68k-common.c,
2010         common/config/mcore/mcore-common.c,
2011         common/config/mep/mep-common.c,
2012         common/config/microblaze/microblaze-common.c,
2013         common/config/mips/mips-common.c,
2014         common/config/mmix/mmix-common.c,
2015         common/config/mn10300/mn10300-common.c,
2016         common/config/pdp11/pdp11-common.c,
2017         common/config/picochip/picochip-common.c,
2018         common/config/rs6000/rs6000-common.c,
2019         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2020         common/config/score/score-common.c, common/config/sh/sh-common.c,
2021         common/config/sparc/sparc-common.c,
2022         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2023         common/config/vax/vax-common.c,
2024         common/config/xstormy16/xstormy16-common.c,
2025         common/config/xtensa/xtensa-common.c: New.
2026         * config/alpha/alpha.c: Include common/common-target.h.
2027         (alpha_option_optimization_table, alpha_handle_option,
2028         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2029         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2030         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2031         * config/arm/arm.c (arm_option_optimization_table,
2032         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2033         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2034         arm-common.c.
2035         * config/avr/avr.c (avr_option_optimization_table,
2036         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2037         to avr-common.c.
2038         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2039         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2040         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2041         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2042         * config/cris/cris.c (cris_option_optimization_table,
2043         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2044         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2045         cris-common.c.
2046         * config/fr30/fr30.c (fr30_option_optimization_table,
2047         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2048         to fr30-common.c.
2049         * config/frv/frv.c (frv_option_optimization_table,
2050         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2051         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2052         * config/h8300/h8300.c (h8300_option_optimization_table,
2053         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2054         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2055         * config/i386/i386-protos.h (ix86_handle_option): Declare.
2056         * config/i386/i386.c: Include common/common-target.h.
2057         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2058         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2059         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2060         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2061         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2062         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2063         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2064         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2065         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2066         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2067         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2068         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2069         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2070         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2071         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2072         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2073         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2074         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2075         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2076         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2077         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2078         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2079         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2080         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2081         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2082         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2083         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2084         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2085         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2086         ix86_option_optimization_table, ix86_option_init_struct,
2087         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2088         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2089         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2090         i386-common.c.
2091         * config/i386/t-i386 (i386.o): Update dependencies.
2092         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2093         * config/ia64/ia64.c (ia64_option_optimization_table,
2094         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2095         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2096         ia64_handle_option): Move to ia64-common.c.
2097         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2098         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2099         * config/lm32/lm32.c (lm32_option_optimization_table,
2100         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2101         to lm32-common.c.
2102         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2103         m32c-common.c.
2104         * config/m32r/m32r.c (m32r_option_optimization_table,
2105         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2106         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2107         m32r_handle_option): Move to m32r-common.c.
2108         (m32r_memory_move_cost): Remove comment referring to
2109         TARGET_HANDLE_OPTION.
2110         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2111         Move to m68k-common.c.
2112         * config/mcore/mcore.c (mcore_option_optimization_table,
2113         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2114         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2115         * config/mep/mep.c (mep_option_optimization_table,
2116         mep_handle_option, TARGET_HANDLE_OPTION,
2117         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2118         Move to mep-common.c.
2119         * config/microblaze/microblaze.c
2120         (microblaze_option_optimization_table,
2121         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2122         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2123         * config/mips/mips.c (mips_handle_option,
2124         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2125         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2126         mips-common.c.
2127         * config/mmix/mmix.c (mmix_option_optimization_table,
2128         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2129         Move to mmix-common.c.
2130         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2131         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2132         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2133         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2134         * config/pa/pa.c: Include common/common-target.h.
2135         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2136         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2137         pa_handle_option): Move to pa-common.c.
2138         (pa_option_override): Use targetm_common.except_unwind_info.
2139         (pa_asm_output_mi_thunk, pa_function_section): Use
2140         targetm_common.have_named_sections.
2141         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2142         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2143         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2144         pdp11_handle_option, pdp11_option_init_struct): Move to
2145         pdp11-common.c.
2146         * config/picochip/picochip.c (picochip_option_optimization_table,
2147         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2148         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2149         * config/rs6000/rs6000.c: Include common/common-target.h.
2150         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2151         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2152         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2153         rs6000_handle_option): Move to rs6000-common.c.
2154         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2155         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2156         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2157         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2158         * config/s390/s390.c (processor_flags_table,
2159         s390_option_optimization_table, s390_option_init_struct,
2160         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2161         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2162         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2163         * config/s390/s390.h (processor_flags_table): Declare.
2164         * config/score/score.c (score_option_optimization_table,
2165         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2166         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2167         score_handle_option): Move to score-common.c.
2168         * config/sh/sh.c (sh_option_optimization_table,
2169         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2170         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2171         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2172         * config/sparc/sparc.c: Include common/common-target.h.
2173         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2174         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2175         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2176         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2177         spu_option_init_struct): Move to spu-common.c.
2178         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2179         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2180         * config/v850/v850.c (small_memory_physical_max,
2181         v850_handle_memory_optionn v850_handle_option,
2182         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2183         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2184         v850-common.c.
2185         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2186         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2187         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2188         Move to xtensa-common.c.
2189         * cfglayout.c: Include common/common-target.h.
2190         (fixup_reorder_chain): Use targetm_common.have_named_sections.
2191         * cfgrtl.c: Include common/common-target.h.
2192         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2193         targetm_common.have_named_sections.
2194         * dbxout.c: Include common/common-target.h.
2195         (dbxout_function_end): Use targetm_common.have_named_sections.
2196         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2197         targetm_common.except_unwind_info.
2198         * dwarf2out.c: Include common/common-target.h.
2199         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2200         dwarf2out_begin_prologue, dwarf2out_frame_init,
2201         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2202         targetm_common.except_unwind_info.
2203         * except.c: Include common/common-target.h.
2204         (init_eh, finish_eh_generation,
2205         output_one_function_exception_table): Use
2206         targetm_common.except_unwind_info.
2207         (switch_to_exception_section): Use targetm_common.have_named_sections.
2208         * explow.c: Include common/common-target.h.
2209         * expr.c: Include common/common-target.h.
2210         (build_personality_function): Use targetm_common.except_unwind_info.
2211         * function.c: Include common/common-target.h.
2212         (expand_function_end): Use targetm_common.except_unwind_info.
2213         * haifa-sched.c: Include common/common-target.h.
2214         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2215         * lto-opts.c: Include common/common-target.h instead of target.h.
2216         (lto_reissue_options): Use targetm_common.handle_option.
2217         * opts.c: Include common/common-target.h.
2218         (target_handle_option): Use targetm_common.handle_option.
2219         (init_options_struct): Update comment referring to
2220         targetm.target_option.optimization.  Use
2221         targetm_common.default_target_flags,
2222         targetm_common.unwind_tables_default and
2223         targetm_common.option_init_struct.
2224         (default_options_optimization): Use
2225         targetm_common.option_optimization_table.
2226         (finish_options): Use targetm_common.except_unwind_info,
2227         targetm_common.unwind_tables_default,
2228         targetm_common.have_named_sections and
2229         targetm_common.supports_split_stack.
2230         * toplev.c: Include common/common-target.h.
2231         (process_options): Use targetm_common.have_named_sections.
2232         * tree-tailcall.c: Include common/common-target.h.
2233         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2234         * tree.c: Include common/common-target.h.
2235         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2236         * varasm.c: Include common/common-target.h.
2237         (resolve_unique_section, hot_function_section,
2238         default_function_section): Use targetm_common.have_named_sections.
2239
2240 2011-06-14  Easwaran Raman  <eraman@google.com>
2241
2242         PR rtl-optimization/44194
2243         * dse.c: Include tree-flow.h
2244         (insn_info): Add new field non_frame_wild_read.
2245         (group_info): Add new fields escaped_n and escaped_p.
2246         (kill_on_calls): New variable.
2247         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2248         (dse_step0): Initialize kill_on_calls.
2249         (can_escape): New function.
2250         (set_usage_bits): Add additional parameter; record information
2251         about escaped locations.
2252         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2253         (dse_step2_nospill): Set kill_on_calls based on
2254         group->escaped_n and group->escaped_n.
2255         (add_wild_read): Refactor into...
2256         (reset_active_stores): ... New function, and
2257         (free_read_records): ... New function.
2258         (add_non_frame_wild_read): New function.
2259         (scan_insn): Call add_non_frame_wild_read on non-const calls.
2260         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2261         (dse_step5_nospill): Call scan_reads_nospill for instructions
2262         marked as non_frame_wild_read.
2263         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2264
2265 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
2266
2267         * common/common-target-def.h, common/common-target.def,
2268         common/common-target.h, common/config/default-common.c,
2269         common/config/pa/pa-common.c: New files.
2270         * Makefile.in (common_out_file, common_out_object_file,
2271         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2272         (OBJS-libcommon-target): Include $(common_out_object_file).
2273         (prefix.o): Update dependencies.
2274         ($(common_out_object_file), common/common-target-hooks-def.h,
2275         s-common-target-hooks-def-h): New.
2276         (s-tm-texi): Also check timestamp on common-target.def.
2277         (build/genhooks.o): Update dependencies.
2278         * config.gcc (common_out_file, target_has_targetm_common): Define.
2279         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2280         TARGET_ALWAYS_STRIP_DOTDOT.
2281         * configure.ac (common_out_object_file): Define.
2282         (common_out_file, common_out_object_file): Substitute.
2283         (common): Create directory.
2284         * configure: Regenerate.
2285         * doc/tm.texi.in (targetm_common): Document.
2286         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2287         * doc/tm.texi: Regenerate.
2288         * genhooks.c (hook_array): Also include common/common-target.def.
2289         * prefix.c (tm.h): Don't include.
2290         (common/common-target.h): Include.
2291         (ALWAYS_STRIP_DOTDOT): Don't define.
2292         (update_path): Use targetm_common.always_strip_dotdot instead of
2293         ALWAYS_STRIP_DOTDOT.
2294         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2295
2296 2011-06-14  David Li  <davidxl@google.com>
2297
2298         * passes.c (execute_function_todo): Remove TODO_dump_func.
2299         (execute_one_pass): Remove TODO_dump_func.
2300         (execute_function_dump): New function.
2301         * tree-vrp.c: Remove TODO_dump_func.
2302         * regrename.c: Remove TODO_dump_func.
2303         * fwprop.c: Remove TODO_dump_func.
2304         * tree-into-ssa.c: Remove TODO_dump_func.
2305         * tree-complex.c: Remove TODO_dump_func.
2306         * tracer.c: Remove TODO_dump_func.
2307         * tree-loop-distribution.c: Remove TODO_dump_func.
2308         * postreload-gcse.c: Remove TODO_dump_func.
2309         * postreload.c: Remove TODO_dump_func.
2310         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2311         * tree-tailcall.c: Remove TODO_dump_func.
2312         * ipa-cp.c: Remove TODO_dump_func.
2313         * final.c: Remove TODO_dump_func.
2314         * tree-emutls.c: Remove TODO_dump_func.
2315         * omp-low.c: Remove TODO_dump_func.
2316         * tree-ssa-dse.c: Remove TODO_dump_func.
2317         * tree-ssa-uncprop.c: Remove TODO_dump_func.
2318         * auto-inc-dec.c: Remove TODO_dump_func.
2319         * reorg.c: Remove TODO_dump_func.
2320         * tree-ssa-copyrename.c: Remove TODO_dump_func.
2321         * tree-ssa-ccp.c: Remove TODO_dump_func.
2322         * compare-elim.c: Remove TODO_dump_func.
2323         * mode-switching.c: Remove TODO_dump_func.
2324         * modulo-sched.c: Remove TODO_dump_func.
2325         * tree-call-cdce.c: Remove TODO_dump_func.
2326         * cse.c: Remove TODO_dump_func.
2327         * web.c: Remove TODO_dump_func.
2328         * tree-stdarg.c: Remove TODO_dump_func.
2329         * lto-streamer-out.c: Remove TODO_dump_func.
2330         * tree-ssa-math-opts.c: Remove TODO_dump_func.
2331         * tree-ssa-dom.c: Remove TODO_dump_func.
2332         * tree-nrv.c: Remove TODO_dump_func.
2333         * loop-init.c: Remove TODO_dump_func.
2334         * gimple-low.c: Remove TODO_dump_func.
2335         * ipa-inline.c: Remove TODO_dump_func.
2336         * tree-ssa-sink.c: Remove TODO_dump_func.
2337         * jump.c: Remove TODO_dump_func.
2338         * ifcvt.c: Remove TODO_dump_func.
2339         * tree-ssa-loop.c: Remove TODO_dump_func.
2340         * recog.c: Remove TODO_dump_func.
2341         * dse.c: Remove TODO_dump_func.
2342         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2343         * matrix-reorg.c: Remove TODO_dump_func.
2344         * tree-eh.c: Remove TODO_dump_func.
2345         * regmove.c: Remove TODO_dump_func.
2346         * function.c: Remove TODO_dump_func.
2347         * tree-vectorizer.c: Remove TODO_dump_func.
2348         * ipa-split.c: Remove TODO_dump_func.
2349         * gcse.c: Remove TODO_dump_func.
2350         * tree-if-conv.c: Remove TODO_dump_func.
2351         * init-regs.c: Remove TODO_dump_func.
2352         * tree-ssa-phiopt.c: Remove TODO_dump_func.
2353         * implicit-zee.c: Remove TODO_dump_func.
2354         * lower-subreg.c: Remove TODO_dump_func.
2355         * bt-load.c: Remove TODO_dump_func.
2356         * tree-dfa.c: Remove TODO_dump_func.
2357         * except.c: Remove TODO_dump_func.
2358         * emit-rtl.c: Remove TODO_dump_func.
2359         * store-motion.c: Remove TODO_dump_func.
2360         * cfgexpand.c: Remove TODO_dump_func.
2361         * tree-cfgcleanup.c: Remove TODO_dump_func.
2362         * cfgcleanup.c: Remove TODO_dump_func.
2363         * tree-ssa-pre.c: Remove TODO_dump_func.
2364         * tree-sra.c: Remove TODO_dump_func.
2365         * tree-mudflap.c: Remove TODO_dump_func.
2366         * tree-ssa-copy.c: Remove TODO_dump_func.
2367         * cfglayout.c: Remove TODO_dump_func.
2368         * tree-ssa-forwprop.c: Remove TODO_dump_func.
2369         * tree-ssa-dce.c: Remove TODO_dump_func.
2370         * ira.c: Remove TODO_dump_func.
2371         * tree-ssa.c: Remove TODO_dump_func.
2372         * integrate.c: Remove TODO_dump_func.
2373         * tree-optimize.c: Remove TODO_dump_func.
2374         * tree-ssa-phiprop.c: Remove TODO_dump_func.
2375         * tree-object-size.c: Remove TODO_dump_func.
2376         * combine.c: Remove TODO_dump_func.
2377         * bb-reorder.c: Remove TODO_dump_func.
2378         * cprop.c: Remove TODO_dump_func.
2379         * var-tracking.c: Remove TODO_dump_func.
2380         * tree-profile.c: Remove TODO_dump_func.
2381         * tree-vect-generic.c: Remove TODO_dump_func.
2382         * reg-stack.c: Remove TODO_dump_func.
2383         * sched-rgn.c: Remove TODO_dump_func.
2384         * tree-ssa-structalias.c: Remove TODO_dump_func.
2385         * tree-switch-conversion.c: Remove TODO_dump_func.
2386         * tree-cfg.c: Remove TODO_dump_func.
2387         * tree-ssa-reassoc.c: Remove TODO_dump_func.
2388         * combine-stack-adj.c: Remove TODO_dump_func.
2389         * dce.c: Remove TODO_dump_func.
2390         * tree-ssanames.c: Remove TODO_dump_func.
2391         * regcprop.c: Remove TODO_dump_func.
2392
2393 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2394
2395         PR middle-end/47364
2396         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2397         and properly handle result not in Pmode.
2398
2399 2011-06-14  Robert Millan  <rmh@gnu.org>
2400
2401         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2402         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2403         `config/linux.h'.
2404
2405         * config/i386/kfreebsd-gnu64.h: New file.
2406         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2407         with `i386/kfreebsd-gnu64.h'.
2408
2409         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2410         (GNU_USER_LINK_EMULATION64): New macros.
2411         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2412         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2413         of hardcoding `elf_i386' and `elf_x86_64'.
2414
2415 2011-06-14  Nick Clifton  <nickc@redhat.com>
2416
2417         PR target/49403
2418         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2419
2420         PR target/49402
2421         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2422
2423 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
2424
2425         PR fortran/49103
2426         * tree.h (DECL_NONSHAREABLE): Define.
2427         (struct tree_decl_common): Change decl_common_unused to
2428         decl_nonshareable_flag.
2429         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2430         Ignore vars with DECL_NONSHAREABLE bit set.
2431         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2432         on stores to automatic aggregate vars.
2433
2434         PR rtl-optimization/49390
2435         Revert:
2436         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
2437
2438         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2439         MEM_ALIAS_SET.
2440
2441 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
2442             Tom de Vries  <tom@codesourcery.com>
2443
2444         PR target/45098
2445         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2446         Document changed semantics.
2447         (max_stmt_executions, max_stmt_executions_int): Declare.
2448         * tree-data-ref.c (estimated_loop_iterations)
2449         (estimated_loop_iterations_int): Move functions...
2450         * tree-ssa-loop-niter.c (estimated_loop_iterations)
2451         (estimated_loop_iterations_int): here.
2452         (record_estimate): Change nb_iterations_upper_bound and
2453         nb_iterations_estimate semantics.
2454         (max_stmt_executions, max_stmt_executions_int): New function.
2455         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2456         (max_stmt_executions_tree): this.
2457         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2458         estimated_loop_iterations_tree.
2459         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2460         max_stmt_executions_int instead of estimated_loop_iterations_int.
2461         * predict.c (predict_loops): Idem.
2462         * tree-parloops.c (parallelize_loops): Idem.
2463         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2464         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2465         (init_omega_for_ddr_1): Idem.
2466         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2467         (loop_prefetch_arrays): Idem
2468         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2469         max_stmt_executions instead of estimated_loop_iterations.
2470         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2471         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2472         instead of nb_iterations_upper_bound.
2473
2474 2011-06-13  Jan Hubicka  <jh@suse.cz>
2475
2476         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2477
2478 2011-06-14  Richard Henderson  <rth@redhat.com>
2479
2480         PR debug/48459
2481         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2482         (based_loc_descr): Assert it's true.
2483         (compute_frame_pointer_to_fb_displacement): Set it, rather than
2484         aborting immediately.
2485
2486 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
2487             Mingfeng Wu  <mingfeng@faraday-tech.com>
2488
2489         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2490
2491 2011-06-13  Jan Hubicka  <jh@suse.cz>
2492
2493         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2494
2495 2011-06-13  Jan Hubicka  <jh@suse.cz>
2496
2497         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2498         similarly to DECL_COMDAT.
2499         * cgraphunit.c (cgraph_analyze_function): Likewise.
2500         * ipa.c (function_and_variable_visibility): Likewise.
2501
2502 2011-06-13  Jan Hubicka  <jh@suse.cz>
2503
2504         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2505         BINFO_VIRTUALS when streaming for ltrans unit.
2506
2507 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
2508
2509         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2510         (movdi_internal64): Same.
2511
2512 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
2513
2514         PR target/44618
2515         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2516         a set of similar patterns, where the MATCH_OPERAND for the function
2517         argument is replaced with individual references to hardware registers.
2518         (save_fpregs_<mode>): Ditto
2519         (restore_gpregs_<mode>): Ditto
2520         (return_and_restore_gpregs_<mode>): Ditto
2521         (return_and_restore_fpregs_<mode>): Ditto
2522         (return_and_restore_fpregs_aix_<mode>): Ditto
2523
2524 2011-06-13  Jan Hubicka  <jh@suse.cz>
2525
2526         * ipa-utils.c (postorder_stack): New structure.
2527         (ipa_reverse_postorder): Handle aliases.
2528
2529 2011-06-13  Jan Hubicka  <jh@suse.cz>
2530
2531         * ipa-inline.c (reset_edge_caches): Walk aliases.
2532         (update_caller_keys): Do not test inlinability of aliases.
2533         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2534         (do_estimate_growth): Fix typo.
2535
2536 2011-06-13  Jan Hubicka  <jh@suse.cz>
2537
2538         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2539         (can_remove_node_now_p): ... here; handle same comdat groups.
2540         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2541         (inline_call): Update use of can_remove_node_now_p.
2542
2543 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2544
2545         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2546         condition to disallow non-identical memory locations.
2547         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2548         preference to bit manipulation instructions.
2549
2550 2011-06-13  Jan Hubicka  <jh@suse.cz>
2551
2552         * cgraph.c (cgraph_for_node_thunks_and_aliases,
2553         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2554         (nonremovable_p): New function.
2555         (cgraph_can_remove_if_no_direct_calls_p): New function.
2556         (used_from_object_file_p): New functoin.
2557         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2558         references from aliases.
2559         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2560         * ipa-inline.c (check_caller_edge): New function.
2561         (want_inline_function_called_once_p): Use it; accept aliases called
2562         once, too.
2563         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2564
2565 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2566
2567         PR target/48454
2568         * config/arm/neon.md (vec_pack_trunc): Set the lengths
2569         correctly for the case with Quad vectors.
2570
2571 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
2572            Ira Rosen  <ira.rosen@linaro.org>
2573
2574         PR tree-optimization/49352
2575         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2576         all, make sure loop_use_stmt after the loop is a def stmt of a used
2577         SSA_NAME that is the only one defined inside of the loop.  Don't
2578         check for COND_EXPR and GIMPLE_BINARY_RHS.
2579         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2580         check_reduction is true.
2581
2582 2011-06-11  Jan Hubicka  <jh@suse.cz>
2583
2584         PR middle-end/49373
2585         * ipa.c (cgraph_externally_visible_p): Check resolution info.
2586
2587 2011-06-11  Jan Hubicka  <jh@suse.cz>
2588
2589         PR middle-end/48836
2590         * ipa-inline-transform.c: Include tree-pass.h
2591         (inline_transform): Set TODO_update_ssa_only_virtuals.
2592         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2593
2594 2011-06-11  Jan Hubicka  <jh@suse.cz>
2595
2596         PR middle-end/49378
2597         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2598         aliases and thunks.
2599
2600 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
2601
2602         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2603         Take number of iterations to peel into account for equally frequent
2604         misalignment values.
2605
2606 2011-06-11  Jan Hubicka  <jh@suse.cz>
2607
2608         * lto-streamer-out.c (produce_symtab): Stream out the newly
2609         represented aliases.
2610
2611 2011-06-11  Jan Hubicka  <jh@suse.cz>
2612
2613         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2614         varying args.
2615         (ipa_update_after_lto_read): Likewise.
2616         (ipa_write_node_info): Do not sream call_with_var_arguments.
2617         (ipa_read_node_info): Likewise.
2618
2619 2011-06-11  Jan Hubicka  <jh@suse.cz>
2620
2621         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2622
2623 2011-06-11  Jan Hubicka  <jh@suse.cz>
2624
2625         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2626         (lto_symtab_resolve_can_prevail_p): Likewise.
2627         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2628         * cgraph.c (same_body_aliases_done): New global var.
2629         (cgraph_same_body_alias_1): Rename to ...
2630         (cgraph_create_function_alias): ... this one; reorg to new
2631         representation.
2632         (cgraph_same_body_alias): Use cgraph_create_function_alias;
2633         record references when asked to.
2634         (cgraph_add_thunk): Fix formating.
2635         (cgraph_get_node): Kill same body alias code.
2636         (cgraph_node_for_asm): Likewise.
2637         (cgraph_remove_same_body_alias): Remove.
2638         (cgraph_remove_node): Kill same body alias code.
2639         (cgraph_mark_address_taken_node): Mark also the aliased function
2640         as having address taken.
2641         (dump_cgraph_node): Dump same body aliases.
2642         (cgraph_for_node_thunks_and_aliases): Update for new alias
2643         representation.
2644         (cgraph_for_node_and_aliases): Likewise.
2645         * cgraph.h (same_body): Kll pointer.
2646         (same_body_alias): Update comment.
2647         (same_body_aliases_done): Declare.
2648         (cgraph_remove_same_body_alias): Remove declaration.
2649         (cgraph_create_function_alias): Declare.
2650         (cgraph_process_same_body_aliases): Declare.
2651         (cgraph_function_with_gimple_body_p): Check for alias.
2652         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2653         (cgraph_alias_aliased_node): New function.
2654         (cgraph_function_node): Update for new aliases.
2655         (cgraph_function_or_thunk_node): Likewise.
2656         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2657         (inline_call): Remove dead aliases.
2658         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2659         name hack for same body aliases.
2660         (clone_of_p): Look through aliases.
2661         (verify_cgraph_node): Verify aliases.
2662         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2663         (cgraph_process_same_body_aliases): New function.
2664         (process_function_and_variable_attributes): Disable weakref warning on
2665         alias.
2666         (cgraph_analyze_functions): Handle aliases.
2667         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2668         (assemble_thunks): Rename to ...
2669         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2670         (cgraph_expand_function): Remove alias output code.
2671         (cgraph_output_in_order): Skip aliases.
2672         (cgraph_preserve_function_body_p): Aliases don't need preserving.
2673         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2674         (ipa_record_reference): Do not assert on alias references.
2675         (ipa_ref_has_aliases_p): New function.
2676         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2677         (ipa_ref_has_aliases_p): Declare.
2678         * lto-cgraph.c (lto_output_node): Handle aliases.
2679         (input_node): Likewise.
2680         * lto-streamer-out.c (lto_output): Skip aliases.
2681         (produce_symtab): Kill same_body_alias code.
2682         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2683         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2684         * ipa-inline.c (update_caller_keys): Walk aliases.
2685         (inline_small_functions): Fix thinko in previous patch.
2686         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2687         (function_and_variable_visibility): Do not walk same body aliases.
2688         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2689         (ipa_pta_execute): Use it.
2690
2691 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2692
2693         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2694         (*vec_dupv2df): Rename from vec_dupv2df.
2695         (vec_dupv2df): New expander.
2696
2697 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2698
2699         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2700
2701 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2702
2703         * config/i386/i386.md: Use default value in "isa" attribute.
2704         * config/i386/sse.md: Ditto.
2705         * config/i386/mmx.md: Ditto.
2706
2707 2011-06-10  Wei Guozhi  <carrot@google.com>
2708
2709         PR target/45335
2710         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2711         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2712         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2713         related peephole2.
2714         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2715         related peephole2.
2716         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2717         (arm_legitimate_ldrd_p): New prototype.
2718         (arm_output_ldrd): New prototype.
2719         * config/arm/arm.c (arm_check_ldrd_operands): New function.
2720         (arm_legitimate_ldrd_p): New function.
2721         (arm_output_ldrd): New function.
2722
2723 2011-06-10  David Li  <davidxl@google.com>
2724
2725         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2726         * passes.c (passr_eq): New function.
2727         (create_pass_tab): New function.
2728         (pass_traverse): New function.
2729         (dump_one_pass): New function.
2730         (dump_pass_list): New function.
2731         (dump_passes): New function.
2732
2733 2011-06-10  Jan Hubicka  <jh@suse.cz>
2734
2735         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2736         setting the nothrow flag.
2737         * ipa-reference.c (propagate): Skip aliases.
2738         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2739         (propagate_nothrow): Skip aliases; do not update cgraph.
2740         (local_pure_const): Do not update cgraph.
2741         * tree-profile.c (tree_profiling): Do fixup_cfg.
2742
2743 2011-06-10  Jan Hubicka  <jh@suse.cz>
2744
2745         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2746         (cgraph_local_node_p): ... here; handle aliases.
2747         (has_addr_references_p): Break out from ...;
2748         (cgraph_remove_unreachable_nodes) ... here.
2749
2750 2011-06-10  Jan Hubicka  <jh@suse.cz>
2751
2752         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2753         * common.opt (flag_inline_functions_called_once): Do not
2754         initialize to 1.
2755
2756 2011-06-10  Jan Hubicka  <jh@suse.cz>
2757
2758         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2759         (ipcp_initialize_node_lattices): Do not deal with aliases;
2760         Do not try to propagate through thunks.
2761         (ipcp_change_tops_to_bottom): Do not deal with aliases.
2762
2763 2011-06-10  Jan Hubicka  <jh@suse.cz>
2764
2765         * ipa-prop.c (ipa_write_node_info): Stream jump functions
2766         for indirect calls.
2767         (ipa_read_node_info): Likewise.
2768
2769 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2770
2771         PR lto/49302
2772         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2773         (build_and_insert_call): Likewise.
2774         (build_and_insert_ref): New.
2775         (gimple_expand_builtin_pow): Minor cleanup.
2776         (gimple_expand_builtin_cabs): New.
2777         (execute_cse_sincos): Add case for BUILT_IN_CABS.
2778
2779 2011-06-10  Jan Hubicka  <jh@suse.cz>
2780
2781         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2782         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2783         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2784         (ipcp_propagate_stage): Skip aliases when propagating.
2785         (ipcp_need_redirect_p): Skip aliases.
2786         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2787         collect_callers_of_node.
2788         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2789         for aliases.
2790         (ipa_compute_jump_functions): Look through aliases.
2791
2792 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2793
2794         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2795
2796 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2797
2798         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2799         Adjust comments.
2800         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2801
2802 2011-06-10  Jan Hubicka  <jh@suse.cz>
2803
2804         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2805         Update call of gimple_get_virt_method_for_binfo.
2806         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2807         refuse_thunks parameter.
2808         (gimple_fold_call): Update.
2809         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2810
2811 2011-06-10  Jan Hubicka  <jh@suse.cz>
2812
2813         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2814         (not_all_callers_have_enough_arguments_p): ... this one; turn into
2815         worker for cgraph_for_node_and_aliases.
2816         (convert_callers_for_node): Break out from ...
2817         (convert_callers): ... here.
2818         (modify_function): Use collect_callers_of_node.
2819         (ipa_early_sra): Use cgraph_for_node_and_aliases.
2820
2821 2011-06-10  Richard Guenther  <rguenther@suse.de>
2822
2823         PR tree-optimization/49361
2824         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2825         when not already in gimple form.
2826
2827 2011-06-10  Richard Guenther  <rguenther@suse.de>
2828
2829         PR bootstrap/49344
2830         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2831         FOR_EACH_PHI_OR_STMT_USE.
2832
2833 2011-06-10  Jan Hubicka  <jh@suse.cz>
2834
2835         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2836         (clone_inlined_nodes): ... here.
2837         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2838         to real destination prior inlining.
2839         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2840         can_early_inline_edge_p, want_early_inline_function_p,
2841         want_early_inline_function_p, want_inline_small_function_p,
2842         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2843         edge_badness, update_all_callee_keys, lookup_recursive_calls,
2844         add_new_edges_to_heap, inline_small_functions, flatten_function,
2845         inline_always_inline_functions, early_inline_small_functions): Use
2846         cgraph_function_or_thunk_node.
2847         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2848         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2849         (do_estimate_edge_growth_1): Break out from ...
2850         (do_estimate_growth) ... here; walk aliases.
2851         (inline_generate_summary): Skip aliases.
2852
2853 2011-06-10  Richard Guenther  <rguenther@suse.de>
2854
2855         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2856         forward when combining, visit inserted stmts when a stmt was changed.
2857
2858 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
2859
2860         * tree.h (error_operand_p): Add.
2861         * dbxout.c (dbxout_type_fields): Use the latter.
2862         * c-decl.c (add_stmt): Likewise.
2863         * gimplify.c (omp_add_variable, omp_notice_variable,
2864         gimplify_scan_omp_clauses): Likewise.
2865
2866 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
2867
2868         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2869         when a value is actually passed in regs.
2870
2871 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
2872             Laurent Rougé  <laurent.rouge@menta.fr>
2873
2874         * doc/invoke.texi (SPARC options): Add -mflat.
2875         * config/sparc/sparc.opt: Likewise.
2876         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2877         (sparc_flat_expand_prologue): Declare.
2878         (sparc_flat_expand_epilogue): Likewise.
2879         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2880         (CPP_ENDIAN_SPEC): Replace with...
2881         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
2882         (CPP_SPEC): Adjust to above change.
2883         (EXTRA_SPECS): Likewise.
2884         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2885         (INCOMING_REGNO): Likewise.
2886         (OUTGOING_REGNO): Likewise.
2887         (LOCAL_REGNO): Likewise.
2888         (SETUP_FRAME_ADDRESSES): Likewise.
2889         (FIXED_REGISTERS): Set 0 for %fp.
2890         (CALL_USED_REGISTERS): Likewise.
2891         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2892         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2893         (RETURN_ADDR_REGNUM): Define.
2894         (RETURN_ADDR_RTX): Use it.
2895         (INCOMING_RETURN_ADDR_REGNUM): Define.
2896         (INCOMING_RETURN_ADDR_RTX): Use it.
2897         (DWARF_FRAME_RETURN_COLUMN): Likewise.
2898         (EH_RETURN_REGNUM): Define.
2899         (EH_RETURN_STACKADJ_RTX): Use it.
2900         (EH_RETURN_HANDLER_RTX): Delete.
2901         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2902         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2903         Delete.
2904         (struct machine_function): Add frame_size, apparent_frame_size,
2905         frame_base_reg, frame_base_offset, n_global_fp_regs and
2906         save_local_in_regs_p fields.
2907         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2908         sparc_frame_base_offset, sparc_n_global_fp_regs,
2909         sparc_save_local_in_regs_p): New macros.
2910         (sparc_option_override): Error out if -fcall-saved-REG is specified
2911         for Out registers.
2912         (eligible_for_restore_insn): Fix formatting.
2913         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
2914         (eligible_for_sibcall_delay): Likewise.
2915         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2916         (sparc_legitimate_address_p): Adjust to above change.
2917         (save_global_or_fp_reg_p): New predicate.
2918         (return_addr_reg_needed_p): Likewise.
2919         (save_local_or_in_reg_p): Likewise.
2920         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
2921         (SORR_SAVE, SORR_RESTORE): Delete.
2922         (sorr_pred_t): New typedef.
2923         (sorr_act_t): New enum.
2924         (save_or_restore_regs): Rename to...
2925         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
2926         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2927         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
2928         mechanism.  Add CFI information for double-word saves in 32-bit mode.
2929         (emit_adjust_base_to_offset): New function extracted from...
2930         (emit_save_or_restore_regs): ...this.  Rename the rest to...
2931         (emit_save_or_restore_regs_global_fp_regs): ...this.
2932         (emit_save_or_restore_regs_local_in_regs): New function.
2933         (gen_create_flat_frame_[123]): New functions.
2934         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
2935         (sparc_flat_expand_prologue): New function.
2936         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2937         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
2938         (sparc_flat_expand_epilogue): New function.
2939         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2940         (output_return): Likewise.
2941         (output_sibcall): Likewise.
2942         (sparc_output_mi_thunk): Likewise.
2943         (sparc_frame_pointer_required): Likewise.
2944         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2945         function optimization.
2946         * config/sparc/sparc.md (flat): New attribute.
2947         (prologue): Add TARGET_FLAT handling.
2948         (save_register_window): Disable if TARGET_FLAT.
2949         (create_flat_frame_[123]): New patterns.
2950         (epilogue): Add TARGET_FLAT handling.
2951         (sibcall_epilogue): Likewise.
2952         (eh_return): New expander.
2953         (eh_return_internal): New insn and splitter.
2954         (return_internal): Add TARGET_FLAT handling.
2955         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2956         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2957         (nonlocal_goto): Add TARGET_FLAT handling.
2958         * config/sparc/t-elf: Add -mflat multilib.
2959         * config/sparc/t-leon: Likewise.
2960
2961 2011-06-10  Jan Hubicka  <jh@suse.cz>
2962
2963         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2964         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2965         (self_recursive_p): Use cgraph_function_node.
2966         (propagate_pure_const): Likewise.
2967         (propagate_nothrow): Likewise.
2968         * ipa-reference.c (ipa_reference_get_not_read_global): Use
2969         cgraph_function_node.
2970         (propagate_bits): Likewise.
2971         (propagate): Likewise.
2972
2973 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2974             Richard Earnshaw  <rearnsha@arm.com>
2975
2976         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2977         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2978         (*thumb2_movdi_vfp): Delete.
2979         (*arm_movdi_vfp_cortexa8): Delete.
2980         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2981         (*movdi_vfp_cortexa8): Likewise.
2982
2983 2011-06-10  Richard Guenther  <rguenther@suse.de>
2984
2985         * stor-layout.c (initialize_sizetypes): Give names to all
2986         sizetype kinds.
2987
2988 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
2989
2990         PR tree-optimization/49318
2991         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2992         irrelevant pattern statements.
2993
2994 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2995
2996         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2997
2998         PR bootstrap/49354
2999         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3000         to last assignment.
3001
3002 2011-06-09  Jan Hubicka  <jh@suse.cz>
3003
3004         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3005         do not recompute reachable flag.
3006         (cgraph_finalize_function, cgraph_analyze_functions): Set
3007         redefined_extern_inline here.
3008
3009 2011-06-09  Jan Hubicka  <jh@suse.cz>
3010
3011         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3012         (cgraph_only_called_directly_p): ... this one; bring offline.
3013         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3014         varpool_used_from_object_file_p): Drop names from the declaratoin.
3015         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3016         collect_callers_of_node): New.
3017         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3018         (cgraph_edge_recursive_p): Use cgraph_function_node.
3019         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3020         (cgraph_node_cannot_be_local_p_1): Break out from ...
3021         (cgraph_node_can_be_local_p): ... here; walk aliases.
3022         (cgraph_for_node_thunks_and_aliases): New function.
3023         (cgraph_for_node_and_aliases): New function.
3024         (cgraph_make_node_local_1): Break out from ...
3025         (cgraph_make_node_local) ... here; use
3026         cgraph_for_node_thunks_and_aliases.
3027         (cgraph_set_nothrow_flag_1): Break out from ...
3028         (cgraph_set_nothrow_flag) ... here;
3029         use cgraph_for_node_thunks_and_aliases.
3030         (cgraph_set_const_flag_1): Break out from ...
3031         (cgraph_set_const_flag) ... here;
3032         use cgraph_for_node_thunks_and_aliases.
3033         (cgraph_set_pure_flag_1): Break out from ...
3034         (cgraph_set_pure_flag) ... here;
3035         use cgraph_for_node_thunks_and_aliases.
3036         (cgraph_propagate_frequency_1): Break out from ...
3037         (cgraph_propagate_frequency) ... here; use
3038         cgraph_for_node_thunks_and_aliases.
3039         (cgraph_used_from_object_file_p): Do not care about aliases.
3040         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3041         New functions.
3042         (collect_callers_of_node_1, collect_callers_of_node): New functions.
3043
3044 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
3045
3046         PR rtl-optimization/49154
3047         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3048         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3049         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3050         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3051         * config/cris/cris.h (cris_register_move_cost): Remove
3052         !TARGET_V32 code.  Tweak comments.
3053
3054 2011-06-09  Jan Hubicka  <jh@suse.cz>
3055
3056         * cgraphbuild.c (record_eh_tables): Mark personality function as having
3057         address taken.
3058
3059 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
3060
3061         PR rtl-optimization/49154
3062         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3063         is a matching slot in the hashtable, assign it to classes_ptr.
3064
3065         PR rtl-optimization/49154
3066         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3067         register classes.
3068         * doc/tm.texi: Regenerate.
3069
3070 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
3071
3072         PR target/49307
3073         * config/sh/sh.md (UNSPEC_CHKADD): New.
3074         (chk_guard_add): New define_insn_and_split.
3075         (symGOT_load): Use chk_guard_add instead of blockage.
3076
3077 2011-06-09  Kai Tietz  <ktietz@redhat.com>
3078
3079         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3080
3081 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3082
3083         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3084
3085 2011-06-09  Wei Guozhi  <carrot@google.com>
3086
3087         PR target/46975
3088         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3089         (peephole2 for conditional move): Generate 16 bit instructions.
3090
3091 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
3092
3093         * config/i386/i386.md (*movdi_internal_rex64): Merge
3094         alternatives 6 and 8.
3095
3096 2011-06-09  David Li  <davidxl@google.com>
3097
3098         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3099         * passes.c (passr_eq): New function.
3100         (create_pass_tab): New function.
3101         (pass_traverse): New function.
3102         (dump_one_pass): New function.
3103         (dump_pass_list): New function.
3104         (dump_passes): New function.
3105
3106 2011-06-09  David Li  <davidxl@google.com>
3107
3108         * tree-complex.c (tree_lower_complex): Gate cleanup.
3109         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3110         (execute_optimize_stdarg): Ditto.
3111         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3112         (execute_cleanup_eh_1): Ditto.
3113         (execute_cleanup_eh): Ditto.
3114         * gcse.c (gate_rtl_pre): Ditto.
3115         (execute_rtl_pre): Ditto.
3116         * except.c (finish_eh_generation): Ditto.
3117         (convert_to_eh_region_ranges): Ditto.
3118         * cprop.c (one_cprop_pass): Ditto.
3119
3120 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
3121
3122         PR target/48673
3123         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3124         in all basic blocks.
3125
3126 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3127
3128         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3129         (HAVE_ENABLE_EXECUTE_STACK): Define.
3130         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3131         (HAVE_ENABLE_EXECUTE_STACK): Define.
3132         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3133         (HAVE_ENABLE_EXECUTE_STACK): Define.
3134         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3135         (ENABLE_EXECUTE_STACK): Remove.
3136         (HAVE_ENABLE_EXECUTE_STACK): Define.
3137         [IN_LIBGCC2]: Don't include <windows.h>.
3138         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3139         (HAVE_ENABLE_EXECUTE_STACK): Define.
3140         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3141         (HAVE_ENABLE_EXECUTE_STACK): Define.
3142         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3143         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3144         (HAVE_ENABLE_EXECUTE_STACK): Define.
3145         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3146         (HAVE_ENABLE_EXECUTE_STACK): Define.
3147         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3148         (HAVE_ENABLE_EXECUTE_STACK): Define.
3149         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3150         (HAVE_ENABLE_EXECUTE_STACK): Define.
3151         * config/alpha/alpha.c (alpha_trampoline_init): Test
3152         HAVE_ENABLE_EXECUTE_STACK.
3153         * config/i386/i386.c (ix86_trampoline_init): Likewise.
3154         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3155         (sparc64_initialize_trampoline): Likewise.
3156         * libgcc2.c [L_enable_execute_stack]: Remove.
3157         * system.h (ENABLE_EXECUTE_STACK): Poison.
3158         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3159         * doc/tm.texi: Regenerate.
3160         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3161
3162 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
3163
3164         PR middle-end/49308
3165         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3166         variable.  After resetting and rescanning insn continue with previous
3167         statement.
3168
3169 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3170
3171         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3172         (gcc_cv_ld_hidden): Likewise.
3173         * configure: Regenerate.
3174         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3175         (ix86_stack_protect_fail): Mark unused.
3176         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3177         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3178         [TARGET_MACHO]: Don't define.
3179         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3180         (TARGET_STACK_PROTECT_FAIL): Likewise.
3181         (rs6000_stack_protect_fail): Mark unused.
3182         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3183         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
3184
3185 2011-06-08  Andi Kleen  <ak@linux.intel.com>
3186
3187         * varasm.c (get_section): Print location of other conflict
3188         for section conflicts.
3189
3190 2011-06-08  Andi Kleen  <ak@linux.intel.com>
3191
3192         * config/i386/driver-i386.c (host_detect_local_cpu):
3193         Add model 0x2d Intel CPU.
3194
3195 2011-06-08  Andi Kleen  <ak@linux.intel.com>
3196
3197         * reginfo.c (global_regs_decl): Add.
3198         (globalize_reg): Add decl parameter. Compute location.  Pass location
3199         to warnings and add inform. Store decl in global_regs_decl.
3200         * rtl.h (globalize_reg): Update prototype.
3201         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3202
3203 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
3204
3205         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3206
3207 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3208
3209         PR target/49305
3210         * config/sh/predicates.md (general_movsrc_operand): Check
3211         mode for memory with indexed address for QI and HImode.
3212         (general_movdst_operand): Likewise.
3213
3214 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
3215
3216         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3217
3218 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
3219
3220         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3221         (num_ssa_operands): Likewise.
3222         (op_iter_init_phiuse): Forward-declare.
3223         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3224
3225 2011-06-08  Nick Clifton  <nickc@redhat.com>
3226
3227         * doc/invoke.texi (ARM Options): Update description of
3228         -mthumb-interwork.
3229
3230 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
3231
3232         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3233         unknown Intel family 0x6 CPUs.
3234
3235 2011-06-08  Martin Jambor  <mjambor@suse.cz>
3236
3237         * tree-sra.c (mark_rw_status): Removed.
3238         (analyze_access_subtree): New parameter parent instead of
3239         mark_read and mark_write, propagate from that.
3240
3241 2011-06-08  Julian Brown  <julian@codesourcery.com>
3242
3243         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3244         for double-precision helper functions in hard-float mode if only
3245         single-precision arithmetic is supported in hardware.
3246
3247 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
3248
3249         PR rtl-optimization/49303
3250         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
3251         code_motion_path_driver returned 0 or 1.
3252         (sel_region_finish): Clear h_d_i_d.
3253
3254 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3255
3256         * config/sh/sh.c (prepare_move_operands): Set pic register
3257         appropriately for global and local dynamic tls models even
3258         if flag_pic is unset.
3259
3260 2011-06-07  Jason Merrill  <jason@redhat.com>
3261
3262         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3263
3264 2011-06-07  Xinliang David Li  <davidxl@google.com>
3265         * passes.c (enable_disable_pass): Handle assembler name.
3266         (is_pass_explicitly_enabled_or_disabled): Ditto.
3267
3268 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3269
3270         PR tree-optimization/48497
3271         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3272
3273 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3274
3275         PR tree-optimization/46728
3276         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3277         to use gimple_val_nonnegative_real_p.
3278         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3279         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3280
3281 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
3282
3283         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3284
3285 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
3286
3287         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3288         constant vectors.
3289
3290 2011-06-07  Richard Guenther  <rguenther@suse.de>
3291
3292         * stor-layout.c (initialize_sizetypes): Initialize all
3293         sizetypes based on target definitions.
3294         (set_sizetype): Remove.
3295         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3296         * tree.h (set_sizetype): Remove.
3297
3298 2011-06-07  Nick Clifton  <nickc@redhat.com>
3299
3300         * config.gcc: Unify V850 architecture options and add support for
3301         newer V850 architectures.
3302         * config/v850/t-v850e: Delete.
3303
3304 2011-06-07  Richard Guenther  <rguenther@suse.de>
3305
3306         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3307         Call set_sizetype from here.
3308
3309 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
3310
3311         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3312         (*maddhisi4tb, *maddhisi4tt): New define_insns.
3313
3314 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
3315             Andrew Stubbs  <ams@codesourcery.com>
3316
3317         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3318         multiplies.
3319         * doc/md.texi (Canonicalization of Instructions): Document widening
3320         multiply canonicalization.
3321
3322 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
3323
3324         PR gcov-profile/49299
3325         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3326
3327 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
3328
3329         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3330         a pointer.
3331         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3332         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3333         vect_recog_pow_pattern): Likewise.
3334         (vect_pattern_recog_1): Remove declaration.
3335         (widened_name_p): Remove declaration.  Add new argument to specify
3336         whether to check that both types are either signed or unsigned.
3337         (vect_recog_widen_mult_pattern): Update documentation.  Handle
3338         unsigned patterns and multiplication by constants.
3339         (vect_pattern_recog_1): Update vect_recog_func references.  Use
3340         statement information from the statement returned from pattern
3341         detection functions.
3342         (vect_pattern_recog): Update vect_recog_func reference.
3343         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3344         multiplication by a constant use the type of the other operand.
3345
3346 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
3347
3348         PR rtl-optimization/49145
3349         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3350
3351 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
3352
3353         PR debug/49262
3354         * dwarf2out.c (native_encode_initializer): Decrement count in each
3355         iteration.
3356
3357         PR debug/49294
3358         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3359         non-MODE_INT modes.
3360
3361         PR c++/49264
3362         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3363         if stmt folded into nothing.
3364         * tree-inline.c (fold_marked_statements): If a builtin at the end of
3365         a bb folded into nothing, just update cgraph edges and move to next bb.
3366         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3367         to be NULL.  Don't compute count and frequency if new_call is NULL.
3368
3369 2011-06-04  Diego Novillo  <dnovillo@google.com>
3370
3371         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3372         (cgraph.o): Likewise.
3373         (cgraphunit.o): Likewise.
3374         * cgraphunit.c: Include lto-streamer.h
3375         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3376         if LTO is enabled.
3377         * lto-streamer-in.c (unpack_value_fields): Call
3378         streamer_hooks.unpack_value_fields if set.
3379         (lto_materialize_tree): For unhandled nodes, first try to
3380         call lto_streamer_hooks.alloc_tree, if it exists.
3381         (lto_input_ts_decl_common_tree_pointers): Move reading of
3382         DECL_INITIAL to lto_streamer_read_tree.
3383         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3384         (lto_streamer_read_tree): New.
3385         (lto_reader_init): Rename from lto_init_reader.
3386         Move initialization code to lto/lto.c.
3387         * lto-streamer-out.c (pack_value_fields): Call
3388         streamer_hooks.pack_value_fields if set.
3389         (lto_output_tree_ref): For tree nodes that are not normally indexable,
3390         call streamer_hooks.indexable_with_decls_p before giving up.
3391         (lto_output_ts_decl_common_tree_pointers): Move handling
3392         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3393         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3394         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
3395         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3396         (lto_streamer_write_tree): New.
3397         (lto_output): Call lto_streamer_init directly.
3398         (lto_writer_init): Remove.
3399         * lto-streamer.c (streamer_hooks): New.
3400         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3401         instead of lto_preload_common_nodes.
3402         (lto_is_streamable): Move from lto-streamer.h
3403         (lto_streamer_hooks_init): New.
3404         (streamer_hooks): New.
3405         (streamer_hooks_init): New.
3406         * lto-streamer.h (struct output_block): Forward declare.
3407         (struct lto_input_block): Likewise.
3408         (struct data_in): Likewise.
3409         (struct bitpack_d): Likewise.
3410         (struct streamer_hooks): Declare.
3411         (streamer_hooks): Declare.
3412         (lto_streamer_hooks_init): Declare.
3413         (lto_streamer_write_tree): Declare.
3414         (lto_streamer_read_tree): Declare.
3415         (streamer_hooks_init): Declare.
3416         (lto_is_streamable): Move to lto-streamer.c
3417
3418 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3419
3420         * longlong.h (smul_ppmm): The resulting register pair contains the
3421         higher order word first.
3422
3423 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3424
3425         PR tree-optimization/46728
3426         * builtins.c (powi_table): Remove.
3427         (powi_lookup_cost): Remove.
3428         (powi_cost): Remove.
3429         (expand_powi_1): Remove.
3430         (expand_powi): Remove.
3431         (expand_builtin_pow_root): Remove.
3432         (expand_builtin_pow): Remove.
3433         (expand_builtin_powi): Eliminate handling of constant exponent.
3434         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3435
3436 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3437
3438         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3439
3440 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3441
3442         * dce.c (reset_unmarked_insns_debug_uses): New.
3443         (delete_unmarked_insns): Skip debug insns.
3444         (prescan_insns_for_dce): Likewise.
3445         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3446         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3447         active reg can be found.
3448         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
3449         (convert_regs_1): Use it.
3450
3451 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3452
3453         * tree-pretty-print.c (dump_function_header): Add flags.
3454         Don't dump decl_uid with nouid.
3455         * tree-pretty-print.h (dump_function_header): Adjust.
3456         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3457         * passes.c (pass_init_dump_file): Pass dump_flags on.
3458         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3459
3460 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3461
3462         PR bootstrap/49270
3463         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3464
3465 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
3466
3467         PR tree-optimization/49243
3468         * calls.c (setjmp_call_p): Also check if fndecl has the
3469         returns_twice attribute.
3470
3471 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3472
3473         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3474         -ffast-math etc.
3475
3476 2011-06-06  Richard Henderson  <rth@redhat.com>
3477             Georg-Johann Lay  <avr@gjlay.de>
3478
3479         PR target/42210
3480         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3481         New predicates.
3482         * config/avr/avr.md ("insv"): New insn expander.
3483         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3484         "*insv.not.io", "*insv.reg"): New insns.
3485
3486 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
3487
3488         PR target/49285
3489         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3490         to nonimmediate_operand from memory_operand for the operand that is to
3491         be forced to memory by the expander.  Lose the constraints.
3492
3493 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
3494
3495         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3496         EH return when delayed branches are disabled.
3497
3498 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
3499
3500         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3501         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
3502         calculation.
3503         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3504         Simplify MODE_V1DF and MODE_V2SF handling.
3505         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3506         Simplify MODE_SF handling.
3507
3508 2011-06-04  Jan Hubicka  <jh@suse.cz>
3509
3510         PR tree-optimization/48893
3511         PR tree-optimization/49091
3512         PR tree-optimization/49179
3513         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3514         Bounds check.
3515
3516 2011-06-04  Jan Hubicka  <jh@suse.cz>
3517
3518         PR lto/48954
3519         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3520         bitmaps.
3521
3522 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
3523
3524         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3525
3526 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
3527
3528         PR target/49281
3529         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3530         to be strictly smaller than 1 << shiftcount.
3531
3532 2011-06-04  Jan Hubicka  <jh@suse.cz>
3533
3534         PR tree-optimize/48929
3535         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3536         of empty predicate.
3537
3538 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
3539
3540         PR debug/48333
3541         * calls.c (emit_call_1): Prefer the __builtin declaration of
3542         builtin functions.
3543
3544 2011-06-03   Diego Novillo  <dnovillo@google.com>
3545
3546         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3547         (lto_input_tree_pointers): Likewise.
3548         * lto-streamer-out.c (pack_value_fields): Likewise.
3549         (lto_output_tree_pointers): Likewise.
3550         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3551         and OPTIMIZATION_NODE.
3552
3553 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3554
3555         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3556         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3557         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3558         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3559         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3560         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3561         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3562         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3563         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3564         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3565         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3566         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3567         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3568         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3569         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3570         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3571         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3572         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3573         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3574         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3575         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3576         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3577         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3578         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3579         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3580         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3581         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3582         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3583         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3584         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3585         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3586         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3587         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3588         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3589         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3590         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3591         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3592         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3593         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3594         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3595         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3596         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3597         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3598         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3599         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3600         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3601         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3602         * system.h (MD_UNWIND_SUPPORT): Poison.
3603         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3604         * doc/tm.texi: Regenerate.
3605         * unwind-dw2.c: Include md-unwind-support.h instead of
3606         MD_UNWIND_SUPPORT.
3607         * config/ia64/unwind-ia64.c: Likewise.
3608         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3609
3610 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
3611
3612         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3613
3614 2011-06-03  Richard Henderson  <rth@redhat.com>
3615             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3616
3617         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3618         (sigill_hdlr): Correct insn, insn size.
3619         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3620
3621 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3622
3623         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3624         t-slibgcc-dummy.
3625         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3626         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3627         * config/mips/t-iris: Remove.
3628         * config/mips/t-irix6: New file.
3629         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3630
3631 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3632
3633         * Makefile.in (LIB2ADDEHDEP): Remove.
3634         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3635         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3636         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3637         * config/t-darwin (LIB2ADDEHDEP): Remove.
3638         * config/t-freebsd (LIB2ADDEHDEP): Remove.
3639         * config/t-linux (LIB2ADDEHDEP): Remove.
3640
3641 2011-06-03  Diego Novillo  <dnovillo@google.com>
3642
3643         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3644         (lto_register_var_decl_in_symtab): Likewise.
3645         (lto_register_function_decl_in_symtab): Likewise.
3646         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3647         logic to uniquify_nodes.
3648
3649 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3650
3651         * config/alpha/t-osf5: Remove.
3652         * config/alpha/t-osf-pthread: Remove.
3653         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3654         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3655
3656 2011-06-03  Julian Brown  <julian@codesourcery.com>
3657
3658         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3659         (strongarm1110): Use strongarm tuning.
3660         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3661         * config/arm/arm.c (arm_strongarm_tune): New.
3662         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3663         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3664         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3665         setting, using previous defaults or 1 for Cortex-A5.
3666         (arm_option_override): Set max_insns_skipped from current tuning.
3667
3668 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
3669
3670         * doc/install.texi (Options specification): Document --with-specs.
3671
3672 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3673
3674         * config/arm/neon.md (orndi3_neon): Actually split it.
3675
3676 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3677
3678         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3679         * var-tracking.c (reverse_op): Limite recurse depth to 5.
3680
3681 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3682
3683         PR debug/47590
3684         * target.def (delay_sched2, delay_vartrack): New.
3685         * doc/tm.texi.in: Update.
3686         * doc/tm.texi: Rebuild.
3687         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3688         * var-tracking.c (gate_handle_var_tracking): Likewise.
3689         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3690         (bfin_flag_var_tracking): Drop.
3691         (output_file_start): Don't save and override flag_var_tracking.
3692         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3693         (bfin_reorg): Test original variables.
3694         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3695         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3696         (ia64_flag_var_tracking): Drop.
3697         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3698         (ia64_file_start): Don't save and override flag_var_tracking.
3699         (ia64_override_options_after_change): Ditto
3700         flag_schedule_insns_after_reload.
3701         (ia64_reorg): Test original variables.
3702         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3703         (picochip_flag_var_tracking): Drop.
3704         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3705         (picochip_option_override): Don't save and override
3706         flag_schedule_insns_after_reload.
3707         (picochip_asm_file_start): Ditto flag_var_tracking.
3708         (picochip_reorg): Test original variables.
3709         * config/spu/spu.c (spu_flag_var_tracking): Drop.
3710         (TARGET_DELAY_VARTRACK): Define.
3711         (spu_var_tracking): New.
3712         (spu_machine_dependent_reorg): Call it.
3713         (asm_file_start): Don't save and override flag_var_tracking.
3714
3715 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3716
3717         PR target/49163
3718         * config/sh/predicates.md (general_movsrc_operand): Return 0
3719         for memory and memory subreg of which address is an invalid
3720         indexed address for QI and HImode.
3721         (general_movdst_operand): Likewise.
3722
3723 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3724
3725         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3726         edges only, when there is a non-local label in the function.
3727         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3728
3729 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3730
3731         * config/i386/constraints.md (Y3): New register constraint.
3732         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3733         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3734         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3735         *sse2_interleave_lowv2df.
3736
3737 2011-06-02  Julian Brown  <julian@codesourcery.com>
3738
3739         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3740         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3741         (arm_cortex_a5_tune): New.
3742
3743 2011-06-02  Julian Brown  <julian@codesourcery.com>
3744
3745         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3746         * config/arm/arm.c (arm_default_branch_cost): New.
3747         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3748         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3749         (arm_fa726_tune): Set branch_cost field using
3750         arm_default_branch_cost.
3751         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3752         current_tune structure.
3753         * dojump.c (tm_p.h): Include file.
3754
3755 2011-06-02  Julian Brown  <julian@codesourcery.com>
3756
3757         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3758         tuning.
3759         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3760         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3761         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3762         field.
3763         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3764         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3765         (arm_fa726te_tune): Add prefer_constant_pool setting.
3766         (arm_v6t2_tune, arm_cortex_tune): New.
3767         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3768         prefer_constant_pool setting.
3769
3770 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3771
3772         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3773         switch statement.
3774         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3775         (*movdf_internal) <case 6,7,8>: Ditto.
3776
3777         * config/i386/constraints.md (Y4): New register constraint.
3778         * config/i386/sse.md (vec_set<mode>_0): Merge with
3779         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3780         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3781         *vec_extractv2di_1_sse.
3782         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3783         and *vec_concatv2di_rex64_sse.
3784
3785 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
3786
3787         PR target/48807
3788         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3789         of cgraph_local_info for null before attempting to use it.
3790
3791 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3792
3793         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3794         (current_function_dynamic_alloc_count): Delete.
3795         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3796         (expand_builtin_nonlocal_goto): Remove obsolete comment.
3797         (expand_builtin_update_setjmp_buf): Remove dead code.
3798         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3799         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3800         support.
3801         * function.c (instantiate_virtual_regs): Likewise.
3802         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3803         for a block with a single abnormal incoming edge.
3804         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3805         (SETJMP_VIA_SAVE_AREA): Delete.
3806         * config/sparc/sparc-protos.h (load_got_register): Declare.
3807         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3808         (load_got_register): Make global.
3809         (sparc_frame_pointer_required): Add 'static'.
3810         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
3811         (sparc_builtin_setjmp_frame_value): New function.
3812         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3813         (save_stack_nonlocal): New expander.
3814         (restore_stack_nonlocal): Likewise.
3815         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3816         (nonlocal_goto_internal): New insn.
3817         (goto_handler_and_restore): Delete.
3818         (builtin_setjmp_setup): Likewise.
3819         (do_builtin_setjmp_setup): Likewise.
3820         (setjmp): Likewise.
3821         (builtin_setjmp_receiver): New expander.
3822
3823 2011-06-01  David Li  <davidxl@google.com>
3824
3825         PR middle-end/49261
3826         * tree-pretty-print.c (dump_function_header): Format cleanup.
3827
3828 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3829
3830         PR target/49238
3831         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3832         needed when original operands are used for msw_skip comparison.
3833
3834 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3835
3836         PR debug/49250
3837         * var-tracking.c (add_uses, add_stores): Don't call
3838         cselib_subst_to_values on ENTRY_VALUE.
3839
3840 2011-06-01  Diego Novillo  <dnovillo@google.com>
3841
3842         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3843         output_record_start with LTO_null instead of output_zero.
3844         (lto_output_ts_binfo_tree_pointers): Likewise.
3845         (lto_output_tree): Likewise.
3846         (output_eh_try_list): Likewise.
3847         (output_eh_region): Likewise.
3848         (output_eh_lp): Likewise.
3849         (output_eh_regions): Likewise.
3850         (output_bb): Likewise.
3851         (output_function): Likewise.
3852         (output_unreferenced_globals): Likewise.
3853         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3854         instead of NUM_TREE_CODES.
3855         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3856         (lto_output_int_in_range): Change << to >> when shifting VAL.
3857
3858 2011-06-01  Diego Novillo  <dnovillo@google.com>
3859
3860         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3861         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3862
3863 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3864
3865         PR target/45074
3866         * optabs.h (valid_multiword_target_p): Declare.
3867         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3868         doing multi-word operations.
3869         * optabs.c (expand_binop): Likewise.
3870         (expand_doubleword_bswap): Likewise.
3871         (expand_absneg_bit): Likewise.
3872         (expand_unop): Likewise.
3873         (expand_copysign_bit): Likewise.
3874         (multiword_target_p): New function.
3875
3876 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3877
3878         PR rtl-optimization/48830
3879         PR rtl-optimization/48808
3880         PR rtl-optimization/48792
3881         * reload.c (push_reload): Check contains_reg_of_mode.
3882         * reload1.c (strip_paradoxical_subreg): New function.
3883         (gen_reload_chain_without_interm_reg_p): Use it to handle
3884         paradoxical subregs.
3885         (emit_output_reload_insns, gen_reload): Likewise.
3886
3887 2011-06-01  David Li  <davidxl@google.com>
3888
3889         * predict.c : Change pass name
3890         * ipa.c: Ditto.
3891         * dce.c: Ditto.
3892         * tree-profile.c: Ditto.
3893         * except.c: Ditto.
3894
3895 2011-06-01  David Li  <davidxl@google.com>
3896
3897         * tree-pretty-print.c (dump_function_header): New function.
3898         * final.c (rest_of_clean_state): Use header dumper.
3899         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3900         * passes.c (pass_init_dump_file): Use header dumper.
3901
3902 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3903
3904         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3905         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3906         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3907         New functions.
3908         (mem_loc_descriptor): Use them.
3909
3910         * var-tracking.c (create_entry_value): New function.
3911         (vt_add_function_parameter): Use it.
3912
3913 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3914
3915         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3916         Include <signal.h>, <ucontext.h>.
3917         (sigill_caught): Define.
3918         (sigill_hdlr): New function.
3919         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3920         insns can be executed.
3921         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3922         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3923
3924 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3925
3926         * config/t-slibgcc-darwin: Move to ...
3927         * config/t-slibgcc-dummy: ... this.  Clarify comments.
3928         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3929         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3930         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3931         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
3932         Remove i386/t-crtstuff from tmake_file.
3933         (i[34567]86-*-solaris2*): Remove t-svr4,
3934         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3935         t-slibgcc-dummy.
3936         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3937         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3938         sparc/t-crtfm from tmake_file.
3939         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3940         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3941         Remove extra_parts.
3942         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3943         * config/i386/t-nwld (SHLIB_LINK): Remove.
3944         * config/i386/t-rtems-i386: Rename to ...
3945         * config/i386/t-rtems: ... this.
3946         ($(T)crti.o, $(T)crtn.o): Remove.
3947         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3948         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3949         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3950         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3951         EXTRA_MULTILIB_PARTS): Remove.
3952         * config/sparc/t-sol2-64: Likewise.
3953         * config/sparc/t-sol2: Remove.
3954         * config/sparc/t-crtin: Remove.
3955         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3956         * config/i386/gmon-sol2.c: Remove.
3957         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3958         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3959         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3960         * config/i386/sol2-gc1.asm: Remove.
3961         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3962         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3963         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3964         * config/t-slibgcc-sld: Remove.
3965
3966 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3967
3968         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3969         base_type_for_mode with op_mode instead of mode.
3970
3971 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
3972
3973         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
3974         Cortex-A15.
3975         * config/arm/arm-tune.md: Regenerate.
3976         * config/arm/arm-tables.opt: Regenerate.
3977         * config/arm/arm.c (FL_DIV): Rename...
3978         (FL_THUMB_DIV): ... to this.
3979         (FL_ARM_DIV): Define.
3980         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3981         (arm_arch_hwdiv): Remove.
3982         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3983         (arm_issue_rate): Add cortexr5.
3984         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3985         __ARM_ARCH_EXT_IDIV__.
3986         (TARGET_IDIV): Define.
3987         (arm_arch_hwdiv): Remove.
3988         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3989         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3990         (divsi3, udivsi3): New patterns.
3991         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3992         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3993
3994 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3995
3996         * ipa-utils.c (ipa_dfs_info): New field scc_no.
3997         * ipa-utils.c (searchc): Set scc_no.
3998
3999 2011-06-01  Martin Jambor  <mjambor@suse.cz>
4000
4001         * ipa-utils.c (searchc_env): New field allow_overwritable.
4002         (searchc): do not ignore edges to overwritable nodes if indicated
4003         by env->allow_overwritable.
4004         (ipa_reduced_postorder): Set env.allow_overwritable.
4005
4006 2011-06-01  Richard Guenther  <rguenther@suse.de>
4007
4008         * tree.c (free_lang_data): Do not reset boolean_type_node nor
4009         char_type_node.
4010         * lto-streamer.c (lto_record_common_node): Take node pointer,
4011         do not register types.
4012         (lto_preload_common_nodes): Explicitly skip preloading nodes
4013         that differ between frontends.
4014
4015 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
4016
4017         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4018         NON_FLOAT_REGS.
4019
4020 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
4021
4022         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4023         parameter value for dump. Dump cost on outermost call only.
4024         (rs6000_memory_move_cost): Dump cost on outermost call only.
4025
4026 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
4027
4028         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4029         DW_OP_GNU_convert ops.
4030
4031         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4032         cselib_preserve_constants.
4033         (cselib_lookup_1): If cselib_preserve_constants,
4034         a new VALUE is being created for REG and there is a VALUE for the
4035         same register in wider mode, add another loc with lowpart SUBREG of
4036         the wider VALUE.
4037         (cselib_subst_to_values): Handle ENTRY_VALUE.
4038         * var-tracking.c  (replace_expr_with_values): Return NULL for
4039         ENTRY_VALUE too.
4040         * dwarf2out.c (convert_descriptor_to_signed): New function.
4041         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4042         instead of two shifts.
4043         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4044         the right mode if needed.
4045         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4046         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4047         convert_descriptor_to_signed.
4048         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4049         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4050
4051         PR target/48688
4052         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4053
4054 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
4055
4056         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4057         of X87MODEI12 and SWI48x instead of SSEMODEI24.
4058         (SWI248x): New mode iterator, rename from X87MODEI.
4059         (X87MODEI): Remove mode iterator.
4060         (X87MODEI12): Ditto.
4061         (SSEMODEI24): Ditto.
4062
4063 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
4064
4065         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4066         * doc/invoke.texi: Document max-vartrack-expr-depth.
4067         * var-tracking.c (EXPR_DEPTH): New.
4068         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4069
4070 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
4071
4072         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4073         * config/i386/sse.md: Add n to negated FMA pattern names.
4074
4075 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
4076
4077         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4078
4079 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
4080
4081         * gengtype-state.c (read_state_params_structs): Initialize previous.
4082
4083 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
4084
4085         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4086         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4087
4088 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
4089
4090         * config/i386/i386.md (*movtf_internal): Avoid allocating general
4091         registers.  Penalize F*r->o alternative to prevent partial memory
4092         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
4093         CONST_DOUBLE immediates when optimizing function for size.  Do not move
4094         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4095         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4096         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4097         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4098         alternatives.
4099         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4100
4101         (fp_register_operand splitters): Use fp_register_operand
4102         constraint.  Do not use FP_REG_P in insn condition.
4103         (any_fp_register_operand splitters): Use any_fp_register_operand
4104         constraint.  Do not use ANY_FP_REG_P in insn condition.
4105
4106 2011-05-31  Jan Hubicka  <jh@suse.cz>
4107
4108         * cgraph.h (cgraph_inline_failed_t): Give enum a name
4109         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4110         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4111         (lto_output_edge): Use output_enum and var_len_unsigned.
4112         (lto_output_varpool_node): Likewise.
4113         (input_overwrite_node): Do not take resolution parameter;
4114         extract it from a bitpack.
4115         (input_node): Do not read resolution; use input_enum and
4116         var_len_unsigned.
4117         (input_varpool_node): Likewise.
4118         (input_edge): Likewise.
4119         (input_cgraph_1): Likewise.
4120
4121 2011-05-31  Richard Guenther  <rguenther@suse.de>
4122
4123         * gimple.c (gimple_register_canonical_type): Do not register
4124         any types via gimple_register_type.
4125
4126 2011-05-31  Jan Hubicka  <jh@suse.cz>
4127
4128         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4129         of thunks.
4130
4131 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
4132
4133         PR rtl-optimization/49235
4134         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4135         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4136
4137 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
4138
4139         PR tree-optimization/49093
4140         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4141         data references.
4142
4143 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
4144
4145         PR debug/49047
4146         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
4147         for concrete functions containing the code of cloned functions.
4148
4149 2011-05-31  Richard Guenther  <rguenther@suse.de>
4150
4151         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4152         to ...
4153         (forward_propagate_into_comparison_1): ... this.
4154         (forward_propagate_comparison): Rename to ...
4155         (forward_propagate_into_comparison): ... this.  Split out
4156         real forward propagation code to ...
4157         (forward_propagate_comparison): ... this.
4158         (forward_propagate_into_gimple_cond): Remove looping.
4159         (forward_propagate_into_cond): Likewise.
4160         (simplify_not_neg_expr): Return whether we have done something.
4161         (simplify_gimple_switch): Likewise.
4162         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4163         (ssa_forward_propagate_and_combine): ... this.  Re-structure
4164         to do a forward forward-propagation walk on BBs and a backward
4165         stmt combining walk on BBs.  Consistently re-scan changed statements.
4166         (pass_forwprop): Adjust.
4167
4168 2011-05-30  Ian Lance Taylor  <iant@google.com>
4169
4170         * godump.c (go_format_type): Correct length of name added to
4171         obstack for anonymous field.
4172
4173 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
4174
4175         PR target/49186
4176         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4177         part of the second operand is 0.
4178
4179 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
4180
4181         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4182         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
4183         to memory for !TARGET_MEMORY_MISMATCH_STALL.
4184         (*movdf_internal_rex64): Do not penalize F->r alternative.
4185         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4186         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
4187         when optimizing function for size.  Do not move CONST_DOUBLEs
4188         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4189         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
4190         SUBREGs.  Do not check for MEM_P operands in the insn condition,
4191         check for ANY_FP_REGNO_P instead.
4192         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4193         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4194         function for speed.
4195         * config/i386/i386.c (ix86_option_override_internal): Do not
4196         set TARGET_INTEGER_DFMODE_MOVES here.
4197
4198 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4199
4200         PR target/49168
4201         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4202
4203 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
4204
4205         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4206         DW_TAG_rvalue_reference_type even for
4207         -gdwarf-4 -fno-debug-types-section.
4208
4209 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4210
4211         PR tree-optimization/46728
4212         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4213         (build_and_insert_binop): New.
4214         (gimple_expand_builtin_pow): Reorder args for
4215         build_and_insert_call; use build_and_insert_binop; add more
4216         optimizations for fractional exponents.
4217
4218 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
4219
4220         PR bootstrap/49190
4221
4222         Revert:
4223         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4224
4225         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4226         tree_common.
4227         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4228         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4229         TS_BASE instead of TS_COMMON.
4230         * varasm.c (assemble_name): Remove assert.
4231
4232 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
4233
4234         * config.gcc: Keep obselete list sorted.
4235
4236 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
4237             Eric Botcazou  <ebotcazou@adacore.com>
4238
4239         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4240         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4241         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4242         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4243         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4244
4245 2011-05-30  Richard Guenther  <rguenther@suse.de>
4246
4247         * gimple.c (gimple_types_compatible_p_1): Compare record
4248         and union type members properly.
4249
4250 2011-05-30  Richard Guenther  <rguenther@suse.de>
4251
4252         PR tree-optimization/49210
4253         * ipa-split.c (split_function): Care for the case where the call
4254         result is not trivially convertible to the result holding variable.
4255
4256 2011-05-30  Richard Guenther  <rguenther@suse.de>
4257
4258         PR tree-optimization/49218
4259         * tree-vrp.c (adjust_range_with_scev): Properly check whether
4260         overflow occured.
4261
4262 2011-05-30  Richard Guenther  <rguenther@suse.de>
4263
4264         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4265         New function split out from ...
4266         (forward_propagate_into_gimple_cond): ... here.  Adjust.
4267         (forward_propagate_into_cond): Likewise.
4268         (forward_propagate_comparison): Also propagate into
4269         comparisons on assignment RHS.  Change return value to
4270         behave similar to forward_propagate_into_cond.
4271         (tree_ssa_forward_propagate_single_use_vars): Handle
4272         strict-overflow warnings properly for forward_propagate_comparison.
4273
4274 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4275
4276         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4277         from plugin linker.
4278         * configure: Regenerate.
4279
4280 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
4281
4282         PR tree-optimization/49199
4283         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4284         non-reduction operands are either defined in the loop or by induction.
4285
4286 2011-05-29  Xinliang David Li  <davidxl@google.com>
4287
4288         * opts-global.c (handle_common_deferred_options): Handle new options.
4289         * passes.c (register_one_dump_file): Call register_pass_name.
4290         (execute_one_pass): Check explicit enable/disable flag.
4291         (passr_hash): New function.
4292         (passr_eq): Ditto.
4293         (register_pass_name): Ditto.
4294         (get_pass_by_name): Ditto.
4295         (pass_hash): Ditto.
4296         (pass_eq): Ditto.
4297         (enable_pass): Ditto.
4298         (disable_pass): Ditto.
4299         (is_pass_explicitly_enabled_or_disabled): Ditto.
4300
4301 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
4302
4303         * config/i386/i386.md (*movoi_internal_avx): Use
4304         standard_sse_constant_opcode for alternative 0.
4305         (*movti_internal_sse): Ditto.
4306         (*movti_internal_rex64): Use standard_sse_constant_opcode for
4307         alternative 2.
4308         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4309         sselog1 type moves.
4310         (*movsi_internal): Ditto.
4311         (*movdi_internal): Ditto.  Add ssecvt type moves.
4312
4313 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4314
4315         PR target/48830
4316         * rtlanal.c (simplify_subreg_regno): Adjust comment.
4317
4318 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
4319
4320         PR rtl-optimization/49095
4321         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4322         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4323
4324 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4325
4326         PR target/43995
4327         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4328         recurse_p argument.  Only follow register copies if it is set,
4329         and prevent mips_find_pic_call_symbol from recursing.
4330         (mips_find_pic_call_symbol): Add a recurse_p argument.
4331         Pass it to mips_pic_call_symbol_from_set.
4332         (mips_annotate_pic_calls): Update accordingly.
4333
4334 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4335
4336         * emit-rtl.c (try_split): Use a loop to search for
4337         NOTE_INSN_CALL_ARG_LOCATIONs.
4338
4339 2011-05-29  Richard Guenther  <rguenther@suse.de>
4340
4341         PR tree-optimization/49217
4342         * ipa-pure-const.c (propagate_pure_const): Fix typos.
4343
4344 2011-05-28  Jan Hubicka  <jh@suse.cz>
4345
4346         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4347         length.
4348         (string_slot_free): Remove
4349         (create_output_block): Initialize obstack.
4350         (destroy_output_block): Free obstack.
4351         (lto_string_index): Add PERSISTENT parameter; do not duplicate
4352         the string unless it needs to be added into the hash.
4353         (lto_output_string_with_length): Add persistent attribute;
4354         handle NULL strings.
4355         (lto_output_string): Add PERSISTENT parameter.
4356         (output_string_cst, output_identifier): Simplify.
4357         (lto_output_location_bitpack): Update.
4358         (lto_output_builtin_tree): Update.
4359         * lto-streamer.h (struct output_block): Add obstack.
4360         (lto_output_string, lto_output_string_with_length): Remove
4361         declarations; functions are static now.
4362
4363 2011-05-28  Jan Hubicka  <jh@suse.cz>
4364
4365         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4366         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4367         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4368         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4369         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4370         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4371         unpack_ts_decl_with_vis_value_fields,
4372         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4373         lto_get_builtin_tree): Use enum and variable length i/o.
4374         * basic-block.h (profile_status_d): Add PROFILE_LAST.
4375         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4376         New functions.
4377         (bp_pack_enum, bp_unpack_enum): New macros.
4378
4379 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4380
4381         * genrecog.c: Remove redundant forward declarations.
4382
4383 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4384
4385         * config.gcc: Deprecate mips*-*-openbsd*.
4386
4387 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4388
4389         PR bootstrap/49195
4390         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4391         for match_op_dup.
4392
4393 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
4394
4395         PR middle-end/48981
4396         * gengtype.c (vec_prefix_type): New function.
4397         (note_def_vec): Use vec_prefix_type and change the length
4398         attribute to be based on the prefix.
4399         * vec.c: Include coretypes.h before vec.h.
4400         (struct vec_prefix): Remove.
4401         (vec_gc_p_reserve): Change the offsetof to sizeof.
4402         (vec_gc_p_reserve_exact): Likewise.
4403         (vec_heap_p_reserve): Likewise.
4404         (vec_heap_p_reserve_exact): Likewise.
4405         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4406         (vec_stack_p_reserve): Change the offsetof to sizeof.
4407         (vec_stack_p_reserve_exact): Likewise.
4408         * vec.h (struct vec_prefix): New struct definition.
4409         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4410         (VEC_T_GTY(T,B)): Likewise.
4411         (DEF_VEC_FUNC_P(T)): Use prefix field.
4412         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4413         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4414
4415 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4416
4417         PR tree-optimization/46728
4418         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4419         (powi_as_mults): Add gimple_set_location.
4420         (build_and_insert_call): New.
4421         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4422         0.5, 0.25, 0.75, 1./3., or 1./6.
4423
4424 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
4425
4426         * doc/contrib.texi: Update copyright years.
4427         (Contributors): Add Zdenek Sojka.
4428
4429 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
4430
4431         * c-decl.c (c_push_function_context): Copy the current statement
4432         list stack.
4433         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4434         (finish_struct): Call building_stmt_list_p instead of checking
4435         cur_stmt_list.
4436         * c-parser.c (c_parser_postfix_expression): Likewise.
4437         * c-typeck.c (c_end_compound_stmt): Likewise.
4438         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4439         * tree-iterator.c (stmt_list_cache): Change to a VEC.
4440         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4441         (free_stmt_list): Likewise.
4442         * tree.h (struct tree_statement_list): Include typed_tree instead
4443         of tree_common.
4444         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4445         as TS_TYPED instead of TS_COMMON.
4446
4447 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4448             Uros Bizjak  <ubizjak@gmail.com>
4449
4450         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4451         (HAVE_AS_IX86_TLSGDPTL): Define.
4452         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4453         (HAVE_AS_IX86_TLSLDMPLT): Define.
4454         * configure: Regenerate.
4455         * config.in: Regenerate.
4456         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4457         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4458         TARGET_SUN_TLS, use @tlsgdplt or @plt.
4459         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4460         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4461         @tlsldmplt or @plt.
4462         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4463
4464 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4465
4466         * sched-int.h (struct _haifa_deps_insn_data): New members cond
4467         and reverse_cond.
4468         (INSN_COND, INSN_REVERSE_COND): New macros.
4469         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4470         once.
4471         (sched_get_condition_with_rev): Cache the results, and look them up
4472         if possible.
4473         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4474         are clobbered by the current insn.
4475         * target.def (exposed_pipline): New sched data hook.
4476         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4477         * doc/tm.texi: Regenerate.
4478
4479 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4480
4481         PR tree-optimization/49170
4482         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
4483         sincos or cexp.
4484
4485 2011-05-27  Richard Guenther  <rguenther@suse.de>
4486
4487         PR middle-end/49189
4488         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4489         of comparisons.
4490
4491 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4492
4493         * haifa-sched.c (sched_scan_info): Remove.
4494         (schedule_block): Call sched_extend_luids rather than sched_init_luids
4495         with NULL args.
4496         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4497         Remove functions.
4498         (sched_scan): Remove.
4499         (sched_extend_luids): Renamed from luids_extend_insn and no longer
4500         static.  All callers changed.
4501         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4502         static.  All callers changed.
4503         (sched_init_luids): Remove all arguments except the first.  All
4504         callers changed.  Don't use sched_scan.
4505         (haifa_init_h_i_d): Likewise.
4506         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4507         manually rather than using sched_init_luids.  Likewise with
4508         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4509         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4510         rather than sched_init_luids with NULL args.
4511         * sel-sched-ir.c (new_insns): Remove variable.
4512         (sched_scan): New static function, previously in haifa-sched.c.  Remove
4513         all arguments but the first two; all callers changed.
4514         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4515         rather than sched_init_luids.
4516         (sel_init_bbs): Remove second argument.  All callers changed.
4517         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4518         with NULL arguments.
4519         (create_insn_rtx_from_pattern): Likewise.
4520         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4521         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4522         (sched_init_insn_luid, sched_extend_luids): Declare.
4523         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4524         declarations.
4525
4526 2011-05-27  Richard Guenther  <rguenther@suse.de>
4527
4528         PR middle-end/49177
4529         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4530         A CMP B ? (T) true : (T) false for non-integral types T again.
4531
4532 2011-05-27  Jan Hubicka  <jh@suse.cz>
4533
4534         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4535         so 0 means NULL string.
4536         (lto_output_string_with_length): ... here.
4537         (lto_output_string, output_string_cst, output_identifier): Update
4538         handling of NULL strings.
4539         (lto_output_location_bitpack): New function.
4540         (lto_output_location): Use it.
4541         (lto_output_tree_ref): Use output_record_start.
4542         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4543         len values.
4544         * lto-streamer-in.c (string_for_index): Break out from ...; offset
4545         values by 1.
4546         (input_string_internal): ... here;
4547         (input_string_cst, input_identifier, lto_input_string): Update handling
4548         of NULL strings.
4549         (lto_input_location_bitpack): New function
4550         (lto_input_location): Use it.
4551         (unpack_ts_type_common_value_fields): Pack align & alias in var len
4552         values.
4553         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4554         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4555         (bp_pack_value): Sanity check the value range.
4556         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4557         New functions.
4558         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4559         New functions.
4560
4561 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
4562
4563         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4564         call_arg_location instructions down the floor.
4565
4566 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
4567
4568         PR rtl-optimization/49154
4569         * ira.c (setup_pressure_classes): Process class without sublcasses
4570         as a candidate for pressure classes.
4571
4572 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
4573
4574         PR rtl-optimization/48575
4575         * genrecog.c (position_type): New enum.
4576         (position): New structure.
4577         (decision): Use position structure instead of a string.
4578         (root_pos, peep2_insn_pos_list): New variables.
4579         (next_position, compare_positions): New functions.
4580         (new_decision): Use position structures instead of strings.
4581         (maybe_both_true): Likewise.
4582         (change_state): Likewise.
4583         (write_tree): Likewise.
4584         (make_insn_sequence): Likewise.
4585
4586 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4587
4588         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4589         TS_BASE instead of TS_COMMON.
4590         (find_decls_types_r): Check for TS_TYPED structure before looking at
4591         TREE_TYPE.
4592         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4593         Add chain field.
4594         (BLOCK_CHAIN): Use new chain field.
4595
4596 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
4597
4598         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4599         moves expensive on Power7 also.
4600
4601 2011-05-26  Richard Guenther  <rguenther@suse.de>
4602
4603         * fold-const.c (fold_unary_loc): Remove bogus code.
4604
4605 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4606
4607         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4608         tree_common.
4609         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4610         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4611         TS_BASE instead of TS_COMMON.
4612         * varasm.c (assemble_name): Remove assert.
4613
4614 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4615
4616         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4617         substituted first.
4618         * libgcc-std.ver: Delete file.
4619
4620 2011-05-26  Richard Guenther  <rguenther@suse.de>
4621
4622         PR tree-optimization/48702
4623         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4624         only when we know the base address is within bounds.
4625         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4626         assume the base address of TARGET_MEM_REFs is in bounds.
4627
4628 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4629
4630         PR target/49099
4631         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4632         declaration in TARGET_SOLARIS.
4633
4634 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
4635
4636         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4637         The instruction is then expanded explicitly.
4638         (supported_compare): Callable instruction.
4639         (compare): Likewise.
4640
4641 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4642
4643         PR c++/49165
4644         * gimplify.c (shortcut_cond_r): Don't special case
4645         COND_EXPRs if they have void type on one of their arms.
4646
4647 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4648
4649         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4650         to reduce duplication, and to achieve a slightly more logical order
4651         of operations.
4652
4653 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4654
4655         PR tree-optimization/49161
4656         * tree-vrp.c (struct case_info): New type.
4657         (compare_case_labels): Sort case_info structs instead of
4658         trees, and not primarily by CASE_LABEL uids but by
4659         label_for_block indexes.
4660         (find_switch_asserts): Put case labels into struct case_info
4661         array instead of TREE_VEC, adjust sorting, compare label_for_block
4662         values instead of CASE_LABELs.
4663
4664 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4665
4666         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4667         ("orndi3_neon"): Likewise.
4668         ("bic<mode>3_neon"): Likewise.
4669
4670 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
4671
4672         PR tree-optimization/49038
4673         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4674         Ensure at least one epilogue iteration if required by data
4675         accesses with gaps.
4676         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4677         to mark loops that require peeling for gaps.
4678         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4679         (vect_get_known_peeling_cost): Take peeling for gaps into
4680         account.
4681         (vect_transform_loop): Generate epilogue if required by data
4682         access with gaps.
4683         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4684         loop as requiring an epilogue if there are gaps in the end of
4685         the strided group.
4686
4687 2011-05-25  Ian Lance Taylor  <iant@google.com>
4688
4689         * godump.c (go_format_type): Output the first field with a usable
4690         Go type, if any.
4691
4692 2011-05-25  Ian Lance Taylor  <iant@google.com>
4693
4694         * godump.c (go_format_type): Check for invalid type names, pointer
4695         target types, and struct field types.
4696
4697 2011-05-25  Jason Merrill  <jason@redhat.com>
4698
4699         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4700
4701 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
4702
4703         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4704
4705 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4706
4707         * config/i386/i386.md (*movqi_extv_1)): Put back
4708         "register_operand" check in "type" calculation.
4709         (*movqi_extzv_2): Likewise.
4710
4711 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4712
4713         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4714
4715 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4716
4717         PR bootstrap/49160
4718         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4719         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4720         __divxc3, __divtc3): Wrap definitions in #ifndef.
4721
4722 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4723
4724         PR target/49142
4725         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4726         "register_operand" check and replace q_regs_operand with
4727         QIreg_operand in "type" calculation.
4728         (*movqi_extv_1): Likewise.
4729         (*movqi_extzv_2_rex64): Likewise.
4730         (*movqi_extzv_2): Likewise.
4731
4732         * config/i386/predicates.md (QIreg_operand): New.
4733
4734 2011-05-25  Richard Guenther  <rguenther@suse.de>
4735
4736         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4737         type-based offset disambiguation, streamline MEM_REF and
4738         TARGET_MEM_REF handling.
4739
4740 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4741
4742         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4743         (bdesc_special_args): Add pause intrinsic.
4744
4745         * config/i386/i386.md (UNSPEC_PAUSE): New.
4746         (pause): Likewise.
4747         (*pause): Likewise.
4748         * config/i386/ia32intrin.h (__pause): Likewise.
4749
4750         * doc/extend.texi (X86 Built-in Functions): Add documentation for
4751         pause intrinsic.
4752
4753 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4754
4755         PR tree-optimization/46728
4756         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4757         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4758
4759 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
4760
4761         * tree.h (struct tree_exp): Inherit from struct tree_typed.
4762         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4763         instead of TS_COMMON.
4764
4765 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4766
4767         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4768         LIBGCC2_GNU_PREFIX is defined.
4769         (__N): New macro.
4770         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4771         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4772         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4773         __clz_tab): Define using __N.
4774         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4775         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4776         * target.def (libfunc_gnu_prefix): New hook.
4777         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4778         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4779         * doc/tm.texi: Regenerate.
4780         * system.h (LIBGCC2_GNU_PREFIX): Poison.
4781         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4782         account.
4783         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4784         (init_optabs): Likewise for the bswap libfuncs.
4785         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4786         and divide.
4787         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4788         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4789         * libgcc-std.ver: Remove.
4790         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4791         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4792         libgcc-std.ver.
4793         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4794         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4795         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4796         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4797         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4798         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4799         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4800         * config/fixed-bit.h (FIXED_OP): Define differently depending on
4801         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4802         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4803
4804 2011-05-25  Jan Hubicka  <jh@suse.cz>
4805
4806         * lto-streamer-out.c (output_record_start): Use lto_output_enum
4807         (lto_output_tree): Use output_record_start.
4808         * lto-streamer-in.c (input_record_start): Use lto_input_enum
4809         (lto_get_pickled_tree): Use input_record_start.
4810         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4811         (lto_value_range_error): New function.
4812         * lto-streamer.h (lto_value_range_error): Declare.
4813         (lto_output_int_in_range, lto_input_int_in_range): New functions.
4814         (lto_output_enum, lto_input_enum): New macros.
4815
4816 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4817
4818         * common.opt (flag_stack_usage_info): New variable.
4819         (-Wstack-usage): New option.
4820         * doc/invoke.texi (Warning options): Document -Wstack-usage.
4821         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4822         <OPT_fstack_usage>: Likewise.
4823         * toplev.c (output_stack_usage): Handle -Wstack-usage.
4824         * calls.c (expand_call): Test flag_stack_usage_info variable instead
4825         of flag_stack_usage.
4826         (emit_library_call_value_1): Likewise.
4827         * explow.c (allocate_dynamic_stack_space): Likewise.
4828         * function.c (instantiate_virtual_regs ): Likewise.
4829         (prepare_function_start): Likewise.
4830         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4831         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4832         * config/arm/arm.c (arm_expand_prologue): Likewise.
4833         (thumb1_expand_prologue): Likewise.
4834         * config/avr/avr.c (expand_prologue): Likewise.
4835         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4836         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4837         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4838         * config/mips/mips.c (mips_expand_prologue): Likewise.
4839         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4840         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4841         * config/s390/s390.c (s390_emit_prologue): Likewise.
4842         * config/sh/sh.c (sh_expand_prologue): Likewise.
4843         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4844         * config/spu/spu.c (spu_expand_prologue): Likewise.
4845
4846 2011-05-25  Richard Guenther  <rguenther@suse.de>
4847
4848         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4849         (gimple_canonical_types_compatible_p): Likewise.
4850
4851 2011-05-25  Jan Hubicka  <jh@suse.cz>
4852
4853         PR middle-end/49062
4854         * ipa.c (function_and_variable_visibility): Only add to same
4855         comdat group list if DECL_ONE_ONLY.
4856
4857 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
4858
4859         PR rtl-optimization/49014
4860         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4861
4862 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4863
4864         PR target/49128
4865         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4866
4867 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4868
4869         PR rtl-optimization/48757
4870         * ira-build.c (loop_with_eh_edge_p): Rename to
4871         loop_with_complex_edge_p, check edges on complexity, make function
4872         conditional.
4873         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4874         conditional.
4875
4876 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4877
4878         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4879         force flag_ira_share_save_slots to 0.
4880
4881 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4882
4883         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4884         (vt_initialize): Set PROLOGUE_BB unconditionally.
4885         Add block comment about CFA_BASE_RTX machinery.
4886         Reset FP_CFA_OFFSET to -1 on all invalid paths.
4887         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4888
4889 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4890
4891         PR objc/48187
4892         * c-parser.c (c_parser_objc_class_instance_variables): More robust
4893         parsing of syntax error in ObjC instance variable lists.  In
4894         particular, avoid an infinite loop if there is a stray ']'.
4895         Updated error message.
4896
4897 2011-05-24  Ian Lance Taylor  <iant@google.com>
4898
4899         * godump.c (go_define): Don't accept a string immediately after
4900         another operand.
4901
4902 2011-05-24  Ian Lance Taylor  <iant@google.com>
4903
4904         * godump.c (struct godump_container): Add invalid_hash field.
4905         (go_format_type): Return false if type is found in invalid_hash.
4906         (go_output_typedef): Add invalid type to invalid_hash.
4907         (go_finish): Create and delete invalid_hash.
4908
4909 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4910
4911         PR tree-optimization/46728
4912         * tree-ssa-math-opts.c (powi_table): New.
4913         (powi_lookup_cost): New.
4914         (powi_cost): New.
4915         (powi_as_mults_1): New.
4916         (powi_as_mults): New.
4917         (gimple_expand_builtin_powi): New.
4918         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4919         (gate_cse_sincos): Remove sincos/cexp restriction.
4920
4921 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4922
4923         PR target/3746
4924         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4925         mips-tdump native.
4926         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4927         * mips-tdump.c: Likewise.
4928
4929 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4930
4931         PR target/49128
4932         * config/i386/driver-i386.c (host_detect_local_cpu): Always
4933         add -mno-XXX.  Handle FMA.
4934
4935 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4936
4937         PR rtl-optimization/48633
4938         * ira-build.c (loop_with_eh_edge_p): New function.
4939         (mark_loops_for_removal): Use it.
4940
4941 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4942
4943         PR rtl-optimization/48971
4944         * ira.c (setup_pressure_classes): Don't check register move cost
4945         for classes with one registers.  Don't add pressure class if there
4946         is a pressure class with the same available hard registers.
4947         Check contains_reg_of_mode.  Fix a typo in collecting
4948         temp_hard_regset.  Ignore hard registers not belonging to a class.
4949
4950 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
4951
4952         PR target/49133
4953         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4954
4955 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4956             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4957
4958         PR gcov-profile/48845
4959         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4960
4961 2011-05-24  Richard Guenther  <rguenther@suse.de>
4962
4963         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4964         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4965         (gimple_types_compatible_p_1): Adjust.
4966         (iterative_hash_canonical_type): Do not bother about complete vs.
4967         incomplete types.
4968         (gimple_canonical_types_compatible_p): Likewise.
4969
4970 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4971
4972         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4973
4974 2011-05-24  Richard Guenther  <rguenther@suse.de>
4975
4976         PR bootstrap/49078
4977         * gimple.c (gimple_register_canonical_type): Revert
4978         previous change.
4979         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4980         does not for a tree for the case where it matters.  Cache
4981         pointer-type alias-sets.
4982
4983 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
4984
4985         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4986         (OBJS): Remove options.o, opts-common.o and prefix.o.
4987         (OBJS-libcommon-target): New.
4988         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4989         (BACKEND): Include libcommon-target.a.
4990         (MOSTLYCLEANFILES): Include libcommon-target.a.
4991         (libcommon-target.a): New.
4992         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4993         prefix.o.
4994
4995 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
4996
4997         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
4998         parts of output shared with the driver.
4999         * optc-gen.awk: Don't generate parts of output not shared with the
5000         driver.
5001         * opth-gen.awk: Remove GCC_DRIVER conditionals.
5002         * doc/options.texi (SourcerInclude): Mention options-save.c.
5003         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5004         (OBJS): Add options-save.o.
5005         (options-save.c, options-save.o): New.
5006         (options.o): Update dependencies.
5007         (gcc-options.o): Remove.
5008         (mostlyclean): Remove options-save.c.
5009
5010 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
5011
5012         PR debug/49032
5013         * dbxout.c: Include cgraph.h.
5014         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5015         and without value expr, return NULL if no varpool node exists for
5016         it or if it is not needed.
5017         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5018
5019         PR c/49120
5020         * c-decl.c (start_decl): Convert expr to void_type_node.
5021
5022 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
5023
5024         PR rtl-optimization/48826
5025         * emit-rtl.c (try_split): When splitting a call that is followed
5026         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5027
5028 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
5029
5030         * cfgexpand.c (expand_debug_expr): For unused non-addressable
5031         parameters passed in memory prefer using DECL_INCOMING_RTL over
5032         the pseudos it will be copied into.
5033
5034 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5035
5036         PR target/47315
5037         * config/i386/i386.c (ix86_option_override_internal): Save the
5038         initial options after checking vzeroupper.
5039
5040 2011-05-23  David Li  <davidxl@google.com>
5041
5042         PR tree-optimization/48988
5043         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5044         Initialize has_valid_pred for each pred chain.
5045
5046 2011-05-23  Richard Guenther  <rguenther@suse.de>
5047
5048         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5049         (iterative_hash_gimple_type): Always hash type names.
5050
5051 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
5052
5053         * c-typeck.c (build_function_call_vec): Tweak call to
5054         check_function_arguments.
5055
5056 2011-05-23  Richard Guenther  <rguenther@suse.de>
5057
5058         PR tree-optimization/49115
5059         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5060         is not necessarily carried out, do not claim it kills the ref.
5061         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5062
5063 2011-05-23  Richard Guenther  <rguenther@suse.de>
5064
5065         PR middle-end/15419
5066         * builtins.c (fold_builtin_memory_op): Be less restrictive about
5067         what pointer types we accept for folding.
5068
5069 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5070
5071         * gthr-gnat.c: Remove.
5072         * gthr-gnat.h: Remove.
5073         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5074         * config/t-freebsd (LIB2ADDEH): Likewise.
5075         * config/t-linux (LIB2ADDEH): Likewise.
5076         * config/t-sol2 (LIB2ADDEH): Likewise.
5077         * config/ia64/t-vms (LIB2ADDEH): Likewise.
5078         * configure.ac (target_thread_file): Remove gnat handling.
5079         * configure: Regenerate.
5080         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5081
5082 2011-05-23  Tristan Gingold  <gingold@adacore.com>
5083             Eric Botcazou  <ebotcazou@adacore.com>
5084
5085         * gcov.c (create_file_names): If no object directory is specified,
5086         keep the directory of the file.
5087
5088 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5089
5090         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5091         * configure: Regenerate.
5092
5093 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
5094
5095         PR middle-end/48973
5096         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5097         failed and the comparison has a single bit signed type, use
5098         constm1_rtx instead of const1_rtx for true value.
5099         (do_store_flag): If ops->type is single bit signed type, disable
5100         signel bit test optimization and pass -1 instead of 1 as last
5101         parameter to emit_store_flag_force.
5102
5103 2011-05-23  Tom de Vries  <tom@codesourcery.com>
5104
5105         PR target/45098
5106         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5107         function.
5108         (infer_loop_bounds_from_undefined): Use new function.
5109
5110 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
5111
5112         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5113         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
5114         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5115         and -O0 otherwise.
5116         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5117
5118 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
5119
5120         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5121         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5122         returns true.
5123
5124 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
5125
5126         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5127
5128 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
5129
5130         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5131         UNSPEC_MOVE_PIC pattern.
5132
5133 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
5134
5135         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5136         (sparc-*-rtems*): Likewise.
5137         (sparc64-*-elf*): Likewise.
5138         (sparc64-*-rtems*): Likewise.
5139         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
5140         * config/sparc/t-crtin: New file.
5141         * config/sparc/t-sol2 (crti.o): Delete rule.
5142         (crtn.o): Likewise.
5143         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5144         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5145         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5146         (ENDFILE_SPEC): Add crtn.o.
5147
5148 2011-05-22  Tom de Vries  <tom@codesourcery.com>
5149
5150         PR middle-end/48689
5151         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5152         CODE_CONTAINS_STRUCT (TS_COMMON).
5153
5154 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
5155
5156         PR middle-end/49029
5157         * expmed.c (extract_fixed_bit_field): Test whether target can be used
5158         only after deciding which mode to use.
5159
5160 2011-05-22  Tom de Vries  <tom@codesourcery.com>
5161
5162         PR target/45098
5163         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5164         for call to get_shiftadd_cost.
5165
5166 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
5167
5168         PR target/49104
5169         * config/i386/cpuid.h (bit_MMXEXT): New define.
5170
5171 2011-05-22  Nick Clifton  <nickc@redhat.com>
5172
5173         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5174         initialisation of non-existant args[2] element.  Use args[] array
5175         not arg[] array to pass arguments to build_function_type_list.
5176
5177 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
5178
5179         PR tree-optimization/49087
5180         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5181
5182 2011-05-21  Jason Merrill  <jason@redhat.com>
5183
5184         PR c++/49092
5185         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5186         static storage duration.
5187
5188 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5189
5190         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5191         frame pointer.
5192
5193 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5194
5195         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5196         false if there are call-saved registers here...
5197         (sparc_can_use_return_insn_p): ...but here instead.
5198         (save_or_restore_regs): Fix thinko.
5199         (sparc_expand_prologue): Use current_function_is_leaf.
5200         (sparc_frame_pointer_required): Likewise.
5201
5202 2011-05-21  Nick Clifton  <nickc@redhat.com>
5203
5204         PR target/49098
5205         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5206
5207 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5208
5209         * gengtype.c (walk_type): Implemented "atomic" GTY option.
5210         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5211
5212 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
5213
5214         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
5215         * optc-gen.awk: Move common code to opt-read.awk.
5216         * opth-gen.awk: Likewise.
5217         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5218
5219 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
5220
5221         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5222
5223 2011-05-20  Tom de Vries  <tom@codesourcery.com>
5224
5225         PR target/45098
5226         * tree-ssa-loop-ivopts.c: Include expmed.h.
5227         (get_shiftadd_cost): New function.
5228         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
5229
5230 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
5231
5232         PR bootstrap/49086
5233         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5234         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5235
5236 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
5237
5238         * Makefile.in: Update comment referring to $(OBJS-common).
5239
5240 2011-05-20  Ian Lance Taylor  <iant@google.com>
5241
5242         * godump.c (go_output_typedef): Put enum constants in the macro
5243         hash table to avoid duplicate Go const definitions.
5244
5245 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
5246
5247         * Makefile.in (LIBDEPS): Add libcommon.a.
5248         (LIBS): Likewise.
5249         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5250         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5251         pretty-print.o and version.o.
5252         (OBJS-libcommon): New.
5253         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5254         (BACKEND): Add libcommon.a.
5255         (MOSTLYCLEANFILES): Likewise.
5256         (libcommon.a): New.
5257         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5258         (cpp$(exeext)): Likewise.
5259         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5260         pretty-print.o and input.o.
5261         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5262         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5263         (errors.o): Remove.
5264         (mips-tfile): Don't explicitly use version.o.
5265         (mips-tdump): Likewise.
5266         (gcov.o): Depend on $(DIAGNOSTIC_H).
5267         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5268         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5269         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5270         * gcov-dump.c: Include intl.h and diagnostic.h.
5271         (main): Initialize diagnostics.
5272         * gcov.c: Include diagnostic.h.
5273         (fnotice): Remove.
5274         (main): Initialize diagnostics.
5275         * lto-wrapper.c: Include diagnostic.h.
5276         (main): Initialize diagnostics.
5277
5278 2011-05-20  Michael Matz  <matz@suse.de>
5279
5280         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5281
5282 2011-05-20  Michael Matz  <matz@suse.de>
5283             Richard Guenther  <rguenther@suse.de>
5284
5285         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5286         use lto_streamer_cache_append directly instead of returning a VEC.
5287         (preload_common_node): Remove.
5288         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5289         track seen nodes.
5290         (lto_streamer_cache_create): Call lto_preload_common_nodes.
5291
5292 2011-05-20  Richard Guenther  <rguenther@suse.de>
5293
5294         PR tree-optimization/49079
5295         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5296         MEM_REFs correctly for the trailing array access detection.
5297         Special case constants the same way as decls for overall size
5298         constraining.
5299
5300 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
5301
5302         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5303         argument expansion.
5304
5305 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
5306
5307         PR tree-optimization/49073
5308         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5309         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5310         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5311
5312 2011-05-20  Richard Guenther  <rguenther@suse.de>
5313
5314         PR middle-end/48849
5315         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5316         of pointer types the same way the middle-end does.
5317
5318 2011-05-20  Richard Guenther  <rguenther@suse.de>
5319
5320         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5321         or pointer-to chains.  Delay all fixup to uniquify_nodes.
5322
5323 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
5324
5325         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5326         (fma4_fmaddsub): Likewise
5327
5328 2011-05-19  Jan Hubicka  <jh@suse.cz>
5329
5330         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5331         (GIMPLE_TYPE_PAIR_SIZE): New macro.
5332         (type_pair_cache): New static var.
5333         (lookup_type_pair): Use fixed sized custom hash; make inline.
5334         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5335         calls of lookup_type_pair.
5336         (print_gimple_types_stats): Remove cache stats.
5337         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5338         and gtc_ob.
5339
5340 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
5341
5342         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5343         when TARGET_RDRND is active.
5344         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5345         Generate dummy SImode target register when target is NULL.
5346
5347 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5348
5349         * config/arm/arm-fpus.def: New.
5350         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5351         arm-fpus.def.
5352         * config/arm/arm-tables.opt: Regenerate.
5353         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5354         (arm_option_override): Don't decode FPU name to string here.
5355         * config/arm/arm.opt (mfpu=): Use Enum.
5356         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5357         Update dependencies.
5358
5359 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5360
5361         * collect2.c: Include diagnostic.h.
5362         (fatal_perror, fatal, error, fancy_abort): Remove.
5363         (main): Set progname.  Call xmalloc_set_program_name and
5364         diagnostic_initialize.
5365         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5366         scan_libraries, resolve_lib_name): Call fatal_error instead of
5367         fatal and fatal_perror.
5368         * collect2.h (error, fatal, fatal_perror): Don't declare.
5369         * tlink.c: Include diagnostic-core.h.
5370         (recompile_files): Call fatal_error instead of fatal_perror.
5371         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5372         pretty-print.o and input.o.
5373         (collect2.o, tlink.o): Update dependencies.
5374
5375 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5376
5377         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5378
5379 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5380
5381         PR target/40483
5382         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5383         COMDAT group syntax, both SPARC and x86 variants.
5384         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5385         * configure: Regenerate.
5386         * config/sol2.h (TARGET_SOLARIS): Define.
5387         (PUSHSECTION_FORMAT): Remove.
5388         (SECTION_NAME_FORMAT): Define.
5389         * config/sol2.c: Include hashtab.h.
5390         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5391         expansion, using SECTION_NAME_FORMAT.
5392         (solaris_comdat_htab): New variable.
5393         (struct comdat_entry): Define.
5394         (comdat_hash): New function.
5395         (comdat_eq): New function.
5396         (solaris_elf_asm_comdat_section): New function.
5397         (solaris_define_comdat_signature): New function.
5398         (solaris_code_end): New function.
5399         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5400         (solaris_code_end): Declare.
5401         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5402         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5403         solaris_code_end.
5404         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5405         Remove ATTRIBUTE_UNUSED.
5406         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5407         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5408         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5409         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5410         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5411         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5412         (PUSHSECTION_FORMAT): Remove.
5413         (SECTION_NAME_FORMAT): Redefine.
5414
5415 2011-05-19  Kai Tietz  <ktietz@redhat.com>
5416
5417         * tree-cfg.c (verify_gimple_assign_binary): Barf on
5418         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5419         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5420
5421 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
5422             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5423
5424         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5425
5426 2011-05-19  Richard Guenther  <rguenther@suse.de>
5427
5428         PR middle-end/48985
5429         * tree-object-size.c (addr_object_size): If the pointed-to
5430         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5431
5432 2011-05-19  Richard Guenther  <rguenther@suse.de>
5433
5434         * gimple.c (gimple_types_compatible_p_1): Compare names of
5435         the types themselves.
5436         (iterative_hash_gimple_type): And hash them that way.
5437         (gimple_register_type_1): If we register a main variant properly
5438         initialize the leader to ourselves.
5439
5440 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5441
5442         PR target/45098
5443         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5444         get_loop_invariant_expr_id.
5445         (get_loop_invariant_expr_id): Use get_expr_id.
5446         (parm_decl_cost): New function.
5447         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5448         Improve bound cost estimation.  Use different inv_expr_id for elim and
5449         express cases.
5450
5451 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5452
5453         PR target/45098
5454         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5455         cost_base.cost == 0.
5456
5457 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5458
5459         PR target/49002
5460         * config/i386/sse.md
5461         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5462         load cast.
5463
5464 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5465
5466         PR tree-optimization/49039
5467         * tree-vrp.c (extract_range_from_binary_expr): For
5468         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5469         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5470
5471 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5472
5473         PR target/45098
5474         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5475
5476 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
5477
5478         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5479         (*tls_global_dynamic_64): Ditto.
5480         (*tls_local_dynamic_base_32_gnu): Ditto.
5481         (*tls_local_dynamic_base_64): Ditto.
5482         (tls_initial_exec_64_sun): Ditto.
5483
5484 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
5485
5486         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5487         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5488         bf592-none.
5489         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5490         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5491         * config/bfin/bfin.c (bfin_cpus): Add bf592.
5492         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5493         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5494         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5495         * config/bfin/elf.h (LIB_SPEC): Add bf592.
5496
5497 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
5498
5499         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5500         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5501         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5502         target_thread_pointer, arm_structure_size_boundary, struct
5503         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5504         struct abi_name, arm_all_abis): Remove.
5505         (arm_option_override) Don't process most enumerated option values here.
5506         Don't process target_fpe_name here.  Work with integer not string for
5507         structure size boundary; use separate diagnostics for each case.
5508         * config/arm/arm.h (enum float_abi_type, enum
5509         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5510         to arm-opts.h.
5511         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5512         arm_structure_size_boundary): Remove.
5513         * config/arm/arm.opt (mabi=): Use Enum and Init.
5514         (arm_abi_type): New Enum and EnumValue entries.
5515         (mfloat-abi=): Use Enum and Init.
5516         (float_abi_type): New Enum and EnumValue entries.
5517         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5518         (mfp16-format=): Use Enum and Init.
5519         (arm_fp16_format_type): New Enum and EnumValue entries.
5520         (mstructure-size-boundary=): Use UInteger and Init.
5521         (mtp=): Use Enum and Init.
5522         (arm_tp_type): New Enum and EnumValue entries.
5523
5524 2011-05-18  Richard Guenther  <rguenther@suse.de>
5525
5526         PR tree-optimization/49018
5527         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5528         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5529         gimple_has_side_effects.
5530
5531 2011-05-18  Richard Guenther  <rguenther@suse.de>
5532
5533         * gimple.c (gimple_register_type_1): New function, split out from ...
5534         (gimple_register_type): ... here.  Avoid infinite recursion.
5535
5536 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5537
5538         PR tree-optimization/41881
5539         * tree-vectorizer.h (struct _loop_vec_info): Add new field
5540         reduction_chains along with a macro for its access.
5541         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5542         (destroy_loop_vec_info): Free reduction chains.
5543         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5544         (vect_is_slp_reduction): New function.
5545         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5546         (vect_create_epilog_for_reduction): Support SLP reduction chains.
5547         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5548         definition types for reduction chains.
5549         (vect_supported_load_permutation_p): Don't allow permutations for
5550         reduction chains.
5551         (vect_analyze_slp_instance): Support reduction chains.
5552         (vect_analyze_slp): Try to build SLP instance from reduction chains.
5553         (vect_get_constant_vectors):  Handle reduction chains.
5554         (vect_schedule_slp_instance): Mark the first statement of the
5555         reduction chain as reduction.
5556
5557 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5558
5559         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5560         names for group elements access.
5561         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5562         reduction chains as well.  Remove data reference and interleaving
5563         related words from the fields names.
5564         * tree-vect-loop.c (vect_transform_loop): Use new names for group
5565         elements access.
5566         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5567         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5568         vect_update_interleaving_chain, vect_same_range_drs,
5569         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5570         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5571         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5572         vect_analyze_group_access, vect_analyze_data_ref_access,
5573         vect_create_data_ref_ptr, vect_transform_strided_load,
5574         vect_record_strided_load_vectors): Likewise.
5575         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5576         vect_model_load_cost, vectorizable_store, vectorizable_load,
5577         vect_remove_stores, new_stmt_vec_info): Likewise.
5578         * tree-vect-slp.c (vect_build_slp_tree,
5579         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5580
5581 2011-05-18  Richard Guenther  <rguenther@suse.de>
5582
5583         PR middle-end/48989
5584         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5585         operand verification.
5586         (verify_gimple_assign_binary): Likewise.
5587         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5588         to non-1-precision BOOLEAN_TYPEs.
5589
5590 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5591
5592         PR target/45098
5593         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5594
5595 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5596
5597         PR tree-optimization/49000
5598         * tree-ssa.c (execute_update_addresses_taken): Call
5599         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
5600         be rewritten and decl has been marked for renaming, reset
5601         the debug stmt.
5602
5603 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
5604
5605         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5606         enum_opts_set when testing if attributes have set -mfpmath=.
5607
5608 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
5609
5610         * config/mips/mips.c (mips_handle_option): Remove unused variable.
5611
5612 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5613
5614         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5615         info->entry with 0
5616         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
5617         id.transform_lang_insert_block with NULL.
5618
5619 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5620
5621         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5622         (output_fp_compare): Change args 3 and 4 to bool.
5623         (ix86_expand_call): Change arg 6 to bool.
5624         (ix86_attr_length_immediate_default): Change arg 2 to bool.
5625         (ix86_attr_length_vex_default): Change arg 3 to bool.
5626         * config/i386/i386.md: Update all uses.
5627         * config/i386/i386.c: Ditto.
5628         (ix86_flags_dependent): Change return type to bool.
5629
5630 2011-05-17  Richard Guenther  <rguenther@suse.de>
5631
5632         * gimple.c (type_hash_pair_compare): Fix comparison.
5633
5634 2011-05-17  Richard Guenther  <rguenther@suse.de>
5635
5636         * gimple.c (iterative_hash_gimple_type): Simplify singleton
5637         case some more, fix final hash value of the non-singleton case.
5638
5639 2011-05-17  Richard Guenther  <rguenther@suse.de>
5640
5641         PR bootstrap/49013
5642         Revert
5643         2011-05-16  Richard Guenther  <rguenther@suse.de>
5644
5645         * gimple.c (gimple_types_compatible_p_1): Use names of the
5646         type itself, not its main variant.
5647         (iterative_hash_gimple_type): Likewise.
5648
5649 2011-05-17  Richard Guenther  <rguenther@suse.de>
5650
5651         * gimple.c (gimple_register_canonical_type): Use the main-variant
5652         leader for computing the canonical type.
5653
5654 2011-05-17  Nick Clifton  <nickc@redhat.com>
5655
5656         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5657         moves.
5658
5659         * config/rx/rx.md: Add peephole to remove redundant extensions
5660         after loads.
5661         (bitset_in_memory): Use rx_restricted_mem_operand.
5662         (bitinvert_in_memory): Likewise.
5663         (bitclr_in_memory): Likewise.
5664
5665 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5666             Nick Clifton  <nickc@redhat.com>
5667
5668         * config/rx/rx.md: Add peepholes to match a register move followed
5669         by a comparison of the moved register.  Replace these with an
5670         addition of zero that does both actions in one instruction.
5671
5672 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
5673
5674         PR target/48986
5675         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5676         predicate to allow CONST_INT.
5677         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5678
5679 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5680
5681         * opts-common.c (opt_enum_arg_to_value): New.
5682         * opts.h (opt_enum_arg_to_value): Declare.
5683         * config/i386/i386.opt (fpmath): Remove.
5684         (mfpmath=): Use Enum, Init and Save.
5685         (fpmath_unit): New Enum and EnumValue entries.
5686         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5687         name for function fpmath state.
5688         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5689         * config/i386/i386.c: Include diagnostic.h.
5690         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5691         (ix86_target_string): Take enum fpmath_unit value instead of string.
5692         (ix86_debug_options): Update call to ix86_target_string.
5693         (ix86_option_override_internal): Don't process fpmath strings here.
5694         (x86_function_specific_save, ix86_function_specific_restore):
5695         Don't handle fpmath state specially.
5696         (ix86_function_specific_print): Pass fpmath state to
5697         ix86_target_string instead of printing in this function.
5698         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5699         Handle enum attributes.
5700         (IX86_ATTR_ENUM, ix86_opt_enum): New.
5701         (ix86_valid_target_attribute_tree): Update option_strings
5702         handling.  Handle fpmath as enum option.
5703         (ix86_can_inline_p): Update field names for function fpmath state.
5704         (ix86_expand_builtin): Update call to ix86_target_string.
5705         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5706         (ix86_fpmath): Remove.
5707         * config/i386/t-i386 (i386.o): Update dependencies.
5708
5709 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5710
5711         PR preprocessor/48677
5712         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5713         from decoded_options[0], not from itself.
5714
5715 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
5716
5717         * config/i386/constraints.md (z): New constraint.
5718         * config/i386/i386.c (c): New mode attribute.
5719         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5720         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5721         constraint for operand 0.
5722         (*call_vzeroupper): Ditto.
5723         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
5724         (*call_rex64_ms_sysv_vzeroupper): Ditto.
5725         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5726         Use "lzm" constraint for operand 0.
5727         (*call_pop_vzeroupper): Ditto.
5728         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5729         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
5730         constraint for operand 0.
5731         (*sibcall_vzeroupper): Ditto.
5732         (*sibcall_rex64_ms_sysv): Ditto.
5733         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5734         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5735         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
5736         (*sibcall_pop_vzeroupper): Ditto.
5737         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5738         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5739         mode iterator.  Use "<c>zm" constraint for operand 1.
5740         (*call_value_vzeroupper): Ditto.
5741         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
5742         for operand 1.
5743         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5744         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5745         *call_value_pop_1.  Use "lzm" constraint for operand 1.
5746         (*call_value_pop_vzeroupper): Ditto.
5747         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5748         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5749         mode iterator.  Use "Uz" constraint for operand 1.
5750         (*sibcall_value_vzeroupper): Ditto.
5751         (*sibcall_value_rex64_ms_sysv): Ditto.
5752         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5753         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
5754         constraint for operand 1.
5755         (*sibcall_value_pop_vzeroupper): Ditto.
5756         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5757         and "z" constraint for operand 2.
5758         (*tls_global_dynamic_32_gnu): Ditto.
5759         (*tls_local_dynamic_base_32_gnu): Ditto.
5760         (*tls_local_dynamic_base_64): Ditto.
5761         (*tls_local_dynamic_32_once): Ditto.
5762         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5763         Update all callers.
5764         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5765
5766 2011-05-16  Richard Guenther  <rguenther@suse.de>
5767
5768         * gimple.c (gimple_types_compatible_p_1): Use names of the
5769         type itself, not its main variant.
5770         (iterative_hash_gimple_type): Likewise.
5771
5772 2011-05-16  Richard Guenther  <rguenther@suse.de>
5773
5774         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5775         always visit pointer target and function result and argument types.
5776
5777 2011-05-16  Jason Merrill  <jason@redhat.com>
5778
5779         PR c++/48999
5780         * tree-inline.c (copy_statement_list): Put back recursion.
5781
5782 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5783
5784         PR target/27663
5785         PR target/41076
5786         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5787         * config/avr/avr.md ("*ior<mode>qi.byte0",
5788         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5789
5790 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5791
5792         PR target/45099
5793         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5794         register is needed for a function argument.
5795
5796 2011-05-16  Richard Guenther  <rguenther@suse.de>
5797
5798         * gimple.c (struct type_hash_pair): New type.
5799         (type_hash_pair_compare): New function.
5800         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5801
5802 2011-05-16  Revital Eres  <revital.eres@linaro.org>
5803
5804         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5805
5806 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5807
5808         * config/i386/i386.md (floating point move splitters): Fix
5809         usage of standard_80387_constant_p.
5810         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5811
5812 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5813
5814         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5815
5816 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5817
5818         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5819         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5820         (tree_ssa_lim_finalize): Likewise.
5821
5822 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
5823
5824         * config/i386/constraint.md (Yd, Yx): New register constraints.
5825         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
5826         Yd conditional register constraint.
5827         (*movtf_internal): Use standard_sse_constant_opcode.
5828         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
5829         Yx conditional register constraint.
5830         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
5831         Yd conditional register constraint.  Use standard_sse_constant_p to
5832         check for valid SSE constants and call standard_sse_constant_opcode to
5833         output SSE insn.
5834         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5835         constants and call standard_sse_constant_opcode to output SSE insn.
5836         * config/i386/i386.c (ix86_option_ovverride_internal): Set
5837         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
5838         optimize_size is set.
5839         (standard_sse_constant_opcode): Output conditional AVX insn templates.
5840
5841 2011-05-14  Tobias Burnus  <burnus@net-b.de>
5842
5843         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5844
5845 2011-05-13  Martin Jambor  <mjambor@suse.cz>
5846
5847         * ipa-prop.c (ipa_cst_from_jfunc): New function.
5848         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5849         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5850         (evaluate_conditions_for_ipcp_clone): Removed.
5851         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5852         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5853         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5854
5855 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5856
5857         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5858         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5859         lieu of MAY_HAVE_DEBUG_STMTS.
5860         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5861         debug statements if !MAY_HAVE_DEBUG_STMTS.
5862
5863 2011-05-13  Martin Thuresson  <martint@google.com>
5864
5865         PR gcov-profile/47793
5866         * libgcov.c (gcov_exit): Support relative profile paths.
5867         * doc/invoke.texi (-fprofile-dir): Update for above change.
5868
5869 2011-05-13  Richard Guenther  <rguenther@suse.de>
5870
5871         * gimple.c (gimple_canonical_types_compatible_p): Do not use
5872         type-pair caching, do not compare hashes.
5873
5874 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
5875
5876         PR middle-end/48965
5877         * tree-cfg.c (edge_to_cases_cleanup): Return true.
5878         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5879
5880 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5881
5882         * gimplify.c (gimplify_expr): Make sure operand is boolified.
5883         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5884         compatible type for TRUTH_NOT_EXPR.
5885
5886 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5887
5888         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5889         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
5890         can_create_pseudo_p ().
5891
5892 2011-05-13  Richard Guenther  <rguenther@suse.de>
5893
5894         PR lto/48978
5895         * gimple.c (iterative_hash_gimple_type): Revert change in
5896         pointer target and function result and argument hashing.
5897
5898 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
5899
5900         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5901         (*movxf_internal_nointeger): Ditto.
5902         (*movdf_internal_rex64): Ditto.
5903         (*movdf_internal): Ditto.
5904         (*movdf_internal_nointeger): Ditto.
5905         (*movsf_internal): Ditto.
5906         (sincos splitters): Use can_create_pseudo ().
5907
5908 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
5909
5910         * config/i386/i386-opts.h: New.
5911         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5912         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5913         ix86_section_threshold): Remove.
5914         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
5915         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5916         OPT_mbranch_cost_.
5917         (ix86_option_override_internal): Don't decode strings for options
5918         other than -march=, -mtune= and -mfpmath=.  Don't allow for
5919         __attribute__ uses in remaining diagnostics for options with
5920         string arguments.  Don't check for integer arguments being negative.
5921         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5922         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5923         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5924         ix86_branch_cost, ix86_section_threshold): Remove.
5925         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5926         HeaderInclude.
5927         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5928         but not Var.
5929         (masm=): Use Enum and Init.
5930         (asm_dialect): New Enum and EnumValue entries.
5931         (mbranch-cost=): Use UInteger.
5932         (mlarge-data-threshold=): Use UInteger and Init.
5933         (mcmodel=): Use Enum and Init.
5934         (cmodel): New Enum and EnumValue entries.
5935         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5936         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5937         mregparm=): Use UInteger.
5938         (mstringop-strategy=): Use Enum and Init.
5939         (stringop_alg): New Enum and EnumValue entries.
5940         (mtls-dialect=): Use Enum and Init.
5941         (tls_dialect): New Enum and EnumValue entries.
5942         (mabi=): Use Enum and Init.
5943         (calling_abi): New Enum and EnumValue entries.
5944         (mveclibabi=): Use Enum and Init.
5945         (ix86_veclibabi): New Enum and EnumValue entries.
5946
5947 2011-05-13  Nick Clifton  <nickc@redhat.com>
5948
5949         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5950         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5951
5952 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5953
5954         PR middle-end/48984
5955         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5956         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5957         (gimple_boolify): Check for cast for boolean_type_node instead for
5958         BOOLEAN_TYPE.
5959
5960 2011-05-13  Richard Guenther  <rguenther@suse.de>
5961
5962         PR tree-optimization/48172
5963         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5964         multiplying by number of iterations for equal step.
5965         (vect_create_cond_for_alias_checks): Likewise.
5966
5967 2011-05-13  Andreas Schwab  <schwab@redhat.com>
5968
5969         * configure.ac: Use AS_HELP_STRING throughout.
5970         * configure: Regenerate.
5971
5972 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5973
5974         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5975         (ix86_emit_restore_regs_using_mov): Likewise.
5976         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5977
5978 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
5979
5980         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5981         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5982         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5983         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5984         RTX_OK_FOR_OLO10_P): ...here.
5985         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5986         SYMBOLIC_CONST.
5987
5988 2011-05-12  Kai Tietz  <ktietz@redhat.com>
5989
5990         * gimplify.c (gimple_boolify): Re-boolify expression
5991         arguments even if expression type is of kind BOOLEAN_TYPE.
5992         (gimplify_boolean_expr): Removed.
5993         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5994         and XOR. Additional take care that we keep expression's type.
5995         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5996         of TRUTH_AND|OR|XOR_EXPR.
5997
5998 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5999
6000         PR tree-optimization/48975
6001         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6002         on all bbs here and free and clear ifc_bbs at the end.
6003
6004 2011-05-12  Richard Guenther  <rguenther@suse.de>
6005
6006         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6007         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
6008         until after simple checks.
6009         (gimple_types_compatible_p): Likewise.
6010         (iterative_hash_gimple_type): Always hash pointer targets
6011         and function return and argument types.
6012         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6013         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
6014         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6015         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
6016         completely in the simple compare section.
6017         (gimple_register_canonical_type): Query the cache again after
6018         registering.
6019
6020 2011-05-12  Richard Guenther  <rguenther@suse.de>
6021
6022         PR tree-optimization/48172
6023         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6024         the number of iterations from the segment size calculation.
6025         (vect_create_cond_for_alias_checks): Adjust.
6026
6027 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
6028
6029         PR debug/48967
6030         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6031         if validate_subreg fails.
6032
6033 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
6034
6035         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6036         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6037         early.
6038
6039 2011-05-12  DJ Delorie  <dj@redhat.com>
6040
6041         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
6042         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6043         created builtin into rx_builtins array.
6044         (rx_builtin_decl): New function.
6045         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
6046
6047 2011-05-12  DJ Delorie  <dj@redhat.com>
6048             Nick Clifton  <nickc@redhat.com>
6049
6050         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6051         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6052         (rx_is_legitimate_address): Add pre-decrement and post-increment
6053         addressing in HImode and QImode.  Fix test for out of range
6054         REG+INT addressing.
6055         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
6056         (rx_align_for_label): Test label before extracting its usage count.
6057         (rx_adjust_insn_lengths): Fix selection of insn codes.
6058         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
6059
6060 2011-05-11  Jason Merrill  <jason@redhat.com>
6061
6062         * tree.c (type_hash_canon): Use struct tree_type_non_common.
6063
6064 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
6065
6066         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6067         reindent the subsequent block.
6068
6069 2011-05-11  Satoru Takabayashi  <satorux@google.com>
6070             Paul Pluzhnikov  <ppluzhnikov@google.com>
6071
6072         * doc/install.texi (Configuration): Document --with-linker-hash-style.
6073         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6074         * config.in: Add LINKER_HASH_STYLE.
6075         * configure.ac: Add --with-linker-hash-style.
6076         * configure: Regenerate.
6077
6078 2011-05-11  Richard Guenther  <rguenther@suse.de>
6079
6080         PR middle-end/48964
6081         * gimple.c (iterative_hash_canonical_type): Fix typo.
6082
6083 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
6084
6085         * config/i386/i386.c (legitimize_tls_address)
6086         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6087         expanders directly for TARGET_GNU2_TLS.  Determine pic and
6088         __tls_get_addr symbol reference here.  Update call to
6089         gen_tls_global_dynamic_{32,64} for added arguments.
6090         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6091         expanders directly for TARGET_GNU2_TLS.  Determine
6092         __tls_get_addr symbol reference here.  Update call to
6093         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
6094         unique UNSPEC REG_EQUIV to libcall block.
6095         (ix86_tls_get_addr): Declare static.
6096         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6097         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6098         Do not determine pic and __tls_get_addr symbol reference here. Do not
6099         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6100         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6101         (tls_global_dynamic_64): Add operand 2.  Do not determine
6102         __tls_get_addr symbol reference here.  Do not call
6103         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6104         (tls_local_dynamic_base64): Ditto for operand 1.
6105
6106 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
6107
6108         * function.c (expand_function_start): Initialize stack_check_probe_note
6109         only if the generic stack checking mechanism is used.
6110
6111 2011-05-11  Richard Guenther  <rguenther@suse.de>
6112
6113         PR tree-optimization/15256
6114         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6115         (A & B) | C, combine (A op CST1) op CST2.
6116         (tree_ssa_forward_propagate_single_use_vars): Only bother to
6117         visit assigns that have uses.
6118
6119 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
6120
6121         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
6122         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6123         (unpack_ts_type_common_value_fields): ...this.  Update comment.
6124         (unpack_value_fields): Adjust for renaming.
6125         (lto_input_ts_type_tree_pointers): Split into...
6126         (lto_input_ts_type_common_tree_pointer): ...this and...
6127         (lto_input_ts_type_non_common_tree_pointers): ...this.
6128         (lto_input_tree_pointers): Adjust for above split.
6129         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6130         (pack_ts_type_common_value_fields): ...this.  Update comment.
6131         (lto_output_ts_type_tree_pointers): Split into...
6132         (lto_output_ts_type_common_tree_pointers): ...this and...
6133         (lto_output_ts_type_non_common_tree_pointers): ...this.
6134         (lto_output_tree_pointers): Adjust for above split.
6135         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6136         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6137         * stor-layout.c (vector_type_mode): Adjust location of mode field.
6138         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6139         Define.
6140         (struct tree_type): Split into...
6141         (struct tree_type_common: ...this and...
6142         (struct tree_type_with_lang_specific): ...this and...
6143         (struct tree_type_non_common): ...this.  Adjust accessor macros
6144         accordingly.
6145         (TYPE_VALUES_RAW): Define.
6146         (union tree_node): Update for above changes.
6147         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6148         TS_TYPE_NON_COMMON.
6149         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6150         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6151         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6152         * treestructu.def (TS_TYPE): Remove.
6153         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6154         Define.
6155
6156 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
6157
6158         PR debug/48159
6159         * tree-ssa.c (reset_debug_uses): New function.
6160         * tree-flow.h (reset_debug_uses): New prototype.
6161         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6162         * tree-loop-distribution.c (generate_loops_for_partition): Call
6163         reset_debug_uses on the stmts that will be removed.  Keep around
6164         all debug stmts, don't count them as bits in partition bitmap.
6165         (generate_builtin): Don't count debug stmts or labels as bits in
6166         partition bitmap.
6167
6168 2011-05-11  Richard Guenther  <rguenther@suse.de>
6169
6170         * gimple.c (gimple_type_hash_1): Merge with ...
6171         (gimple_type_hash): ... this.
6172         (gtc_visit): Remove mode parameter and simplify accordingly.
6173         (gimple_types_compatible_p_1): Likewise.
6174         (gimple_types_compatible_p): Likewise.
6175         (iterative_hash_gimple_type): Likewise.
6176         (visit): Likewise.
6177         (gimple_type_eq): Adjust.
6178
6179 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6180
6181         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6182         enters the branch create an anti edge in the opposite direction
6183         to prevent the creation of reg-moves.
6184         * modulo-sched.c: Adjust comment to reflect the fact we are
6185         scheduling closing branch.
6186         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6187         (stage_count): New field in struct partial_schedule.
6188         (calculate_stage_count): New function.
6189         (normalize_sched_times): Rename to reset_sched_times and handle
6190         incrementing the sched time of the nodes by a constant value
6191         passed as parameter.
6192         (duplicate_insns_of_cycles): Skip closing branch.
6193         (sms_schedule_by_order): Schedule closing branch.
6194         (ps_insn_find_column): Handle closing branch.
6195         (sms_schedule): Call reset_sched_times and adjust the code to
6196         support scheduling of the closing branch.
6197         (ps_insert_empty_row): Update calls to normalize_sched_times
6198         and rotate_partial_schedule functions.
6199
6200 2011-05-11  Richard Guenther  <rguenther@suse.de>
6201
6202         PR middle-end/48953
6203         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6204
6205 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
6206
6207         * opts.c (finish_options): Move warning settings from process_options.
6208         * toplev.c (process_options): Move warning settings to finish_options.
6209
6210 2011-05-11  Richard Guenther  <rguenther@suse.de>
6211
6212         PR tree-optimization/18041
6213         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6214         (simplify_bitwise_binary): ... this.  Handle operand conversions
6215         by applying them to the result instead.
6216         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
6217
6218 2011-05-11  Richard Guenther  <rguenther@suse.de>
6219
6220         * gimple.c (gimple_canonical_types_compatible_p): Split out
6221         from gimple_types_compatible_p and friends.  Do not recurse
6222         to pointed-to types.
6223         (gimple_canonical_type_eq): Use it.
6224         (iterative_hash_canonical_type): Split out from
6225         iterative_hash_gimple_type and friends.  Do not recurse
6226         to pointed-to types.
6227         (gimple_canonical_type_hash): Use it, allocate the hash here.
6228
6229 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6230
6231         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6232         recognizing doloop.
6233
6234 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6235
6236         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6237         instead of PREV_INSN.
6238
6239 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6240
6241         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6242         * loop-doloop.c (doloop_condition_get): Likewise.
6243         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6244         (doloop_end): New.
6245         * config/arm/arm.md (*addsi3_compare0): Remove "*".
6246
6247 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
6248
6249         * tree.def (CASE_LABEL_EXPR): Add an operand.
6250         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6251
6252 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6253
6254         * c-decl.c (c_override_global_bindings_to_false): Remove.
6255         (global_bindings_p): Don't check
6256         c_override_global_bindings_to_false.
6257         * c-tree.h (c_override_global_bindings_to_false): Remove.
6258         * c-typeck.c (composite_type): Don't set
6259         c_override_global_bindings_to_false.
6260
6261 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6262
6263         PR target/48857, 48495
6264         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6265         (VSX_MODE): Ditto.
6266         (VSX_MOVE_MODE): Ditto.
6267         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6268         VSX vector types.  Add V2DImode.
6269         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6270         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6271         (MODES_TIEABLE_P): Ditto.
6272
6273         * config/rs6000/rs6000.c (rs6000_emit_move): Use
6274         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6275         VSX_VECTOR_MODE.
6276         (init_cumulative_args): Ditto.
6277         (rs6000_function_arg_boundary): Ditto.
6278         (rs6000_function_arg_advance_1): Ditto.
6279         (rs6000_function_arg): Ditto.
6280         (rs6000_function_ok_for_sibcall): Ditto.
6281         (emit_frame_save): Ditto.
6282         (rs6000_function_value): Ditto.
6283         (rs6000_libcall_value): Ditto.
6284
6285 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6286
6287         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6288         i386/darwin-lib.h to $libgcc_tm_file.
6289         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6290
6291 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6292
6293         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6294
6295 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6296
6297         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6298         * config/rs6000/rs6000-tables.opt: New file (generated).
6299         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6300         rs6000/rs6000-tables.opt to extra_options.
6301         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6302         * config/rs6000/rs6000.c (rs6000_select): Remove.
6303         (processor_target_table): Move contents to rs6000-cpus.def.
6304         (darwin_rs6000_override_options): Check
6305         global_options_set.x_rs6000_cpu_index instead of
6306         rs6000_select[1].string.
6307         (rs6000_option_override_internal): Likewise.
6308         (rs6000_handle_option): Don't assert that global structures are in
6309         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
6310         (rs6000_default_cpu): New variable.
6311         (rs6000_file_start): Set it instead of local default_cpu.  Check
6312         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6313         global_options_set.x_rs6000_tune_index instead of rs6000_select.
6314         (rs6000_darwin_file_start): Check rs6000_default_cpu and
6315         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6316         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6317         rs6000_select): Remove.
6318         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6319         Remove.
6320         (mcpu=, mtune=): Use Var, Init, Enum and Save.
6321         * config/rs6000/t-rs6000
6322         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6323         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6324         global_options_set.x_rs6000_cpu_index instead of
6325         rs6000_select[1].string.
6326         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6327         global_options_set.x_rs6000_cpu_index instead of
6328         rs6000_select[1].string.
6329
6330 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6331
6332         * config.gcc (libgcc_tm_file): Define instead of including files
6333         from ../../libgcc/config/ in tm_file.
6334         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6335         * configure: Regenerate.
6336         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6337         libgcc_tm.h, cs-libgcc_tm.h): New.
6338         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6339         (clean): Remove libgcc_tm.h.
6340         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6341         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6342         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6343
6344 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
6345
6346         PR target/48896
6347         * config/avr/avr.c (avr_ret_register): Return unsigned int
6348         instead of int.
6349         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6350         it to avr_libcall_value.
6351         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6352         expand_expr.
6353         (avr_expand_binop_builtin): Ditto.
6354         (avr_expand_unop_builtin): Ditto.
6355
6356 2011-05-10  DJ Delorie  <dj@redhat.com>
6357
6358         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6359         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6360         * config/rx/rx.c (rx_align_for_label): Add label and
6361         uses_threshold parameters.  Do not align when the label is not
6362         used enough.
6363         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6364
6365 2011-05-10  Richard Guenther  <rguenther@suse.de>
6366
6367         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6368         a series of conversions and apply foldings similar to what
6369         fold-const does.
6370         (tree_ssa_forward_propagate_single_use_vars): Call it.
6371
6372 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
6373
6374         PR tree-optimization/48611
6375         PR tree-optimization/48794
6376         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6377         referenced from RESX or EH_DISPATCH arguments.
6378
6379         PR debug/48928
6380         * dfp.c (decimal_to_decnumber): Handle conversion from
6381         dconst{1,2,m1,half}.
6382
6383 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6384
6385         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6386         for !flag_prefer_avx128.
6387         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6388
6389 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6390
6391         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6392         (fold_ternary_loc): Use expr_location_or.
6393
6394 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6395
6396         PR debug/48853
6397         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6398         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6399         Pmode and mem_mode is not VOIDmode.
6400
6401 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
6402
6403         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6404         TYPE_QUAL_RESTRICT): Convert to enum.
6405
6406 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6407
6408         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6409         (const_pow2_1_to_8_operand): Ditto.
6410         (const_pow2_1_to_128_operand): Ditto.
6411         (const_pow2_1_to_32768_operand): Ditto.
6412         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6413         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
6414         in insn constraint to check integer value of operand 3.
6415         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6416
6417         (PINSR_MODE): New mode iterator.
6418         (sse2p4_1): New mode attribute.
6419         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6420         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6421         iterator.  Use const_int_operand instead of
6422         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
6423         exact_log2 in insn constraint to check integer value of operand 3.
6424
6425 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6426
6427         * config/i386/sse.md (blendbits): Remove mode attribute.
6428         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6429         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6430         Check integer value of operand 3 in insn constraint.
6431
6432 2011-05-09  Richard Guenther  <rguenther@suse.de>
6433
6434         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6435         for diagnostics.
6436         (lto_symtab_merge): Likewise.  Do not register types here.
6437         (lto_symtab_merge_decls_2): Likewise.
6438         (lto_symtab_merge_decls_1): Likewise.
6439         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6440         * gimple.c (enum gtc_mode): Declare.
6441         (gimple_types_compatible_p): Make static.
6442
6443 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6444
6445         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6446         temporary register to match Pmode.
6447
6448 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6449
6450         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6451         and *vec_concatv4si_1_avx.
6452
6453 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6454
6455         PR rtl-optimization/48927
6456         * ira-conflicts.c (commutative_constraint_p): Use
6457         recog_data.alternative_enabled_p to disable alternatives where
6458         "enabled" attribute is false.
6459         (get_dup_num): Ditto.
6460         * ira-lives.c (single_reg_class): Ditto.
6461         (ira_implicitly_set_insn_hard_regs): Ditto.
6462
6463 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6464
6465         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6466         (dataflow_set_preserve_mem_locs): Likewise.
6467
6468 2011-05-09  Philipp Thomas  <pth@suse.de>
6469
6470         * config/mep/mep.c (mep_validate_vliw): Syntax description
6471         should not be translated.
6472
6473 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
6474
6475         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6476         * config/mips/mips-tables.opt: New file (generated).
6477         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6478         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6479         MIPS_ARCH_OPTION_NATIVE): Define.
6480         * config/mips/mips.c (mips_cpu_info_table): Move contents to
6481         mips-cpus.def.
6482         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6483         mips_parse_cpu): Remove.
6484         (mips_cpu_info_from_opt, mips_default_arch): New.
6485         (mips_handle_option): Don't assert that global structures are in
6486         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6487         (mips_option_override): Use new variables and functions to set
6488         state of these options.  Use strcmp to check for individual CPU names.
6489         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6490         definition.
6491         * config/mips/mips.opt (march=): Use ToLower and Enum.
6492         (mips): Use ToLower, Enum and Var.
6493         (mtune=): Use ToLower and Enum.
6494         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6495
6496 2011-05-08  Jan Hubicka  <jh@suse.cz>
6497
6498         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6499         Arrange type pairs to be UID ordered.
6500         (gimple_lookup_type_leader): Make inline.
6501
6502 2011-05-09  Nick Clifton  <nickc@redhat.com>
6503
6504         PR target/48899
6505         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6506         PROCESSOR_DEFAULT.
6507
6508         PR target/48897
6509         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6510         variable 's'.
6511
6512 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
6513
6514         * combine.c (simplify_comparison): Abstract out parts into...
6515         (simplify_compare_const): ... new function.
6516         (try_combine): Generalize parallel arithmetic/compare combining
6517         to call simplify_compare_const() and CANONICALIZE_COMPARE().
6518
6519 2011-05-08  Jan Hubicka  <jh@suse.cz>
6520
6521         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6522         (cgraph_create_virtual_clone): Call hooks once virtual clone
6523         is finished.
6524         * cgraph.h (cgraph_clone_node): Update prototype.
6525         * ipa-cp.c (ipcp_estimate_growth): Use
6526         estimate_ipcp_clone_size_and_time.
6527         * ipa-inline-transform.c (clone_inlined_nodes): Update.
6528         * lto-cgraph.c (input_node): Update.
6529         * ipa-inline.c (recursive_inlining): Update.
6530         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6531         (evaluate_conditions_for_known_args): Break out from ...
6532         (evaluate_conditions_for_edge): ... here.
6533         (evaluate_conditions_for_ipcp_clone): New function.
6534         (inline_node_duplication_hook): Update clone summary based
6535         on parameter map.
6536         (estimate_callee_size_and_time): Rename to ...
6537         (estimate_node_size_and_time): take NODE instead of EDGE;
6538         take POSSIBLE_TRUTHS as argument.
6539         (estimate_callee_size_and_time): Update.
6540         (estimate_ipcp_clone_size_and_time): New function.
6541         (do_estimate_edge_time): Update.
6542
6543 2011-05-08  Richard Guenther  <rguenther@suse.de>
6544
6545         PR middle-end/48908
6546         PR middle-end/48905
6547         * expmed.c (expand_shift_1): Compute adjusted constant shift
6548         amount manually.
6549
6550 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6551
6552         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6553
6554 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6555
6556         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6557
6558 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
6559
6560         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6561
6562 2011-05-07  Jan Hubicka  <jh@suse.cz>
6563
6564         * ipa-inline-transform.c (inline_call): Account when program size
6565         decreases.
6566         * ipa-inline.c (relative_time_benefit): New function.
6567         (edge_badness): Reorganize to be power 2 based; fix thinko when
6568         computing badness for negative growth; update comments to match
6569         reality; better dumps.
6570
6571 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6572
6573         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6574         type to bool and adjust comment.
6575         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6576         (fold_mathfn_compare): Remove calls to global_bindings_p.
6577         (fold_inf_compare): Likewise.
6578         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6579         * c-tree.h (global_bindings_p): Adjust prototype.
6580         * c-decl.c (global_bindings_p): Return bool and simplify.
6581
6582 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
6583
6584         PR tree-optimization/48837
6585         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6586         when accumulator transformation is performed.
6587
6588 2011-05-06  Jan Hubicka  <jh@suse.cz>
6589
6590         * i386.h (ix86_tune_indices): Add
6591         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6592         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6593         * i386.c (initial_ix86_tune_features): Add
6594         X86_SOFTARE_PREFETCHING_BENEFICIAL.
6595         (software_prefetching_beneficial_p): Remove predicate.
6596         (ix86_option_override_internal): Use new macro.
6597
6598 2011-05-06  Jan Hubicka  <jh@suse.cz>
6599
6600         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6601
6602 2011-05-06  Jan Hubicka  <jh@suse.cz>
6603
6604         * cgraph.c (cgraph_add_thunk): Create real function node instead
6605         of alias node; finalize it and mark needed/reachale; arrange visibility
6606         to be right and add it into the corresponding same comdat group list.
6607         (dump_cgraph_node): Dump thunks.
6608         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6609         cgraph_function_with_gimple_body_p,
6610         cgraph_first_function_with_gimple_body,
6611         cgraph_next_function_with_gimple_body): New functions.
6612         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6613         New macros.
6614         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6615         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6616         * cgraphunit.c (cgraph_finalize_function): Only look into possible
6617         devirtualization when optimizing.
6618         (verify_cgraph_node): Verify thunks.
6619         (cgraph_analyze_function): Analyze thunks.
6620         (cgraph_mark_functions_to_output): Output thunks only in combination
6621         with function they are assigned to.
6622         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6623         alias into normal node.
6624         (assemble_thunks): New functoin.
6625         (cgraph_expand_function): Use it.
6626         * lto-cgraph.c (lto_output_node): Stream thunks.
6627         (input_overwrite_node): Stream in thunks.
6628         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6629         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6630         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6631         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6632         (inline_analyze_function): Do not care about thunk jump functions.
6633         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6634         * ipa-prop.c (ipa_prop_write_jump_functions): Use
6635         cgraph_function_with_gimple_body_p.
6636         * passes.c (do_per_function_toporder): Use
6637         cgraph_function_with_gimple_body_p.
6638         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6639         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6640         (function_called_by_processed_nodes_p): Likewise.
6641
6642 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6643
6644         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6645         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6646         entries.
6647         (mabi=): Replace with separate entries for mabi=altivec,
6648         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6649         mabi=ieeelongdouble and mabi=ibmlongdouble.
6650         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6651         check for -mabi=spe without SPE ABI support here.
6652         (rs6000_handle_option): Replace OPT_mabi_ handling with
6653         OPT_mabi_altivec and OPT_mabi_spe handling.
6654
6655 2011-05-06  Cary Coutant  <ccoutant@google.com>
6656
6657         * dwarf2out.c (contains_subprogram_definition): New function.
6658         (should_move_die_to_comdat): Call it.
6659
6660 2011-05-06  Jeff Law  <law@redhat.com>
6661
6662         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6663         remove_ctrl_stmt_and_useless_edges.
6664         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6665         (fixup_template_block, thread_single_edge): Likewise.
6666         (mark_threaded_blocks): Use THREAD_TARGET.
6667
6668 2011-05-06  Alan Modra  <amodra@gmail.com>
6669
6670         PR target/48900
6671         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6672         const0_rtx as the arg to the dummy __tls_get_addr libcall.
6673
6674 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6675
6676         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6677         constraint modifier to "r".
6678
6679 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6680
6681         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6682         fall through for OPT_mcmodel_.
6683
6684 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6685
6686         * config/s390/s390.c (s390_asm_trampoline_template): Comment
6687         instruction sizes.
6688         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6689
6690 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6691
6692         PR target/47930
6693         * config/arm/arm.opt (marm): Document it.
6694         (mthumb): Reject negative variant.
6695
6696 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6697
6698         PR target/48898
6699         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6700         Fix typo in "ccvt" variable name.
6701
6702 2011-05-06  Tristan Gingold  <gingold@adacore.com>
6703
6704         PR target/48895
6705         * config/vms/vms-ar.c (main): Remove cwd variable.
6706
6707 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
6708
6709         PR debug/48902
6710         * var-tracking.c (prepare_call_arguments): Move else before #endif.
6711
6712 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
6713
6714         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6715         * gimplify.c (gimplify_switch_expr): Likewise.
6716         * omp-low.c (expand_omp_sections): Likewise.
6717         * tree-eh.c (lower_try_finally_switch): Likewise.
6718         (lower_eh_dispatch): Likewise.
6719         * tree.h (build_case_label): Declare.
6720         * tree.c (build_case_label): Define.
6721
6722 2011-05-05  Jason Merrill  <jason@redhat.com>
6723
6724         PR c++/40975
6725         * tree-inline.c (copy_tree_r): Use copy_statement_list.
6726         (copy_statement_list): Don't recurse.
6727         * stor-layout.c (copy_self_referential_tree_r): Don't allow
6728         STATEMENT_LIST.
6729
6730 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6731
6732         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6733         through from -mfpu= handling.
6734         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6735
6736 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
6737
6738         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6739         POST_MODIFY.
6740
6741 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
6742
6743         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6744         for 11.31.
6745         (hppa[12]*-*-hpux11*): Ditto.
6746         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6747         * config/ia64/hpux-unix2003.h: New.
6748         * config/pa/pa-hpux1131.opt: New.
6749         * config/pa/pa-hpux1131.h: New.
6750         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6751         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6752         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6753
6754 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6755
6756         PR debug/48853
6757         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6758         instead of mode as 3rd argument to recursive call.
6759         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6760         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6761         VOIDmode.
6762         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6763         don't give up if mode is Pmode and mem_mode is not VOIDmode.
6764         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6765         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6766
6767 2011-05-05  Julian Brown  <julian@codesourcery.com>
6768
6769         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6770         parenthesis in D-register case.
6771
6772 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6773
6774         * opt-functions.awk (var_type_struct): Handle Enum options.
6775         * optc-gen.awk: Don't check range of variables of character type.
6776         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6777         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6778         rs6000_sdata_name, rs6000_explicit_options): Remove.
6779         (rs6000_option_override_internal): Check for -malign-power here.
6780         Use global_options_set instead of rs6000_explicit_options.
6781         (rs6000_parse_fpu_option): Remove.
6782         (rs6000_handle_option): Access variables via opts and opts_set
6783         pointers.  Use error_at and warning_at.  Add fall-through
6784         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6785         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6786         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6787         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6788         here.  Don't use rs6000_parse_fpu_option.
6789         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6790         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6791         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6792         (mrecip=): Use Var.
6793         (mspe): Use Var and Save.
6794         (mtraceback=): Use Enum and Var.
6795         (rs6000_traceback_type): New Enum and EnumValue entries.
6796         (mfloat-gprs=): Use Enum, Var and Save.
6797         (rs6000_float_gprs): New Enum and EnumValue entries.
6798         (mlong-double-): use Var and Save.
6799         (msched-costly-dep=, minsert-sched-nops=): Use Var.
6800         (malign-): Use Enum and Var.
6801         (rs6000_alignment_flags): New Enum and EnumValue entries.
6802         (mfpu=): Use Enum.
6803         (fpu_type_t): New Enum and EnumValue entries.
6804         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6805         global_options_set instead of rs6000_explicit_options.
6806         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6807         global_options_set instead of rs6000_explicit_options.
6808         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6809         global_options_set instead of rs6000_explicit_options.
6810         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6811         global_options_set instead of rs6000_explicit_options.
6812         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6813         global_options_set instead of rs6000_explicit_options.
6814         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6815         global_options_set instead of rs6000_explicit_options.
6816         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6817         definition.
6818         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6819         global_options_set instead of rs6000_explicit_options.
6820         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6821         (rs6000_cmodel): New Enum and EnumValue entries.
6822         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6823         global_options_set instead of rs6000_explicit_options.
6824         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6825         (mtls-size=): Use Enum and Var.
6826         (rs6000_tls_size): New Enum and EnumValue entries.
6827
6828 2011-05-05  Michael Matz  <matz@suse.de>
6829
6830         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6831         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6832         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6833         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6834         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6835         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6836         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6837         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6838         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6839         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6840         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6841         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6842         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6843         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6844         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6845         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6846
6847 2011-05-05  Richard Guenther  <rguenther@suse.de>
6848
6849         * expmed.c (expand_variable_shift): Rename to ...
6850         (expand_shift_1): ... this.  Take an expanded shift amount.
6851         For rotates recurse directly not building trees for the shift amount.
6852         (expand_variable_shift): Wrap around expand_shift_1.
6853         (expand_shift): Adjust.
6854
6855 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6856
6857         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6858
6859 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
6860
6861         * tree.h (get_pending_sizes): Remove prototype.
6862         (put_pending_size): Likewise.
6863         (put_pending_sizes): Likewise.
6864         * stor-layout.c (pending_sizes): Delete.
6865         (get_pending_sizes): Likewise.
6866         (put_pending_size): Likewise.
6867         (put_pending_sizes): Likewise.
6868         (variable_size): Do not call put_pending_size and tidy up.
6869         * function.h (struct function): Remove dont_save_pending_sizes_p.
6870         * lto-streamer-in.c (input_function): Do not stream it.
6871         * lto-streamer-out.c (output_function): Likewise.
6872         * tree-inline.c (initialize_cfun): Do not copy it.
6873         * c-decl.c (store_parm_decls): Do not set it.
6874         * omp-low.c (create_task_copyfn): Likewise.
6875         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6876
6877 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
6878
6879         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6880         conditions.
6881         (*movdf_internal): Ditto.
6882         (*movdf_internal_nointeger): Ditto.
6883         (*movsf_internal): Ditto.
6884
6885 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6886
6887         * c-decl.c (finish_decl): Don't call get_pending_sizes.
6888         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
6889         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
6890         (c_variable_size): Remove.
6891         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
6892         call put_pending_sizes.
6893         (get_parm_info): Add parameter expr.  Use it to set
6894         arg_info->pending_sizes.
6895         (store_parm_decls): Use arg_info->pending_sizes instead or calling
6896         get_pending_sizes.
6897         * c-parser.c (c_parser_parms_declarator): Update call to
6898         c_parser_parms_list_declarator.
6899         (c_parser_parms_list_declarator): Take parameter expr.  Update
6900         call to push_parm_decl.  Update recursive call.  Don't call
6901         get_pending_sizes.  Update calls to get_parm_info.
6902         (c_parser_objc_method_definition): Update calls to
6903         c_parser_objc_method_decl and objc_start_method_definition.
6904         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6905         (c_parser_objc_method_decl): Add parameter expr.  Update call to
6906         grokparm.
6907         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6908         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6909         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6910
6911 2011-05-05  Michael Hope  <michael.hope@linaro.org>
6912
6913         PR pch/45979
6914         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6915         __ARM_EABI__ hosts.
6916
6917 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6918
6919         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6920         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6921         (spu_output_mi_thunk): New function.
6922
6923 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6924
6925         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6926         targetm.asm_out.print_operand.
6927         * config/sol2.c: Include target.h.
6928
6929 2011-05-04  Jan Hubicka  <jh@suse.cz>
6930
6931         * ipa-inline.c (reset_edge_caches): New function.
6932         (update_caller_keys): Add check_inlinablity_for; do not
6933         reset edge caches; remove now unnecesary loop.
6934         (update_callee_keys): Add comments; reset node_growth_cache of callee.
6935         (update_all_callee_keys): Likewise.
6936         (inline_small_functions): Sanity check cache; update code
6937         recomputing it.
6938
6939 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
6940
6941         PR rtl-optimization/47612
6942         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6943         as the last insn of the sequence to be moved.
6944
6945 2011-05-04  Tobias Burnus  <burnus@net-b.de>
6946
6947         PR fortran/48864
6948         * doc/invoke.texi (Ofast): Document that it
6949         enables Fortran's -fno-protect-parens.
6950
6951 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6952
6953         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6954
6955 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6956
6957         * stor-layout.c (variable_size): Do not issue errors.
6958
6959 2011-05-04  Richard Guenther  <rguenther@suse.de>
6960
6961         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6962         for array-ref indices.
6963         (tree_coverage_counter_addr): Likewise.
6964         (build_fn_info_type): Use size_int for index types.
6965         (build_gcov_info): Likewise.
6966
6967 2011-05-04  Richard Guenther  <rguenther@suse.de>
6968
6969         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6970         to build_int_cst.
6971         * c-typeck.c (really_start_incremental_init): Use bitsize_int
6972         for constructor indices.
6973         (push_init_level): Likewise.
6974
6975 2011-05-04  Richard Guenther  <rguenther@suse.de>
6976
6977         * explow.c (promote_mode): Move variable declarations before code.
6978
6979 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
6980
6981         * tree.h (build_function_type_array): Declare.
6982         (build_varargs_function_type_array): Declare.
6983         (build_function_type_vec, build_varargs_function_type_vec): Define.
6984         * tree.c (build_function_type_array_1): New function.
6985         (build_function_type_array): New function.
6986         (build_varargs_function_type_array): New function.
6987
6988 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
6989
6990         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6991         before setting STMT_VINFO_TYPE.
6992
6993 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6994
6995         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6996         instead of spu_pass_by_reference.
6997
6998 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6999
7000         * calls.c (emit_library_call_value_1): Invoke
7001         promote_function_mode hook on libcall arguments.
7002         * explow.c (promote_function_mode, promote_mode): Handle TYPE
7003         argument being NULL.
7004         * targhooks.c (default_promote_function_mode): Lisewise.
7005         * config/s390/s390.c (s390_promote_function_mode): Likewise.
7006         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7007
7008         * doc/tm.texi: Document that TYPE argument might be NULL.
7009
7010 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7011
7012         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7013
7014 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7015
7016         From Bernd Schmidt
7017         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7018
7019 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7020
7021         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7022         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7023         Move ...
7024         * mips-tfile.c: ... here.
7025         Don't include coretypes.h, tm.h, filenames.h.
7026         (saber_stop): Remove definition and all calls.
7027         [__SABER__]: Remove.
7028         (__LINE__): Remove default.
7029         (Size_t, Ptrdiff_t): Remove definitions.
7030         Replace by size_t, ptrdiff_t.
7031         [!MIPS_DEBUGGING_INFO]: Remove.
7032         (SHASH_SIZE, THASH_SIZE): Remove defaults.
7033         (progname): Add const.
7034         (STATIC): Remove.
7035         Replace all uses by static.
7036         (ALIGN_SYMTABLE_OFFSET): Remove default.
7037         * mips-tdump.c: Don't include coretypes.h, tm.h.
7038         Remove !MIPS_IS_STAB guard.
7039         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7040         $(TM_H), filenames.h dependencies.
7041         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7042
7043 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7044
7045         From Jie Zhang
7046         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7047         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7048
7049 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7050
7051         From Bernd Schmidt
7052         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7053         account and save/restore RETS.
7054         (PROFILE_BEFORE_PROLOGUE): Define.
7055         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
7056         the push insn to use predecrement.
7057
7058 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7059
7060         From Jie Zhang
7061         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7062
7063 2011-05-04  Nick Clifton  <nickc@redhat.com>
7064
7065         * config/mn10300/mn10300.c: Include cfgloop.h.
7066         (DUMP): New macro.
7067         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
7068         Lcc or a FLcc insn into the instruction stream.
7069         (mn10300_block_contains_call): New function.  Returns true if the
7070         given basic block contains a CALL insn.
7071         (mn10300_loop_contains_call_insn): New function.  Returns true if
7072         the given loop contains a CALL insn.
7073         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
7074         to use the SETLB and Lcc or FLcc insns.
7075         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7076         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7077         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
7078         disable the SETLB optimization.
7079         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7080         __SETLB__ or __NO_SETLB__.
7081         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7082         (movsf_internal): Handle MDR register.
7083         (cmpsi): Make visible.
7084         (setlb): New pattern.
7085         (Lcc): New pattern.
7086         (FLcc): New pattern.
7087
7088 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
7089
7090         PR target/48860
7091         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7092         for reg<->xmm moves.
7093         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7094         (vec_concatv2di_rex64_sse): Ditto.
7095         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7096         (*vec_extractv2di_1_rex64): Ditto.
7097
7098         Revert:
7099         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7100
7101         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7102         reg<->xmm moves.
7103         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7104
7105 2011-05-04  Richard Guenther  <rguenther@suse.de>
7106
7107         * tree.h (int_const_binop): Remove notrunc argument.
7108         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
7109         create integer constants that are properly truncated.
7110         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7111         (const_binop): Remove zero notrunc argument to int_const_binop.
7112         (size_binop_loc): Likewise.
7113         (fold_div_compare): Likewise.
7114         (maybe_canonicalize_comparison_1): Likewise.
7115         (fold_comparison): Likewise.
7116         (fold_binary_loc): Likewise.
7117         (multiple_of_p): Likewise.
7118         * expr.c (store_constructor): Likewise.
7119         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7120         (maybe_fold_stmt_addition): Likewise.
7121         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7122         * stor-layout.c (layout_type): Likewise.
7123         * tree-data-ref.c (tree_fold_divides_p): Likewise.
7124         * tree-sra.c (build_ref_for_offset): Likewise.
7125         (build_user_friendly_ref_for_offset): Likewise.
7126         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7127         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7128         * tree-ssa-loop-niter.c (inverse): Likewise.
7129         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7130         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7131         * tree-switch-conversion.c (check_range): Likewise.
7132         (build_constructors): Likewise.
7133         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7134         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7135         (extract_range_from_assert): Likewise.
7136         (vrp_int_const_binop): Likewise.
7137         (extract_range_from_binary_expr): Likewise.
7138         (extract_range_from_unary_expr): Likewise.
7139         (check_array_ref): Likewise.
7140         (find_case_label_range): Likewise.
7141         (simplify_div_or_mod_using_ranges): Likewise.
7142         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7143         comparing case labels for merging.
7144
7145 2011-05-03  Mark Wielaard  <mjw@redhat.com>
7146
7147         * dwarf2out.c (debug_str_hash_forced): Removed.
7148         (gen_label_for_indirect_string): Removed.
7149         (get_debug_string_label): Removed.
7150         (AT_string_form): Generate label directly.
7151         (output_indirect_string): Test indirect_string_node for
7152         DW_FORM_strp instead of checking label and refcount.
7153         (prune_indirect_string): Removed.
7154         (prune_unused_types): Don't check debug_str_hash_forced or
7155         call prune_indirect_string.
7156
7157 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
7158
7159         PR other/48093
7160         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7161
7162 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
7163
7164         PR debug/47994
7165         PR debug/47919
7166         * combine.c (try_combine): Skip debug insns at m_split tests.
7167
7168 2011-04-26  Mark Wielaard  <mjw@redhat.com>
7169
7170         PR42288
7171         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7172         when info_section_emitted.
7173
7174 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
7175
7176         * config/mips/mips-opts.h: New.
7177         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7178         to mips-opts.h.
7179         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7180         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7181         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
7182         via opts pointer.
7183         * config/mips/mips.h (enum mips_code_readable_setting): Move to
7184         mips-opts.h.
7185         (mips_abi, mips_code_readable): Don't declare.
7186         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7187         (mabi=): Use Enum and Var.
7188         (mips_abi): New Enum and EnumValue entries.
7189         (mcode-readable=): Use Enum and Var.
7190         (mips_code_readable_setting): New Enum and EnumValue entries.
7191         (mr10k-cache-barrier=): Use Enum and Var.
7192         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7193
7194 2011-05-03  Jan Hubicka  <jh@suse.cz>
7195
7196         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7197         replace hash by pointer map.
7198         (cgraph_node_set_element_def, cgraph_node_set_element,
7199         const_cgraph_node_set_element, varpool_node_set_element_def,
7200         varpool_node_set_element, const_varpool_node_set_element): Remove.
7201         (free_cgraph_node_set, free_varpool_node_set): New function.
7202         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7203         * tree-emutls.c: Free varpool node set.
7204         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7205         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7206         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7207         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7208         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7209         Move here from ipa.c; implement using pointer_map
7210         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7211         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7212         debug_cgraph_node_set, varpool_node_set_new,
7213         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7214         dump_varpool_node_set, debug_varpool_node_set):
7215         Move to ipa-uitls.c.
7216         * passes.c (ipa_write_summaries): Update.
7217
7218 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7219
7220         From Mike Frysinger:
7221         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7222         bf542/bf544/bf547/bf548/bf549.
7223
7224 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
7225
7226         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7227
7228 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7229
7230         From Bernd Schmidt:
7231         * config/bfin/bfin.md (MOVCC): New mode_macro.
7232         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7233         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
7234         comments from generated assembly.
7235
7236 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7237
7238         From Bernd Schmidt
7239         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7240         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7241         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7242         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7243         * config/bfin/lib1funcs.asm (___muldi3): New function.
7244
7245 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7246
7247         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7248         build_function_type_list instead of build_function_type.
7249         Rearrange initialization of `args' to do so.
7250
7251 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7252
7253         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7254         instead of build_function_type.
7255
7256 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7257
7258         * config/rs6000/rs6000.c (spe_init_builtins): Call
7259         build_function_type_list instead of build_function_type.
7260         (paired_init_builtins, altivec_init_builtins): Likewise.
7261         (builtin_function_type): Likewise.
7262
7263 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7264
7265         * config/sh/sh.c (sh_media_init_builtins): Call
7266         build_function_type_list instead of build_function_type.
7267
7268 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7269
7270         * config/sparc/sparc.c (sparc_file_end): Call
7271         build_function_type_list instead of build_function_type.
7272
7273 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7274
7275         * config/alpha/alpha.c (alpha_init_builtins): Call
7276         build_function_type_list instead of build_function_type.
7277
7278 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7279
7280         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7281         build_function_type_list instead of build_function_type.
7282
7283 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7284
7285         * config/iq2000/i2000.c (iq2000_init_builtins): Call
7286         build_function_type_list instead of build_function_type.
7287         Delete `endlink' variable.
7288
7289 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7290
7291         * config/avr/avr.c (avr_init_builtins): Call
7292         build_function_type_list instead of build_function_type.
7293
7294 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7295
7296         * config/picochip/picochip.c (picochip_init_builtins): Call
7297         build_function_type_list instead of build_function_type.
7298         Delete `endlink' variable.
7299
7300 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7301
7302         * config/bfin/bfin.c (bfin_init_builtins): Call
7303         build_function_type_list instead of build_function_type.
7304
7305 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7306
7307         From Bernd Schmidt
7308         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7309         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
7310
7311 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7312
7313         From Jie Zhang:
7314         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7315         libbffastfp overrides libgcc when -mfast-fp.
7316
7317 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7318
7319         Originally from Bernd Schmidt
7320         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7321         * config/bfin/bfin.c (override_options): Test it and error if
7322         TARGET_FDPIC.
7323
7324 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7325
7326         Originally From Bernd Schmidt
7327         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7328         FD-PIC.
7329
7330 2011-05-03  Jeff Law  <law@redhat.com>
7331
7332         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7333         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7334         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7335         than accessing AUX field directly.  Free the AUX field before
7336         clearing it.
7337         (thread_block, thread_through_loop_header): Likewise.
7338         (thread_single_edge, mark_threaded_blocks): Likewise.
7339         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
7340         (register_jump_thread): Do not attempt to thread to a NULL edge.
7341
7342 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7343
7344         * function.c (init_function_start): Call decide_function_section.
7345         * varasm.c (decide_function_section): New function.
7346         (assemble_start_function): When not using
7347         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7348         or first_function_block_is_cold.
7349         * rtl.h (decide_function_section): Declare.
7350
7351 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
7352             Jakub Jelinek  <jakub@redhat.com>
7353
7354         PR target/48774
7355         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7356         only succeed if req_mode is the same as set_mode.
7357
7358 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7359
7360         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7361         * genemit.c (gen_exp): Handle RETURN.
7362         * emit-rtl.c (verify_rtx_sharing): Likewise.
7363         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7364         * rtl.c (copy_rtx): RETURN is shared.
7365         * rtl.h (enum global_rtl_index): Add GR_RETURN.
7366         (ret_rtx): New.
7367         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7368         * config/s390/s390.c (s390_emit_epilogue): Likewise.
7369         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7370         * config/cris/cris.c (cris_expand_return): Likewise.
7371         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7372         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7373         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7374         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7375         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7376         Likewise.
7377         * config/v850/v850.c (expand_epilogue): Likewise.
7378         * config/bfin/bfin.c (bfin_expand_call): Likewise.
7379         * config/arm/arm.md (epilogue): Likewise.
7380         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7381         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7382         variable to ret_reg.
7383
7384 2011-05-03  Richard Guenther  <rguenther@suse.de>
7385
7386         PR lto/48846
7387         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7388         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7389         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7390
7391 2011-05-03  Richard Guenther  <rguenther@suse.de>
7392
7393         * c-decl.c (grokdeclarator): Instead of looking at
7394         TREE_OVERFLOW check if the constant fits in the index type.
7395
7396 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7397
7398         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7399         (vec_store_lanes<mode><mode>): Likewise.
7400
7401 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7402
7403         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7404         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7405         convert_optab_index values.
7406         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7407         * genopinit.c (optabs): Initialize the new optabs.
7408         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7409         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7410         (expand_STORE_LANES): New functions.
7411         * tree.h (build_array_type_nelts): Declare.
7412         * tree.c (build_array_type_nelts): New function.
7413         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7414         (vect_model_load_cost): Likewise.
7415         (vect_store_lanes_supported, vect_load_lanes_supported)
7416         (vect_record_strided_load_vectors): Declare.
7417         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7418         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7419         (vect_transform_strided_load): Split out statement recording into...
7420         (vect_record_strided_load_vectors): ...this new function.
7421         * tree-vect-stmts.c (create_vector_array, read_vector_array)
7422         (write_vector_array, create_array_ref): New functions.
7423         (vect_model_store_cost): Add store_lanes_p argument.
7424         (vect_model_load_cost): Add load_lanes_p argument.
7425         (vectorizable_store): Try to use store-lanes functions for
7426         interleaved stores.
7427         (vectorizable_load): Likewise load-lanes and loads.
7428         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7429         to vect_model_store_cost.
7430         (vect_build_slp_tree): Likewise vect_model_load_cost.
7431
7432 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7433
7434         * hooks.h (hook_bool_mode_uhwi_false): Declare.
7435         * hooks.c (hook_bool_mode_uhwi_false): New function.
7436         * target.def (array_mode_supported_p): New hook.
7437         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7438         * doc/tm.texi: Regenerate.
7439         * stor-layout.c (mode_for_array): New function.
7440         (layout_type): Use it.
7441         * config/arm/arm.c (arm_array_mode_supported_p): New function.
7442         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7443
7444 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
7445
7446         PR target/48723
7447         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7448         for -fstack-check if the size to allocate is negative.
7449
7450 2011-05-02  Lawrence Crowl  <crowl@google.com>
7451
7452         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7453         (timevar_cond_start): New for starting a timer only when it is not
7454         already running.
7455         (timevar_cond_stop): New for stopping a timer when it was not already
7456         running.
7457
7458         * timevar.c (timevar_stop): Enable start/stop timers to start again.
7459         (timevar_cond_start): New as above.
7460         (timevar_cond_stop): New as above.
7461
7462         * timevar.def: Add start/stop timers for compiler phases,
7463         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7464         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7465         and TV_PHASE_FINALIZE.
7466         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7467         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7468         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7469         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7470         Make unused TV_OVERLOAD into a start/stop timer.
7471
7472         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7473         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7474         to indicate that they are start/stop timers.
7475
7476         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7477         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7478         Move initialization to do_compile.
7479         (do_compile): Add initialization from above.
7480         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7481
7482         * c-decl.c (c_write_global_declarations): Add start/stop of
7483         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7484
7485         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7486         or TV_PARSE_INLINE, as appropriate.
7487         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7488         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7489
7490 2011-05-02  Jason Merrill  <jason@redhat.com>
7491
7492         PR c++/40975
7493         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7494
7495 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
7496
7497         PR c/35445
7498         * c-decl.c (finish_decl): Only create a composite if the types are
7499         compatible.
7500
7501 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7502
7503         * config/fr30/fr30-protos.h (Mmode): Don't define.
7504         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
7505         definition where used.
7506         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7507         define.  Expand definitions where used.
7508         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7509         Expand definitions where used.
7510         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7511         rx_function_arg, rx_function_arg_advance,
7512         rx_function_arg_boundary): Expand definitions of those macros.
7513         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
7514         definition where used.
7515
7516 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7517
7518         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7519         reg<->xmm moves.
7520         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7521         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
7522         with *movv2sf_internal_rex64_avx.
7523         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7524         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7525         Use %v prefix in insn mnemonic to handle TARGET_AVX.
7526         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
7527         "vex" in "prefix" attribute calculation.
7528         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
7529
7530 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
7531
7532         PR target/47951
7533         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7534         inputs match the output.
7535
7536 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
7537
7538         PR target/47955
7539         * config/m68k/m68k.c (m68k_expand_prologue): Set
7540         current_function_static_stack_size.
7541
7542 2011-05-02   Jan Hubicka  <jh@suse.cz>
7543
7544         * lto-streamer.c (lto_streamer_cache_insert_1,
7545         lto_streamer_cache_lookup, lto_streamer_cache_create,
7546         lto_streamer_cache_delete): Use pointer map instead of hashtable.
7547         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7548
7549 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7550
7551         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7552         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7553         config/m68k/t-opts: New files.
7554         * config/m68k/m68k-tables.opt: New file (generated).
7555         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7556         extra_options and m68k/t-opts to tmake_file.
7557         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7558         (all_isas): Initialize using m68k-isas.def.
7559         (all_microarchs): Initialize using m68k-microarchs.def.
7560         (m68k_find_selection): Remove.
7561         (m68k_handle_option): Don't assert that global structures are in
7562         use.  Use error_at.  Access variables via opts pointer.  Don't
7563         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
7564         directly for -m68020-40 and -m68020-60.
7565         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7566         m68k_tune_entry here.
7567         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7568         to m68k-opts.h.
7569         (m68k_library_id_string): Remove declaration.
7570         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7571         (m68k_library_id_string): New Variable.
7572         (march=, mcpu=, mtune=): Use Enum and Var.
7573
7574 2011-05-02  Richard Guenther  <rguenther@suse.de>
7575
7576         * varasm.c (output_constructor_regular_field): Compute zero-based
7577         index with double-ints.  Make sure to ICE instead of producing
7578         wrong code.
7579         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7580         in asserts.  Properly use a signed type.
7581
7582 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7583
7584         * config/i386/sse.md (V): New mode iterator.
7585         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
7586         TARGET_SSE2.
7587         (V_256): Rename from AVX256MODE.
7588         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
7589         condition to all users.
7590         (VF1): Ditto.
7591         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
7592         condition to all users.
7593         (VF_128): Make V4SF mode unconditional.
7594         (VF_256): Rename from AVX256MODEF2P.
7595         (VI4F_128): Rename from SSEMODE4S.
7596         (VI8F_128): Rename from SSEMODE2D.
7597         (VI4F_256): Rename from AVX256MODE8P.
7598         (VI8F_256): Rename from AVX256MODE4P.
7599         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7600         (ssescalarmodesuffix): Remove SF and DF modes.
7601         (SSEMODE124): Remove.
7602         (SSEMODE1248): Ditto.
7603         (SSEMODEF2P): Ditto.
7604         (AVXMODEF2P): Ditto.
7605         (AVXMODEFDP): Ditto.
7606         (AVXMODEFSP): Ditto.
7607         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7608         unconditional.
7609         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
7610         unconditional.
7611         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7612         xop_pcmov_<mode>256.  Use V mode iterator.
7613
7614         Adjust RTX patterns globally for renamed mode attributes.
7615
7616 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7617
7618         * haifa-sched.c (sched_emit_insn): Emit insn before first
7619         non-scheduled insn.  Inform back-end about new insn.  Add
7620         new insn to scheduled_insns list.
7621
7622 2011-05-02  Richard Guenther  <rguenther@suse.de>
7623
7624         PR tree-optimization/48822
7625         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7626         (process_scc): Indicate which iteration we start.
7627
7628 2011-05-02  Jan Hubicka  <jh@suse.cz>
7629
7630         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7631         (lto_section_overrun): New.
7632         * lto-section-out.c (append_block): Rename to ...
7633         (lto_append_block): ... this one; export.
7634         (lto_output_1_stream): Move lto lto-streamer.h
7635         (lto_output_data_stream): Update.
7636         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7637         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7638         functions.
7639
7640 2011-05-02  Richard Guenther  <rguenther@suse.de>
7641
7642         * tree.c (tree_code_counts): New global array.
7643         (record_node_allocation_statistics): Count individual tree codes.
7644         (dump_tree_statistics): Dump individual code stats.
7645
7646 2011-05-01  Jan Hubicka  <jh@suse.cz>
7647
7648         * ipa-inline.c (caller_growth_limits): Fix thinko when
7649         looking for largest stack frame.
7650         * ipa-inline.h (dump_inline_summary): Declare.
7651         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7652         on stack usage.
7653         (dump_inline_summary): Export.
7654         (debug_inline_summary): Declare as DEBUG_FUNCTION.
7655
7656 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
7657
7658         * reginfo.c (memory_move_cost): Change rclass argument type form
7659         'enum reg_class' to reg_class_t.
7660         * reload.h (memory_move_cost): Update prototype.
7661         * postreload.c reload_cse_simplify_set): Change type dclass var to
7662         reg_class_t.
7663         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7664         Update prototype.
7665         (ira_allocate_and_set_costs): Change aclass argument type form
7666         'enum reg_class' to reg_class_t.
7667         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7668         Change aclass argument type to reg_class_t.
7669         (update_conflict_hard_reg_costs): Change type aclass and pref vars
7670         to reg_class_t.
7671         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7672         memory_move_cost call.
7673
7674         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7675         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7676         Change type tmp var to reg_class_t.
7677
7678 2011-04-30  Jan Hubicka  <jh@suse.cz>
7679
7680         * ipa-inline.c (can_inline_edge_p): Disregard limits when
7681         inlining into function with flatten attribute.
7682         (want_inline_small_function_p): Be more realistic about inlining
7683         cold calls where callee size grows.
7684
7685 2011-04-30  Jan Hubicka  <jh@suse.cz>
7686
7687         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7688         flags.
7689
7690 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
7691
7692         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7693         PRINT_OPERAND_PUNCT_VALID_P): Remove.
7694         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7695         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7696         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7697         (print_operand): Rename to...
7698         (sparc_print_operand): ...this. Make static. Adjust
7699         sparc_print_operand function call.
7700         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7701         functions.
7702
7703 2011-04-30  Jan Hubicka  <jh@suse.cz>
7704
7705         PR middle-end/48752
7706         * ipa-inline.c (early_inliner): Disable when doing late
7707         addition of function.
7708
7709 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
7710
7711         * dwarf2out.c (get_address_mode): New inline.
7712         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7713         if not dwarf_strict emit
7714         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7715         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7716         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
7717         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7718         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7719         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7720         mem_loc_descriptor callers.
7721         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7722         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7723         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7724         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7725         (base_types): New variable.
7726         (get_base_type_offset, calc_base_type_die_sizes,
7727         base_type_for_mode, mark_base_types, base_type_cmp,
7728         move_marked_base_types): New functions.
7729         (calc_die_sizes): Assert that die_offset is 0 or equal to
7730         next_die_offset.
7731         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7732         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
7733         callers.  If not dwarf_strict, call mem_loc_descriptor even for
7734         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7735         (gen_subprogram_die): Don't give up on call site parameters
7736         with non-integral or large integral modes.  Adjust
7737         mem_loc_descriptor callers.
7738         (prune_unused_types): Call prune_unused_types_mark on base_types
7739         vector entries.
7740         (resolve_addr): Call mark_base_types.
7741         (dwarf2out_finish): Call move_marked_base_types.
7742
7743         PR tree-optimization/48809
7744         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7745         type.
7746         (gen_inbound_check): Don't compute index_expr - range_min in utype
7747         again, instead reuse SSA_NAME initialized in build_arrays.
7748         Remove two useless gsi_for_stmt calls.
7749
7750 2011-04-29  Jeff Law  <law@redhat.com>
7751
7752         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7753
7754 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7755
7756         * cgraph.h (cgraph_postorder): Remove declaration.
7757         * ipa-utils.h (ipa_free_postorder_info): Declare.
7758         (ipa_reverse_postorder): Likewise.
7759         * cgraphunit.c: Include ipa-utils.h.
7760         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7761         * ipa-inline.c: Include ipa-utils.h.
7762         (ipa_inline): Update call to ipa_reverse_postorder.
7763         * ipa-pure-const.c (propagate_pure_const): Update call to
7764         ipa_reduced_postorder and ipa_print_order.  Call
7765         ipa_free_postorder_info to clean up.
7766         (propagate_nothrow): Likewise.
7767         * ipa-reference.c (propagate): Removed a useless call to
7768         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7769         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
7770         * ipa.c: Include ipa-utils.h.
7771         (ipa_profile): Update call to ipa_reverse_postorder.
7772         (cgraph_postorder): Moved to...
7773         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7774         (ipa_utils_print_order): Renamed to ipa_print_order.
7775         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7776         comments.
7777         (ipa_free_postorder_info): New function.
7778         * passes.c: Include ipa-utils.h.
7779         (do_per_function_toporder): Update call to ipa_reverse_postorder.
7780         (ipa_write_summaries): Likewise.
7781         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7782         (cgraphunit.o): Likewise.
7783         (ipa.o): Likewise.
7784         (ipa-inline.o): Likewise.
7785
7786 2011-04-29  Jan Hubicka  <jh@suse.cz>
7787
7788         * gcc.dg/tree-ssa/inline-10.c: New testcase.
7789         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7790         * ipa-inline.h (clause_t): Turn into unsigned int.
7791         * ipa-inline-analysis.c (add_clause): Do more simplification.
7792         (and_predicates): Shortcut more cases.
7793         (predicates_equal_p): Move forward; check that clauses are properly
7794         ordered.
7795         (or_predicates): Shortcut more cases.
7796         (edge_execution_predicate): Rewrite as...
7797         (set_cond_stmt_execution_predicate): ... this function; handle
7798         __builtin_constant_p.
7799         (set_switch_stmt_execution_predicate): New .
7800         (compute_bb_predicates): New.
7801         (will_be_nonconstant_predicate): Update TODO.
7802         (estimate_function_body_sizes): Use compute_bb_predicates
7803         and free them later, always try to estimate if stmt is constant.
7804         (estimate_time_after_inlining, estimate_size_after_inlining):
7805         Gracefully handle optimized out edges.
7806         (read_predicate): Fix off by one error.
7807
7808 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7809
7810         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7811
7812 2011-04-27  Xinliang David Li  <davidxl@google.com>
7813
7814         * tree-profile.c (init_ic_make_global_vars): Set
7815         tls attribute on ic vars.
7816         * coverage.c (coverage_end_function): Initialize
7817         function_list with zero.
7818
7819 2011-04-29  Richard Guenther  <rguenther@suse.de>
7820
7821         * builtins.c (fold_builtin_classify_type): Use integer_type_node
7822         for the type of the result.
7823         (fold_builtin_isascii): Likewise.
7824         (fold_builtin_toascii): Use integer_type_node where appropriate.
7825         (fold_builtin_logb): Likewise.
7826         (fold_builtin_frexp): Likewise.
7827         (fold_builtin_strstr): Likewise.
7828         (fold_builtin_strpbrk): Likewise.
7829         (fold_builtin_fputs): Likewise.
7830         (fold_builtin_sprintf): Likewise.
7831         (fold_builtin_snprintf): Likewise.
7832         (fold_builtin_printf): Likewise.
7833         (do_mpfr_remquo): Use a proper type for the assigned constant.
7834         (do_mpfr_lgamma_r): Likewise.
7835         * dwarf2out.c (resolve_one_addr): Use size_int.
7836         * except.c (init_eh): Likewise.
7837         (assign_filter_values): Use integer_type_node for filter values.
7838         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7839         indices.
7840         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7841         for EH region numbers.
7842         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7843         for the shift amount.
7844
7845 2011-04-29  Richard Guenther  <rguenther@suse.de>
7846
7847         * expr.h (expand_shift): Rename to ...
7848         (expand_variable_shift): ... this.
7849         (expand_shift): Take a constant shift amount.
7850         * expmed.c (expand_shift): Rename to ...
7851         (expand_variable_shift): ... this.
7852         (expand_shift): New wrapper around expand_variable_shift.
7853         * expr.c (convert_move, emit_group_load_1, emit_group_store,
7854         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7855         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7856         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7857         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7858         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7859         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7860         emit_store_flag_1, emit_store_flag): Likewise.
7861         * builtins.c (expand_builtin_signbit): Likewise.
7862         * calls.c (load_register_parameters): Likewise.
7863         * function.c (assign_parm_setup_block): Likewise.
7864         * lower-subreg.c (resolve_shift_zext): Likewise.
7865         * optabs.c (widen_bswap, expand_abs_nojump,
7866         expand_one_cmpl_abs_nojump, expand_float): Likewise.
7867         * spu/spu.c (spu_expand_extv): Likewise.
7868         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7869
7870 2011-04-29  Richard Guenther  <rguenther@suse.de>
7871
7872         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7873         for the remapped region number.
7874         * predict.c (build_predict_expr): Use integer_type_node for the
7875         predict kind.
7876         * fold-const.c (fold_binary_loc): Use integer_type_node for
7877         the shift amount.  Use a proper type for the PLUS_EXPR operand.
7878
7879 2011-04-29  Michael Matz  <matz@suse.de>
7880
7881         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7882         other trees that just builtins.
7883         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7884
7885 2011-04-29  Richard Guenther  <rguenther@suse.de>
7886
7887         * tree-nested.c (get_trampoline_type): Use size_int.
7888         (get_nl_goto_field): Likewise.
7889         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7890         for all indexes.
7891         (lower_eh_constructs_2): Likewise.
7892         (lower_resx): Likewise.
7893         (lower_eh_dispatch): Likewise.
7894         * tree-mudflap.c (mf_build_string): Use size_int.
7895         (mudflap_register_call): Use integer_type_node for the flag.
7896         (mudflap_enqueue_constant): Use size_int.
7897         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7898         instead of rebuilding it.
7899
7900 2011-04-29  Richard Guenther  <rguenther@suse.de>
7901
7902         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7903         Handle OBJ_TYPE_REF.
7904         (find_func_aliases_for_call): Use it more consistently.
7905
7906 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
7907
7908         * haifa-sched.c (last_nondebug_scheduled_insn): New.
7909         (rank_for_schedule): Use it.
7910         (schedule_block): Set it.
7911
7912 2011-04-28  David Li  <davidxl@google.com>
7913
7914         * tree.c (crc32_string): Use crc32_byte.
7915         (crc32_byte): New function.
7916         * tree.h (crc32_byte): New function.
7917         * gcov.c (read_graph_file): Handle new cfg_cksum.
7918         (read_count_file): Ditto.
7919         * profile.c (instrument_values): Ditto.
7920         (get_exec_counts): Ditto.
7921         (read_profile_edge_counts): Ditto.
7922         (compute_branch_probabilities): Ditto.
7923         (compute_value_histograms): Ditto.
7924         (branch_prob): Ditto.
7925         (end_branch_prob): Ditto.
7926         * coverage.c (read_counts_file): Ditto.
7927         (get_coverage_counts): Ditto.
7928         (tree_coverage_counter_addr): Ditto.
7929         (coverage_checksum_string): Ditto.
7930         (coverage_begin_output): Ditto.
7931         (coverage_end_function): Ditto.
7932         (build_fn_info_type): Ditto.
7933         (build_fn_info_value): Ditto.
7934         * libgcov.c (gcov_exit): Ditto.
7935         * gcov-dump.c (tag_function): Ditto.
7936         (compute_checksum): Remove.
7937
7938 2011-04-29  Alan Modra  <amodra@gmail.com>
7939
7940         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7941         unspec plus offset.  Tidy macho code.
7942
7943 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7944
7945         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7946         node instead of a decl.  Update all callers.
7947         * cgraph.h: Update declaration.
7948
7949 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
7950
7951         PR tree-optimization/48765
7952         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7953         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7954         to indicate if loop aware SLP is being used.  Scan the statements
7955         and update the vectorization factor according to the type of
7956         vectorization before statement analysis.
7957         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7958         pass it to vect_analyze_loop_operations.
7959         (vectorizable_reduction): Set number of copies to 1 in case of pure
7960         SLP statement.
7961         * tree-vect-stmts.c (vectorizable_conversion,
7962         vectorizable_assignment, vectorizable_shift,
7963         vectorizable_operation, vectorizable_type_demotion,
7964         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7965         Likewise.
7966         (vectorizable_condition): Move the check that it is not SLP
7967         vectorization before the number of copies check.
7968         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7969         to vectorize the loop using SLP.
7970
7971 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
7972
7973         PR middle-end/48597
7974         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7975         inline asm.
7976
7977 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
7978
7979         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7980         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7981         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7982         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7983         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7984         linux*.h headers.
7985         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7986         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7987         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7988         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7989         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7990         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7991         REG_NAME.
7992         * config/i386/linux.h (REG_NAME): Don't define.
7993         * config/i386/linux64.h (REG_NAME): Don't define.
7994         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7995         Undefine before defining.
7996
7997 2011-04-28  Jan Hubicka  <jh@suse.cz>
7998
7999         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8000         nonconstant_names array.
8001         (estimate_function_body_sizes): Build nonconstant_names array; handle
8002         BUILT_IN_CONSTANT_P.
8003
8004 2011-04-28  Richard Guenther  <rguenther@suse.de>
8005
8006         PR bootstrap/48804
8007         Revert
8008         2011-04-28  Richard Guenther  <rguenther@suse.de>
8009
8010         * tree-ssa-structalias.c (solve_constraints): Build succ graph
8011         as late as possible.
8012
8013 2011-04-28  Richard Guenther  <rguenther@suse.de>
8014
8015         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8016         (debug_constraint): Do it here.
8017         (dump_constraints): And here.
8018         (rewrite_constraints): And here.
8019         (dump_constraint_edge): Remove.
8020         (dump_constraint_graph): Rewrite to produce DOT output.
8021         (solve_constraints): Build succ graph as late as possible.
8022         Dump constraint graphs before and after solving.
8023
8024 2011-04-28  Richard Guenther  <rguenther@suse.de>
8025
8026         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8027         New function split out from ...
8028         (find_func_aliases): ... here.  Call it.
8029         (find_func_aliases_for_call): Likewise.
8030
8031 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8032
8033         * internal-fn.h (internal_fn_name_array): Declare.
8034         (internal_fn_flags_array): Likewise.
8035
8036 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
8037
8038         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
8039         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8040         Move from sse.md.
8041         (ssemodefsuffix): Remove.
8042         (ssevecmodesuffix): New mode attribute.
8043         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8044         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8045         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8046         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8047         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8048         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8049         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8050         ssemodesuffix mode attribute.
8051         (float splitters): Use ssevecmodesuffix mode attribute.
8052         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8053         (sseinsmode): Rename from avxvecmode.
8054         (avxsizesuffix): Rename from avxmodesuffix.
8055         (sseintvecmode): Rename from avxpermvecmode.
8056         (ssedoublevecmode): Rename from ssedoublesizemode.
8057         (ssehalfvecmode): Rename from avxhalfvecmode.
8058         (ssescalarmode): Rename from avxscalarmode.
8059         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8060         templates for ssemodesuffix mode attribute.
8061         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8062         mode attribute.
8063
8064         Adjust RTX patterns globally for renamed mode attributes.
8065
8066 2011-04-27  Jan Hubcika  <jh@suse.cz>
8067
8068         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8069         * ipa-inline-analysis.c: Include alloc-pool.h.
8070         (edge_predicate_pool): New.
8071         (trye_predicate_p): New function
8072         (false_predicate_p): New function.
8073         (add_clause): Sanity check that false clauses are "optimized";
8074         never add clauses to predicate that is already known to be false.
8075         (and_predicate): Use flase_predicate_p.
8076         (evaulate_predicate): Rename to ...
8077         (evaluate_predicate): ... this one; update all callers; assert
8078         that false is not listed among possible truths.
8079         (dump_predicate): Use true_predicate_p.
8080         (account_size_time): Use false_predicate_p.
8081         (evaulate_conditions_for_edge): Rename to ...
8082         (evaluate_conditions_for_edge) ... this one.
8083         (edge_set_predicate): New function.
8084         (inline_edge_duplication_hook): Duplicate edge predicates.
8085         (inline_edge_removal_hook): Free edge predicates.
8086         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
8087         (dump_inline_summary): Update.
8088         (estimate_function_body_sizes): Set edge predicates.
8089         (estimate_calls_size_and_time): Handle predicates.
8090         (estimate_callee_size_and_time): Update.
8091         (remap_predicate): Add toplev_predicate; update comment.
8092         (remap_edge_predicates): New function.
8093         (inline_merge_summary): Compute toplev predicate; update.
8094         (read_predicate): New function.
8095         (read_inline_edge_summary): Use it.
8096         (inline_read_section): Likewise.
8097         (write_predicate): New function.
8098         (write_inline_edge_summary): Use it.
8099         (inline_write_summary): Likewise.
8100         (inline_free_summary): Free alloc pool and edge summary vec.
8101
8102 2011-04-27  Richard Guenther  <rguenther@suse.de>
8103
8104         * tree-ssa-structalias.c (changed_count): Remove.
8105         (changed): Use a bitmap.
8106         (unify_nodes): Adjust.
8107         (do_sd_constraint): Likewise.
8108         (do_ds_constraint): Likewise.
8109         (do_complex_constraint): Likewise.
8110         (solve_graph): Likewise.
8111
8112 2011-04-27  Jan Hubicka  <jh@suse.cz>
8113
8114         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8115
8116 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
8117
8118         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8119         (avx_vperm2f128_*_operand): Ditto.
8120         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8121         Use avx_vpermilp_parallel in insn condition.
8122         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8123         Use avx_vperm2f128_parallel in insn condition.
8124
8125 2011-04-27  Richard Guenther  <rguenther@suse.de>
8126
8127         * Makefile.in (tree-ssa-structalias.o): Remove
8128         gt-tree-ssa-structalias.h dependency.
8129         (GTFILES): Remove tree-ssa-structalias.c.
8130         * tree.c (allocate_decl_uid): New function.
8131         (make_node_stat): Use it.
8132         (copy_node_stat): Likewise.
8133         * tree.h (allocate_decl_uid): Declare.
8134         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8135         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8136         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
8137         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
8138         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8139         (struct heapvar_map): Likewise.
8140         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8141         heapvar_insert): Likewise.
8142         (make_heapvar_for): Rename to ...
8143         (make_heapvar): ... this.  Simplify.
8144         (fake_var_decl_obstack): New global var.
8145         (build_fake_var_decl): New function.
8146         (make_constraint_from_heapvar): Adjust.
8147         (handle_lhs_call): Likewise.
8148         (create_function_info_for): Likewise.
8149         (intra_create_variable_infos): Likewise.
8150         (init_alias_vars): Allocate fake_var_decl_obstack.
8151         (init_alias_heapvars, delete_alias_heapvars): Remove.
8152         (compute_points_to_sets): Do not call init_alias_heapvars.
8153         (ipa_pta_execute): Likewise.
8154         (delete_points_to_sets): Free fake_var_decl_obstack.
8155
8156 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8157
8158         * config/spu/divmovti4.c (union qword_UTItype): New data type.
8159         (si_from_UTItype, si_to_UTItype): New functions.
8160         (__udivmodti4): Use them to implement type-punning.
8161         * config/spu/multi3.c (union qword_TItype): New data type.
8162         (si_from_TItype, si_to_TItype): New functions.
8163         (__multi3): Use them to implement type-punning.
8164
8165 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8166
8167         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8168
8169 2011-04-27  Jan Hubicka  <jh@suse.cz>
8170
8171         * ipa-prop.c (function_insertion_hook_holder): New holder.
8172         (ipa_add_new_function): New function.
8173         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8174         Register/deregister holder.
8175
8176 2011-04-27  Richard Guenther  <rguenther@suse.de>
8177
8178         PR tree-optimization/48772
8179         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8180
8181 2011-04-27  Richard Guenther  <rguenther@suse.de>
8182
8183         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8184         TARGET_MEM_REF handling.
8185
8186 2011-04-27  Nick Clifton  <nickc@redhat.com>
8187
8188         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8189         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8190         (REG_CLASS_NAMES): Likewise.
8191         (REG_CLASS_CONTENTS): Likewise.
8192         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
8193         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
8194         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
8195         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
8196         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
8197         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8198         duplicate register classes.
8199         (frv_class_likely_spilled_p): Likewise.
8200         (frv_register_move_cost): Likewise.
8201
8202         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8203         end of the regno_reg_class array.
8204
8205 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
8206
8207         PR c/48742
8208         * c-typeck.c (build_binary_op): Don't wrap arguments if
8209         int_operands is true.
8210
8211 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
8212
8213         PR target/48767
8214         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8215         targetm.calls.must_pass_in_stack for void type.
8216
8217 2011-04-26  Jan Hubicka  <jh@suse.cz>
8218
8219         * cgraphbuild.c (build_cgraph_edges): Update call
8220         of cgraph_create_edge and cgraph_create_indirect_edge.
8221         * cgraph.c (cgraph_create_edge_including_clones,
8222         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8223         cgraph_update_edges_for_call_stmt_node): Do not take nest
8224         argument; do not initialize call_stmt_size/time.
8225         (dump_cgraph_node): Do not dump nest.
8226         (cgraph_clone_edge): Do not take loop_nest argument;
8227         do not propagate it; do not clone call_stmt_size/time.
8228         (cgraph_clone_node): Likewise.
8229         (cgraph_create_virtual_clone): Update.
8230         * cgraph.h (struct cgraph_edge): Remove
8231         call_stmt_size/call_stmt_time/loop_nest.
8232         (cgraph_create_edge, cgraph_create_indirect_edge,
8233         cgraph_create_edge_including_clones, cgraph_clone_node): Update
8234         prototype.
8235         * tree-emutls.c (gen_emutls_addr): Update.
8236         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8237         loop_nest; handle indirect calls, too.
8238         (clone_inlined_nodes): Do not care about updating inline summaries.
8239         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8240         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8241         stream call_stmt_size/call_stmt_time/loop_nest.
8242         * ipa-inline.c (edge_badness): Update.
8243         (ipa_inline): dump summaries after inlining.
8244         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8245         New.
8246         (inline_edge_summary): New function.
8247         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8248         (inline_edge_removal_hook): Handle edge summaries.
8249         (inline_edge_duplication_hook): New hook.
8250         (inline_summary_alloc): Alloc hooks.
8251         (initialize_growth_caches): Do not register removal hooks.
8252         (free_growth_caches); Do not free removal hook.
8253         (dump_inline_edge_summary): New function.
8254         (dump_inline_summary): Use it.
8255         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8256         (inline_update_callee_summaries): New function.
8257         (inline_merge_summary): Use it.
8258         (do_estimate_edge_time, do_estimate_edge_growth): Update.
8259         (read_inline_edge_summary): New function.
8260         (inline_read_section): Use it.
8261         (write_inline_edge_summary): New function.
8262         (inline_write_summary): Use it.
8263         (inline_free_summary): Free edge new holders.
8264         * tree-inline.c (copy_bb): Update.
8265
8266 2011-04-26  Jason Merrill  <jason@redhat.com>
8267
8268         * tree-eh.c (lower_try_finally_switch): Create the label along with
8269         the CASE_LABEL_EXPR.
8270
8271 2011-04-26  David S. Miller  <davem@davemloft.net>
8272             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8273
8274         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8275         * configure: Regenerate.
8276
8277 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8278
8279         PR target/48258
8280         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8281         reduction.
8282         (VEC_reduc): New code iterator and splitters for vector reduction.
8283         (VEC_reduc_name): Ditto.
8284         (VEC_reduc_rtx): Ditto.
8285         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8286         (reduc_<VEC_reduc_name>_v4sf): Ditto.
8287
8288         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8289         support for extracting SF on VSX.
8290
8291         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8292         generating xscvspdp.
8293         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8294         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8295         double add, minimum, maximum vector reduction.
8296         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8297         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8298         optimize double vector reduction.
8299         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8300
8301 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
8302
8303         * config/fr30/fr30.h (inhibit_libc): Don't define.
8304         * config/m32r/m32r-protos.h: Correct comment.
8305         * config/v850/v850.h (GHS_default_section_names,
8306         GHS_current_section_names): Use tree, not union tree_node *.
8307
8308 2011-04-26  Xinliang David Li  <davidxl@google.com>
8309
8310         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8311         * c-family/c-opts.c (c_common_handle_option): Set
8312         warn_maybe_uninitialized.
8313         * opts.c (common_handle_option): Ditto.
8314         * common.opt:  New option.
8315         * tree-ssa.c (warn_uninit): Add one more parameter.
8316         (warn_uninitialized_var): Pass warning code.
8317         * tree-flow.h: Interface change.
8318
8319 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8320
8321         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8322         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8323         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8324
8325 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8326
8327         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8328         * config/mips/mips.opt (mmips-tfile): Remove.
8329
8330         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8331         mips-tdump reference to ...
8332         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
8333         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8334         reference by Tru64 UNIX.
8335
8336 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
8337
8338         PR debug/48768
8339         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8340         is error_mark_node, set value to NULL.
8341
8342         PR tree-optimization/48734
8343         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8344         if return value from maybe_fold_*_comparsions isn't something
8345         the code is prepared to handle.
8346
8347 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
8348
8349         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8350         mode check.
8351         (ext_QIreg_nomode_operands): Remove.
8352         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8353         (*andsi_1): Ditto.
8354         (*andhi_1): Ditto.
8355
8356 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
8357
8358         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8359
8360 2011-04-26  Richard Guenther  <rguenther@suse.de>
8361
8362         * c-typeck.c (build_unary_op): Do not expand array-refs via
8363         pointer arithmetic.  Only adjust qualifiers for function types.
8364
8365 2011-04-26  Richard Guenther  <rguenther@suse.de>
8366
8367         PR middle-end/48694
8368         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8369         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8370         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
8371         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8372
8373 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
8374
8375         * doc/extend.texi: Document __underlying_type.
8376
8377 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
8378
8379         * config/rs6000/titan.md (automata_option "progress"): Remove.
8380
8381 2011-04-25  Jeff Law  <law@redhat.com>
8382
8383         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8384
8385 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8386
8387         * system.h (ENUM_BITFIELD): Remove.
8388
8389 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
8390             Eric Botcazou  <ebotcazou@adacore.com>
8391
8392         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8393         for STORE_FLAG_VALUE==-1 case.
8394
8395 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
8396
8397         PR target/43804
8398         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8399         LEGITIMATE_PIC_OPERAND_P.
8400
8401 2011-04-24  Jan Hubicka  <jh@suse.cz>
8402
8403         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8404         WPA hack.
8405         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8406         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8407         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8408         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8409         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8410         Sanity check predicate length.
8411         (remap_predicate): Likewise; sanity check jump functions.
8412         (inline_read_section, inline_write_summary): Sanity check
8413         predicate length.
8414
8415 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
8416
8417         PR other/48748
8418         * doc/extend.texi (Type Traits): Document __is_standard_layout,
8419         __is_literal_type, and __is_trivial; update throughout about
8420         possibly cv-qualified void types.
8421
8422 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
8423
8424         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8425         testsuite and make it version agnostic.
8426
8427 2011-04-22  Jan Hubicka  <jh@suse.cz>
8428
8429         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8430
8431 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
8432
8433         PR c/48685
8434         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8435         to VOID_TYPE even around MODIFY_EXPR.
8436
8437 2011-04-22  Mike Stump  <mikestump@comcast.net>
8438
8439         * gensupport.c (read_md_rtx): Fix typo in comment.
8440         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8441         comment.
8442
8443 2011-04-22  Jan Hubicka  <jh@suse.cz>
8444
8445         * gengtype.c (open_base_files): Add ipa-inline.h include.
8446         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8447         ipa-prop.c; update all uses.
8448         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8449         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8450         merge summary of inlined function into former caller.
8451         * ipa-inline.c (max_benefit): Remove.
8452         (edge_badness): Compensate for removal of benefits.
8453         (update_caller_keys): Use
8454         reset_node_growth_cache/reset_edge_growth_cache.
8455         (update_callee_keys): Likewise.
8456         (update_all_callee_keys): Likewise.
8457         (inline_small_functions): Do not collect max_benefit; do not reset
8458         estimated_growth; call free_growth_caches and initialize_growth_caches.
8459         * ipa-inline.h (struct condition, type clause_t, struct predicate,
8460         struct size_time_entry): New structures.
8461         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8462         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8463         and estimated_growth.
8464         (edge_growth_cache_entry): New structure.
8465         (node_growth_cache, edge_growth_cache): New global vars.
8466         (estimate_growth): Turn into inline.
8467         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8468         initialize_growth_caches, free_growth_caches): Declare.
8469         (estimate_edge_growth): Rewrite.
8470         (estimate_edge_time): Implement as inline cache lookup.
8471         (reset_node_growth_cache, reset_edge_growth_cache): New inline
8472         functions.
8473         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8474         (NUM_CONDITIONS): New constant.
8475         (predicate_conditions): New enum.
8476         (IS_NOT_CONSTANT): New constant.
8477         (edge_removal_hook_holder): New var.
8478         (node_growth_cache, edge_growth_cache): New global vars.
8479         (true_predicate, single_cond_predicate, false_predicate,
8480         not_inlined_predicate, add_condition, add_clause, and_predicates,
8481         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8482         dump_clause, dump_predicate, account_size_time,
8483         evaulate_conditions_for_edge): New functions.
8484         (inline_summary_alloc): Move to heap.
8485         (inline_node_removal_hook): Clear condition and entry vectors.
8486         (inline_edge_removal_hook): New function.
8487         (initialize_growth_caches, free_growth_caches): New function.
8488         (dump_inline_summary): Update.
8489         (edge_execution_predicate): New function.
8490         (will_be_nonconstant_predicate): New function.
8491         (estimate_function_body_sizes): Compute BB and constantness predicates.
8492         (compute_inline_parameters): Do not clear estimated_growth.
8493         (estimate_edge_size_and_time): New function.
8494         (estimate_calls_size_and_time): New function.
8495         (estimate_callee_size_and_time): New function.
8496         (remap_predicate): New function.
8497         (inline_merge_summary): New function.
8498         (do_estimate_edge_time): New function based on...
8499         (estimate_edge_time): ... this one.
8500         (do_estimate_edge_growth): New function.
8501         (do_estimate_growth): New function based on....
8502         (estimate_growth): ... this one.
8503         (inline_analyze_function): Analyze after deciding on jump functions.
8504         (inline_read_section): New function.
8505         (inline_read_summary): Use it.
8506         (inline_write_summary): Write all the new data.
8507         * ipa-prop.c (ipa_get_param_decl_index): Export.
8508         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8509         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8510         Declare.
8511         (ipa_get_lattice): Move here from ipa-cp.c
8512         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8513         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8514         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8515         cgraph_edge_inlinable_p): Remove.
8516         * cgraphunit.c: Include ipainline.h
8517         (cgraph_process_new_functions): Update call of
8518         compute_inline_parameters.
8519
8520 2011-04-22  Richard Guenther  <rguenther@suse.de>
8521
8522         * tree.c (build_int_cst): Properly create canonicalized integer
8523         constants.
8524         (build_int_cst_type): Remove scary comments.
8525
8526 2011-04-22  Xinliang David Li  <davidxl@google.com>
8527
8528         * toplev.c (process_options): Enable -Werror=coverage-mismatch
8529         by default when -Wno-error is not specified.
8530         * opts-global.c (decode_options): Remove call to
8531         control_warning_options.
8532
8533 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8534
8535         PR tree-optimization/48717
8536         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8537         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8538
8539 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
8540
8541         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
8542         definition where used.
8543
8544 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8545
8546         PR c/48716
8547         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8548         TREE_STATIC variables declared inside of some OpenMP construct.
8549
8550 2011-04-22  Martin Jambor  <mjambor@suse.cz>
8551
8552         PR middle-end/48585
8553         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8554
8555 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
8556
8557         PR c/36750
8558         * c-typeck.c (pop_init_level): Do not warn about initializing
8559         with ` = {0}'.
8560
8561 2011-04-22  Alan Modra  <amodra@gmail.com>
8562
8563         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8564         when returning call_cookie.
8565         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8566         pointers, to functions with no more vector args than the current
8567         function, and some non-local calls for ABI_V4.
8568         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8569         sibcall_nonlocal_aix64): Combine to ..
8570         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
8571         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8572         (sibcall_value_nonlocal_aix<mode>): ..likewise.
8573         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8574         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
8575         operand.
8576         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8577         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8578         sibcall_value_symbolic_64): Delete.
8579
8580 2011-04-21  Xinliang David Li  <davidxl@google.com>
8581
8582         * cgraph.h: Remove pid.
8583         * cgraph.c: Remove pid.
8584         * value-prof.c (init_node_map): New function.
8585         (del_node_map): New function.
8586         (find_func_by_funcdef_no): New function.
8587         (gimple_ic_transform): Call new function.
8588         * cgraphunit.c (cgraph_finalize_function): Remove pid.
8589         * function.c (get_last_funcdef_no): New function.
8590         * function.h (get_last_funcdef_no): New function.
8591         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8592         to libgcov function.
8593         (tree-profiling): Call node map init and delete function.
8594
8595 2011-04-21  Ian Lance Taylor  <iant@google.com>
8596
8597         * godump.c (go_format_type): Use exported Go name for anonymous
8598         field name.
8599
8600 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8601
8602         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8603         Call builtin_function_type_list instead of builtin_function_type.
8604         (UNARY, BINARY, TRINARY, QUAD): Likewise.
8605
8606 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8607
8608         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8609         build_function_type_list instead of build_function_type.
8610         Delete variable `endlink'.
8611
8612 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8613
8614         * config/s390/s390.c (s390_init_builtins): Call
8615         build_function_type_list instead of build_function_type.
8616
8617 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8618
8619         * config/ia64/ia64.c (ia64_init_builtins): Call
8620         build_function_type_list instead of builtin_function_type.
8621
8622 2011-04-21  Easwaran Raman  <eraman@google.com>
8623
8624         * cfgexpand.c (stack_var): Remove OFFSET...
8625         (add_stack_var): ...and its reference here...
8626         (expand_stack_vars): ...and here.
8627         (stack_var_cmp): Sort by descending order of size.
8628         (partition_stack_vars): Change heuristic.
8629         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8630         (dump_stack_var_partition): Add newline after each partition.
8631
8632 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
8633             Jeff Law  <law@redhat.com>
8634
8635         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8636         * gengtype.c (matching_file_name_substitute): Likewise.
8637
8638 2011-04-21  Richard Guenther  <rguenther@suse.de>
8639
8640         PR lto/48703
8641         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8642
8643 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
8644
8645         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8646
8647 2011-04-21  Richard Guenther  <rguenther@suse.de>
8648
8649         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8650         file name.
8651
8652 2011-04-21  Richard Guenther  <rguenther@suse.de>
8653
8654         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8655         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8656         Use DECL_P, not SSA_VAR_P.
8657         (ptr_derefs_may_alias_p): Likewise.
8658         (ptr_deref_may_alias_ref_p_1): Likewise.
8659         (decl_refs_may_alias_p): Likewise.
8660         (refs_may_alias_p_1): Likewise.
8661         (ref_maybe_used_by_call_p_1): Likewise.
8662         (call_may_clobber_ref_p_1): Likewise.
8663         (indirect_ref_may_alias_decl_p): Assume indirect refrences
8664         are either MEM_REF or TARGET_MEM_REF.
8665         (indirect_refs_may_alias_p): Likewise.
8666         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8667         for MEM_EXPR of indirect calls.
8668
8669 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8670
8671         * vmsdbgout.c (write_srccorr): Compute file length from the string.
8672         (dst_file_info_struct): Remove flen field.
8673         (lookup_filename): Remove code that set flen field.
8674
8675 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8676
8677         * config/ia64/ia64.c (ia64_start_function): Add a guard.
8678
8679 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
8680
8681         PR target/48708
8682         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8683         vec_extract and vec_concat for non-SSE4_1 targets.
8684
8685 2011-04-21  Richard Guenther  <rguenther@suse.de>
8686
8687         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8688         return statements.
8689
8690 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8691
8692         * config/i386/cygming.h (union tree_node, TREE): Don't define or
8693         undefine.
8694         (FILE): Don't undefine.
8695
8696 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8697
8698         * config/alpha/alpha.c (struct machine_function): Use rtx, not
8699         struct rtx_def *.
8700         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8701         struct rtx_def *.
8702         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8703         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8704         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8705         rtx_def *.
8706         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
8707         definitions where used.
8708         * config/microblaze/microblaze.h (struct microblaze_args): Use
8709         rtx, not struct rtx_def *.
8710         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8711         rtx_def *.
8712         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8713         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8714         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8715         not struct rtx_def *.
8716         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8717         struct rtx_def *.
8718         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8719         rtx_def *.
8720         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8721
8722 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8723
8724         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8725         operand_equal_p to compare DR_BASE_ADDRESSes.
8726         (vect_check_interleaving): Likewise.
8727
8728 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8729
8730         PR target/46329
8731         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8732         for all Neon struct constants.
8733
8734 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8735
8736         * target.def (legitimate_constant_p): New hook.
8737         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8738         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8739         * doc/tm.texi: Regenerate.
8740         * hooks.h (hook_bool_mode_rtx_true): Declare.
8741         * hooks.c (hook_bool_mode_rtx_true): Define.
8742         * system.h (LEGITIMATE_CONSTANT_P): Poison.
8743         * calls.c (precompute_register_parameters): Replace uses of
8744         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8745         (emit_library_call_value_1): Likewise.
8746         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8747         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8748         * ira-costs.c (scan_one_insn): Likewise.
8749         * recog.c (general_operand, immediate_operand): Likewise.
8750         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8751         * reload1.c (init_eliminable_invariants): Likewise.
8752
8753         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8754         mode argument.
8755         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8756         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8757         argument.
8758         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8759         * config/alpha/predicates.md (input_operand): Update call to
8760         alpha_legitimate_constant_p.
8761
8762         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8763         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8764         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8765         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8766         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8767         (arm_legitimate_constant_p): New functions.
8768         (arm_cannot_force_const_mem): Make static.
8769
8770         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8771
8772         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8773         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8774         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8775         instead of bfin_legitimate_constant_p.
8776         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
8777         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8778
8779         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8780
8781         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8782
8783         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8784         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8785         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8786         (frv_legitimate_constant_p): Make static.  Add a mode argument.
8787
8788         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8789         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8790         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8791
8792         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8793         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8794         * config/i386/i386.c (legitimate_constant_p): Rename to...
8795         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
8796         argument.
8797         (ix86_cannot_force_const_mem): Update accordingly.
8798         (ix86_legitimate_address_p): Likewise.
8799         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8800         * config/i386/i386.md: Update commentary.
8801
8802         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8803         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8804         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8805         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
8806
8807         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8808
8809         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8810         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8811         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8812         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
8813
8814         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8815         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8816         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8817
8818         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8819         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8820         (m32r_legitimate_constant_p): New function.
8821
8822         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8823         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8824         LEGITIMATE_CONSTANT_P.
8825         (LEGITIMATE_CONSTANT_P): Delete.
8826         * config/m68k/m68k.c (m68k_expand_prologue): Call
8827         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8828         (m68k_legitimate_constant_p): New function.
8829         * config/m68k/m68k.md: Update comments.
8830
8831         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8832         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8833         (mcore_legitimate_constant_p): New function.
8834
8835         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8836         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8837         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8838         Add a mode argument.
8839         (mep_legitimate_address): Update accordingly.
8840         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8841
8842         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8843         Delete.
8844         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8845         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8846         static.  Check OP's mode for VOIDmode.
8847         (microblaze_legitimate_constant_p): New function.
8848         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8849
8850         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8851         * config/mips/mips.c (mips_legitimate_constant_p): New function.
8852         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8853         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8854         * config/mips/predicates.md: Update comments.
8855
8856         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8857         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8858         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8859         (mmix_legitimate_constant_p): Make static, return a bool, and take
8860         a mode argument.
8861         (mmix_print_operand_address): Update accordingly.
8862
8863         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8864         Delete.
8865         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8866         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8867         static.  Add a mode argument.
8868         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8869
8870         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8871
8872         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8873         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8874         (pa_legitimate_constant_p): New function.
8875
8876         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8877
8878         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8879         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8880         (pdp11_legitimate_constant_p): New function.
8881
8882         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8883         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8884         (rs6000_legitimate_constant_p): New function.
8885
8886         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8887         (rx_legitimate_constant_p): ...this.
8888         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8889         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8890         (rx_legitimate_constant_p): ...this.
8891         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8892         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8893
8894         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8895         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8896         * config/s390/s390.c (legitimate_constant_p): Rename to...
8897         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
8898         and add a mode argument.
8899         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8900
8901         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8902
8903         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8904         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8905         (sh_legitimate_constant_p): New function.
8906
8907         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8908         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8909         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8910         (legitimate_constant_p): Rename to...
8911         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
8912         argument.
8913         (constant_address_p): Update accordingly.
8914
8915         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8916         argument and return a bool.
8917         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8918         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8919         (spu_legitimate_constant_p): Add a mode argument and return a bool.
8920         (spu_rtx_costs): Update accordingly.
8921         * config/spu/predicates.md (vec_imm_operand): Likewise.
8922
8923         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8924
8925         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8926         * config/v850/v850.c (v850_legitimate_constant_p): New function.
8927         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8928
8929         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8930         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8931         * config/vax/vax.c (legitimate_constant_p): Likewise.
8932
8933         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8934         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8935         (xtensa_legitimate_constant_p): New function.
8936
8937 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8938
8939         * target.def (cannot_force_const_mem): Add a mode argument.
8940         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8941         * doc/tm.texi: Regenerate.
8942         * hooks.h (hook_bool_mode_rtx_false): Declare.
8943         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8944         (hook_bool_mode_const_rtx_true): Likewise.
8945         (hook_bool_mode_rtx_false): New function.
8946         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8947         to be non-VOID.  Update call to cannot_force_const_mem.
8948         (find_reloads): Update accordingly.
8949         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8950         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8951         argument.
8952         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8953         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8954         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8955         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8956         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8957         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8958         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8959         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8960         (m68k_cannot_force_const_mem): ...this new function.
8961         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8962         argument.
8963         (mips_const_insns, mips_legitimize_const_move): Update calls.
8964         (mips_secondary_reload_class): Likewise.
8965         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8966         (pa_cannot_force_const_mem): ...this new function.
8967         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8968         (rs6000_cannot_force_const_mem): ...this new function.
8969         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8970         argument.
8971         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8972         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8973         to...
8974         (xtensa_cannot_force_const_mem): ...this new function.
8975
8976 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8977
8978         * config/mips/mips.c (mips16_build_function_stub): Call
8979         build_function_type_list instead of build_function_type.
8980         (mips16_build_call_stub): Likewise.
8981
8982 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8983
8984         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8985         instead of build_function_type.
8986
8987 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8988
8989         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8990         instead of build_function_type.
8991
8992 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
8993
8994         PR target/48678
8995         * config/i386/i386.md (insv): Change operand 0 constraint to
8996         "register_operand".  Change operand 1 and 2 constraint to
8997         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
8998         * config/i386/sse.md (sse4_1_pinsrb): Export.
8999         (sse2_pinsrw): Ditto.
9000         (sse4_1_pinsrd): Ditto.
9001         (sse4_1_pinsrq): Ditto.
9002         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9003         * config/i386/i386.c (ix86_expand_pinsr): New.
9004
9005 2011-04-20  Easwaran Raman  <eraman@google.com>
9006
9007         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9008         containing union type only with -fstrict-aliasing.
9009
9010 2011-04-20  Jim Meyering  <meyering@redhat.com>
9011
9012         Remove useless if-before-free tests.
9013         * calls.c (expand_call, save_area): Likewise.
9014         * cfgcleanup.c (try_forward_edges): Likewise.
9015         * collect2.c (collect_execute): Likewise.
9016         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9017         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9018         * coverage.c (coverage_checksum_string): Likewise.
9019         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9020         * cselib.c (cselib_init): Likewise.
9021         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9022         (df_set_clean_cfg): Likewise.
9023         * function.c (free_after_compilation): Likewise.
9024         * gcc.c (do_spec_1, main): Likewise.
9025         * gcov.c (create_file_names): Likewise.
9026         * gensupport.c (identify_predicable_attribute): Likewise.
9027         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9028         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9029         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9030         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9031         * ipa-pure-const.c (local_pure_const): Likewise.
9032         * ipa-reference.c (propagate): Likewise.
9033         * ira-costs.c (free_ira_costs): Likewise.
9034         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9035         * matrix-reorg.c (mat_free): Likewise.
9036         * prefix.c (get_key_value): Likewise.
9037         * profile.c (compute_value_histograms): Likewise.
9038         * reload1.c (free_reg_equiv): Likewise.
9039         * sched-deps.c (free_deps): Likewise.
9040         * sel-sched-ir.c (fence_clear): Likewise.
9041         * sese.c (set_rename, if_region_set_false_region): Likewise.
9042         * tree-data-ref.c (free_rdg): Likewise.
9043         * tree-eh.c (lower_try_finally): Likewise.
9044         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9045         * tree-ssa-live.c (delete_var_map): Likewise.
9046         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9047         * tree-ssa-pre.c (phi_trans_add): Likewise.
9048
9049 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
9050
9051         PR tree-optimization/48611
9052         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9053         beyond ERT_MUST_NOT_THROW region.
9054
9055 2011-04-20  Catherine Moore  <clm@codesourcery.com>
9056
9057         * config/mips/mips.opt (mfix-24k): New.
9058         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9059         * config/mips/mips.md (length): Increase by 4 for stores if
9060         fixing 24K errata.
9061         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9062         all noreorder if fixing 24K errata.
9063         * doc/invoke.texi: Document mfix-24k.
9064
9065 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
9066
9067         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
9068         quad-word modes, reduce to 9-bit index range when above 1016 limit.
9069
9070 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
9071
9072         * config/arm/arm.c (arm_gen_constant): Move movw support ....
9073         (const_ok_for_op): ... to here.
9074
9075 2011-04-20  Kai Tietz  <ktietz@redhat.com>
9076
9077         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9078         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
9079
9080 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
9081
9082         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9083
9084 2011-04-20  Richard Guenther  <rguenther@suse.de>
9085
9086         PR tree-optimization/47892
9087         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9088         are if-convertible.
9089
9090 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
9091
9092         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9093
9094 2011-04-20  Tristan Gingold  <gingold@adacore.com>
9095
9096         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9097
9098 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
9099
9100         PR target/18145
9101
9102         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9103         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9104         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9105         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9106         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9107
9108         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9109         New prototype.
9110
9111         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9112         (avr_asm_named_section, avr_asm_output_aligned_common,
9113         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9114         New functions to update...
9115         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9116         (avr_asm_init_sections): Overwrite section callbacks for
9117         data_section, bss_section.
9118         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9119         from here to...
9120         (avr_file_end): ...here.
9121
9122 2011-04-20  Richard Guenther  <rguenther@suse.de>
9123
9124         PR middle-end/48695
9125         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
9126         objects and types here.  Adjust for their offset before comparing.
9127
9128 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
9129
9130         * tree-vect-stmts.c (vectorizable_store): Only chain one related
9131         statement per copy.
9132
9133 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
9134
9135         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9136         (GIMPLE_H): Include $(INTERNAL_FN_H).
9137         (OBJS-common): Add internal-fn.o.
9138         (internal-fn.o): New rule.
9139         * internal-fn.def: New file.
9140         * internal-fn.h: Likewise.
9141         * internal-fn.c: Likewise.
9142         * gimple.h: Include internal-fn.h.
9143         (GF_CALL_INTERNAL): New gf_mask.
9144         (gimple_statement_call): Put fntype into a union with a new
9145         internal_fn field.
9146         (gimple_build_call_internal): Declare.
9147         (gimple_build_call_internal_vec): Likewise.
9148         (gimple_call_same_target_p): Likewise.
9149         (gimple_call_internal_p): New function.
9150         (gimple_call_internal_fn): Likewise.
9151         (gimple_call_fntype): Return null for internal calls.
9152         (gimple_call_set_fntype): Assert that the function is not internal.
9153         (gimple_call_set_fn): Likewise.
9154         (gimple_call_set_fndecl): Likewise.
9155         (gimple_call_set_internal_fn): New function.
9156         (gimple_call_addr_fndecl): Handle null functions.
9157         (gimple_call_return_type): Likewise null types.
9158         * gimple.c (gimple_build_call_internal_1): New function.
9159         (gimple_build_call_internal): Likewise.
9160         (gimple_build_call_internal_vec): Likewise.
9161         (gimple_call_same_target_p): Likewise.
9162         (gimple_call_flags): Handle calls to internal functions.
9163         (gimple_call_fnspec): New function.
9164         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9165         (gimple_has_side_effects): Handle null functions.
9166         (gimple_rhs_has_side_effects): Likewise.
9167         (gimple_call_copy_skip_args): Handle calls to internal functions.
9168         * cfgexpand.c (expand_call_stmt): Likewise.
9169         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9170         * gimple-fold.c (gimple_fold_call): Handle null functions.
9171         (gimple_fold_stmt_to_constant_1): Don't fold
9172         calls to internal functions.
9173         * gimple-low.c (gimple_check_call_args): Handle calls to internal
9174         functions.
9175         * gimple-pretty-print.c (dump_gimple_call): Likewise.
9176         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9177         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9178         (do_warn_unused_result): Likewise.
9179         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9180         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9181         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9182         the target of a call.
9183         (initialize_hash_element): Update accordingly.
9184         (hashable_expr_equal_p): Use gimple_call_same_target_p.
9185         (iterative_hash_hashable_expr): Handle calls to internal functions.
9186         (print_expr_hash_elt): Likewise.
9187         * tree-ssa-pre.c (can_value_number_call): Likewise.
9188         (eliminate): Handle null functions.
9189         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9190         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9191         (find_func_aliases): Likewise.
9192         * value-prof.c (gimple_ic_transform): Likewise.
9193         (gimple_indirect_call_to_profile): Likewise.
9194         * lto-streamer-in.c (input_gimple_stmt): Likewise.
9195         * lto-streamer-out.c (output_gimple_stmt): Likewise.
9196
9197 2011-04-19  Jan Hubicka  <jh@suse.cz>
9198
9199         * ipa-inline-transform.c (save_inline_function_body): Add comments.
9200         * ipa-inline.c (inline_small_functions): Compute summaries first,
9201         populate heap later.
9202
9203 2011-04-19  Jan Hubicka  <jh@suse.cz>
9204
9205         * cgraph.h (save_inline_function_body): Remove.
9206         * ipa-inline-transform.c: New file, broke out of...
9207         * ipa-inline.c: ... this one; Update toplevel comment.
9208         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9209         make global.
9210         (update_noncloned_frequencies): Move to ipa-inline-transform.c
9211         (cgraph_mark_inline_edge): Rename to inline_call; move to
9212         ipa-inline-transform.c.
9213         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9214         move to ipa-inline-transform.c
9215         (recursive_inlining, inline_small_functions, flatten_function,
9216         ipa_inline, inline_always_inline_functions,
9217         early_inline_small_functions): Update.
9218         (inline_transform): Move to ipa-inline-transform.c.
9219         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9220         Declare.
9221         * Makefile.in (ipa-inline-transform.o): New file.
9222         * cgraphunit.c (save_inline_function_body): Move to
9223         ipa-inline-transform.c
9224
9225 2011-04-19  DJ Delorie  <dj@redhat.com>
9226
9227         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9228         registers if we already know there aren't any.
9229         (m32c_emit_epilogue): Don't emit a barrier here.
9230         (m32c_emit_eh_epilogue): Likewise.
9231         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9232         operands at expand time.
9233         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9234         int" wchar type.
9235         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9236         duplicates.  Provide aliases instead.
9237         * config/m32c/prologue.md (eh_return): Emit a barrier here.
9238         (eh_epilogue): Add a "(return)" here as a hint to other parts of
9239         the compiler.
9240
9241 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
9242
9243         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9244         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9245         (general_or_i64_p, sparc_register_move_cost): New function.
9246
9247 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9248
9249         * doc/install.texi (Configuration, --enable-threads): Remove mach.
9250         Add lynx, mipssde.  Sort table.
9251
9252 2011-04-19  Xinliang David Li  <davidxl@google.com>
9253
9254         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9255         not negative.
9256
9257 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
9258
9259         PR target/48678
9260         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9261         is a SUBREG with non-MODE_INT mode inside of it.
9262
9263 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9264
9265         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9266         also according to actual contants.
9267         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9268         (gimple_fold_call): Use it.
9269         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9270
9271 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9272
9273         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9274         non-pointer assignments.
9275
9276 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9277
9278         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9279         account anc_offset and otr_type from the indirect edge info.
9280         * ipa-prop.c (get_ancestor_addr_info): New function.
9281         (compute_complex_ancestor_jump_func): Assignment analysis moved to
9282         get_ancestor_addr_info, call it.
9283         (ipa_note_param_call): Do not initialize information about polymorphic
9284         calls, return the indirect call graph edge.  Remove the last
9285         parameter, adjust all callers.
9286         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9287         parameters.  Initialize polymorphic information in the indirect edge.
9288
9289 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9290
9291         PR lto/48148
9292         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9293         the types if they have different enumeration identifiers.
9294
9295 2011-04-19  Jan Hubicka  <jh@suse.cz>
9296
9297         * cgraph.h (cgraph_optimize_for_size_p): Declare.
9298         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9299         * predict.c (cgraph_optimize_for_size_p): Break out from ...
9300         (optimize_function_for_size_p) ... here.
9301
9302 2011-04-19  Richard Guenther  <rguenther@suse.de>
9303
9304         PR lto/48207
9305         * tree.c (free_lang_data): Do not reset the decl-assembler-name
9306         langhook.
9307
9308 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9309
9310         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9311         if DECL_NO_INLINE_WARNING_P is set on the function.
9312
9313 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
9314
9315         PR fortran/47976
9316         * reload1.c (inc_for_reload): Return void. All callers changed.
9317         (emit_input_reload_insns): Don't try to delete previous output
9318         reloads to a register, or record spill_reg_store for autoincs.
9319
9320 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
9321
9322         * gengtype.h: Updated copyright year.
9323         (struct input_file_st): Add inpisplugin field.
9324         (type_fileloc): New function.
9325         * gengtype.c
9326         (write_typed_struct_alloc_def): Add gcc_assert.
9327         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9328         (write_typed_alloc_defns): Don't output for plugin files.
9329         (input_file_by_name): Clear inpisplugin field.
9330         (main): Set inpisplugin field for plugin files.
9331
9332 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
9333
9334         * gengtype-state.c (string_eq): New.
9335         (read_state): Use string_eq instead of strcmp when creating the
9336         state_ident_tab.
9337
9338 2011-04-19  Wei Guozhi  <carrot@google.com>
9339
9340         PR target/47855
9341         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9342         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9343         linkage.
9344         * config/arm/constraints.md (Uu): New constraint.
9345         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9346
9347 2011-04-19  Tristan Gingold  <gingold@adacore.com>
9348
9349         * config.gcc (-*-*-*vms): Added.
9350         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9351         definitions moved.
9352         * config/vms/vms-ld.c: New file.
9353         * config/vms/vms-ar.c: New file.
9354         * config/vms/t-vmsnative: New file.
9355
9356 2011-04-18  Xinliang David Li  <davidxl@google.com>
9357
9358         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9359
9360 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9361
9362         PR middle-end/48661
9363         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9364         if TREE_TYPE (v) is non-NULL.
9365
9366         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9367         gimple_get_virt_mehtod_for_binfo.
9368         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9369         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9370         callers.
9371         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9372
9373 2011-04-18  Michael Matz  <matz@suse.de>
9374             Steve Ellcey  <sje@cup.hp.com>
9375
9376         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9377         use its mode as source mode if it isn't VOIDmode.
9378
9379 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
9380
9381         * doc/passes.texi: Fill crossref nodes.
9382
9383 2011-04-18  Jim Meyering  <meyering@redhat.com>
9384
9385         Fix doubled-word typos in comments and strings
9386         * config/alpha/vms-unwind.h: s/for for/for/
9387         * config/arm/unwind-arm.h: Likewise.
9388         * config/microblaze/microblaze.c: Likewise.
9389         * config/sh/constraints.md: s/in in/in/
9390         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9391
9392 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
9393
9394         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9395         (AVX_FLOAT_MODE_P): Ditto.
9396         (AVX128_VEC_FLOAT_MODE_P): Ditto.
9397         (AVX256_VEC_FLOAT_MODE_P): Ditto.
9398         (AVX_VEC_FLOAT_MODE_P): Ditto.
9399         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9400         (UNSPEC_MASKSTORE): Ditto.
9401         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9402         Merge from <sse>_movmsk<ssemodesuffix> and
9403         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
9404         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
9405         iterator.
9406         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9407         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9408         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9409
9410 2011-04-18  Jan Hubicka  <jh@suse.cz>
9411
9412         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9413
9414         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9415         (want_inline_function_called_once_p): Break out the logic from
9416         ipa_inline.
9417         (edge_badness): Ensure that profile is not misupdated.
9418         (lookup_recursive_calls): Prioritize by call frequencies.
9419         (inline_small_functions): Move program size estimates here;
9420         actually process whole queue even when unit growth has been
9421         met. (to properly compute inline_failed reasons and for the
9422         case unit size decrease.) Revisit comments on recursive inlining.
9423         (ipa_inline): Remove unit summary code; first inline hot calls
9424         of functions called once, cold calls next.
9425         (order, nnodes): Remove unused variables.
9426         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9427         (GTFILES): Remove ipa-inline.c
9428         * sel-sched.c (fill_insns): Silence uninitialized var warning.
9429
9430 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9431
9432         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9433
9434 2011-04-18  Jie Zhang  <jie@codesourcery.com>
9435             Richard Earnshaw  <rearnsha@arm.com>
9436
9437         * arm.c (neon_builtin_type_bits): Remove.
9438         (typedef enum neon_builtin_mode): New.
9439         (T_MAX): Don't define.
9440         (typedef enum neon_builtin_datum): Remove bits, codes[],
9441         num_vars and base_fcode.  Add mode, code and fcode.
9442         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9443         VAR10): Change accordingly.
9444         (neon_builtin_data[]): Change accordingly
9445         (arm_init_neon_builtins): Change accordingly.
9446         (neon_builtin_compare): Remove.
9447         (locate_neon_builtin_icode): Remove.
9448         (arm_expand_neon_builtin): Change accordingly.
9449
9450         * arm.h (enum arm_builtins): Move to ...
9451         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9452
9453         * arm.c (arm_builtin_decl): Declare.
9454         (TARGET_BUILTIN_DECL): Define.
9455         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9456         (arm_builtin_decls[]): New.
9457         (arm_init_neon_builtins): Store builtin declarations in
9458         arm_builtin_decls[].
9459         (arm_init_tls_builtins): Likewise.
9460         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
9461         (arm_builtin_decl): New.
9462
9463 2011-04-18  Richard Guenther  <rguenther@suse.de>
9464
9465         * tree.c (upper_bound_in_type): Build properly canonicalized
9466         INTEGER_CSTs.
9467         (lower_bound_in_type): Likewise.
9468
9469 2011-04-18  Richard Guenther  <rguenther@suse.de>
9470
9471         * gimple.h (gimple_call_addr_fndecl): New function.
9472         (gimple_call_fndecl): Use it.
9473         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9474         for direct calls.
9475         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9476         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9477
9478 2011-04-18  Richard Guenther  <rguenther@suse.de>
9479
9480         PR middle-end/48650
9481         * tree.c (build_string): STRING_CST is now derived from tree_typed.
9482
9483 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9484
9485         PR lto/48492
9486         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9487         DECL_IN_CONSTANT_POOL without RTL.
9488
9489 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
9490             Ira Rosen  <ira.rosen@linaro.org>
9491
9492         PR target/48252
9493         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9494         to match neon_vzip/vuzp/vtrn_internal.
9495         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9496         outputs explicitly dependent on both inputs.
9497         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9498
9499 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9500
9501         PR tree-optimization/48616
9502         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9503         whether the shift is by scalar or vector based on whether all SLP
9504         scalar stmts have the same rhs.
9505
9506 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
9507
9508         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9509         memory operands.
9510
9511 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9512
9513         PR target/43700
9514         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9515         registers.
9516
9517 2011-04-17  Jan Hubicka  <jh@suse.cz>
9518
9519         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9520         * cgrpahunit.c (cgraph_finalize_function): Do not set
9521         finalized_by_frontend.
9522         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9523         finalized_by_frontend.
9524
9525 2011-04-17  Jan Hubicka  <jh@suse.cz>
9526
9527         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9528         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9529         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9530         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9531         method.
9532         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9533         gimple-fold.c
9534         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9535
9536 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9537
9538         PR lto/48538
9539         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9540         is non-null before accessing it.
9541         (input_cgraph): Remove trailing spaces.
9542
9543 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9544
9545         * params.def (sms-min-sc): New param flag.
9546         * modulo-sched.c (sms_schedule): Use it.
9547         * doc/invoke.texi (sms-min-sc): Document it.
9548
9549 2011-04-17  Jan Hubicka  <jh@suse.cz>
9550
9551         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9552         present, also set gimple_call_set_cannot_inline.
9553         * ipa-inline.c: Update toplevel comment.
9554         (MAX_TIME): Remove.
9555         (cgraph_clone_inlined_nodes): Fix linebreaks.
9556         (cgraph_check_inline_limits): Restructure to ...
9557         (caller_growth_limits): ... this one; be more tolerant
9558         on growth in nested inline chains; add explanatory comment;
9559         fix stack accounting thinko introduced by previous patch.
9560         (cgraph_default_inline_p): Remove.
9561         (report_inline_failed_reason): New function.
9562         (can_inline_edge_p): New function.
9563         (can_early_inline_edge_p): New function.
9564         (leaf_node_p): Move upwards in file.
9565         (want_early_inline_function_p): New function.
9566         (want_inline_small_function_p): New function.
9567         (want_inline_self_recursive_call_p): New function.
9568         (cgraph_edge_badness): Rename to ...
9569         (edge_badness) ... this one; fix linebreaks.
9570         (update_edge_key): Update call of edge_baddness; add
9571         detailed dump about queue updates.
9572         (update_caller_keys): Use can_inline_edge_p and
9573         want_inline_small_function_p.
9574         (cgraph_decide_recursive_inlining): Rename to...
9575         (recursive_inlining): Use can_inline_edge_p and
9576         want_inline_self_recursive_call_p; simplify and remove no longer
9577         valid FIXME.
9578         (cgraph_set_inline_failed): Remove.
9579         (add_new_edges_to_heap): Use can_inline_edge_p and
9580         want_inline_small_function_p.
9581         (cgraph_decide_inlining_of_small_functions): Rename to ...
9582         (inline_small_functions): ... this one; cleanup; use
9583         can/want predicates; cleanup debug ouput; work edges till fibheap
9584         is exhausted and do not stop once unit growth is reached; remove
9585         later loop processing remaining edges.
9586         (cgraph_flatten): Rename to ...
9587         (flatten_function): ... this one; use can_inline_edge_p
9588         and can_early_inline_edge_p predicates.
9589         (cgraph_decide_inlining): Rename to ...
9590         (ipa_inline): ... this one; remove unreachable nodes before
9591         inlining functions called once; simplify the pass.
9592         (cgraph_perform_always_inlining): Rename to ...
9593         (inline_always_inline_functions): ... this one; use
9594         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9595         (cgraph_decide_inlining_incrementally): Rename to ...
9596         (early_inline_small_functions): ... this one; simplify
9597         using new predicates; cleanup; make dumps prettier.
9598         (cgraph_early_inlining): Rename to ...
9599         (early_inliner): newer inline regular functions into always-inlines;
9600         fix updating of call stmt summaries.
9601         (pass_early_inline): Update for new names.
9602         (inline_transform): Fix formating.
9603         (gate_cgraph_decide_inlining): Rename to ...
9604         (pass_ipa_inline): ... this one.
9605         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9606         * ipa-inline-analysis.c (dump_inline_summary): Update.
9607         (compute_inline_parameters): Do not compute disregard_inline_limits;
9608         look for mismatching arguments.
9609         (estimate_growth): Fix handlig of non-trivial self recursion.
9610         (inline_read_summary): Do not read info->disregard_inline_limits.
9611         (inline_write_summary): Do not write info->disregard_inline_limits.
9612         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9613         and move all checks into can_inline_edge_p predicate; re-enable code
9614         comparing optimization levels.
9615         (expand_call_inline): Do not test inline_forbidden_into_p.
9616         * Makefile.in (ipa-inline.o): Update arguments.
9617
9618 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9619
9620         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9621
9622 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9623
9624         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9625
9626 2011-04-17  Michael Matz  <matz@suse.de>
9627
9628         PR tree-optimization/48622
9629         PR lto/48645
9630         * ipa-inline-analysis.c (inline_read_summary): Read size/time
9631         in same order as they're written.
9632
9633 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9634
9635         * config/pa/predicates.md: Reorganize and simplify predicates.
9636         Eliminate duplicate code checks.
9637         (arith_operand): Rename to arith14_operand
9638         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9639         * config/pa/pa.md: Use renamed operands.
9640         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9641         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9642         arith11_operand, adddi3_operand, indexed_memory_operand,
9643         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9644         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9645         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9646         move_dest_operand, move_src_operand, prefetch_cc_operand,
9647         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9648         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9649         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9650         div_operand, int5_operand, movb_comparison_operator,
9651         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9652         arith_double_operand, ireg_operand, lhs_lshift_operand,
9653         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9654         integer_store_memory_operand): Likewise.
9655         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9656         (integer_store_memory_operand, read_only_operand,
9657         function_label_operand, borx_reg_operand,
9658         non_hard_reg_operand): Likewise.
9659         (eq_neq_comparison_operator): Delete unused operator.
9660         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9661         function_label_operand.
9662         (emit_move_sequence): Likewise.
9663
9664 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9665
9666         * config/i386/sse.md (sseunpackmode): New mode attribute.
9667         (ssepackmode): Ditto.
9668         (vec_pack_trunc_<mode>): Macroize expander from
9669         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9670         (vec_unpacks_lo_<mode>): Macroize expander from
9671         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9672         (vec_unpacks_hi_<mode>): Macroize expander from
9673         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9674         (vec_unpacku_lo_<mode>): Macroize expander from
9675         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9676         (vec_unpacku_hi_<mode>): Macroize expander from
9677         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9678         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9679         ix86_expand_sse4_unpack.
9680         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9681
9682 2011-04-16  Jan Hubicka  <jh@suse.cz>
9683
9684         * cgraphbuild.c: Include ipa-inline.h.
9685         (reset_inline_failed): Use initialize_inline_failed.
9686         * cgraph.c: Include ipa-inline.h.
9687         (cgraph_create_node_1): Do not initialize estimated_growth.
9688         (initialize_inline_failed): More to ipa-inline-analysis.c
9689         (dump_cgraph_node): Do not dump inline flags.
9690         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9691         and disregard_inline_limits flags.
9692         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9693         time, size, estimated_growth.
9694         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9695         Update.
9696         * cgraphunit.c (cgraph_decide_is_function_needed): Use
9697         DECL_DISREGARD_INLINE_LIMITS.
9698         (cgraph_analyze_function): Do not initialize
9699         node->local.disregard_inline_limits.
9700         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9701         inlinable, versionable and disregard_inline_limits.
9702         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9703         cgraph_check_inline_limits, cgraph_default_inline_p,
9704         cgraph_edge_badness, update_caller_keys, update_callee_keys,
9705         add_new_edges_to_heap): Update.
9706         (cgraph_decide_inlining_of_small_function): Update; set
9707         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9708         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9709         cgraph_decide_inlining_incrementally): Update.
9710         * ipa-inline.h (inline_summary): Add inlinable, versionable,
9711         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9712         time, size and estimated_growth parameters.
9713         (estimate_edge_growth): Update.
9714         (initialize_inline_failed): Declare.
9715         * ipa-split.c: Include ipa-inline.h
9716         (execute_split_functions): Update.
9717         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9718         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9719         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9720         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9721         estimated_growth to INT_MIN.
9722         (inline_node_duplication_hook): Likewise.
9723         (dump_inline_summary): Dump new fields.
9724         (compute_inline_parameters): Update.
9725         (estimate_edge_time, estimate_time_after_inlining,
9726         estimate_size_after_inlining, estimate_growth, inline_read_summary,
9727         inline_write_summary):
9728         (initialize_inline_failed): Move here from cgraph.c.
9729         * tree-sra.c: Include ipa-inline.h.
9730         (ipa_sra_preliminary_function_checks): Update.
9731         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9732         ipa-inline.h.
9733
9734 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9735
9736         * config/i386/sse.md (V16): New mode iterator.
9737         (VI1, VI8): Ditto.
9738         (AVXMODEQI, AVXMODEDI): Remove.
9739         (sse2, sse3): New mode attribute.
9740         (mov<mode>): Use V16 mode iterator.
9741         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9742         (push<mode>1): Use V16 mode iterator.
9743         (movmisalign<mode>): Ditto.
9744         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9745         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9746         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9747         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9748         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9749         avx_movdqu<avxmodesuffix>.
9750         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9751         *avx_movdqu<avxmodesuffix>.
9752         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9753         avx_lddqu<avxmodesuffix>.
9754         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9755         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9756         avx_movnt<AVXMODEDI:mode>.
9757         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9758         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9759
9760 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9761
9762         PR target/48629
9763         * haifa-sched.c (prune_ready_list, schedule_block): Use
9764         sched_pressure_p rather than flag_sched_pressure.
9765
9766 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
9767
9768         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9769         cgraph_get_node instead of cgraph_get_create_node.
9770
9771 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
9772
9773         * cfgexpand.c (expand_debug_expr): Use
9774         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9775
9776 2011-04-15  Michael Matz  <matz@suse.de>
9777
9778         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9779         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9780         * function.c (gimplify_parameters): Ditto.
9781         * gimplify.c (gimplify_vla_decl): Ditto.
9782
9783         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9784         (gimple_call_set_alloca_for_var): New inline function.
9785         (gimple_call_alloca_for_var_p): Ditto.
9786         * gimple.c (gimple_build_call_from_tree): Remember
9787         CALL_ALLOCA_FOR_VAR_P state.
9788         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9789
9790         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9791         calls if they were for VLA objects.
9792
9793 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9794
9795         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9796         of ADR_EXPRs.
9797
9798 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9799
9800         PR middle-end/48601
9801         * tree-emutls.c (lower_emutls_function_body): Call
9802         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
9803         result is non-NULL.
9804
9805 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9806
9807         * c-decl.c (detect_field_duplicates): Call
9808         objc_detect_field_duplicates instead of objc_get_interface_ivars.
9809
9810 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
9811
9812         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9813         * gimple.c (gimple_asm_clobbers_memory_p): Define.
9814         * ipa-pure-const.c (check_stmt): Call it.
9815         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9816
9817 2011-04-15  Richard Guenther  <rguenther@suse.de>
9818
9819         PR tree-optimization/48290
9820         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9821         Properly decide inhibiting propagation based on the valueized
9822         operand.  Do loop-closed SSA form preserving here ...
9823         (init_copy_prop): ... not here.
9824
9825 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9826
9827         PR target/48612
9828         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9829         (*ieee_smax<mode>3): Likewise.
9830
9831 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9832
9833         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9834         Replace match_operand with match_dup for the third operand in
9835         these expanders.
9836
9837 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9838
9839         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9840         to track processing of conditionals.  Update all callers.
9841         (try_combine, simplify_if_then_else): Update.
9842
9843 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9844
9845         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9846         -fsched-pressure.
9847
9848 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
9849
9850         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9851         instead of match_operand for operand 3.
9852
9853 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
9854
9855         * recog.h (insn_operand_data): Add an "allows_mem" field.
9856         * genoutput.c (output_operand_data): Initialize it.
9857         * optabs.c (maybe_legitimize_operand_same_code): New function.
9858         (maybe_legitimize_operand): Use it when matching the original
9859         op->value.
9860
9861 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9862
9863         * gimplify.c: Fix issues in comments throughout.
9864         (voidify_wrapper_expr): Fix long line.
9865         (build_stack_save_restore): Likewise.
9866         (gimplify_loop_expr): Likewise.
9867         (gimplify_compound_lval): Likewise.
9868         (gimplify_init_ctor_eval): Likewise.
9869         (gimplify_modify_expr_rhs): Likewise.
9870         (omp_notice_threadprivate_variable): Likewise.
9871
9872 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9873
9874         * cfgexpand.c (expand_call_stmt): Convert the function type to the
9875         original one if this is not a builtin function.
9876
9877 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
9878
9879         PR target/48605
9880         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9881         offset it as needed based on top 2 bits in operands[3], change
9882         MEM mode to SFmode and mask those 2 bits away from operands[3].
9883
9884 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9885
9886         * c-parser.c (c_parser_objc_protocol_definition): Updated for
9887         change from objc_declare_protocols() to objc_declare_protocol().
9888
9889 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
9890
9891         * config/i386/sse.md (sse4_1): New mode attribute.
9892         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9893         avx_blend<ssemodesuffix><avxmodesuffix> and
9894         sse4_1_blend<ssemodesuffix> using VF mode iterator.
9895         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9896         avx_blendv<ssemodesuffix><avxmodesuffix> and
9897         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9898         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9899         avx_dp<ssemodesuffix><avxmodesuffix> and
9900         sse4_1_dp<ssemodesuffix> using VF mode iterator.
9901         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9902         (sse4_1_packusdw): Merge with *avx_packusdw.
9903         (sse4_1_pblendvb): Merge with *avx_pblendvb.
9904         (sse4_1_pblendw): Merge with *avx_pblendw.
9905         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9906         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9907         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9908         VF mode iterator.
9909         (sse4_1_round<ssescalarmodesuffix>): Merge with
9910         *avx_round<ssescalarmodesuffix>.
9911         (aesenc): Merge with *avx_aesenc.
9912         (aesenclast): Merge with *avx_aesenclast.
9913         (aesdec): Merge with *avx_aesdec.
9914         (aesdeclast): Merge with *avx_aesdeclast.
9915         (pclmulqdq): Merge with *pclmulqdq.
9916         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9917         New predicate.
9918         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9919
9920 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
9921
9922         PR middle-end/48608
9923         * cfgexpand.c (get_decl_align_unit): Renamed to ...
9924         (align_local_variable): This.  Update DECL_ALIGN.
9925         (add_stack_var): Updated.
9926         (expand_one_stack_var): Likewise.
9927
9928 2011-04-14  Richard Guenther  <rguenther@suse.de>
9929
9930         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9931         Remove.
9932         (dse_initialize_block_local_data, dse_leave_block,
9933         record_voperand_set, get_stmt_uid): Likewise.
9934         (dse_possible_dead_store_p): Allow any kind of killing stmt.
9935         (dse_optimize_stmt): Remove voperand set handling code.
9936         Simplify and improve to handle any kind of killing stmt.
9937         (dse_record_phi): Remove.
9938         (dse_enter_block): Simplify.
9939         (tree_ssa_dse): Likewise.
9940         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9941
9942 2011-04-14  Jan Hubicka  <jh@suse.cz>
9943
9944         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9945         * cgraph.h (struct inline_summary): Move to ipa-inline.h
9946         (cgraph_local_info): Remove inline_summary.
9947         * ipa-cp.c: Include ipa-inline.h.
9948         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9949         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9950         accesor.
9951         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9952         (input_overwrite_node): Do not set inline summary.
9953         (input_node): Do not stream inline summary.
9954         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9955         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9956         growth; we do not have inline parameters computed for that anyway.
9957         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9958         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9959         (inline_summary_t): New type and VECtor.
9960         (debug_inline_summary, dump_inline_summaries): Declare.
9961         (inline_summary): Use VOCtor.
9962         (estimate_edge_growth): Kill hack computing call stmt size directly.
9963         * lto-section-in.c (lto_section_name): Add inline section.
9964         * ipa-inline-analysis.c: Include lto-streamer.h
9965         (node_removal_hook_holder, node_duplication_hook_holder): New holders
9966         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9967         (inline_summary_vec): Define.
9968         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9969         dump_inline_summaries): New functions.
9970         (estimate_function_body_sizes): Properly compute size/time of outgoing
9971         calls.
9972         (compute_inline_parameters): Alloc inline_summary; do not compute
9973         size/time of incomming calls.
9974         (estimate_edge_time): Avoid missing time summary hack.
9975         (inline_read_summary): Read inline summary info.
9976         (inline_write_summary): Write inline summary info.
9977         (inline_free_summary): Free all hooks and inline summary vector.
9978         * lto-streamer.h: Add LTO_section_inline_summary section.
9979         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9980         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9981
9982 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9983
9984         * tree-vectorizer.h (vect_strided_store_supported): Add a
9985         HOST_WIDE_INT argument.
9986         (vect_strided_load_supported): Likewise.
9987         (vect_permute_store_chain): Return void.
9988         (vect_transform_strided_load): Likewise.
9989         (vect_permute_load_chain): Delete.
9990         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9991         count argument.  Check that the count is a power of two.
9992         (vect_strided_load_supported): Likewise.
9993         (vect_permute_store_chain): Return void.  Update after above changes.
9994         Assert that the access is supported.
9995         (vect_permute_load_chain): Likewise.
9996         (vect_transform_strided_load): Return void.
9997         * tree-vect-stmts.c (vectorizable_store): Update calls after
9998         above interface changes.
9999         (vectorizable_load): Likewise.
10000         (vect_analyze_stmt): Don't check for strided powers of two here.
10001
10002 2011-04-14  Richard Guenther  <rguenther@suse.de>
10003
10004         PR tree-optimization/48590
10005         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10006         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10007         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10008         BUILT_IN_STACK_SAVE.
10009         * tree-ssa-dce.c (propagate_necessity): Handle
10010         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10011
10012 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
10013
10014         * c-parser.c (c_parser_objc_class_declaration): Updated call to
10015         objc_declare_class.
10016
10017 2011-04-14  Richard Guenther  <rguenther@suse.de>
10018
10019         * tree.h (get_object_alignment_1): Declare.
10020         * builtins.c (get_object_alignment_1): Split out worker from ...
10021         (get_object_alignment): ... here.
10022         * fold-const.c (get_pointer_modulus_and_residue): Use
10023         get_object_alignment_1.
10024
10025 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
10026
10027         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10028         type parameter.
10029         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10030         parameter.  Generalise code to handle arrays as well as vectors.
10031         (vect_setup_realignment): Update accordingly.
10032         * tree-vect-stmts.c (vectorizable_store): Likewise.
10033         (vectorizable_load): Likewise.
10034
10035 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
10036
10037         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10038         within the per-copy loop.
10039
10040 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
10041
10042         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10043         in the dump file.
10044
10045 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
10046
10047         * doc/options.texi (Negative): Explicitly mention that the
10048         Negative chain must be circular.
10049
10050 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
10051
10052         * function.h (block_chainon): Declare.
10053         * function.c (block_chainon): Define.
10054
10055 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
10056             Eric Weddington  <eric.weddington@atmel.com>
10057             Georg-Johann Lay  <avr@gjlay.de>
10058
10059         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
10060         New Includes
10061         (avr_init_builtins, avr_expand_builtin,
10062         avr_expand_delay_cycles, avr_expand_unop_builtin,
10063         avr_expand_binop_builtin ): New functions.
10064         (avr_builtin_id): New enum
10065         (struct avr_builtin_description): New struct
10066         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10067         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10068
10069         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
10070         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
10071         UNSPECV_DELAY_CYCLES): new enumeration values
10072         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10073         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10074         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10075         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10076         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10077         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10078         "fmulsu"): New insns
10079
10080         * config/avr/avr-c.c: fix line endings
10081         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10082         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10083         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10084         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10085         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
10086
10087         * doc/extend.texi (AVR Built-in Functions): New node
10088         (Target Builtins): Add documentation of AVR
10089         built-in functions.
10090
10091 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
10092
10093         PR target/44643
10094         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10095         alone. Error if non-const data has attribute progmem.
10096
10097 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
10098
10099         * tree.h (struct tree_constructor): Include tree_typed instead of
10100         tree_common.
10101         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10102         TS_TYPED instead of TS_COMMON.
10103
10104 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
10105
10106         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10107         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10108         (sse2_psadbw): Merge with *avx_psadbw.
10109         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10110         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10111         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10112         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10113         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10114         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10115         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10116         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10117         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10118         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10119         (ssse3_palignrti): Merge with *avx_palignrti.
10120
10121 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
10122
10123         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10124         * tree-ssanames.c (fini_ssanames): VEC_free it.
10125         (make_ssa_name_fn): Update for VECness of free_ssanames.
10126         (release_ssa_name, release_dead_ssa_names): Likewise.
10127         * tree.h (struct tree_ssa_name): Include tree_typed instead of
10128         tree_common.
10129         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10130         TS_TYPED instead of TS_COMMON.
10131
10132 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
10133
10134         * postreload-gcse.c (gcse_after_reload_main): Add calls to
10135         statistics_counter_event.
10136         * tree-ssa-copyrename.c (stats): Define.
10137         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
10138         statistics_counter_event.
10139         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10140         (bswap_stats, widen_mul_stats): Define.
10141         (insert_reciprocals): Increment rdivs_inserted.
10142         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
10143         rfuncs_inserted.  Add calls to statistics_counter_event.
10144         (execute_cse_sincos_1): Increment inserted.
10145         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
10146         statistics_counter_event.
10147         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
10148         of bswap_stats.  Add calls to statistics_counter_event.
10149         (convert_mult_to_widen): Increment widen_mults_inserted.
10150         (convert_plusminus_to_widen): Increment maccs_inserted.
10151         (convert_mult_to_fma): Increment fmas_inserted.
10152         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
10153         calls to statistics_counter_event.
10154
10155 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
10156
10157         PR rtl-optimization/48455
10158         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10159         `temp_costs->mem_cost'.
10160
10161 2011-04-13  Jan Hubicka  <jh@suse.cz>
10162
10163         * ipa-inline.h: New file.
10164         * ipa-inline-analysis.c: New file. Broken out of ...
10165         * ipa-inline.c: ... this file; update toplevel comment;
10166         include ipa-inline.h
10167         (inline_summary): Move to ipa-inline.h
10168         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10169         ipa-inline-analysis.c.
10170         (cgraph_estimate_time_after_inlining): Rename to
10171         estiamte_time_after_inlining; move to ipa-inline-analysis.c
10172         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10173         to estimate_edge_growth.
10174         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10175         rename to estimate_size_after_inlining.
10176         (cgraph_mark_inline_edge): Update for new naming convention.
10177         (cgraph_check_inline_limits): Likewise.
10178         (cgraph_edge_badness): Likewise.
10179         (cgraph_decide_recursive_inlining): Likewise.
10180         (cgraph_decide_inlining_of_small_functions): Likewise.
10181         (cgraph_decide_inlining_incrementally): Likewise.
10182         (cgraph_estimate_growth): Rename to estimate_growth; move to
10183         ipa-inline-analysis.c.
10184         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10185         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10186         (compute_inline_parameters): Likewise.
10187         (compute_inline_parameters_for_current): Likewise.
10188         (pass_inline_parameters): Likewise.
10189         (inline_indirect_intraprocedural_analysis): Likewise.
10190         (analyze_function): Rename to inline_analyze_function; likewise.
10191         (add_new_function): Move to ipa-inline-analysis.c.
10192         (inline_generate_summary): Likewise.
10193         (inline_read_summary): Likewise.
10194         (inline_write_summary): Likewise.
10195         * Makefile.in (ipa-inline-analysis.c): New file.
10196
10197 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10198
10199         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10200         * configure: Regenerate.
10201
10202 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
10203
10204         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10205         instead of tree_common.
10206         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10207         Likewise.
10208         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10209         TS_TYPED rather than TS_COMMON.
10210         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10211
10212 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
10213
10214         PR target/45263
10215         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10216         r20 around calls of __tablejump_elpm__
10217
10218 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
10219
10220         PR middle-end/48591
10221         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10222         NULL.
10223         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10224
10225 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
10226
10227         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10228         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10229         (cfi_vec): New typedef.
10230         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10231         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10232         (cie_cfi_vec): New static variable.
10233         (cie_cfi_head): Delete.
10234         (add_cfi): Accept a cfi_vec * as first argument. All callers and
10235         declaration changed. Use vector rather than list operations.
10236         (new_cfi): Don't initialize the dw_cfi_next field.
10237         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10238         rather than list operations.
10239         (lookup_cfa): Use vector rather than list operations.
10240         (output_cfis): New argument upto. Accept a cfi_vec rather than
10241         a dw_cfi_ref list head as argument. All callers changed.
10242         Iterate over the vector using upto as a maximum index.
10243         (output_all_cfis): New static function.
10244         (output_fde): Use vector rather than list operations. Use the
10245         new upto argument for output_cfis rather than manipulating a
10246         list.
10247         (dwarf2out_begin_prologue): Change initializations to match
10248         new struct members.
10249         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10250         from the vector length rather than searching for the end of a list.
10251         Use output_all_cfis.
10252         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10253
10254 2011-04-13  Nick Clifton  <nickc@redhat.com>
10255
10256         * config/rx/rx.md (movmemsi): Do not use this pattern when
10257         volatile pointers are involved.
10258
10259 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
10260
10261         * config/i386/sse.md (pinsrbits): Remove.
10262         (sse2_packsswb): Merge with *avx_packsswb.
10263         (sse2_packssdw): Merge with *avx_packssdw.
10264         (sse2_packuswb): Merge with *avx_packuswb.
10265         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10266         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10267         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10268         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10269         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10270         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10271         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10272         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10273         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10274         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10275         (sse2_loadld): Merge with *avx_loadld.
10276         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10277         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10278         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10279         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10280         (vec_concatv2di): Merge with *vec_concatv2di_avx.
10281
10282 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
10283
10284         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10285         calling TREE_CHAIN.
10286         * print-tree.c (print_node): Likewise.
10287         * tree-inline.c (copy_tree_r): Likewise.
10288         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10289         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10290         instead of TS_COMMON.
10291         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10292         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10293         (copy_node_stat): Zero TREE_CHAIN only if necessary.
10294         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10295         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10296         ...and these...
10297         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10298         * tree.h: ...here.
10299         (TREE_CHAIN): Check for a TS_COMMON structure.
10300         (TREE_TYPE): Check for a TS_TYPED structure.
10301
10302 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
10303
10304         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10305         cgraph_get_create_node instead of cgraph_node.
10306
10307 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10308
10309         * c-parser.c (c_parser_initelt): Updated call to
10310         objc_build_message_expr.
10311         (c_parser_postfix_expression): Likewise.
10312
10313 2011-04-12  Kai Tietz  <ktietz@redhat.com>
10314
10315         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10316         MASK_MS_BITFIELD_LAYOUT bit.
10317
10318 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10319
10320         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10321         assert it is always true.
10322         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10323         moves.
10324
10325 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10326
10327         * c-parser.c (c_lex_one_token): Rewritten conditional used when
10328         compiling Objective-C to be more efficient.
10329
10330 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
10331
10332         * opts-common.c (decode_cmdline_options_to_array): Remove variable
10333         argv_copied.
10334
10335 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10336
10337         * recog.h, genoutput.c, optabs.c: Revert last patch.
10338
10339 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10340
10341         PR target/48090
10342         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10343
10344 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10345
10346         * recog.h (insn_operand_data): Add an "allows_mem" field.
10347         * genoutput.c (output_operand_data): Initialize it.
10348         * optabs.c (maybe_legitimize_operand_same_code): New function.
10349         (maybe_legitimize_operand): Use it when matching the original
10350         op->value.
10351
10352 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10353
10354         * genpreds.c (process_define_predicate): Move most processing
10355         to gensupport.c.  Continue to validate the expression.
10356         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10357         (process_define_predicate): Move processing to gensupport.c.
10358         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10359         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10360         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
10361         argument.
10362         (valid_predicate_name_p): New function, split out from old
10363         genpreds.c:process_define_predicate.
10364         (process_define_predicate): New function, combining code from
10365         old genpreds.c and genrecog.c functions.
10366         (process_rtx): Call it for DEFINE_PREDICATE and
10367         DEFINE_SPECIAL_PREDICATE.
10368
10369 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10370
10371         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10372         size of a '%A' memory reference.
10373         (T_DREG, T_QREG): New neon_builtin_type_bits.
10374         (arm_init_neon_builtins): Assert that the load and store operands
10375         are neon_struct_operands.
10376         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10377         (NEON_ARG_MEMORY): New builtin_arg.
10378         (neon_dereference_pointer): New function.
10379         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10380         Handle NEON_ARG_MEMORY.
10381         (arm_expand_neon_builtin): Update after above interface changes.
10382         Use NEON_ARG_MEMORY for loads and stores.
10383         * config/arm/predicates.md (neon_struct_operand): New predicate.
10384         * config/arm/iterators.md (V_two_elem): Tweak formatting.
10385         (V_three_elem): Use BLKmode for accesses that have no associated mode.
10386         (V_four_elem): Tweak formatting.
10387         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10388         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10389         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10390         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10391         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10392         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10393         (neon_vst4<mode>): Replace pointer operand with a memory operand.
10394         Use %A in the output template.
10395         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10396         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10397         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10398         the width of the memory access.  Remove post-increment.
10399         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10400
10401 2011-04-12  Nick Clifton  <nickc@redhat.com>
10402
10403         * config/v850/v850.c (expand_prologue): Do not use the CALLT
10404         instruction for interrupt handlers if the target is the basic V850
10405         architecture.
10406         (expand_epilogue): Likewise.
10407
10408 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10409
10410         PR rtl-optimization/48549
10411         * combine.c (propagate_for_debug): Also stop after BB_END of
10412         this_basic_block.  Process LAST and just stop processing after it.
10413         (combine_instructions): If last_combined_insn has been deleted,
10414         set last_combined_insn to its PREV_INSN.
10415
10416 2011-04-12  Richard Guenther  <rguenther@suse.de>
10417
10418         PR tree-optimization/46076
10419         * gimple.h (struct gimple_statement_call): Add fntype field.
10420         (gimple_call_fntype): Adjust.
10421         (gimple_call_set_fntype): New function.
10422         * gimple.c (gimple_build_call_1): Set the call function type.
10423         * gimplify.c (gimplify_call_expr): Preserve the function
10424         type the frontend used for the call.
10425         (gimplify_modify_expr): Likewise.
10426         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10427         function type.
10428         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10429         function type.
10430         * tree-ssa.c (useless_type_conversion_p): Function pointer
10431         conversions are useless.
10432
10433 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10434
10435         * cgraph.h (cgraph_node): Remove function declaration.
10436         (cgraph_create_node): Declare.
10437         (cgraph_get_create_node): Likewise.
10438         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10439         Updated all callers.
10440         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10441         the decl does not already exist.  Call cgraph_get_create_node instead
10442         of cgraph_node.
10443         (cgraph_get_create_node): New function.
10444         (cgraph_same_body_alias): Update comment.
10445         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10446         assert it does not return NULL.
10447         (cgraph_update_edges_for_call_stmt): Likewise.
10448         (cgraph_clone_edge): Likewise.
10449         (cgraph_create_virtual_clone): Likewise.
10450         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10451         instead of cgraph_node.
10452         (cgraph_add_new_function): Call cgraph_create_node or
10453         cgraph_get_create_node instead of cgraph_node.
10454         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10455         instead of cgraph_node.
10456         (record_eh_tables): Likewise.
10457         (mark_address): Likewise.
10458         (mark_load): Likewise.
10459         (build_cgraph_edges): Call cgraph_get_create_node instead
10460         of cgraph_node.
10461         (rebuild_cgraph_edges): Likewise.
10462         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10463         instead of cgraph_node.
10464         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10465         cgraph_node.
10466         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10467         cgraph_create_node instead of cgraph_node.
10468         * c-decl.c (finish_function): Call cgraph_get_create_node instead
10469         of cgraph_node.
10470         * lto-cgraph.c (input_node): Likewise.
10471         * lto-streamer-in.c (input_function): Likewise.
10472         * varasm.c (mark_decl_referenced): Likewise.
10473         (assemble_alias): Likewise.
10474
10475 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10476
10477         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10478         instead of cgraph_node and assert it does not return NULL.
10479         * lto-streamer-in.c (lto_read_body): Likewise.
10480         * omp-low.c (new_omp_context): Likewise.
10481         (create_task_copyfn): Likewise.
10482         * tree-emutls.c (lower_emutls_function_body): Likewise.
10483         * matrix-reorg.c (transform_allocation_sites): Likewise.
10484
10485 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10486
10487         PR c/48552
10488         * c-typeck.c (build_asm_expr): Error out on attempts to use
10489         void type outputs or inputs for constraints that allow reg or
10490         don't allow memory.
10491
10492 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
10493             Richard Earnshaw  <rearnsha@arm.com>
10494
10495         PR target/48250
10496         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10497         to use sign-magnitude offsets. Reject unsupported unaligned
10498         cases. Add detailed description in comments.
10499         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10500         condition from TARGET_32BIT to TARGET_ARM.
10501
10502 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
10503
10504         * tree.h (struct typed_tree): New.
10505         (struct tree_common): Include it instead of tree_base.
10506         (TREE_TYPE): Update for new location of type field.
10507         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10508         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10509         (union tree_node): Add typed field.
10510         * treestruct.def (TS_TYPED): New.
10511         * lto-streamer.c (check_handled_ts_structures): Handle it.
10512         * tree.c (MARK_TS_TYPED): New macro.
10513         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10514
10515 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10516
10517         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10518         (force_nonfallthru): Do not alter the loop nest if no basic block
10519         was created.
10520
10521 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10522
10523         * config/i386/sse.md (VI): New mode iterator.
10524         (SSEMODEI): Remove.
10525         (AVX256MODEI): Ditto.
10526         (AVXMODEF4P): Ditto.
10527         (avxvecpsmode): Ditto.
10528         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
10529         (sse2_andnot<mode>3): New expander.
10530         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10531         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
10532         (<any_logic:code><mode>3): Use VI mode iterator.
10533         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10534         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
10535         (*andnottf3): Handle AVX three-operand constraints.
10536         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10537
10538 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10539             Robert Millan  <rmh@gnu.org>
10540
10541         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10542         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10543         GNU_USER_DYNAMIC_LINKER64): Define.
10544         (REG_NAME): Don't undefine.
10545         (MD_UNWIND_SUPPORT): Undefine.
10546         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10547         (REG_NAME): Don't undefine.
10548         (MD_UNWIND_SUPPORT): Undefine.
10549         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10550
10551 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10552
10553         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10554         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10555
10556 2011-04-11  Xinliang David Li  <davidxl@google.com>
10557
10558         * value-profile.c (check_ic_target): New function.
10559         (gimple_ic_transform): Sanity check indirect call target.
10560         * gimple-low.c (gimple_check_call_args): Interface change.
10561         (gimple_check_call_matching_types): New function.
10562         * tree-inline.c (tree_can_inline_p): Call new function.
10563
10564 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
10565
10566         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10567         tree-pretty-print.h & realmpfr.h.
10568
10569 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
10570
10571         PR middle-end/48464
10572         * ira.c (setup_pressure_classes): Fix typo in loop condition.
10573         (setup_allocno_and_important_classes): Ditto.
10574
10575 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10576
10577         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10578         GNU_USER_DYNAMIC_LINKER.
10579         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10580         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10581         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10582         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10583         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10584         GNU_USER_TARGET_OS_CPP_BUILTINS.
10585         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10586         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10587         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10588         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10589         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10590         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10591         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10592         GNU_USER_TARGET_OS_CPP_BUILTINS.
10593         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10594         GNU_USER_DYNAMIC_LINKER.
10595         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10596         GNU_USER_TARGET_OS_CPP_BUILTINS.
10597         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10598         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10599         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10600         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10601         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10602         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10603         GNU_USER_DYNAMIC_LINKER64): Remove.
10604         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10605         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10606         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10607         GNU_USER_DYNAMIC_LINKER.
10608         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10609         GNU_USER_TARGET_OS_CPP_BUILTINS.
10610         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10611         GNU_USER_TARGET_OS_CPP_BUILTINS.
10612         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10613         to GNU_USER_TARGET_OS_CPP_BUILTINS.
10614         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10615         GNU_USER_TARGET_OS_CPP_BUILTINS.
10616         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10617         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10618         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10619         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10620         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10621         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10622         GNU_USER_DYNAMIC_LINKER.
10623         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10624         GNU_USER_TARGET_OS_CPP_BUILTINS.
10625         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10626         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10627         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10628         GNU_USER_DYNAMIC_LINKER.
10629         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10630         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10631         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10632         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10633         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10634         GNU_USER_DYNAMIC_LINKER.
10635         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10636         GNU_USER_DYNAMIC_LINKERN32.
10637         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10638         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
10639         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
10640         GNU_USER_DYNAMIC_LINKER32.
10641         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10642         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10643         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10644         GNU_USER_DYNAMIC_LINKER.
10645         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10646         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10647         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10648         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10649         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10650         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10651         GNU_USER_DYNAMIC_LINKER32.
10652         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10653         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10654         GNU_USER_DYNAMIC_LINKER.
10655         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10656         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10657         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10658         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
10659         GNU_USER_DYNAMIC_LINKER64.
10660         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10661         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10662         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10663         GNU_USER_DYNAMIC_LINKER.
10664         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10665         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10666         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10667         GNU_USER_DYNAMIC_LINKER.
10668         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10669         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10670         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10671         GNU_USER_DYNAMIC_LINKER32.
10672         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10673         GNU_USER_DYNAMIC_LINKER64.
10674         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10675         GNU_USER_DYNAMIC_LINKER64.
10676         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10677         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10678         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10679         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10680         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10681
10682 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10683
10684         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
10685         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10686         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10687         GNU_USER_DYNAMIC_LINKER.
10688         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10689         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
10690         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10691         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10692         GNU_USER_DYNAMIC_LINKER64.
10693         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10694         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10695         GNU_USER_LINK_EMULATION.
10696         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10697         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10698         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10699         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10700         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10701         CPP_SPEC, CC1_SPEC): Remove.
10702         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10703         (GNU_USER_DYNAMIC_LINKER): Define.
10704         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10705         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10706         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10707         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10708         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10709         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10710         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10711         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10712         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10713         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10714         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10715         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10716         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10717         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10718         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10719         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10720         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10721         GNU_USER_DYNAMIC_LINKER.
10722         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10723         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10724         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10725         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10726         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10727         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10728         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10729         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10730         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10731         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10732
10733 2011-04-11  Kai Tietz  <ktietz@redhat.com>
10734
10735         PR target/9601
10736         PR target/11772
10737         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10738         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10739         comment.
10740         (ix86_is_msabi_thiscall): Removed.
10741         (ix86_is_type_thiscall): Likewise.
10742         (ix86_get_callcvt): New function.
10743         (ix86_comp_type_attributes): Simplify check.
10744         (ix86_function_regparm): Use ix86_get_callcvt for calling
10745         convention attribute checks.
10746         (ix86_return_pops_args): Likewise.
10747         (ix86_static_chain): Likewise.
10748         (x86_this_parameter): Likewise.
10749         (x86_output_mi_thunk): Likewise.
10750         (ix86_function_type_abi): Optimize check for types without attributes.
10751         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10752         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10753         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10754         by flag-values.
10755         (IX86_BASE_CALLCVT): Helper macro.
10756         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10757         Use ix86_get_callcvt for calling convention attribute checks and avoid
10758         symbol-decoration for stdcall in TARGET_RTD case.
10759         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10760         Likewise.
10761         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10762         for declaration.
10763
10764 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10765
10766         * config/i386/sse.md (VI_128): New mode iterator.
10767         (VI12_128): Rename from SSEMODE12.
10768         (VI14_128): Rename from SSEMODE14.
10769         (VI124_128): New mode iterator.
10770         (VI24_128): Rename from SSEMODE248.
10771         (VI248_128): Rename from SSEMODE248.
10772         (SSEMODE124C8): Remove.
10773         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10774         (*sse2_<plusminus_insn><mode>3): Merge with
10775         *avx_<plusminus_insn><mode>3.
10776         (*mulv8hi3): Merge with *avx_mulv8hi3.
10777         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10778         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10779         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10780         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10781         (ashr<mode>3): Merge with *avx_ashr<mode>3.
10782         (lshr<mode>3): Merge with *avx_lshr<mode>3.
10783         (ashl<mode>3): Merge with *avx_ashl<mode>3.
10784         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10785         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10786         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10787         (*<smaxmin:code>v8hi3): Ditto.
10788         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10789         (*<smaxmin:code>v16qi3): Ditto.
10790         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10791         (*sse2_eq<mode>3): Ditto.
10792         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10793         (*sse2_gt<mode>3): Ditto.
10794         (vcondv2di): Split out of vcond<mode>.
10795         (vconduv2di): Split out of vcondu<mode>.
10796
10797 2011-04-11  Richard Guenther  <rguenther@suse.de>
10798
10799         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10800         before calling tree_low_cst.
10801
10802 2011-04-11  Richard Guenther  <rguenther@suse.de>
10803
10804         * stor-layout.c (layout_type): Compute all array index size operations
10805         in the original type.
10806         (initialize_sizetypes): Add comment.
10807         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10808
10809 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10810
10811         * common.opt (Tbss=, Tdata=, Ttext=): New options.
10812
10813 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10814
10815         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10816         of cgraph_node, handle NULL return value.
10817         (cgraph_global_info): Likewise.
10818         (cgraph_rtl_info): Likewise.
10819         * tree-inline.c (estimate_num_insns): Likewise.
10820         * gimplify.c (unshare_body): Likewise.
10821         (unvisit_body): Likewise.
10822         (gimplify_body): Likewise.
10823         * predict.c (optimize_function_for_size_p): Likewise.
10824         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10825         (call_may_clobber_ref_p_1): Likewise.
10826         * varasm.c (function_section_1): Likewise.
10827         (assemble_start_function): Likewise.
10828
10829 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10830
10831         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10832         of cgraph_node.
10833         * final.c (rest_of_clean_state): Likewise.
10834         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10835         * passes.c (pass_init_dump_file): Likewise.
10836         (execute_all_ipa_transforms): Likewise.
10837         (function_called_by_processed_nodes_p): Likewise.
10838         * predict.c (maybe_hot_frequency_p): Likewise.
10839         (probably_never_executed_bb_p): Likewise.
10840         (compute_function_frequency): Likewise.
10841         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10842         (unnest_nesting_tree_1): Likewise.
10843         (lower_nested_functions): Likewise.
10844         * tree-optimize.c (execute_fixup_cfg): Likewise.
10845         (tree_rest_of_compilation): Likewise.
10846         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10847         * tree-sra.c (ipa_early_sra): Likewise.
10848         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10849         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10850         * ipa.c (record_cdtor_fn): Likewise.
10851         * ipa-inline.c (cgraph_early_inlining): Likewise.
10852         (compute_inline_parameters_for_current): Likewise.
10853         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10854         * ipa-pure-const.c (local_pure_const): Likewise.
10855         * ipa-split.c (split_function): Likewise.
10856         (execute_split_functions): Likewise.
10857         * cgraphbuild.c (build_cgraph_edges): Likewise.
10858         (rebuild_cgraph_edges): Likewise.
10859         (cgraph_rebuild_references): Likewise.
10860         (remove_cgraph_callee_edges): Likewise.
10861         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10862         (verify_cgraph_node): Likewise.
10863         (cgraph_analyze_functions): Likewise.
10864         (cgraph_preserve_function_body_p): Likewise.
10865         (save_inline_function_body): Likewise.
10866         (save_inline_function_body): Likewise.
10867         * tree-inline.c (copy_bb): Likewise.
10868         (optimize_inline_calls): Likewise.
10869
10870 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10871
10872         PR tree-optimization/48195
10873         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10874         ipa_check_create_edge_args.
10875         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10876         ipa_check_create_edge_args.
10877         * ipa-inline.c (inline_generate_summary): Do not call
10878         ipa_check_create_node_params and ipa_check_create_edge_args.
10879         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10880         ipa_check_create_edge_args.
10881
10882 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
10883
10884         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10885         instead of loop.
10886         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10887         * function.c (record_hard_reg_sets): Likewise.
10888         * ira.c (compute_regs_asm_clobbered): Likewise.
10889         * sched-deps.c (sched_analyze_1): Likewise.
10890         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10891
10892 2011-04-09  Xinliang David Li  <davidxl@google.com>
10893
10894         PR tree-optimization/PR48484
10895         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10896         has_valid_pred lazily
10897
10898 2011-04-09  Duncan Sands  <baldrick@free.fr>
10899
10900         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10901
10902 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10903
10904         * combine.c (combine_validate_cost): Adjust comments.  Set registered
10905         cost of I0 to zero at the end, if any.
10906
10907 2011-04-08  Xinliang David Li  <davidxl@google.com>
10908
10909         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10910         to insane profile data.
10911
10912 2011-04-08  Xinliang David Li  <davidxl@google.com>
10913
10914         * ipa-cp.c (ipcp_update_profiling): Correct
10915          negative scale factor due to insane profile data.
10916
10917 2011-04-08  Xinliang David Li  <davidxl@google.com>
10918
10919         * final.c (dump_basic_block_info): New function.
10920         (final): Dump basic block.
10921         (final_scan_insn): Remove old dump.
10922
10923 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10924
10925         PR target/47829
10926         * config.gcc (i386-*-freebsd): Disable unwind table generation for
10927         crtbegin/crtend.
10928
10929 2011-04-08  Michael Matz  <matz@suse.de>
10930
10931         PR middle-end/48389
10932         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10933         functions.
10934         (rebuild_jump_labels): Call rebuild_jump_labels_1.
10935         * rtl.h (rebuild_jump_labels_chain): Declare.
10936         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10937         insns inserted on edges.
10938
10939 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
10940
10941         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10942         * config/arm/arm-arches.def: New.
10943         * config/arm/arm-opts.h: New.
10944         * config/arm/genopt.sh: New.
10945         * config/arm/arm-tables.opt: New (generated).
10946         * config/arm/arm.c (arm_handle_option, arm_target_help,
10947         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10948         (all_architectures): Get most table contents from arm-arches.def.
10949         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10950         arm_selected_tune here.
10951         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10952         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10953         (march=, mcpu=, mtune=): Use Enum and Var.
10954         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10955         (arm.o): Update dependencies.
10956
10957 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
10958
10959         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10960         of header_file.
10961         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10962         (write_typed_alloc_defns): Likewise.
10963         (main): Calls write_typed_alloc_defns with output_header.
10964
10965 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
10966
10967         PR inline-asm/48435
10968         * ira-color.c (setup_profitable_hard_regs): Add comments.
10969         Don't take prohibited hard regs into account.
10970         (setup_conflict_profitable_regs): Rename to
10971         get_conflict_profitable_regs.
10972         (check_hard_reg_p): Check prohibited hard regs.
10973
10974 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
10975
10976         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10977         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10978         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10979
10980 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10981
10982         PR target/48366
10983         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10984         move from floating point to shift amount register.
10985         (emit_move_sequence): Remove secondary reload support for floating
10986         point to shift amount amount register copies.
10987         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10988         amount register copies.
10989         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10990         register, return false if mode isn't a scalar integer mode.
10991         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10992
10993 2011-04-08  Richard Guenther  <rguenther@suse.de>
10994
10995         * gimple.c (gimple_call_flags): Remove kludge.
10996
10997 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10998
10999         * sel-sched.c (sel_region_init): Move call to
11000         sel_setup_region_sched_flags after setup_current_loop_nest.
11001
11002 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
11003
11004         PR rtl-optimization/48272
11005         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11006         init_insn_reg_pressure_info.  Adjust a caller.
11007         * sched-int.h (init_insn_reg_pressure_info): Declare.
11008         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11009         when sched-pressure is enabled.
11010
11011 2011-04-08  Richard Guenther  <rguenther@suse.de>
11012
11013         * gimple.c (gimple_set_modified): Do not queue calls to
11014         MODIFIED_NORETURN_CALLS here ...
11015         * tree-ssa-operands.c (update_stmt_operands): ... but here.
11016
11017 2011-04-08  Richard Guenther  <rguenther@suse.de>
11018
11019         PR lto/48467
11020         * toplev.c (lang_dependent_init): Do not open asm_out_file
11021         in WPA mode, nor perform debug machinery initialization.
11022         (finalize): Do not unlink asm_out_file in WPA mode.
11023
11024 2011-04-08  Richard Guenther  <rguenther@suse.de>
11025
11026         * gimple.h (gimple_call_fntype): New function.
11027         (gimple_call_return_type): Use it.
11028         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11029         * gimple-low.c (gimple_check_call_args): Likewise.
11030         * gimple.c (gimple_call_flags): Likewise.
11031         (gimple_call_arg_flags): Likewise.
11032         (gimple_call_return_flags): Likewise.
11033         * tree-cfg.c (verify_gimple_call): Likewise.
11034         (do_warn_unused_result): Likewise.
11035         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11036         * value-prof.c (gimple_ic_transform): Fix fndecl check.
11037
11038 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
11039
11040         PR rtl-optimization/48235
11041         * sel-sched.c (code_motion_process_successors): Recompute the last
11042         insn in basic block if control flow changed.
11043         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
11044         Update condition for ilist_remove.
11045
11046 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
11047
11048         PR rtl-optimization/48302
11049         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11050         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
11051         it to record added preheader blocks.
11052         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
11053         on to sel_add_loop_preheaders.
11054         (sel_region_init): Move call to setup_current_loop_nest after
11055         sel_init_bbs.
11056
11057 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
11058
11059         PR target/48273
11060         * cfgloop.h (loop_has_exit_edges): New helper.
11061         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11062         non-clonable.
11063         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11064         that have no exit edges.
11065
11066 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
11067
11068         PR rtl-optimization/48442
11069         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
11070         all callers.  Adjust assert.
11071
11072 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
11073
11074         PR tree-optimization/48377
11075         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11076         is_packed to true even for types with smaller TYPE_ALIGN than
11077         TYPE_SIZE.
11078
11079 2011-04-08  Richard Guenther  <rguenther@suse.de>
11080
11081         PR bootstrap/48513
11082         * doc/tm.texi: Re-generate.
11083
11084 2011-04-08  Wei Guozhi  <carrot@google.com>
11085
11086         PR target/47855
11087         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11088         * config/arm/arm.c (arm_attr_length_push_multi): New function.
11089         * config/arm/arm.md (*push_multi): Change the length computation to
11090         call a C function.
11091
11092 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
11093
11094         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11095         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11096         * doc/tm.texi: Regenerate.
11097         * system.h (ASM_OUTPUT_BSS): Poison.
11098         * varasm.c (asm_output_bss): Remove function.
11099         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
11100
11101         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11102         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11103         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11104         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11105         Likewise.
11106         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11107         Likewise.
11108         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11109         Likewise.
11110         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11111
11112 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
11113
11114         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11115         EnumValue lines.
11116
11117 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
11118
11119         * config/m68k/m68k.c (m68k_handle_option): Don't handle
11120         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11121         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11122         OPT_mcpu32.
11123         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11124         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11125         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11126         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11127         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11128         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11129         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11130         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11131         options.  Don't map other m68k options manually.  Don't handle
11132         old-style options as canonical.
11133         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11134         * doc/install.texi (m68k-*-*): Document binutils version requirement.
11135
11136 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11137
11138         * basic-block.h (force_nonfallthru): Move to...
11139         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11140         (force_nonfallthru): ...here.
11141         * cfghooks.c (force_nonfallthru): New function.
11142         * cfgrtl.c (force_nonfallthru): Rename into...
11143         (rtl_force_nonfallthru): ...this.
11144         (commit_one_edge_insertion): Do not set AUX field.
11145         (commit_edge_insertions): Do not discover new basic blocks.
11146         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11147         (cfg_layout_rtl_cfg_hooks): Likewise.
11148         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11149         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
11150         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11151
11152 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
11153
11154         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11155         Remove macros.
11156
11157 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
11158
11159         * config/i386/sse.md: Update copyright year.
11160         (avxcvtvecmode): Remove.
11161         (sse_movhlps): Merge with *avx_movhlps.
11162         (sse_movlhps): Merge with *avx_movlhps.
11163         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11164         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11165         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11166         (sse_loadhps): Merge with *avx_loadhps.
11167         (sse_storelps): Merge with *avx_storelps.
11168         (sse_loadlps): Merge with *avx_loadlps.
11169         (sse_movss): Merge with *avx_movss.
11170         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11171         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11172         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11173         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11174         (vec_set<mode>_0): Ditto.
11175         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11176         (sse4_1_insertps): Merge with *avx_insertps.
11177         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11178         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11179         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11180         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11181         (sse2_storehpd): Merge with *avx_storehpd.
11182         (sse2_loadhpd): Merge with *avx_loadhpd.
11183         (sse2_loadlpd): Merge with *avx_loadlpd.
11184         (sse2_movsd): Merge with *avx_movsd.
11185         (*vec_concatv2df): Merge with *vec_concatv2df.
11186
11187 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
11188
11189         PR debug/48343
11190         * combine.c (combine_instructions): Add last_combined_insn,
11191         update it if insn is after it, pass it to all try_combine calls.
11192         (try_combine): Add last_combined_insn parameter, pass it instead of
11193         i3 to propagate_for_debug.
11194
11195 2011-04-07  Nick Clifton  <nickc@redhat.com>
11196
11197         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11198         to handle MDR <-> data register transfers.
11199         (movhi_internal): Likewise.
11200
11201 2011-04-07  Alan Modra  <amodra@gmail.com>
11202
11203         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11204         previous stack info.
11205
11206 2011-04-07  Tom de Vries  <tom@codesourcery.com>
11207
11208         PR target/43920
11209         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
11210         flow_find_cross_jump.  Swap variables to implement backward replacement.
11211         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11212
11213 2011-04-07  Tom de Vries  <tom@codesourcery.com>
11214
11215         PR target/43920
11216         * cfgcleanup.c (walk_to_nondebug_insn): New function.
11217         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
11218         and bb2.
11219         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11220         src1 or src2.  Redirect edges to the last basic block.  Update
11221         frequency and count on multiple basic blocks in case of fallthru.
11222
11223 2011-04-07  Tom de Vries  <tom@codesourcery.com>
11224
11225         PR target/43920
11226         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11227         function.
11228         (old_insns_match_p): Change return type.  Replace return false/true
11229         with return dir_none/dir_both.  Use can_replace_by.
11230         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
11231         direction from dir_p.  Register replacement direction in dir, last_dir
11232         and afterlast_dir.  Handle new return type of old_insns_match_p using
11233         merge_dir.  Return replacement direction in dir_p.
11234         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11235         return type of old_insns_match_p.
11236         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11237         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11238         flow_find_cross_jump.
11239         * basic-block.h (enum replace_direction): New type.
11240         (flow_find_cross_jump): Add parameter to declaration.
11241
11242 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
11243
11244         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11245         (AVXMODEDCVTPS2DQ): Ditto.
11246         (VEC_FLOAT_MODE): Ditto.
11247         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
11248         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11249         (<any_logic:code><mode>3): Use VF mode iterator.
11250         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11251         Use VF mode iterator.
11252         (copysign<mode>3): Use VF mode iterator.
11253         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
11254         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11255         (*<any_logic:code><MODEF:mode>3): Merge with
11256         *avx_<any_logic:code><MODEF:mode>3.
11257         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11258         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11259         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11260         (avx_cvtdq2ps<avxmodesuffix>): Remove.
11261         (sse2_cvtdq2ps): Use %v modifier.
11262         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11263         (avx_cvtps2dq<avxmodesuffix>): Remove.
11264         (sse2_cvtps2dq): Use %v modifier.
11265         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11266         (avx_cvttps2dq<avxmodesuffix>): Remove.
11267         (sse2_cvttps2dq): Use %v modifier.
11268         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11269         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11270         (sse2_cvtsd2siq): Fix insn template.
11271         (sse2_cvtsd2siq_2): Ditto.
11272         (sse2_cvttsd2siq): Ditto.
11273         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11274         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11275
11276 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11277
11278         * gcov-io.c: Use GCC Runtime Library Exception.
11279
11280 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
11281
11282         PR debug/48466
11283         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11284         as base_reg whatever register reg has been eliminated to, instead
11285         of hardcoding STACK_POINTER_REGNUM.
11286
11287 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11288
11289         * doc/tm.texi.in: Document C target hooks as separate from general
11290         target hooks.
11291         * doc/tm.texi: Regenerate.
11292         * genhooks.c (struct hook_desc): Add docname field.
11293         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
11294         docname field.
11295         (hook_array): Include c-target.def.
11296         (emit_documentation): Use docname field in output.
11297         (emit_init_macros): Take docname argument.  Only emit definitions
11298         for hooks matching docname.
11299         (main): Expect additional arguments in all cases.  Pass argument
11300         to emit_init_macros.
11301         * target.def: Move initial macro definitions and comments to
11302         target-hooks-macros.h.
11303         (gcc_targetcm): Move to c-family/c-target.def.
11304         * target.h (targetcm): Move declaration to c-family/c-target.h.
11305         * targhooks.c (default_handle_c_option): Move to
11306         c-family/c-opts.c.
11307         * targhooks.h (default_handle_c_option): Move declaration to
11308         c-family/c-common.h.
11309         * target-hooks-macros.h: New file.
11310         * config.gcc (target_has_targetcm): Define and use to add to
11311         c_target_objs and cxx_target_objs.
11312         * config/default-c.c: New file.
11313         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11314         of target.h and target-def.h.
11315         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11316         (darwin_objc_construct_string, darwin_cfstring_ref_p,
11317         darwin_check_cfstring_format_arg): Make static.
11318         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11319         TARGET_STRING_OBJECT_REF_TYPE_P,
11320         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11321         * config/darwin-protos.h (darwin_objc_construct_string,
11322         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11323         declare.
11324         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11325         TARGET_STRING_OBJECT_REF_TYPE_P,
11326         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11327         * config/t-darwin (darwin-c.o): Update dependencies.
11328         * system.h (TARGET_HAS_TARGETCM): Poison.
11329         * Makefile.in (TARGET_H): Update.
11330         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11331         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11332         (default-c.o): New target.
11333         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11334         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11335         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
11336         c-target.def.
11337         (build/genhooks.o): Update dependencies.
11338
11339 2011-04-06  Richard Guenther  <rguenther@suse.de>
11340
11341         * ipa-inline.c (enum inlining_mode): Remove.
11342         (cgraph_flatten): Use some other token.
11343         (cgraph_edge_early_inlinable_p): New function, split out from ...
11344         (cgraph_perform_always_inlining): New function, split out from ...
11345         (cgraph_decide_inlining_incrementally): ... here.
11346         (cgraph_mark_inline_edge): Adjust.
11347         (cgraph_early_inlining): Re-structure.
11348         (pass_early_inline): Require SSA form.
11349
11350 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
11351             Julian Brown  <julian@codesourcery.com>
11352             Mark Shinwell  <shinwell@codesourcery.com>
11353
11354         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11355         LO_REGS only for Thumb-1.
11356         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11357         be used in short instructions when optimising for size on Thumb-2.
11358
11359 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11360
11361         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11362         associated with user returns to be preserved.
11363
11364 2011-04-06  Tristan Gingold  <gingold@adacore.com>
11365
11366         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11367         symbol_queue_size, DBXOUT_DECR_NESTING,
11368         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11369         if XCOFF_DEBUGGING_INFO.
11370
11371 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
11372
11373         * config/i386/i386.md (attribute isa): New.
11374         (attribute enabled): New.
11375         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11376         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11377         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11378         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11379         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11380         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11381         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11382         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11383
11384         * config/i386/sse.md (VF): New mode iterator.
11385         (VF1): Ditto.
11386         (VF2): Ditto.
11387         (VF_128): Ditto.
11388         (SSEMODEF4): Remove.
11389         (attribute sse): Handle V8SF and V4DF modes.
11390         (<absneg:code><mode>2): Use VF mode iterator.
11391         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
11392         mode iterator.
11393         (<plusminus_insn><mode>3): Use VF mode iterator.
11394         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11395         Use VF mode iterator.
11396         (<sse>_vm<plusminus_insn><mode>3): Merge with
11397         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
11398         (mul<mode>3): Use VF mode iterator.
11399         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
11400         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
11401         mode iterator.
11402         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11403         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11404         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
11405         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
11406         mode iterator.
11407         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11408         Use VF1 mode iterator.
11409         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11410         (sqrt<VF2:mode>2): New expander.
11411         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11412         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11413         and sqrtv2df2.  Use VF mode iterator.
11414         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
11415         mode iterator.
11416         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11417         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11418         Use VF1 mode iterator.
11419         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11420         (<smaxmin:code><mode>3): Use VF mode iterator.
11421         (*<smaxmin:code><mode>3_finite): Merge with
11422         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
11423         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11424         (<sse>_vm<smaxmin:code><mode>2): Merge with
11425         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
11426         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
11427         mode iterator.
11428         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
11429         mode iterator.
11430         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11431         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11432         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11433         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11434         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
11435         VF mode iterator.
11436         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11437         Use VF_128 mode iterator.
11438         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
11439         mode iterator.
11440         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
11441         VF_128 mode iterator.
11442         (vcond<mode>): Use VF mode iterator.
11443         * config/i386/predicates.md (sse_comparison_operator): Merge with
11444         avx_comparison_float_operator.  Do not declare as special_predicate.
11445         * config/i386/i386.c (struct builtin_description): Update for renamed
11446         compare patterns.
11447         (ix86_expand_args_builtin): Ditto.
11448         (ix86_expand_sse_compare_mask): Ditto.
11449
11450 2011-04-06  Richard Guenther  <rguenther@suse.de>
11451
11452         * tree-inline.c (estimate_num_insns): For calls simply account
11453         for all passed arguments and a used return value.
11454
11455 2011-04-06  Richard Guenther  <rguenther@suse.de>
11456
11457         PR tree-optimization/47663
11458         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11459         call_stmt_time fields.
11460         (cgraph_edge_inlinable_p): Declare.
11461         (cgraph_edge_recursive_p): New inline function.
11462         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11463         (cgraph_clone_edge): Copy it.
11464         * ipa-inline.c (cgraph_estimate_edge_time): New function.
11465         Account for call stmt time.
11466         (cgraph_estimate_time_after_inlining): Take edge argument.
11467         (cgraph_estimate_edge_growth): Account call stmt size.
11468         (cgraph_estimate_size_after_inlining): Take edge argument.
11469         (cgraph_mark_inline_edge): Adjust.
11470         (cgraph_check_inline_limits): Likewise.
11471         (cgraph_recursive_inlining_p): Remove.
11472         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11473         (cgraph_decide_recursive_inlining): Take edge argument and
11474         adjust.
11475         (cgraph_decide_inlining_of_small_functions): Do not avoid
11476         diags for recursive inlining here.
11477         (cgraph_flatten): Adjust.
11478         (cgraph_decide_inlining_incrementally): Likewise.
11479         (estimate_function_body_sizes): Remove call cost handling.
11480         (compute_inline_parameters): Initialize caller edge call costs.
11481         (cgraph_estimate_edge_growth): New function.
11482         (cgraph_estimate_growth): Use it.
11483         (cgraph_edge_badness): Likewise.
11484         (cgraph_check_inline_limits): Take an edge argument.
11485         (cgraph_decide_inlining_of_small_functions): Adjust.
11486         (cgraph_decide_inlining): Likewise.
11487         * tree-inline.c (estimate_num_insns): Only account for call
11488         return value if it is used.
11489         (expand_call_inline): Avoid diagnostics on recursive inline
11490         functions here.
11491         * lto-cgraph.c (lto_output_edge): Output edge call costs.
11492         (input_edge): Input edge call costs.
11493
11494 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11495
11496         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11497
11498 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11499
11500         * doc/invoke.texi (Spec Files): Fix typo.
11501
11502 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11503
11504         * profile.c (branch_prob): Move declaration of local variable.  Remove
11505         obsolete ??? comment.  Expand the location explicitly instead of using
11506         the LOCATION_FILE and LOCATION_LINE macros.
11507
11508 2011-04-06  Wei Guozhi  <carrot@google.com>
11509
11510         PR target/47855
11511         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11512         (arm_cond_branch): Likewise.
11513         (arm_cond_branch_reversed): Likewise.
11514         (arm_jump): Likewise.
11515         (push_multi): Likewise.
11516         * config/arm/constraints.md (Py): New constraint.
11517
11518 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11519
11520         PR bootstrap/48471
11521         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11522         Move these...
11523         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11524         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11525         #ifdef DBX_DEBUGGING_INFO.
11526
11527 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
11528
11529         PR bootstrap/48403
11530         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11531         if old and new states differ.
11532
11533 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11534
11535         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11536         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11537         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11538         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11539         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11540         mcfv4e): Use Alias.
11541         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11542         ColdFire options to -mcpu= options.
11543
11544 2011-04-05  Jeff Law  <law@redhat.com>
11545
11546         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11547         check if BB is a successor of LOOP->header and return
11548         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11549
11550 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11551
11552         * cprop.c (struct reg_use): Remove.
11553         (reg_use_table): Make an array of RTX.
11554         (find_used_regs, constprop_register, local_cprop_pass,
11555         bypass_block): Simplify users of reg_use_table.
11556         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
11557         on one of the uses found by find_used_regs.
11558
11559 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11560
11561         PR bootstrap/48469
11562         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11563         declaration.
11564
11565 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11566
11567         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11568         as an rtx.
11569         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11570
11571 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11572
11573         PR middle-end/48441
11574         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11575
11576 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11577
11578         * combine.c: Include obstack.h.
11579         (struct insn_link): Define.
11580         (uid_log_links): Adjust type.
11581         (FOR_EACH_LOG_LINK): New macro.
11582         (insn_link_obstack): Declare.
11583         (alloc_insn_link): Define.
11584         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
11585         type of link variables.
11586         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11587         (try_combine, record_promoted_values, distribute_notes): Likewise.
11588         (distribute_links): Likewise.  Tweak prototype.
11589         (clear_log_links): Delete.
11590         (adjust_for_new_dest): Call alloc_insn_link.
11591         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11592
11593 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11594
11595         * gcse.c (modify_mem_list): Convert to an array of VECs.
11596         (canon_modify_mem_list, compute_transp): Tweak formatting.
11597         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
11598         (load_killed_in_block_p): Likewise.
11599         (record_last_mem_set_info): Likewise.
11600         (clear_modify_mem_tables): Likewise.
11601
11602 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11603
11604         PR middle-end/48461
11605         * function.c (emit_use_return_register_into_block): Only define if
11606         HAVE_return.
11607
11608 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
11609
11610         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11611
11612 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11613
11614         * config/rx/rx-opts.h: New.
11615         * config/rx/rx.c (rx_cpu_type): Remove.
11616         (rx_handle_option): Don't assert that global structures are in
11617         use.  Access variables via opts pointer.  Defer most handling of
11618         OPT_mint_register_.  Use error_at.
11619         (rx_option_override): Handle deferred OPT_mint_register_ here.
11620         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11621         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11622         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11623         (rx_cpu_types): New Enum and EnumValue entries.
11624         (mint-register=): Use Defer and use Var accordingly.
11625
11626 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11627
11628         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11629         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11630         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11631         Move these...
11632         (debug_free_queue, debug_nesting, symbol_queue_index):
11633         ...and these...
11634         * dbxout.c: ...to here.  Make static.
11635
11636 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11637
11638         * gcse.c (modify_pair): Define.  Define a VEC of it.
11639         (canon_modify_mem_list): Convert to an array of VECs.
11640         (free_insn_expr_list_list): Delete.
11641         (clear_modify_mem_tables): Call VEC_free instead.
11642         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11643         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11644         (canon_list_insert, compute_transp): Likewise.
11645
11646 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11647
11648         PR target/43920
11649         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11650         for size.
11651
11652 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11653
11654         PR target/43920
11655         * function.c (emit_use_return_register_into_block): New function.
11656         (thread_prologue_and_epilogue_insns): Use
11657         emit_use_return_register_into_block.
11658
11659 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11660
11661         PR target/43920
11662         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11663         insn.
11664
11665 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11666
11667         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11668
11669 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
11670
11671         * config/arm/arm.md (define_constants for unspec): Replace with
11672         define_c_enum.
11673         (define_constants for unspecv): Replace with define_c_enum.
11674         * config/arm/neon.md (define_constants for unspec): Replace with
11675         define_c_enum.
11676
11677 2011-04-04  Richard Henderson  <rth@redhat.com>
11678
11679         PR bootstrap/48400
11680         * dwarf2out.c (output_line_info): Always emit line info from
11681         at least one section.
11682         (dwarf2out_init): Create text_section_line_info here ...
11683         (set_cur_line_info_table): ... not here.
11684
11685 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11686
11687         PR target/48380
11688         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11689         not called.
11690
11691         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11692
11693 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
11694
11695         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11696         (expr_equiv_p): Remove.
11697         (insert_set_in_table): Look at <dest, src> pair instead of expr.
11698         (hash_scan_set): Update call to insert_set_in_table.
11699         (dump_hash_table): Dump <dest, src> pair.
11700         (lookup_set): Simplify.  Lookup <dest, src> pair.
11701         (compute_transp): Remove, fold heavily simplified code into...
11702         (compute_local_properties): ...here.  Expect COMP and TRANSP
11703         unconditionally.
11704         (find_avail_set): Take set directly from struct expr.
11705         (find_bypass-set): Likewise.
11706         (bypass_block): Likewise.
11707         (cprop_insn): Likewise.  Remove redundant INSN_P test.
11708
11709         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11710         checks on form of COND from find_implicit_sets to here.
11711         (find_implicit_sets): Cleanup control flow. Split critical edges
11712         if it exposes implicit sets.  Allocate/resize implicit_sets as
11713         necessary.
11714         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11715         changed something.  Run df_analyze after find_implicit_sets if any
11716         edges were split.  Do not allocate implicit_sets here.
11717
11718         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11719         (gcse_obstack): Renamed to cprop_obstack.
11720         (GNEW, GNEWVEC, GNEWVAR): Remove.
11721         (gmalloc): Remove.
11722         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11723         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11724         (gcse_alloc): Likewise, and rename to cprop_alloc.
11725         (alloc_gcse_men, free_gcse_mem): Remove.
11726         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11727         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11728         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11729
11730         * cprop.c (oprs_not_set_p): Remove.
11731         (mark_set, mark_clobber): Remove.
11732         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11733         (reg_not_set_p): New function.
11734         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11735         (cprop_insn): Likewise.
11736         (cprop_jump): Use FOR_EACH_EDGE.
11737
11738 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
11739
11740         PR bootstrap/48403
11741         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11742         (rank_for_schedule): Use scheduled_insns vector instead of
11743         last_scheduled_insn.
11744         (ok_for_early_queue_removal): Likewise.
11745         (queue_to_ready): Search forward in nonscheduled_insns_begin if
11746         we have a dbg_cnt.
11747         (choose_ready): Likewise.
11748         (commit_schedule): Use VEC_iterate.
11749         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
11750         a dbg_cnt, use it and ensure the first insn is in the ready list.
11751         (haifa_sched_init): Allocate scheduled_insns.
11752         (sched_extend_ready_list): Don't allocate it; reserve space.
11753         (haifa_sched_finish): Free it.
11754
11755 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11756
11757         * optc-gen.awk: Always remove type from Variable entry before
11758         recording in var_seen.
11759
11760 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11761
11762         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11763         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11764         call to tidy_fallthru_edges.
11765
11766 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11767
11768         * doc/options.texi (ToLower): Document.
11769         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11770         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11771         * opts.h (cl_option): Add cl_tolower field.
11772         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11773         arguments with lowercase strings.
11774         * config/rx/rx.opt (mcpu=): Add ToLower.
11775         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11776         argument.
11777
11778 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11779
11780         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11781
11782 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11783
11784         * config/vax/vax.c: Include reload.h.
11785
11786 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
11787
11788         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11789         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11790         (sparc_preferred_reload_class): New function.
11791
11792 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
11793
11794         PR debug/48401
11795         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11796         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11797
11798 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
11799
11800         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11801         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11802
11803 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
11804
11805         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11806         (ASM_OUTPUT_ALIGNED_BSS): Define.
11807
11808 2011-04-03  Michael Matz  <matz@suse.de>
11809
11810         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11811         and next_slot members.
11812         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11813         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11814         (lto_streamer_cache_append): Declare.
11815         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11816         unsigned index, remove offset parameter, ensure that we append
11817         or update existing entries.
11818         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11819         parameter, update next_slot for append.
11820         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11821         parameter.
11822         (lto_streamer_cache_insert_at): Likewise.
11823         (lto_streamer_cache_append): New function.
11824         (lto_streamer_cache_lookup): Use unsigned index.
11825         (lto_streamer_cache_get): Likewise.
11826         (lto_record_common_node): Don't test tree_node_can_be_shared.
11827         (preload_common_node): Adjust call to lto_streamer_cache_insert.
11828         (lto_streamer_cache_delete): Don't free offsets member.
11829         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11830         (lto_output_string_with_length): Use lto_output_data_stream.
11831         (lto_output_tree_header): Remove ix parameter, don't write it.
11832         (lto_output_builtin_tree): Likewise.
11833         (lto_write_tree): Adjust callers to above, don't track and write
11834         offset, write unsigned index.
11835         (output_unreferenced_globals): Don't emit all global vars.
11836         (write_global_references): Use unsigned indices.
11837         (lto_output_decl_state_refs): Likewise.
11838         (write_symbol): Likewise.
11839         * lto-streamer-in.c (lto_input_chain): Move earlier.
11840         (input_function): Use unsigned index.
11841         (input_alias_pairs): Don't read and then ignore all global vars.
11842         (lto_materialize_tree): Remove ix_p parameter, don't read index,
11843         don't pass it back, use lto_streamer_cache_append.
11844         (lto_register_var_decl_in_symtab): Use unsigned index.
11845         (lto_register_function_decl_in_symtab): Likewise.
11846         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11847         index.
11848         (lto_get_builtin_tree): Don't read index, use
11849         lto_streamer_cache_append.
11850         (lto_read_tree): Adjust call to lto_materialize_tree.
11851
11852         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11853         don't use function calls in arguments to MIN.
11854
11855         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11856         twice.
11857
11858         * gimple.c (gimple_type_leader_entry): Mark deletable.
11859
11860 2011-04-03  Alan Modra  <amodra@gmail.com>
11861
11862         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11863
11864 2011-04-03  Michael Matz  <matz@suse.de>
11865
11866         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11867         an integer.
11868         * tree.h (tree_decl_non_common.vindex): Adjust comment.
11869
11870 2011-04-03  Michael Matz  <matz@suse.de>
11871
11872         * cgraphbuild.c (record_reference): Canonicalize constructor values.
11873         * gimple-fold.c (canonicalize_constructor_val): Accept being called
11874         without function context.
11875         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11876         current_function_decl and cfun.
11877
11878 2011-04-03  Michael Matz  <matz@suse.de>
11879
11880         * tree.c (decl_init_priority_insert): Don't create entry for
11881         default priority.
11882         (decl_fini_priority_insert): Ditto.
11883         (fields_compatible_p, find_compatible_field): Remove.
11884         * tree.h (fields_compatible_p, find_compatible_field): Remove.
11885         * gimple.c (gimple_compare_field_offset): Adjust block comment.
11886
11887 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
11888
11889         * combine.c (try_combine): Remove useless local variable.
11890
11891 2011-04-03  Richard Guenther  <rguenther@suse.de>
11892             Ira Rosen  <ira.rosen@linaro.org>
11893
11894         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11895         non-variable offsets and compare the remaining bases of the two
11896         accesses instead of looking for exact same data-ref.
11897
11898 2011-04-02  Kai Tietz  <ktietz@redhat.com>
11899
11900         PR target/48416
11901         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11902
11903         * i386.c (ix86_is_msabi_thiscall): New helper function.
11904         (ix86_is_type_thiscall): New helper function.
11905         (ix86_comp_type_attributes): Handle thiscall for method-functions
11906         special.
11907         (init_cumulative_args): Likewise.
11908         (find_drap_reg): Likewise.
11909         (ix86_static_chain): Likewise.
11910         (x86_this_parameter): Likewise.
11911         (x86_output_mi_thunk): Likewise.
11912
11913 2011-04-01  Olivier Hainque  <hainque@adacore.com>
11914             Nicolas Setton  <setton@adacore.com>
11915             Eric Botcazou  <ebotcazou@adacore.com>
11916
11917         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11918         (add_gnat_descriptive_type_attribute): New function.
11919         (gen_array_type_die): Call it.
11920         (gen_enumeration_type_die): Likewise.
11921         (gen_struct_or_union_type_die): Likewise.
11922         (modified_type_die): Likewise.
11923         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11924         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11925         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11926
11927 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11928
11929         PR bootstrap/48148
11930         * dwarf2out.c (resolve_addr): Don't call force_decl_die
11931         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11932
11933         Revert:
11934         2011-03-17  Richard Guenther  <rguenther@suse.de>
11935
11936         PR bootstrap/48148
11937         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11938         origin for decls in other ltrans units.
11939         (input_varpool_node): Likewise.
11940
11941 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11942
11943         PR middle-end/48335
11944         * expr.c (expand_assignment): Handle all possibilities
11945         if TO_RTX is CONCAT.
11946         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11947         (store_split_bit_field): If SUBREG_REG (op0) or
11948         op0 itself has smaller mode than word, return it
11949         for offset 0 and const0_rtx for out-of-bounds stores.
11950         If word is const0_rtx, skip it.
11951
11952 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
11953
11954         * config/h8300/h8300.c (print_operand_address): Rename to...
11955         (h8300_print_operand_address): ...this. Make static. Adjust comments.
11956         Call h8300_print_operand and h8300_print_operand_address instead of
11957         print_operand and print_operand_address. Declare.
11958         (print_operand): Renake to...
11959         (h8300_print_operand): ...this. Make static. Adjust comments.
11960         Call h8300_print_operand instead of print_operand. Declare.
11961         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11962         (h8300_register_move_cost): Likewise.
11963         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11964         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11965         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11966         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11967         * config/h8300/h8300-protos.h (print_operand): Delete.
11968         (print_operand_address): Delete.
11969
11970 2011-04-01  Richard Henderson  <rth@redhat.com>
11971
11972         PR 48400
11973         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11974         in strict mode before dwarf4.  Re-order tests to early out
11975         before switching sections.
11976
11977 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
11978
11979         * config/h8300/constraints.md: New file.
11980         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
11981         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11982         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11983         * config/h8300/predicates.md (bit_operand): Likewise.
11984         (incdec_operand): Use satisfies_constraint_M and
11985         satisfies_constraint_O.  Don't use C code block.
11986         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11987         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11988         (compute_mov_length): Use satisfies_constraint_G.
11989         (fix_bit_operand): Use satisfies_constraint_U.
11990         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11991         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11992         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11993         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11994         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11995         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11996         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11997         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11998         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11999         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12000         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12001         (EXTRA_MEMORY_CONSTRAINT): Delete.
12002
12003 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
12004             Michael Meissner  <meissner@linux.vnet.ibm.com>
12005
12006         PR target/48262
12007         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12008         operands, as per the specifications.
12009
12010         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12011         (vec_extract_evenv4sf): Ditto.
12012         (vec_extract_evenv8hi): Ditto.
12013         (vec_extract_evenv16qi): Ditto.
12014         (vec_extract_oddv4si): Ditto.
12015
12016 2011-03-31  Mark Wielaard  <mjw@redhat.com>
12017
12018         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12019         high_pc attribute if the CU has no associated code. Only output
12020         DW_AT_entry_pc for CU if not generating strict dwarf and
12021         dwarf_version < 4.
12022
12023 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
12024
12025         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12026         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12027         out of ...
12028         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12029         * final.c (final_start_function): Call the new function rather
12030         than using a NULL argument for dwarf2out_frame_debug.
12031
12032         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12033         that contains the prologue.
12034
12035         * haifa-sched.c (queue_insn): New arg REASON.  All callers
12036         changed.  Print it in debugging output.
12037
12038         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12039
12040         * sched-ebb.c (begin_schedule_ready): Remove second argument.
12041         Split most of the code into...
12042         (begin_move_insn): ... here.  New function.
12043         (ebb_sched_info): Add a pointer to it.
12044         * haifa-sched.c (scheduled_insns): New static variable.
12045         (sched_extend_ready_list): Allocate it.
12046         (schedule_block): Use it to record the order of scheduled insns.
12047         Perform RTL changes to move insns only after all scheduling
12048         decisions have been made.
12049         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12050         begin_move_insn field.
12051         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12052         * sched-int.h (struct haifa_sched_info): Remove second argument
12053         from begin_schedule_ready hook.  Add new member begin_move_insn.
12054         * sched-rgn.c (begin_schedule_ready): Remove second argument.
12055         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12056
12057         * haifa-sched.c (prune_ready_list): New function, broken out of
12058         schedule_block.
12059         (schedule_block): Use it.
12060
12061 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12062
12063         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12064
12065 2011-04-01  Kai Tietz  <ktietz@redhat.com>
12066
12067         * config.gcc (*-*-mingw*): Allow as option the
12068         posix threading model.
12069         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
12070         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12071         definition.
12072         (CPP_SPEC): Add pthread/no-pthread handling.
12073         (LIB_SPEC): Likewise.
12074         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12075         (LIB_SPEC): Likewise.
12076         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12077         flag to pass -pthread option for shared libgcc build.
12078         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12079         for shared libgcc build.
12080         * config/i386/t-mingw-pthread: New file.
12081         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12082         New define to enable use of library pthread by default.
12083         * config/i386/mingw.opt (pthread): New driver option.
12084         (no-pthread): New driver option.
12085         * config/i386/cygming.opt: Make sure trailing empty line is retained.
12086         * config/i386/mingw-w64.opt: Likewise.
12087
12088 2011-04-01  Gary Funck  <gary@intrepid.com>
12089
12090         * c-decl.c (grokdeclarator): Fix formatting.
12091
12092 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
12093
12094         * expr.c (emit_block_move_via_movmem): Use n_generator_args
12095         instead of n_operands.
12096         (set_storage_via_setmem): Likewise.
12097         * optabs.c (maybe_gen_insn): Likewise.
12098         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12099         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12100         (mips_expand_builtin_direct): Likewise.
12101         * config/spu/spu.c (expand_builtin_args): Likewise.
12102
12103 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
12104
12105         * recog.h (insn_data_d): Add n_generator_args.
12106         * genoutput.c (data): Likewise.
12107         (output_insn_data): Print it.
12108         (max_opno, num_dups): Delete.
12109         (scan_operands): Just fill in "d->operand[...]".
12110         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12111
12112 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
12113
12114         * gensupport.h (pattern_stats): New structure.
12115         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12116         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12117         (max_operand_1, max_operand_vec): Delete.
12118         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12119
12120 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
12121
12122         * emit-rtl.c (emit_pattern_after_setloc): New function.
12123         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12124         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12125         (emit_pattern_after): New function.
12126         (emit_insn_after, emit_jump_insn_after): Call it.
12127         (emit_call_insn_after, emit_debug_insn_after): Likewise.
12128         (emit_pattern_before_setloc): New function.
12129         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12130         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12131         Likewise.
12132         (emit_pattern_before): New function.
12133         (emit_insn_before, emit_jump_insn_before): Call it.
12134         (emit_call_insn_before, emit_debug_insn_before): Likewise.
12135
12136 2011-03-31  Richard Henderson  <rth@redhat.com>
12137
12138         * dwarf2out.c (dw_separate_line_info_ref): Remove.
12139         (dw_separate_line_info_entry): Remove.
12140         (enum dw_line_info_opcode): New.
12141         (dw_line_info_entry): Use it.
12142         (dw_line_info_table, dw_line_info_table_p): New.
12143         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12144         (line_info_table, line_info_label_num): Remove.
12145         (line_info_table_in_use): Remove.
12146         (separate_line_info_table): Remove.
12147         (separate_line_info_table_allocated): Remove.
12148         (separate_line_info_table_in_use): Remove.
12149         (LINE_INFO_TABLE_INCREMENT): Remove.
12150         (line_info_label_num): New.
12151         (cur_line_info_table): New.
12152         (text_section_line_info, cold_text_section_line_info): New.
12153         (separate_line_info): New.
12154         (SEPARATE_LINE_CODE_LABEL): Remove.
12155         (print_dwarf_line_table): Remove.
12156         (debug_dwarf): Don't dump it.
12157         (output_one_line_info_table): New.
12158         (output_line_info): Use it.
12159         (new_line_info_table): New.
12160         (set_cur_line_info_table): New.
12161         (dwarf2out_switch_text_section): Use it.
12162         (dwarf2out_begin_function): Likewise.
12163         (push_dw_line_info_entry): New.
12164         (dwarf2out_source_line): Rewrite for new line info tables.
12165         (dwarf2out_init): Remove dead initailizations.
12166
12167 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
12168
12169         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
12170         various flags.
12171         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12172         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12173         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12174         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12175         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12176         * opt-functions.awk (flag_init, switch_bit_fields): New.
12177         (switch_flags): Don't handle flags moved to bit-fields.  Don't
12178         generate CL_MISSING_OK or CL_SAVE.
12179         * optc-gen.awk: Update to generate bit-field output as well as
12180         flags field.
12181         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12182         bit-field instead of CL_REJECT_DRIVER flag.
12183         * opts-common.c (generate_canonical_option,
12184         decode_cmdline_option): Use bit-fields instead of CL_* flags.
12185         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12186         instead of CL_REJECT_NEGATIVE flag.
12187         * toplev.c (print_switch_values): Use cl_report bit-field instead
12188         of CL_REPORT flag.
12189
12190 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
12191
12192         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12193         a zero minimum index only if it is redundant.
12194
12195 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
12196
12197         PR rtl-optimization/48381
12198         * ira-color.c (assign_hard_reg): Use hard reg set intersection
12199         instead of ira_class_hard_reg_index for calculating conflicting
12200         hard registers.
12201
12202 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
12203
12204         * cprop.c: Clean up hash table building.
12205         (reg_avail_info): Remove.
12206         (oprs_available_p): Remove.
12207         (record_last_reg_set_info): Remove.
12208         (record_last_set_info): Remove.
12209         (reg_available_p): New function.
12210         (gcse_constant_p): Do not treat unfolded conditions as constants.
12211         (make_set_regs_unavailable): New function.
12212         (hash_scan_set): Simplify with new reg_available_p.
12213         (compute_hash_table_work): Traverse insns stream only once.
12214         Do not compute reg_avail_info. Traverse insns in reverse order.
12215         Record implicit sets after recording explicit sets from the block.
12216
12217 2011-03-31  Michael Matz  <matz@suse.de>
12218
12219         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12220
12221 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
12222
12223         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12224         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12225         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12226         (h8300_mode_dependent_address_p): New function.
12227         (h8300_get_index): Make static.
12228
12229 2011-03-31  Jeff Law  <law@redhat.com>
12230
12231         * reload1.c (elimination_effects): Fix typo in recent change.
12232
12233         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12234         typo potentially leading to null pointer dereference.
12235
12236         * caller-save.c (new_saved_hard_reg): Eliminate return value.
12237         (setup_save_areas): Corresponding changes to avoid useless
12238         assignments.
12239
12240         * jump.c (reversed_comparison_code_parts): Avoid successive return
12241         statements when REVERSE_CONDITION is defined.
12242
12243         * expr.c (expand_assignment): Avoid useless assignments.
12244         (expand_expr_real_1): Likewise.
12245         (expand_expr_real_2): Avoid useless statements.
12246
12247         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12248
12249         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12250
12251         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12252         statements.
12253
12254         * stmt.c (expand_expr_stmt): Avoid useless assignment.
12255
12256 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
12257
12258         PR target/47109
12259         * doc/tm.texi.in (TARGET_VERSION): Remove.
12260         * doc/tm.texi: Regenerate.
12261         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12262         * collect2.c (main): Don't use TARGET_VERSION.
12263         * mips-tdump.c (main): Don't use TARGET_VERSION.
12264         * mips-tfile.c (main): Don't use TARGET_VERSION.
12265         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12266         * config/rs6000/vxworksae.h: Remove.
12267         * config/alpha/alpha.h (TARGET_VERSION): Remove.
12268         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12269         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12270         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12271         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12272         * config/arm/arm.h (TARGET_VERSION): Remove.
12273         * config/arm/coff.h (TARGET_VERSION): Remove.
12274         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12275         * config/arm/elf.h (TARGET_VERSION): Remove.
12276         * config/arm/freebsd.h (TARGET_VERSION): Remove.
12277         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12278         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12279         * config/arm/pe.h (TARGET_VERSION): Remove.
12280         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12281         * config/arm/semi.h (TARGET_VERSION): Remove.
12282         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12283         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12284         * config/arm/vxworks.h (TARGET_VERSION): Remove.
12285         * config/avr/avr.h (TARGET_VERSION): Remove.
12286         * config/bfin/bfin.h (TARGET_VERSION): Remove.
12287         * config/fr30/fr30.h (TARGET_VERSION): Remove.
12288         * config/frv/frv.h (TARGET_VERSION): Remove.
12289         * config/h8300/h8300.h (TARGET_VERSION): Remove.
12290         * config/i386/cygwin.h (TARGET_VERSION): Remove.
12291         * config/i386/darwin.h (TARGET_VERSION): Remove.
12292         * config/i386/darwin64.h (TARGET_VERSION): Remove.
12293         * config/i386/djgpp.h (TARGET_VERSION): Remove.
12294         * config/i386/freebsd.h (TARGET_VERSION): Remove.
12295         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12296         * config/i386/gnu.h (TARGET_VERSION): Remove.
12297         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12298         * config/i386/i386elf.h (TARGET_VERSION): Remove.
12299         * config/i386/linux.h (TARGET_VERSION): Remove.
12300         * config/i386/linux64.h (TARGET_VERSION): Remove.
12301         * config/i386/lynx.h (TARGET_VERSION): Remove.
12302         * config/i386/mingw32.h (TARGET_VERSION): Remove.
12303         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12304         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12305         * config/i386/netware.h (TARGET_VERSION): Remove.
12306         * config/i386/nto.h (TARGET_VERSION): Remove.
12307         * config/i386/openbsd.h (TARGET_VERSION): Remove.
12308         * config/i386/vxworks.h (TARGET_VERSION): Remove.
12309         * config/ia64/elf.h (TARGET_VERSION): Remove.
12310         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12311         * config/ia64/hpux.h (TARGET_VERSION): Remove.
12312         * config/ia64/linux.h (TARGET_VERSION): Remove.
12313         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12314         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12315         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12316         * config/lm32/lm32.h (TARGET_VERSION): Remove.
12317         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12318         * config/m32c/m32c.h (TARGET_VERSION): Remove.
12319         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12320         * config/m32r/m32r.h (TARGET_VERSION): Remove.
12321         * config/m68k/linux.h (TARGET_VERSION): Remove.
12322         * config/m68k/m68k.h (TARGET_VERSION): Remove.
12323         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12324         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12325         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12326         * config/mep/mep.h (TARGET_VERSION): Remove.
12327         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12328         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12329         * config/mips/iris6.h (MACHINE_TYPE): Remove.
12330         * config/mips/linux.h (TARGET_VERSION): Remove.
12331         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12332         * config/mips/vxworks.h (TARGET_VERSION): Remove.
12333         * config/mmix/mmix.h (TARGET_VERSION): Remove.
12334         * config/mn10300/linux.h (TARGET_VERSION): Remove.
12335         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12336         * config/pa/pa.h (TARGET_VERSION): Remove.
12337         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12338         * config/picochip/picochip.h (TARGET_VERSION): Remove.
12339         * config/rs6000/aix.h (TARGET_VERSION): Remove.
12340         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12341         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12342         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12343         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12344         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12345         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12346         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12347         * config/rs6000/linux.h (TARGET_VERSION): Remove.
12348         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12349         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12350         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12351         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12352         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12353         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12354         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12355         * config/s390/linux.h (TARGET_VERSION): Remove.
12356         * config/s390/s390.h (TARGET_VERSION): Remove.
12357         * config/s390/tpf.h (TARGET_VERSION): Remove.
12358         * config/score/score.h (TARGET_VERSION): Remove.
12359         * config/sh/linux.h (TARGET_VERSION): Remove.
12360         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12361         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12362         * config/sh/sh.h (TARGET_VERSION): Remove.
12363         * config/sh/sh64.h (TARGET_VERSION): Remove.
12364         * config/sh/superh.h (TARGET_VERSION): Remove.
12365         * config/sh/vxworks.h (TARGET_VERSION): Remove.
12366         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12367         * config/sparc/linux.h (TARGET_VERSION): Remove.
12368         * config/sparc/linux64.h (TARGET_VERSION): Remove.
12369         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12370         TARGET_NAME32, TARGET_NAME): Remove.
12371         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12372         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12373         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12374         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12375         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12376         * config/spu/spu.h (TARGET_VERSION): Remove.
12377         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12378         * config/v850/v850.h (TARGET_VERSION): Remove.
12379         * config/vax/linux.h (TARGET_VERSION): Remove.
12380         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12381         * config/xtensa/elf.h (TARGET_VERSION): Remove.
12382         * config/xtensa/linux.h (TARGET_VERSION): Remove.
12383
12384 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
12385
12386         PR target/48142
12387         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12388         frame-related from frame-unrelated adjustments to the stack pointer.
12389
12390 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
12391
12392         * common.opt (fdebug-types-section): Move earlier.
12393         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12394
12395 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
12396
12397         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12398         var.
12399
12400 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
12401
12402         * tree.h (CASE_CHAIN): Define.
12403         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12404         (gimple_redirect_edge_and_branch): Likewise.
12405
12406 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12407
12408         PR middle-end/48367
12409         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12410         calculation.
12411
12412 2011-03-30  Jeff Law  <law@redhat.com>
12413
12414         * PR bootstrap/48371
12415         * reload1.c (reload): Fix botch in last change.
12416
12417         * reload.h (struct reload): Fix typo introduced in last change.
12418
12419 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12420
12421         * config/arm/arm.opt (mhard-float, msoft-float): Mark
12422         Undocumented.  Remove help text.
12423         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12424         -mhard-float.
12425
12426 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12427
12428         * doc/options.texi (NegativeAlias): Document.
12429         (Alias): Mention NegativeAlias.
12430         * opt-functions.awk: Handle NegativeAlias.
12431         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12432         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12433         * opts.h (CL_NEGATIVE_ALIAS): Define.
12434         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12435         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12436         OPT_mspe_.
12437         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12438         Alias entries.
12439         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12440         mno-spe and mno-isel instead of mspe=no and -misel=no.
12441
12442 2011-03-29  Mark Wielaard  <mjw@redhat.com>
12443
12444         * common.opt (fdebug-types-section): New flag.
12445         * doc/invoke.texi: Document new -fno-debug-types-section flag.
12446         * dwarf2out.c (use_debug_types): New define.
12447         (struct die_struct): Mark die_id with GTY desc use_debug_types.
12448         (print_die): Guard output of type unit signatures using
12449         use_debug_types.
12450         (build_abbrev_table): Replace assert of dwarf_version >= 4
12451         with assert on use_debug_types.
12452         (size_of_die): Likewise.
12453         (unmark_dies): Likewise.
12454         (value_format): Decide AT_ref_external form on use_debug_types.
12455         (output_die): Replace dwarf_version version check guard with
12456         use_debug_types where appropriate.
12457         (modified_type_die): Likewise.
12458         (gen_reference_type_die): Likewise.
12459         (dwarf2out_start_source_file): Likewise.
12460         (dwarf2out_end_source_file): Likewise.
12461         (prune_unused_types_walk_attribs): Likewise.
12462         (dwarf2out_finish): Likewise.
12463
12464 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12465
12466         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12467
12468 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12469
12470         PR rtl-optimization/48332
12471         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12472         mode of input operand N and modeN to its actual mode.
12473
12474 2011-03-30  Jeff Law  <law@redhat.com>
12475
12476         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12477         define accessor macro.
12478         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12479         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12480         (reg_equiv_init): Likewise.
12481         (reg_equivs_size): New variable.
12482         (reg_equiv_init_size): Remove.
12483         (allocate_initial_values): Move prototype to here from....
12484         * integrate.h (allocate_initial_values): Remove prototype.
12485         * integrate.c: Include reload.h.
12486         (allocate_initial_values): Corresponding changes.
12487         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12488         (fix_reg_equiv_init, no_equiv): Corresponding changes.
12489         (update_equiv_regs): Corresponding changes.
12490         (ira): Corresponding changes.
12491         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12492         (push_secondary_reload): Corresponding changes.
12493         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12494         (make_memloc, find_reloads_address): Corresponding changes.
12495         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12496         (find_reloads_address_1): Corresponding changes.
12497         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12498         (refers_to_regno_for_reload_p): Corresponding changes.
12499         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12500         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12501         * reload1.c: Include ggc.h.
12502         (grow_reg_equivs): New function.
12503         (replace_pseudos_in, reload): Corresponding changes.
12504         (calculate_needs_all_insns, alter_regs): Corresponding changes.
12505         (eliminate_regs_1, elimination_effects): Corresponding changes.
12506         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12507         (delete_output_reload): Likewise.
12508         * caller-save.c (mark_referenced_regs): Corresponding changes.
12509         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12510         * frv/predicates.md (frv_load_operand): Corresponding changes.
12511         * microblaze/microblaze.c (double_memory_operand): Corresponding
12512         changes.
12513         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12514         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12515         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12516         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12517         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12518         changes.
12519         * pa/pa.c (emit_move_sequence): Corresponding changes.
12520         * vax/vax.c (nonindexed_address_p): Corresponding changes.
12521
12522 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12523
12524         PR target/47551
12525         * config/arm/arm.c (coproc_secondary_reload_class): Handle
12526         structure modes.  Don't check neon_vector_mem_operand for
12527         vector or structure modes.
12528
12529 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12530             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12531
12532         PR target/43590
12533         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12534         operand 1 and reshuffle the operands to match.
12535         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12536
12537 2011-03-30  Christian Schüler  <cschueler@gmx.de>
12538
12539         PR driver/48208
12540         * config/c.opt (F): Added 'Driver' to -F option.
12541
12542         PR driver/48260
12543         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12544           handler function.
12545         * config/darwin.opt: Added '-arch' option.
12546
12547 2011-03-30  Nick Clifton  <nickc@redhat.com>
12548
12549         * config/rx/rx.md: Add peepholes and patterns to combine
12550         extending loads and simple arithmetic instructions.
12551         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12552         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12553         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12554         modes to use pre-decrement and post-increment addressing.
12555         (rx_is_restricted_memory_address): Add range checking of REG+INT
12556         addresses.
12557         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
12558         (rx_memory_move_cost): Adjust cost of stores.
12559         (rx_adjust_insn_length): New function.
12560
12561 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
12562
12563         PR c/48305
12564         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12565         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12566         matching arg00/arg01 types.
12567
12568 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
12569
12570         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12571         last_location to UNKNOWN_LOCATION.
12572
12573 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12574
12575         PR target/48349
12576         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12577         FLOAT_SSE_REGS.
12578
12579 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12580             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12581
12582         PR bootstrap/48337
12583         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12584         Init(PROCESSOR_V7).
12585         (sparc_cpu): Likewise.
12586         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12587         PROCESSOR_V7.
12588
12589 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12590
12591         PR target/48336
12592         PR middle-end/48342
12593         PR rtl-optimization/48345
12594         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12595         hard regs for given mode from profitable regs when doing secondary
12596         allocation.
12597
12598 2011-03-29  Jeff Law  <law@redhat.com>
12599
12600         PR bootstrap/48327
12601         * tree-ssa-threadupdate.c (struct redirection_data): Remove
12602         do_not_duplicate field.
12603         (lookup_redirection_data): Corresponding changes.
12604         (create_duplicates): Always create a template block.
12605         (redirect_edges): Remove code which reused the original block
12606         when it was going to become unreachable code.
12607         (thread_block): Don't set do_not_duplicate field.
12608
12609 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
12610
12611         * lto-opts.c (register_user_option_p, lto_register_user_option):
12612         Make type argument unsigned.
12613         * lto-streamer.h (lto_register_user_option): Make type argument
12614         unsigned.
12615         * opth-gen.awk: Make CL_* macros unsigned.
12616         * opts-common.c (find_opt): Make lang_mask argument unsigned.
12617         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12618         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12619         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12620         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12621         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12622         (find_opt): Make lang_mask argument unsigned.
12623
12624 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12625
12626         PR rtl-optimization/48331
12627         PR rtl-optimization/48334
12628         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12629         for any used algorithm.
12630
12631 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12632
12633         * ira-conflicts.c (build_object_conflicts): Add unused attribute
12634         to parent_max.
12635
12636 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
12637
12638         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12639         (alpha_option_override): Don't set alpha_sr_alias_set.
12640         (emit_frame_store_1): Use gen_frame_mem rather than calling
12641         set_mem_alias_set.
12642         (alpha_expand_epilogue): Ditto.
12643
12644 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
12645
12646         PR tree-optimization/48290
12647         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12648         vectorization, check that relevant phis in the basic block after
12649         the inner loop are really inner loop's exit phis.
12650
12651 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
12652
12653         PR debug/48190
12654         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12655         (cached_dw_loc_list_def): New structure.
12656         (cached_dw_loc_list): New typedef.
12657         (cached_dw_loc_list_table): New variable.
12658         (cached_dw_loc_list_table_hash): New function.
12659         (cached_dw_loc_list_table_eq): Likewise.
12660         (add_location_or_const_value_attribute): Take a bool cache_p.
12661         Cache the list when the parameter is true.
12662         (gen_formal_parameter_die): Update caller.
12663         (gen_variable_die): Likewise.
12664         (dwarf2out_finish): Likewise.
12665         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12666         while generating debug info for the decl.
12667         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12668         (dwarf2out_init): Initialize cached_dw_loc_list_table.
12669         (resolve_addr): Cache the result of resolving a chain of
12670         location lists.
12671
12672 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12673
12674         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12675         conflict object hard regset nodes have intersecting hard reg sets.
12676
12677         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12678         after regstat_init_n_sets_and_refs.
12679
12680         * ira.c: Add more comments at the top.
12681         (setup_stack_reg_pressure_class, setup_pressure_classes):
12682         Add comments how we compute the register pressure classes.
12683         (setup_allocno_and_important_classes): Add more comments.
12684         (setup_class_translate_array, reorder_important_classes)
12685         (setup_reg_class_relations): Add comments.
12686
12687         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
12688         start of the file.
12689
12690         * ira-color.c: Add 2011 to the Copyright line.
12691         (assign_hard_reg):  Add more comments.
12692         (improve_allocation): Ditto.
12693
12694         * ira-costs.c: Add 2011 to the Copyright line.
12695         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12696         comments.
12697         (setup_regno_cost_classes_by_mode): Ditto.
12698
12699         Initial patches from ira-improv branch:
12700
12701         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12702
12703         * ira-build.c (ira_create_object): Remove initialization of
12704         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
12705         (ira_create_allocno): Remove initialization of
12706         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12707         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12708         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12709         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12710         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12711         Initialize ALLOCNO_ADD_DATA.
12712         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12713         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12714         ALLOCNO_REG.
12715         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
12716         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12717
12718         * ira.c (ira_reallocate): Remove.
12719         (setup_pressure_classes): Call
12720         ira_init_register_move_cost_if_necessary.  Use
12721         ira_register_move_cost instead of ira_get_register_move_cost.
12722         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12723         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12724
12725         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12726         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12727         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12728         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12729         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12730         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12731         Fix formatting.
12732         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12733         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12734         (struct allocno_color_data): New.
12735         (allocno_color_data_t): New typedef.
12736         (allocno_color_data): New definition.
12737         (ALLOCNO_COLOR_DATA): New macro.
12738         (struct object_color_data): New.
12739         (object_color_data_t): New typedef.
12740         (object_color_data): New definition.
12741         (OBJECT_COLOR_DATA): New macro.
12742         (update_copy_costs, calculate_allocno_spill_cost): Call
12743         ira_init_register_move_cost_if_necessary.  Use
12744         ira_register_move_cost instead of ira_get_register_move_cost.
12745         (move_spill_restore, update_curr_costs): Ditto.
12746         (allocno_spill_priority): Make it inline.
12747         (color_pass): Allocate and free allocno_color_dat and object_color_data.
12748         (struct coalesce_data, coalesce_data_t): New.
12749         (allocno_coalesce_data): New definition.
12750         (ALLOCNO_COALESCE_DATA): New macro.
12751         (merge_allocnos, coalesced_allocno_conflict_p): Use
12752         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12753         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12754         (coalesce_allocnos): Ditto.
12755         (setup_coalesced_allocno_costs_and_nums): Ditto.
12756         (collect_spilled_coalesced_allocnos): Ditto.
12757         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12758         (setup_slot_coalesced_allocno_live_ranges): Ditto.
12759         (coalesce_spill_slots): Ditto.
12760         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
12761         free allocno_coalesce_data.
12762
12763         * ira-conflicts.c: Fix formatting.
12764         (process_regs_for_copy): Call
12765         ira_init_register_move_cost_if_necessary.  Use
12766         ira_register_move_cost instead of ira_get_register_move_cost.
12767         (build_object_conflicts): Optimize.
12768
12769         * ira-costs.c (record_reg_classes): Optimize.  Call
12770         ira_init_register_move_cost_if_necessary.  Use
12771         ira_register_move_cost, ira_may_move_in_cost, and
12772         ira_may_move_out_cost instead of ira_get_register_move_cost and
12773         ira_get_may_move_cost.
12774         (record_address_regs): Ditto.
12775         (scan_one_insn): Optimize.
12776         (find_costs_and_classes): Optimize.
12777         (process_bb_node_for_hard_reg_moves): Call
12778         ira_init_register_move_cost_if_necessary.  Use
12779         ira_register_move_cost instead of ira_get_register_move_cost.
12780
12781         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12782         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12783         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12784         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12785         definitions.
12786         (ira_initiate_emit_data, ira_finish_emit_data)
12787         (create_new_allocno): New functions.
12788         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12789         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12790         Use ira_register_move_cost instead of ira_get_register_move_cost.
12791
12792         * ira-int.h: Fix some comments.
12793         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12794         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12795         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12796         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
12797         add_data.
12798         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
12799         bitfield after mode.  Make hard_regno a short int.  Make
12800         hard_regno short.  Remove first_coalesced_allocno and
12801         next_coalesced_allocno.  Move mem_optimized_dest_p,
12802         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12803         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
12804         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12805         temp, colorable_p.  Add new member add_data.
12806         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12807         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12808         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12809         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12810         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12811         (ALLOCNO_ADD_DATA): New macro.
12812         (ira_emit_data_t): New typedef.
12813         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
12814         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12815         from struct ira_allocno.
12816         (ALLOCNO_EMIT_DATA): New macro.
12817         (ira_allocno_emit_data, allocno_emit_reg): New.
12818         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12819         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12820         (OBJECT_ADD_DATA): New macro.
12821         (ira_reallocate): Remove.
12822         (ira_initiate_emit_data, ira_finish_emit_data): New.
12823         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12824         (ira_init_register_move_cost_if_necessary): New.
12825         (ira_object_conflict_iter_next): Merge into
12826         ira_object_conflict_iter_cond.
12827         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12828
12829         * ira-live.c (process_single_reg_class_operands): Call
12830         ira_init_register_move_cost_if_necessary.  Use
12831         ira_register_move_cost instead of ira_get_register_move_cost.
12832
12833         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12834
12835         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12836
12837         * ira-costs.c: Fix formatting.
12838         (cost_classes, cost_classes_num): Remove.
12839         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12840         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12841         (cost_classes_del, cost_classes_htab): New.
12842         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12843         (initiate_regno_cost_classes, setup_cost_classes): New.
12844         (setup_regno_cost_classes_by_aclass): New.
12845         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12846         (record_reg_classes): Use regno_cost_classes instead of
12847         cost_classes.  Move checking opposite operand up.
12848         (record_address_regs): Use regno_cost_classes
12849         instead of cost_classes.
12850         (scan_one_insn): Ditto.  Use always general register.
12851         (print_allocno_costs): Use regno_cost_classes instead of
12852         cost_classes.
12853         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
12854         (find_costs_and_classes): Set up cost classes for each registers.
12855         Use also their mode for this.  Use regno_cost_classes instead of
12856         cost_classes.
12857         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12858         cost_classes.
12859         (free_ira_costs, ira_init_costs): Don't use cost_classes.
12860         (ira_costs, ira_set_pseudo_classes): Call
12861         initiate_regno_cost_classes and finish_regno_cost_classes.
12862
12863         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
12864
12865         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12866
12867         * target.def (ira_cover_classes): Remove.
12868
12869         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12870
12871         * doc/tm.texi.in: Ditto.
12872
12873         * ira-conflicts.c: Remove mentioning cover classes from the file.
12874         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
12875         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
12876
12877         * targhooks.c (default_ira_cover_classes): Remove.
12878
12879         * targhooks.h (default_ira_cover_classes): Ditto.
12880
12881         * haifa-sched.c: Remove mentioning cover classes from the file.
12882         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12883         ira_pressure_classes and ira_pressure_classes_num instead of
12884         ira_reg_class_cover_size and ira_reg_class_cover.  Use
12885         sched_regno_pressure_class instead of sched_regno_cover_class.
12886         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12887         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12888
12889         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
12890         classes from the file.
12891         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12892         (struct object_hard_regs, struct object_hard_regs_node): New.
12893         (struct ira_object): New members profitable_hard_regs,
12894         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12895         (struct ira_allocno): Rename cover_class to aclass.  Rename
12896         cover_class_cost and updated_cover_class_cost to class_cost and
12897         updated_class_cost.  Remove splay_removed_p and
12898         left_conflict_size.  Add new members colorable_p.
12899         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12900         (ALLOCNO_COLORABLE_P): New macro.
12901         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12902         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12903         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12904         (OBJECT_...): Rename parameter C to O.
12905         (OBJECT_PROFITABLE_HARD_REGS): New macro.
12906         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12907         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12908         (struct target_ira_int): New members x_ira_max_memory_move_cost,
12909         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12910         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12911         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12912         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
12913         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
12914         x_ira_reg_class_subunion.
12915         (ira_max_memory_move_cost, ira_max_register_move_cost)
12916         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12917         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12918         (ira_important_class_nums, ira_reg_class_superunion): New macros.
12919         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12920         (ira_reg_class_union): Rename to ira_reg_class_subunion.
12921         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12922         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12923         (ira_tune_allocno_costs_and_cover_classes): Rename to
12924         ira_tune_allocno_costs.
12925         (ira_debug_hard_regs_forest): New.
12926         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12927         (ira_object_conflict_iter_next): Fix comments.
12928         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12929         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12930         cover_class to aclass.
12931         (ira_allocate_and_accumulate_costs): Ditto.
12932         (ira_allocate_and_set_or_copy_costs): Ditto.
12933
12934         * opts.c (decode_options): Remove ira_cover_class check.
12935
12936         * ira-color.c: Remove mentioning cover classes from the file.  Use
12937         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12938         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12939         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12940         (splay-tree.h): Remove include.
12941         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12942         before copy_freq_compare_func.
12943         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12944         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12945         New definitions.
12946         (hard_regs_roots, hard_regs_node_vec): Ditto.
12947         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12948         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12949         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12950         (create_new_object_hard_regs_node): Ditto.
12951         (add_new_object_hard_regs_node_to_forest): Ditto.
12952         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12953         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12954         Ditto.
12955         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12956         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12957         (remove_unused_object_hard_regs_nodes): Ditto.
12958         (enumerate_object_hard_regs_nodes): Ditto.
12959         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12960         (object_hard_regs_subnode_t): Ditto.
12961         (struct object_hard_regs_subnode): Ditto.
12962         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12963         (setup_object_hard_regs_subnode_index): Ditto.
12964         (get_object_hard_regs_subnodes_num): Ditto.
12965         (form_object_hard_regs_nodes_forest): Ditto.
12966         (finish_object_hard_regs_nodes_tree): Ditto.
12967         (finish_object_hard_regs_nodes_forest): Ditto.
12968         (allocnos_have_intersected_live_ranges_p): Rename to
12969         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12970         (pseudos_have_intersected_live_ranges_p): Rename to
12971         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12972         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12973         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12974         (update_copy_costs): Remove assert.  Skip cost update if the hard
12975         reg does not belong the class.
12976         (assign_hard_reg): Process only profitable hard regs.
12977         (uncolorable_allocnos_num): Make it scalar.
12978         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12979         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12980         and ira_reg_class_max_nregs.
12981         (bucket_allocno_compare_func): Check frequency first.
12982         (sort_bucket): Add compare function as a parameter.
12983         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12984         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12985         (push_allocno_to_stack): Rewrite for checking new allocno
12986         colorability.
12987         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
12988         (push_only_colorable): Pass new parameter to sort_bucket.
12989         (push_allocno_to_spill): Remove.
12990         (allocno_spill_priority_compare): Make it inline and rewrite.
12991         (splay_tree_allocate, splay_tree_free): Remove.
12992         (allocno_spill_sort_compare): New function.
12993         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
12994         build and use splay tree.  Choose first allocno in uncolorable
12995         allocno bucket to spill.  Remove setting spill cost.
12996         (all_conflicting_hard_regs): Remove.
12997         (setup_allocno_available_regs_num): Check only profitable hard
12998         regs.  Print info about hard regs nodes.
12999         (setup_allocno_left_conflicts_size): Remove.
13000         (put_allocno_into_bucket): Don't call
13001         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
13002         (improve_allocation): New.
13003         (color_allocnos): Call setup_profitable_hard_regs,
13004         form_object_hard_regs_nodes_forest, improve_allocation,
13005         finish_object_hard_regs_nodes_forest.  Setup spill cost.
13006         (print_loop_title): Use pressure classes.
13007         (color_allocnso): Ditto.
13008         (do_coloring): Remove allocation and freeing splay_tree_node_pool
13009         and allocnos_for_spilling.
13010         (ira_sort_regnos_for_alter_reg): Don't setup members
13011         {first,next}_coalesced_allocno.
13012         (color): Remove allocating and freeing removed_splay_allocno_vec.
13013         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13014         prohibited_class_mode_regs.
13015
13016         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
13017         formatting.
13018         (update_allocno_pressure_excess_length): Use pressure classes.
13019         (inc_register_pressure, dec_register_pressure): Check for pressure
13020         class.
13021         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13022         pressure class.  Use ira_reg_class_nregs instead of
13023         ira_reg_class_max_nregs.
13024         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13025         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13026         (single_reg_class): Use ira_reg_class_nregs instead of
13027         ira_reg_class_max_nregs.
13028         (process_bb_node_lives): Use pressure classes.
13029
13030         * ira-emit.c: Remove mentioning cover classes from the file.  Use
13031         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
13032         (change_loop): Use pressure classes.
13033         (modify_move_list): Call ira_set_allocno_class instead of
13034         ira_set_allocno_cover_class.
13035
13036         * ira-build.c: Remove mentioning cover classes from the file.  Use
13037         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13038         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
13039         ALLOCNO_UPDATED_CLASS_COST instead of
13040         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
13041         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13042         (ira_create_allocno): Remove initialization of
13043         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
13044         ALLOCNO_COLORABLE_P.
13045         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13046         Update conflict regs for the objects.
13047         (create_cap_allocno): Remove assert.  Don't propagate
13048         ALLOCNO_AVAILABLE_REGS_NUM.
13049         (ira_free_allocno_costs): New function.
13050         (finish_allocno): Change a part of code into call of
13051         ira_free_allocno_costs.
13052         (low_pressure_loop_node_p): Use pressure classes.
13053         (object_range_compare_func): Don't compare classes.
13054         (setup_min_max_conflict_allocno_ids): Ditto.
13055
13056         * loop-invariant.c: Remove mentioning cover classes from the file.
13057         Use ira_pressure_classes and ira_pressure_classes_num instead of
13058         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
13059         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13060         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13061         Use reg_allocno_class instead of reg_cover_class.
13062         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13063         STACK_REG_COVER_CLASS.
13064         (get_regno_cover_class): Rename to get_regno_pressure_class.
13065         (move_loop_invariants): Initialize and finalize regstat.
13066
13067         * ira.c: Remove mentioning cover classes from the file.  Add
13068         comments about coloring without cover classes.  Use ALLOCNO_CLASS
13069         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
13070         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13071         setup_class_subset_and_memory_move_costs.
13072         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13073         (setup_cover_and_important_classes): Rename to
13074         setup_allocno_and_important_classes.
13075         (setup_class_translate_array): New.
13076         (setup_class_translate): Call it for allocno and pressure classes.
13077         (cover_class_order): Rename to allocno_class_order.
13078         (comp_reg_classes_func): Use ira_allocno_class_translate instead
13079         of ira_class_translate.
13080         (reorder_important_classes): Set up ira_important_class_nums.
13081         (setup_reg_class_relations): Set up ira_reg_class_superunion.
13082         (print_class_cover): Rename to print_classes.  Add parameter.
13083         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13084         Print pressure classes too.
13085         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
13086         setup_reg_subclasses.
13087         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13088         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13089         (setup_prohibited_class_mode_regs): Use
13090         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
13091         (clarify_prohibited_class_mode_regs): New function.
13092         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13093         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13094         (ira_init_once): Initialize them.
13095         (free_register_move_costs): Process them.
13096         (ira_init): Move calls of find_reg_classes and
13097         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13098         Call clarify_prohibited_class_mode_regs.
13099         (ira_no_alloc_reg): Remove.
13100         (too_high_register_pressure_p): Use pressure classes.
13101
13102         * sched-deps.c: Remove mentioning cover classes from the file.
13103         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
13104         ira_pressure_classes and ira_pressure_classes_num instead of
13105         ira_reg_class_cover_size and ira_reg_class_cover.
13106         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13107         sched_regno_pressure_class instead of sched_regno_cover_class.
13108         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
13109         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13110
13111         * ira.h: Add 2010 to Copyright.
13112         (ira_no_alloc_reg): Remove external.
13113         (struct target_ira): Rename x_ira_hard_regno_cover_class,
13114         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13115         x_ira_class_translate to x_ira_hard_regno_allocno_class,
13116         x_ira_allocno_classes_num, x_ira_allocno_classes, and
13117         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
13118         x_ira_pressure_classes, x_ira_pressure_class_translate, and
13119         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
13120         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
13121         x_ira_no_alloc_regs.
13122         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13123         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13124         ira_allocno_classes_num and ira_allocno_classes.
13125         (ira_class_translate): Rename to ira_allocno_class_translate.
13126         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13127         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13128         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13129         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13130         (ira_no_alloc_regs): New.
13131
13132         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
13133         classes from the file.  Use ALLOCNO_CLASS instead of
13134         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
13135         ALLOCNO_COVER_CLASS_COST.
13136         (regno_cover_class): Rename to regno_aclass.
13137         (record_reg_classes): Use ira_reg_class_subunion instead of
13138         ira_reg_class_union.
13139         (record_address_regs): Check overflow.
13140         (scan_one_insn): Ditto.
13141         (print_allocno_costs): Print total mem cost fore regional allocation.
13142         (print_pseudo_costs): Use REG_N_REFS.
13143         (find_costs_and_classes): Use classes intersected with them on the
13144         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
13145         ira_reg_class_union.  Use ira_allocno_class_translate and
13146         regno_aclass instead of ira_class_translate and regno_cover_class.
13147         Modify code for finding regno_aclass.  Setup preferred classes for
13148         the next pass.
13149         (setup_allocno_cover_class_and_costs): Rename to
13150         setup_allocno_class_and_costs.  Use regno_aclass instead of
13151         regno_cover_class.  Use ira_set_allocno_class instead of
13152         ira_set_allocno_cover_class.
13153         (init_costs, finish_costs): Use regno_aclass instead of
13154         regno_cover_class.
13155         (ira_costs): Use setup_allocno_class_and_costs instead of
13156         setup_allocno_cover_class_and_costs.
13157         (ira_tune_allocno_costs_and_cover_classes): Rename to
13158         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
13159         by processing objects.  Use ira_reg_class_max_nregs instead of
13160         ira_reg_class_nregs.
13161
13162         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13163
13164         * sched-int.h: Remove mentioning cover classes from the file.
13165         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13166
13167         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
13168         classes from the file.
13169         (struct reg_pref): Rename coverclass into allocnoclass.
13170         (reg_cover_class): Rename to reg_allocno_class.
13171
13172         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13173
13174         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13175
13176         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13177
13178         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13179
13180         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13181
13182         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13183
13184         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13185
13186         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13187
13188         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13189
13190         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13191
13192         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13193         (i386_ira_cover_classes): Ditto.
13194
13195         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13196
13197         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13198
13199         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13200
13201         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13202
13203         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13204
13205         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13206
13207         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13208         (mips_ira_cover_classes): Ditto.
13209
13210         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13211
13212         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13213
13214         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13215
13216         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13217
13218         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13219
13220         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13221         (IRA_COVER_CLASSES_VSX): Ditto.
13222
13223         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13224         (rs6000_ira_cover_classes): Ditto.
13225
13226         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13227
13228         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13229
13230         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13231
13232         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13233
13234         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13235
13236         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13237
13238         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13239
13240         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13241
13242         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13243
13244         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13245
13246 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
13247
13248         PR debug/48253
13249         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13250         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13251         dw_fde_unlikely_section_end_label, cold_in_std_section,
13252         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13253         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13254         fields.
13255         (output_fde): Use dw_fde_second_{begin,end} if second is
13256         true, otherwise dw_fde_{begin,end}.
13257         (output_call_frame_info): Test dw_fde_second_begin != NULL
13258         instead of dw_fde_switched_sections.
13259         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13260         fields, initialize new fields.  Initialize in_std_section
13261         unconditionally from the first partition.
13262         (dwarf2out_end_epilogue): Don't override dw_fde_end when
13263         dw_fde_second_begin is non-NULL.
13264         (dwarf2out_switch_text_section): Stop initializing removed
13265         dw_fde_struct fields, initialize new fields, initialize
13266         also dw_fde_end here.  Set dw_fde_switch_cfi even when
13267         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
13268         (struct var_loc_list_def): Add last_before_switch field.
13269         (arange_table, arange_table_allocated, arange_table_in_use,
13270         ARANGE_TABLE_INCREMENT, add_arange): Removed.
13271         (size_of_aranges): Count !in_std_section and !second_in_std_section
13272         hunks in fdes, instead of looking at arange_table_in_use.
13273         (output_aranges): Add aranges_length argument, don't call
13274         size_of_aranges here.  Instead of using aranges_table*
13275         emit ranges for fdes when !in_std_section resp.
13276         !second_in_std_section.
13277         (dw_loc_list): Break ranges crossing section switch.
13278         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
13279         use dw_fde_second_end instead of dw_fde_end as end of last range.
13280         (gen_subprogram_die): Don't call add_arange.  Use
13281         dw_fde_{begin,end} for first partition and if switched
13282         section dw_fde_second_{begin,end} for the second.
13283         (var_location_switch_text_section_1,
13284         var_location_switch_text_section): New functions.
13285         (dwarf2out_begin_function): Initialize cold_text_section even
13286         when function_section () isn't text_section.
13287         (prune_unused_types): Don't walk arange_table.
13288         (dwarf2out_finish): Don't needlessly test
13289         flag_reorder_blocks_and_partition when testing cold_text_section_used.
13290         If info_section_emitted, call size_of_aranges and if it indicates
13291         non-empty .debug_aranges, call output_aranges with the computed
13292         size.  Stop using removed dw_fde_struct fields, use
13293         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13294         for second.
13295
13296         PR debug/48203
13297         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13298         create ENTRY_VALUE if incoming or address of incoming's MEM
13299         is a hard REG.
13300         * dwarf2out.c (mem_loc_descriptor): Don't emit
13301         DW_OP_GNU_entry_value of DW_OP_fbreg.
13302         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13303         on ENTRY_VALUE is able to find the canonical parameter VALUE.
13304         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13305         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13306         ENTRY_VALUE_EXPs.
13307         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13308         is a REG_P or MEM_P with REG_P address, compute hash directly
13309         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13310         (preserve_only_constants): Don't clear VALUES forwaring
13311         ENTRY_VALUE to some other VALUE.
13312
13313 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
13314
13315         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13316         instead of GEN_INT.
13317
13318 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13319
13320         * cfgexpand.c (expand_gimple_cond): Always set the source location and
13321         block before expanding the statement.
13322         (expand_gimple_stmt_1): Likewise.  Set them here...
13323         (expand_gimple_stmt): ...and not here.  Tidy.
13324         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13325         unknown.
13326
13327 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13328
13329         * Makefile.in: New rule for cprop.o.
13330         * gcse.c: Move constant/copy propagation to cprop.c.
13331         (compute_local_properties): Only handle expression tables.
13332         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13333         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13334         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13335         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13336         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13337         compute_cprop_data, find_used_regs, try_replace_reg,
13338         find_avail_set, cprop_jump, constprop_register, cprop_insn,
13339         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13340         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13341         find_bypass_set, reg_killed_on_edge, bypass_block,
13342         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13343         execute_rtl_cprop, pass_rtl_cprop): Move to...
13344         * cprop.c: ...here.  New file, constant/copy propagation for RTL
13345         moved from gcse.c to here with minor cleanups in duplicated code.
13346
13347 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
13348
13349         * config/i386/i386.c (flag_opts): Fix a typo in
13350         -mavx256-split-unaligned-store.
13351
13352 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13353
13354         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13355         LIBCALL_VALUE): Remove macros.
13356         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13357         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13358         (h8300_function_value, h8300_libcall_value,
13359         h8300_function_value_regno_p): New functions.
13360
13361 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13362
13363         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13364
13365 2011-03-28  Jeff Law  <law@redhat.com>
13366
13367         * tree-ssa-threadupdate.c (redirect_edges): Call
13368         create_edge_and_update_destination_phis as needed.
13369         (create_edge_and_update_destination_phis): Accept new BB argument.
13370         All callers updated.
13371         (thread_block): Do not update the profile when threading around
13372         intermediate blocks.
13373         (thread_single_edge): Likewise.
13374         (determine_bb_domination_status): If BB is not a successor of the
13375         loop header, return NONDOMINATING.
13376         (register_jump_thread): Note when we register a jump thread around
13377         an intermediate block.
13378         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13379         (thread_across_edge): Use it.
13380
13381 2011-03-28  Tristan Gingold  <gingold@adacore.com>
13382
13383         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13384         when for_return is 2.
13385
13386 2011-03-28  Jeff Law  <law@redhat.com>
13387
13388         * var-tracking.c (canonicalize_values_mark): Delete unused
13389         lhs assignment.
13390         (canonicalize_values_star, set_variable_part): Likewise.
13391         (clobber_variable_part, delete_variable_part): Likewise.
13392
13393 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13394
13395         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13396
13397 2011-03-28  Martin Jambor  <mjambor@suse.cz>
13398
13399         * tree-inline.c (expand_call_inline): Do not check that destination
13400         node is analyzed.
13401         (optimize_inline_calls): Assert that destination node is analyzed.
13402         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13403         not call tree_lowering_passes.
13404         * cgraph.h (cgraph_analyze_function): Declare.
13405         * cgraphunit.c (cgraph_analyze_function): Make public.
13406
13407 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
13408
13409         * config/sparc/sparc-opts.h: New.
13410         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13411         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13412         (sparc_option_override): Store processor_type enumeration rather
13413         than string in cpu_default.  Remove name and enumeration from
13414         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
13415         without using sparc_select.  Use target_flags_explicit instead of
13416         fpu_option_set.
13417         * config/sparc/sparc.h (enum processor_type): Move to
13418         sparc-opts.h.
13419         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13420         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13421         HeaderInclude entry.
13422         (mcpu=, mtune=): Use Var and Enum.
13423         (sparc_processor_type): New Enum and EnumValue entries.
13424
13425 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13426             Iain Sandoe  <iains@gcc.gnu.org>
13427
13428         PR target/48245
13429         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13430
13431 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13432
13433         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13434         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13435         Insert new statements at it in lieu of STMT.
13436         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13437         * tree-vect-stmts.c (vectorizable_store): Likewise.
13438         (vectorizable_load): Likewise.
13439
13440 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
13441
13442         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13443         (divtf3): Ditto.
13444         (multf3): Ditto.
13445         (subtf3): Ditto.
13446
13447 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13448
13449         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13450         unaligned 256bit load/store.
13451         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13452         (*avx_movdqu<avxmodesuffix>): Likewise.
13453
13454 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13455
13456         PR target/48288
13457         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13458         * config/pa/pa.md (iordi3): Use new predicate in expander.
13459         (iorsi3): Likewise.
13460
13461 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
13462
13463         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13464         FUNCTION_VALUE_REGNO_P): Remove macros.
13465         * config/mips/mips-protos.h (mips_function_value): Remove.
13466         * config/mips/mips.c (mips_function_value): Rename to...
13467         (mips_function_value_1): ... this. Make static.  Handle receiving
13468         the function type in 'fn_decl_or_type' argument.
13469         (mips_function_value, mips_libcall_value,
13470         mips_function_value_regno_p): New function.
13471         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13472         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13473
13474 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13475
13476         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13477         and -mavx256-split-unaligned-store.
13478         (ix86_option_override_internal): Split 32-byte AVX unaligned
13479         load/store by default.
13480         (ix86_avx256_split_vector_move_misalign): New.
13481         (ix86_expand_vector_move_misalign): Use it.
13482
13483         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13484         -mavx256-split-unaligned-store.
13485
13486         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13487         256bit load/store.  Generate unaligned store on misaligned memory
13488         operand.
13489         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13490         256bit load/store.
13491         (*avx_movdqu<avxmodesuffix>): Likewise.
13492
13493         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13494         -mavx256-split-unaligned-store.
13495
13496 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13497
13498         PR target/38598
13499         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13500         Update commentary.
13501
13502 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13503
13504         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13505         opno arguments with an expand_operand.  Use create_input_operand.
13506         (mips_prepare_builtin_target): Delete.
13507         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13508         functions.
13509         (mips_expand_builtin_direct): Use create_output_operand and
13510         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
13511         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
13512         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13513
13514 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
13515
13516         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13517         function.
13518         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13519
13520 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
13521
13522         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13523         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
13524         basic blocks and call commit_edge_insertions directly.
13525         (fixup_abnormal_edges): Move from here to...
13526         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
13527         on the edges and return whether some have actually been inserted.
13528         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13529         compensation code.
13530
13531 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
13532
13533         PR rtl-optimization/48144
13534         * sel-sched-ir.c (merge_history_vect): Factor out from ...
13535         (merge_expr_data): ... here.
13536         (av_set_intersect): Rename to av_set_code_motion_filter.
13537         Update all callers.  Call merge_history_vect when an expression
13538         is found in both sets.
13539         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13540
13541 2011-03-26  Alan Modra  <amodra@gmail.com>
13542
13543         * config/rs6000/predicates.md (word_offset_memref_op): Handle
13544         cmodel medium addresses.
13545         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13546         64-bit gpr loads and stores.
13547         (rs6000_secondary_reload_ppc64): New function.
13548         * config/rs6000/rs6000-protos.h: Declare it.
13549         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13550
13551 2011-03-26  Alan Modra  <amodra@gmail.com>
13552
13553         PR target/47487
13554         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13555         GNU Go in traceback table.
13556
13557 2011-03-25  Richard Henderson  <rth@redhat.com>
13558
13559         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13560         if there are exactly 6 operands.
13561         (set_storage_via_setmem): Similarly.
13562
13563 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13564
13565         * collect2.c (write_c_file_stat): Handle backslash
13566         as right-hand directory separator.
13567         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13568         checking just for slash.
13569         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13570         instead of checking for trailing slash.
13571         * gcc.c (record_temp_file): Use filename_cmp instead
13572         of strcmp.
13573         (do_spec_1): Likewise.
13574         (replace_outfile_spec_function): Likewise.
13575         (is_directory): Use filename_ncmp instead of strncmp.
13576         (print_multilib_info): Likewise.
13577         * gcov.c (find_source): Use filename_cmp instead
13578         instead of strcmp.
13579         (make_gcov_file_name): Fix order of slash/backslash
13580         checks.
13581         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13582         (add_standard_paths): Likewise.
13583         * mips-tfile.c (saber_stop): Handle backslash.
13584         * prefix.c (update_path): Use filename_ncmp instead of
13585         strncmp.
13586         * profile.c (output_location): Use filename_cmp instead
13587         of strcmp.
13588         * read-md.c (handle_toplevel_file): Handle backslash.
13589         * tlink.c (frob_extension):  Likewise.
13590         * tree-cfg.c (same_line_p): Use filename_cmp instead of
13591         strcmp.
13592         * tree-dump.c (dequeue_and_dump): Handle backslash.
13593         * tree.c (get_file_function_name): Likewise.
13594         * gengtype.c (read_input_list): Likewise.
13595         (get_file_realbasename): Likewise.
13596         (get_output_file_with_visibility): Use filename_cmp
13597         instead of strcmp.
13598
13599 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
13600
13601         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13602         case to VFPv1.
13603
13604 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13605
13606         * fold-const.c (expr_location_or): New function.
13607         (fold_truth_not_expr): Call it.
13608
13609 2011-03-25  Jeff Law  <law@redhat.com>
13610
13611         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13612         va_end.
13613         * c-family/c-common.c (def_fn_type): Likewise.
13614         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13615         * emit-rtl.c (gen_rtvec): Likewise.
13616         * lto/lto-lang.c (def_fn_type): Likewise.
13617
13618 2011-03-25  Richard Guenther  <rguenther@suse.de>
13619
13620         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13621         also generate copies.
13622         (fini_copy_prop): Handle constant values properly.
13623
13624 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
13625
13626         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13627         mode size instead of bitsize with DWARF2_ADDR_SIZE.
13628         (hash_loc_operands, compare_loc_operands): Handle
13629         DW_OP_GNU_entry_value.
13630
13631 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13632
13633         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13634         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13635         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13636         comment and use macro TARGET_64BIT_MS_ABI instead.
13637         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13638         and change default behavior for 32-bit MS_ABI.
13639         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13640         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13641         32-bit, too.
13642         (ix86_cfun_abi): Likewise.
13643         (ix86_maybe_switch_abi): Adjust comment.
13644         (init_cumulative_args): Check for bit-ness in MS_ABI case.
13645         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13646         instead of checking for SYSV_ABI.
13647         (ix86_nsaved_sseregs): Likewise.
13648         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13649         to 16 bytes.
13650         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13651         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13652         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13653         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13654         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13655
13656 2011-03-25  Richard Guenther  <rguenther@suse.de>
13657
13658         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13659         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13660         (verify_gimple): Remove.
13661         * tree-cfg.c (verify_gimple_call): Merge verification
13662         from verify_stmts.
13663         (verify_gimple_phi): Merge verification from verify_stmts.
13664         (verify_gimple_label): New function.
13665         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13666         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13667         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13668         (verify_stmts): Rename to verify_gimple_in_cfg.
13669         (verify_gimple_in_cfg): New function.
13670         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13671         * tree-ssa.c (verify_ssa): Likewise.
13672         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13673
13674 2011-03-25  Richard Guenther  <rguenther@suse.de>
13675
13676         * passes.c (init_optimization_passes): Add FRE pass after
13677         early SRA.
13678
13679 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
13680             Andrew Stubbs  <ams@codesourcery.com>
13681
13682         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13683         for Cortex-A8.
13684         (arm_movdi_vfp_cortexa8): New pattern.
13685         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13686         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13687         instructions when tuning for Cortex-A8.  Set attribute "arch".
13688         * config/arm/arm.md: Move include arm-tune.md up a bit.
13689         (define_attr "arch"): Add "onlya8" and "nota8" values.
13690         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13691
13692 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13693
13694         PR bootstrap/48282
13695         Revert:
13696         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13697
13698         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13699         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13700         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13701         * passes.c (init_optimization_passes): Move
13702         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13703
13704 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13705
13706         * c-typeck.c (comptypes_internal): Replace target
13707         hook call of comp_type_attributes by version in tree.c file.
13708         * gimple.c (gimple_types_compatible_p_1): Likewise.
13709         * tree-ssa.c (useless_type_conversion_p): Likewise.
13710         * tree.c (build_type_attribute_qual_variant): Likewise.
13711         (attribute_value_equal): New static helper function.
13712         (comp_type_attributes): New function.
13713         (merge_attributes): Use attribute_value_equal for comparison.
13714         (attribute_list_contained): Likewise.
13715         * tree.h (comp_type_attributes): New prototype.
13716
13717 2011-03-25  Richard Guenther  <rguenther@suse.de>
13718
13719         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13720         of complex types at -O0.
13721         (verify_gimple_assign_binary): Likewise.
13722         (verify_gimple_assign_ternary): Likewise.
13723
13724 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13725
13726         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13727         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13728
13729 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13730
13731         PR debug/48041
13732         * dwarf2out.c (output_abbrev_section): Only write table when
13733         abbrev_die_table_in_use > 1.
13734
13735 2011-02-24  Richard Henderson  <rth@redhat.com>
13736
13737         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13738         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13739         (alpha_expand_unaligned_load_words): Use extql.
13740         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13741         (emit_insxl): Handle all modes for consistency.
13742
13743 2011-02-24  Richard Henderson  <rth@redhat.com>
13744
13745         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13746         (alpha_expand_unaligned_load): Likewise.
13747         (alpha_expand_unaligned_store): Likewise.
13748         (alpha_expand_unaligned_load_words): Likewise.
13749         (alpha_expand_unaligned_store_words): Likewise.
13750         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13751         (alpha_split_lock_test_and_set_12): Likewise.
13752         (print_operand, alpha_fold_builtin_extxx): Likewise.
13753         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13754         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13755         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13756         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13757         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13758         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13759         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13760         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13761         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13762         (extwl, extll, extql): Similarly.
13763         (inswh, inslh, insqh): Similarly.
13764         (mskbl, mskwl, mskll, mskql): Similarly.
13765         (mskwh, msklh, mskqh): Similarly.
13766
13767 2011-02-24  Richard Henderson  <rth@redhat.com>
13768
13769         * config/alpha/alpha.md (attribute isa): Add er, ner.
13770         (attribute enabled): Handle them.
13771         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13772
13773 2011-02-24  Richard Henderson  <rth@redhat.com>
13774
13775         * config/alpha/alpha.md (attribute isa): Add vms.
13776         (attribute enabled): Handle it.
13777         (*movsf): Merge *movsf_{nofix,fix,nofp}.
13778         (*movdf): Merge *movdf_{nofix,fix,nofp}.
13779         (*movtf): Rename from *movtf_internal for consistency.
13780         (*movsi): Merge with *movsi_nt_vms.
13781         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13782         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13783         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13784         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13785
13786 2011-02-24  Richard Henderson  <rth@redhat.com>
13787
13788         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13789         (extendqisi2, extendhisi2): Likewise.
13790         (extendqidi2): Simplify BWX/non-BWX expansions.
13791         (extendhidi2): Similarly.
13792
13793 2011-02-24  Richard Henderson  <rth@redhat.com>
13794
13795         * config/alpha/alpha.md (attribute isa): New.
13796         (attribute enabled): New.
13797         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13798         (zero_extendqisi2, zero_extendqidi2): Similarly.
13799         (zero_extendhisi2, zero_extendhidi2): Similarly.
13800         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13801
13802 2011-02-24  Richard Henderson  <rth@redhat.com>
13803
13804         * config/alpha/predicates.md (input_operand): Revert last change;
13805         update comment to mention 32-bit VMS rather than Windows.
13806
13807 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13808
13809         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13810         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13811         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13812         * passes.c (init_optimization_passes): Move
13813         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13814
13815 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13816
13817         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13818
13819 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13820
13821         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13822         correctly.
13823
13824 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
13825
13826         PR debug/48204
13827         * simplify-rtx.c (simplify_const_unary_operation): Call
13828         real_convert when changing mode class with FLOAT_EXTEND.
13829
13830 2011-03-24  Nick Clifton  <nickc@redhat.com>
13831
13832         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13833         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13834         * config/rx/rx.c (rx_option_override): Set align_jumps,
13835         align_loops and align_labels if not set by the user.
13836         (rx_align_for_label): New function.
13837         (rx_max_skip_for_label): New function.
13838         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13839         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13840         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13841         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13842         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13843
13844 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13845
13846         PR rtl-optimization/48263
13847         * optabs.c (expand_binop_directly): Reinstate convert_modes code
13848         and original commutative_p handling.  Use maybe_gen_insn.
13849
13850 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13851
13852         * reload.c (find_reloads_subreg_address): Add address_reloaded
13853         parameter and return true there if the full address has been
13854         reloaded.
13855         (find_reloads_toplev): Pass address_reloaded flag.
13856         (find_reloads_address_1): Don't use address_reloaded parameter.
13857
13858 2011-03-24  Jeff Law  <law@redhat.com>
13859
13860         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13861         unused variable "ann".
13862         (remove_unused_locals): Likewise.
13863
13864         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13865         statement.
13866
13867         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13868         after it is freed.
13869
13870 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13871
13872         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13873         for invalid symbolic addresses.
13874         (s390_secondary_reload): Don't use s390_check_symref_alignment for
13875         larl operands.
13876
13877 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13878
13879         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13880         the argument in calls to fold_truth_not_expr.
13881
13882 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13883
13884         * tree.c (record_node_allocation_statistics): New function.
13885         (make_node_stat, copy_node_stat, build_string): Call it.
13886         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13887         (build1_stat, build_omp_clause): Likewise.
13888
13889 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13890
13891         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13892         last commit.
13893
13894 2011-03-24  Richard Guenther  <rguenther@suse.de>
13895
13896         PR tree-optimization/48271
13897         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13898         blocks that still exist.
13899
13900 2011-03-24  Richard Guenther  <rguenther@suse.de>
13901
13902         PR tree-optimization/48270
13903         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13904         not free datarefs before ddrs.
13905
13906 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13907
13908         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13909         from the address built for a reference with variable offset.
13910
13911 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13912
13913         PR target/48237
13914         * config/i386/i386.md (*movdf_internal_rex64): Do not split
13915         alternatives that can be handled with movq or movabsq insn.
13916         (*movdf_internal): Disable for !TARGET_64BIT.
13917         (*movdf_internal_nointeger): Ditto.
13918         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13919
13920 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13921
13922         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13923         (FUNCTION_ARG_ADVANCE): Likewise.
13924         * tm.texi.in: Change references to them to hook references.
13925         * tm.texi: Regenerate.
13926         * targhooks.c (default_function_arg): Eliminate check for target macro.
13927         (default_function_incoming_arg): Likewise.
13928         (default_function_arg_advance): Likewise.
13929         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13930         (function_arg_advance): Likewise.
13931         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13932
13933 2011-03-24  Richard Guenther  <rguenther@suse.de>
13934
13935         PR middle-end/48269
13936         * tree-object-size.c (addr_object_size): Do not double-account
13937         for MEM_REF offsets.
13938
13939 2011-03-24  Diego Novillo  <dnovillo@google.com>
13940
13941         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13942         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13943         (lto_input_data_block): Move from lto-opts.c.  Make extern.
13944         Update all users.
13945         (lto_input_string): Rename from input_string.  Make extern.
13946         Update all users.
13947         * lto-streamer-out.c (lto_output_string_with_length): Rename from
13948         output_string_with_length.
13949         Output 0 to indicate a non-NULL string.  Update all callers to
13950         not emit 0.
13951         (lto_output_string): Rename from output_string.  Make extern.
13952         Update all users.
13953         (lto_output_decl_state_streams): Make extern.
13954         (lto_output_decl_state_refs): Make extern.
13955         * lto-streamer.h (lto_input_string): Declare.
13956         (lto_input_data_block): Declare.
13957         (lto_output_string): Declare.
13958         (lto_output_string_with_length): Declare.
13959         (lto_output_decl_state_streams): Declare.
13960         (lto_output_decl_state_refs): Declare.
13961
13962 2011-03-24  Richard Guenther  <rguenther@suse.de>
13963
13964         PR tree-optimization/46562
13965         * tree.c (build_invariant_address): New function.
13966         * tree.h (build_invariant_address): Declare.
13967         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13968         a renamed function moved ...
13969         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13970         Take valueization callback parameter.
13971         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13972         * gimple-fold.h: New file.
13973         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13974         (ccp_fold, fold_const_aggregate_ref,
13975         fold_ctor_reference, fold_nonarray_ctor_reference,
13976         fold_array_ctor_reference, fold_string_cst_ctor_reference,
13977         get_base_constructor): Move ...
13978         * gimple-fold.c: ... here.
13979         (gimple_fold_stmt_to_constant_1): New function
13980         split out from ccp_fold.  Take a valueization callback parameter.
13981         Valueize all operands.
13982         (gimple_fold_stmt_to_constant): New wrapper function.
13983         (fold_const_aggregate_ref_1): New function split out from
13984         fold_const_aggregate_ref.  Take a valueization callback parameter.
13985         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13986         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13987         invariant POINTER_PLUS_EXPRs to invariant form.
13988         (vn_valueize): New function.
13989         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13990         * tree-vrp.c (vrp_valueize): New function.
13991         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13992         to fold statements to constants.
13993         * tree-ssa-pre.c (eliminate): Properly guard propagation of
13994         function declarations.
13995         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13996         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13997
13998 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13999
14000         * config/h8300/predicates.md (jump_address_operand): Fix register
14001         mode check.
14002
14003 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
14004
14005         * doc/invoke.texi (max-stores-to-sink): Document.
14006         * params.h (MAX_STORES_TO_SINK): Define.
14007         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14008         if either vectorization or if-conversion is disabled.
14009         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14010         tree-vect-data-refs.c vect_equal_offsets.
14011         (dr_equal_offsets_p): New function.
14012         (find_data_references_in_bb): Remove static.
14013         * tree-data-ref.h (find_data_references_in_bb): Declare.
14014         (dr_equal_offsets_p): Likewise.
14015         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14016         (vect_drs_dependent_in_basic_block): Update calls to
14017         vect_equal_offsets.
14018         (vect_check_interleaving): Likewise.
14019         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14020         (cond_if_else_store_replacement): Rename to...
14021         (cond_if_else_store_replacement_1): ... this.  Change arguments and
14022         documentation.
14023         (cond_if_else_store_replacement): New function.
14024         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14025         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14026
14027 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
14028
14029         PR target/46934
14030         * config/arm/arm.md (casesi): Use the gen_int_mode() function
14031         to subtract lower bound instead of GEN_INT().
14032
14033 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
14034
14035         PR other/48179
14036         PR other/48221
14037         PR other/48234
14038         * doc/extend.texi (Alignment): Move section to match order in TOC.
14039         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14040         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14041
14042 2011-03-23  Jeff Law  <law@redhat.com>
14043
14044         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14045         before removing the edge.
14046
14047         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14048         it may have been freed by redirect_branch_edge or
14049         redirect_edge_succ_nodup.
14050
14051 2011-03-23  Richard Guenther  <rguenther@suse.de>
14052
14053         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
14054         (check_va_list_escapes): Likewise.
14055         (check_all_va_list_escapes): Likewise.
14056
14057 2011-03-23  Richard Guenther  <rguenther@suse.de>
14058
14059         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14060         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14061         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14062         (alias.o): Likewise.
14063         (ipa-type-escape.o): Remove.
14064         (ipa-struct-reorg.o): Likewise.
14065         (GTFILES): Remove ipa-struct-reorg.c.
14066         * alias.c: Do not include ipa-type-escape.h.
14067         * tree-ssa-alias.c: Likewise.
14068         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14069         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14070         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14071         and ipa-type-escape passes.
14072         * tree-pass.h (pass_ipa_type_escape): Remove.
14073         (pass_ipa_struct_reorg): Likewise.
14074         * ipa-struct-reorg.h: Remove.
14075         * ipa-struct-reorg.c: Likewise.
14076         * ipa-type-escape.h: Likewise.
14077         * ipa-type-escape.c: Likewise.
14078         * doc/invoke.texi (-fipa-struct-reorg): Remove.
14079         (--param struct-reorg-cold-struct-ratio): Likewise.
14080         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14081         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14082         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14083
14084 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14085
14086         * config/s390/2084.md: Enable all insn reservations also for z9_ec
14087         cpu attribute value.
14088         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14089         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14090         * config/s390/s390.c (processor_flags_table): New constant array.
14091         (s390_handle_arch_option): Remove.
14092         (s390_handle_option): Remove s390_handle_arch_option invocations
14093         and OPT_mwarn_framesize_ handling.
14094         (s390_option_override): Remove s390_handle_arch_option invocation.
14095         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14096         warnings.
14097         * config/s390/s390.md (cpu attribute): Add z9_ec value.
14098         * config/s390/s390.opt (s390_tune, s390_arch)
14099         (march=): Replace s390_arch_option enum and values with
14100         processor_type.  Set variable name to s390_arch.  Set
14101         initialization value.
14102         (mtune=): Replace s390_arch_option with processor_type.  Set
14103         variable name to s390_tune.  Set initialization value.
14104
14105 2011-03-23  Julian Brown  <julian@codesourcery.com>
14106
14107         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14108         accesses which are not naturally aligned.
14109
14110 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
14111
14112         PR target/47553
14113         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14114
14115 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
14116
14117         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14118         parameter from "int" to "enum insn_code".
14119         (expand_operand_type): New enum.
14120         (expand_operand): New structure.
14121         (create_expand_operand): New function.
14122         (create_fixed_operand, create_output_operand): Likewise
14123         (create_input_operand, create_convert_operand_to): Likewise.
14124         (create_convert_operand_from, create_address_operand): Likewise.
14125         (create_integer_operand): Likewise.
14126         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14127         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14128         (expand_insn, expand_jump_insn): Likewise.
14129         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14130         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14131         (expand_movstr, expand_builtin___clear_cache): Likewise.
14132         (expand_builtin_lock_release): Likewise.
14133         * explow.c (allocate_dynamic_stack_space): Likewise.
14134         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
14135         and use the default handling in that case.
14136         * expmed.c (check_predicate_volatile_ok): Delete.
14137         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14138         (emit_cstore): Likewise.
14139         * expr.c (emit_block_move_via_movmem): Likewise.
14140         (set_storage_via_setmem, expand_assignment): Likewise.
14141         (emit_storent_insn, try_casesi): Likewise.
14142         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
14143         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14144         (expand_vec_shift_expr, expand_binop_directly): Likewise.
14145         (expand_twoval_unop, expand_twoval_binop): Likewise.
14146         (expand_unop_direct, emit_indirect_jump): Likewise.
14147         (emit_conditional_move, vector_compare_rtx): Likewise.
14148         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14149         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14150         (expand_sync_lock_test_and_set): Likewise.
14151         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
14152         (emit_unop_insn): Likewise.
14153         (expand_copysign_absneg): Change icode to an insn_code.
14154         (create_convert_operand_from_type): New function.
14155         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14156         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14157         (expand_insn, expand_jump_insn): Likewise.
14158         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14159         than const_int_operand for operand 2.
14160
14161 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14162
14163         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14164         if possible.
14165
14166 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14167
14168         * emit-rtl.c (emit_pattern_before_noloc): New function.
14169         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14170         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14171         (emit_pattern_after_noloc): New function.
14172         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14173         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14174
14175 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14176
14177         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14178         (__ffsDI2): Likewise.
14179
14180 2011-03-22  Richard Henderson  <rth@redhat.com>
14181
14182         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14183         of !TARGET_ABI_OPEN_VMS.
14184         (alpha_trampoline_init, alpha_start_function): Likewise.
14185         (alpha_expand_epilogue, alpha_file_start): Likewise.
14186         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14187         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14188         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14189         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14190         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14191
14192 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14193
14194         * config/s390/s390-opts.h: New.
14195         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14196         s390_arch_flags, s390_warn_framesize, s390_stack_size,
14197         s390_stack_guard): Remove.
14198         (s390_handle_arch_option): Return void.  Take enum
14199         s390_arch_option value instead of string and searching array.
14200         (s390_handle_option): Don't assert that global structures are in
14201         use.  Access variables via opts pointer.  Use error_at.  Don't use
14202         sscanf for -mstack-guard= or -mstack-size=.  Update call to
14203         s390_handle_arch_option.
14204         (s390_option_override): Update call to s390_handle_arch_option.
14205         (s390_emit_prologue): Use %d format for s390_stack_size in
14206         diagnostic.  Use %wd for HOST_WIDE_INT.
14207         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14208         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14209         * config/s390/s390.opt (config/s390/s390-opts.h): New
14210         HeaderInclude entry.
14211         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14212         s390_arch_flags, s390_warn_framesize): New Variable entries.
14213         (s390_arch_option): New Enum and EnumValue entries.
14214         (march=): Use Enum instead of Var.
14215         (mstack-guard=, mstack-size=): Use UInteger and Var.
14216         (mtune=): Use Enum.
14217
14218 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14219
14220         * config/score/score.c (score_handle_option): Don't assert that
14221         global structures are in use.  Access target_flags via opts
14222         pointer.  Use value of -march= option to determine target_flags
14223         settings.
14224         * config/score/score.opt (march=): Use Enum.
14225         (score_arch): New Enum and EnumValue entries.
14226
14227 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14228
14229         * config/mep/mep.c (option_mtiny_specified): Remove.
14230         (mep_option_override): Move register handling for -mivc2 from
14231         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
14232         instead of option_mtiny_specified.
14233         (mep_handle_option): Access target_flags via opts pointer.  Don't
14234         assert that global structures are in use.  Defer part of -mivc2
14235         handling and move it to mep_option_override.
14236         * config/mep/mep.opt (IVC2): New Mask entry.
14237         (mivc2): Use Var and Defer instead of Mask.
14238
14239 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14240
14241         * config/v850/v850-opts.h: New.
14242         * config/v850/v850.c (small_memory): Replace with
14243         small_memory_physical_max array.  Make that array static const.
14244         (v850_handle_memory_option): Take integer value of argument.  Take
14245         gcc_options pointer, option text and location.  Return void.
14246         Update for changes to small memory structures.
14247         (v850_handle_option): Access target_flags via opts pointer.  Don't
14248         assert that global structures are in use.  Update calls to
14249         v850_handle_memory_option.
14250         (v850_encode_data_area): Update references to small memory settings.
14251         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14252         (enum small_memory_type): Move to v850-opts.h.
14253         * config/v850/v850.opt (config/v850/v850-opts.h): New
14254         HeaderInclude entry.
14255         (small_memory_max): New Variable entry.
14256         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
14257         (mtda, mzda): Likewise.
14258
14259 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14260
14261         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14262         pointer.  Don't assert that global structures are in use.
14263
14264 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14265
14266         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14267         via opts pointer.  Don't assert that global structures are in use.
14268
14269 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14270
14271         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14272         (munix=93): Use Var.
14273         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14274         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14275         * config/pa/pa-opts.h: New.
14276         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14277         (pa_handle_option): Don't assert that global structures are in
14278         use.  Access target_flags via opts pointer.  Don't handle
14279         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14280         OPT_munix_98 here.
14281         (pa_option_override): Handle deferred OPT_mfixed_range_.
14282
14283 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14284
14285         * config/mn10300/mn10300-opts.h: New.
14286         * config/mn10300/mn10300.c (mn10300_processor,
14287         mn10300_tune_string): Remove.
14288         (mn10300_handle_option): Don't assert that global structures are
14289         in use.  Access mn10300_processor via opts pointer.  Don't handle
14290         OPT_mtune_ here.
14291         * config/mn10300/mn10300.h (enum processor_type): Move to
14292         mn10300-opts.h.
14293         (mn10300_processor): Remove.
14294         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14295         HeaderInclude entry.
14296         (mn10300_processor): New Variable entry.
14297         (mtune=): Use Var.
14298
14299 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14300
14301         * config/microblaze/microblaze.c: Don't include opts.h.
14302         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14303         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14304         (mno-clearbss): Use Var and Warn.
14305
14306 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14307
14308         * config/m32r/m32r-opts.h: New.
14309         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14310         (m32r_handle_option): Don't assert that global structures are in
14311         use.  Access target_flags and m32r_cache_flush_func via opts
14312         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
14313         OPT_mno_flush_trap here.
14314         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14315         include of m32r-opts.h.
14316         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14317         HeaderInclude entry.
14318         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14319         (mmodel=): Use Enum and Var.
14320         (m32r_model): New Enum and EnumValue entries.
14321         (mno-flush-trap): Use Var.
14322         (msdata=): Use Enum and Var.
14323         (m32r_sdata): New Enum and EnumValue entries.
14324
14325 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14326
14327         * config/m32c/m32c.c: Don't include opts.h.
14328         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14329         m32c_handle_option): Remove.
14330         (m32c_option_override): Check global_options_set.x_target_memregs
14331         instead of target_memregs_set.
14332         * config/m32c/m32c.h (target_memregs): Remove.
14333         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14334         variable.
14335
14336 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14337
14338         * config/iq2000/iq2000-opts.h: New.
14339         * config/iq2000/iq2000.c: Don't include opts.h.
14340         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14341         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14342         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14343         HeaderInclude entry.
14344         (iq2000_tune): New Variable entry.
14345         (march=): Add comment.  Use Enum.
14346         (iq2000_arch): New Enum and EnumValue entries.
14347         (mcpu=): Use Enum and Var.
14348         (iq2000_tune): New Enum and EnumValue entries.
14349
14350 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14351
14352         * config/ia64/ia64-opts.h: New.
14353         * config/ia64/ia64.c (ia64_tune): Remove.
14354         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14355         here.  Use error_at.
14356         (ia64_option_override): Handle deferred OPT_mfixed_range_.
14357         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14358         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14359         HeaderInclude entry.
14360         (ia64_tune): New Variable entry.
14361         (mfixed-range=): Use Defer and Var.
14362         (mtune=): Use Enum and Var.
14363         (ia64_tune): New Enum and EnumValue entries.
14364
14365 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14366
14367         * config/frv/frv-opts.h: New.
14368         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14369         frv-opts.h.
14370         (frv_cpu_type): Remove.
14371         * config/frv/frv.c: Don't include opts.h.
14372         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14373         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14374         (frv_cpu_type): New Variable entry.
14375         (frv_cpu): New Enum and EnumValue entries.
14376
14377 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14378
14379         * config/cris/cris.c (cris_handle_option): Access target_flags via
14380         opts pointer.  Don't assert that global structures are in use.
14381         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14382         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14383
14384 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14385
14386         * config/bfin/bfin-opts.h: New.
14387         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14388         bfin_si_revision, bfin_workarounds): Remove.
14389         (bfin_cpus): Make static const.
14390         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14391         not bfin_lib_id_given.
14392         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
14393         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14394         pointer. Use error_at.  Don't assert that global structures are in use.
14395         * config/bfin/bfin.h: Include bfin-opts.h.
14396         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14397         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14398         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14399         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14400         entries.
14401
14402 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14403
14404         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14405         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14406         or -msoft-float here.
14407         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14408         -msoft-float and -mhard-float.
14409         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14410         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14411         msoft-float.
14412         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14413         -msoft-float.
14414         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14415         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14416         not mhard-float.
14417         (LIBGCC_SPEC): Don't handle -msoft-float.
14418         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14419         -mhard-float.
14420         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14421         msoft-float.
14422         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14423         -mfloat-abi=*, not -msoft-float and -mhard-float.
14424         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14425         -msoft-float.
14426         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14427         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14428         mhard-float and msoft-float.
14429         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14430         mfloat-abi=soft in comments, not mhard-float and msoft-float.
14431         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14432         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14433         mhard-float.
14434         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14435         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14436         msoft-float.
14437         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14438         not mhard-float.
14439         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14440         not msoft-float.
14441
14442 2011-03-22  Richard Henderson  <rth@redhat.com>
14443
14444         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14445         TARGET_ABI_WINDOWS_NT.
14446         (alpha_output_function_end_prologue): Likewise.
14447         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14448         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14449         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14450         (trap, *movsi_nt_vms): Likewise.
14451         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14452         (*tablejump_osf_nt_internal): Remove.
14453         * config/alpha/predicates.md (input_operand): Only test Pmode.
14454
14455 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14456
14457         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14458         via opts pointer.  Use error_at.  Don't assert that global
14459         structures are in use.
14460
14461 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14462
14463         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14464         (ix86_handle_option): Access ix86_isa_flags and
14465         ix86_isa_flags_explicit via opts pointer.  Don't assert that
14466         global structures are in use.
14467         (ix86_function_specific_save, ix86_function_specific_restore):
14468         Update ix86_isa_flags_explicit field name.
14469         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14470         (ix86_isa_flags_explicit): Rename TargetSave entry to
14471         x_ix86_isa_flags_explicit.
14472
14473 2011-03-22  Richard Henderson  <rth@redhat.com>
14474
14475         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14476         (alpha_option_override, direct_return): Likewise.
14477         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14478         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14479         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14480         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14481         (alpha_expand_epilogue, alpha_end_function): Likewise.
14482         (alpha_init_libfuncs): Likewise.
14483         (struct machine_function): Remove unicosmk members.
14484         (print_operand) ['t']: Remove.
14485         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14486         unicosmk_output_module_name, unicosmk_output_common,
14487         current_section_align, unicosmk_output_text_section_asm_op,
14488         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14489         unicosmk_section_type_flags, unicosmk_unique_section,
14490         unicosmk_asm_named_section, unicosmk_insert_attributes,
14491         unicosmk_output_align, unicosmk_defer_case_vector,
14492         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14493         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14494         unicosmk_output_ssib, unicosmk_add_call_info_word,
14495         unicosmk_extern_head, unicosmk_output_default_externs,
14496         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14497         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14498         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14499         * config/alpha/alpha-protos.h: Update.
14500         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14501         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14502         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14503         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14504         (*mulsi_se, mulvsi3): Likewise.
14505         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14506         (*divmodsi_internal, call, call_value, realign): Likewise.
14507         (moddi3, umoddi3): Likewise; remove duplicate expander.
14508         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14509         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14510         (*movdi_nofix): Remove r/U alternative.
14511         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14512         * config/alpha/constraints.md ("U"): Remove.
14513         * config/alpha/predicates.md (call_operand"): Don't test
14514         TARGET_ABI_UNICOSMK.
14515
14516 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14517
14518         * target.def (handle_option): Take gcc_options and
14519         cl_decoded_option pointers and location_t.
14520         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14521         * doc/tm.texi: Regenerate.
14522         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14523         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14524         * lto-opts.c (lto_reissue_options): Generate option structure for
14525         targetm.handle_option call.
14526         * opts.c (target_handle_option): Update call to
14527         targetm.handle_option.  Remove assertions about values now passed
14528         down to hook.
14529         * targhooks.c (default_target_handle_option): New.
14530         * targhooks.h (default_target_handle_option): Declare.
14531         * config/alpha/alpha.c: Include opts.h.
14532         (alpha_handle_option): Update to new hook interface.
14533         * config/arm/arm.c: Include opts.h.
14534         (arm_handle_option): Update to new hook interface.
14535         * config/arm/t-arm (arm.o): Update dependencies.
14536         * config/bfin/bfin.c: Include opts.h.
14537         (bfin_handle_option): Update to new hook interface.
14538         * config/cris/cris.c: Include opts.h.
14539         (cris_handle_option): Update to new hook interface.
14540         * config/frv/frv.c: Include opts.h.
14541         (frv_handle_option): Update to new hook interface.
14542         * config/i386/i386.c: Include opts.h.
14543         (ix86_handle_option): Update to new hook interface.
14544         (ix86_valid_target_attribute_inner_p): Generate option structure
14545         for call to ix86_handle_option.
14546         * config/i386/t-i386 (i386.o): Update dependencies.
14547         * config/ia64/ia64.c: Include opts.h.
14548         (ia64_handle_option): Update to new hook interface.
14549         * config/ia64/t-ia64 (ia64.o): Update dependencies.
14550         * config/iq2000/iq2000.c: Include opts.h.
14551         (iq2000_handle_option): Update to new hook interface.
14552         * config/m32c/m32c.c: Include opts.h.
14553         (m32c_handle_option): Update to new hook interface.
14554         * config/m32r/m32r.c: Include opts.h.
14555         (m32r_handle_option): Update to new hook interface.
14556         * config/m68k/m68k.c: Include opts.h.
14557         (m68k_handle_option): Update to new hook interface.
14558         * config/mep/mep.c: Include opts.h.
14559         (mep_handle_option): Update to new hook interface.
14560         * config/microblaze/microblaze.c: Include opts.h.
14561         (microblaze_handle_option): Update to new hook interface.
14562         * config/mips/mips.c: Include opts.h.
14563         (mips_handle_option): Update to new hook interface.
14564         * config/mn10300/mn10300.c: Include opts.h.
14565         (mn10300_handle_option): Update to new hook interface.
14566         * config/pa/pa.c: Include opts.h.
14567         (pa_handle_option): Update to new hook interface.
14568         * config/pdp11/pdp11.c: Include opts.h.
14569         (pdp11_handle_option): Update to new hook interface.
14570         * config/rs6000/rs6000.c: Include opts.h.
14571         (rs6000_handle_option): Update to new hook interface.
14572         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14573         * config/rx/rx.c: Include opts.h.
14574         (rx_handle_option): Update to new hook interface.
14575         * config/s390/s390.c: Include opts.h.
14576         (s390_handle_option): Update to new hook interface.
14577         * config/score/score.c: Include opts.h.
14578         (score_handle_option): Update to new hook interface.
14579         * config/sh/sh.c: Include opts.h.
14580         (sh_handle_option): Update to new hook interface.
14581         * config/sparc/sparc.c: Include opts.h.
14582         (sparc_handle_option): Update to new hook interface.
14583         * config/v850/v850.c: Include opts.h.
14584         (v850_handle_option): Update to new hook interface.
14585
14586 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14587
14588         * gcc.c (driver_unknown_option_callback): Only permit and save
14589         unknown -Wno- options.
14590         (driver_wrong_lang_callback): Save options directly instead of via
14591         driver_unknown_option_callback.
14592
14593 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14594
14595         * combine.c (simplify_set): Try harder to find the best CC mode when
14596         simplifying a nested COMPARE on the RHS.
14597
14598 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14599
14600         * config/alpha/gnu.h: Remove.
14601         * config/arc: Remove directory.
14602         * config/arm/netbsd.h: Remove.
14603         * config/arm/t-pe: Remove.
14604         * config/crx: Remove directory.
14605         * config/i386/netbsd.h: Remove.
14606         * config/m68hc11: Remove directory.
14607         * config/m68k/uclinux-oldabi.h: Remove.
14608         * config/mcore/mcore-pe.h: Remove.
14609         * config/mcore/t-mcore-pe: Remove.
14610         * config/netbsd-aout.h: Remove.
14611         * config/rs6000/gnu.h: Remove.
14612         * config/sh/sh-symbian.h: Remove.
14613         * config/sh/symbian-base.c: Remove.
14614         * config/sh/symbian-c.c: Remove.
14615         * config/sh/symbian-cxx.c: Remove.
14616         * config/sh/symbian-post.h: Remove.
14617         * config/sh/symbian-pre.h: Remove.
14618         * config/sh/t-symbian: Remove.
14619         * config/svr3.h: Remove.
14620         * config/vax/netbsd.h: Remove.
14621         * config.build: Don't handle i[34567]86-*-pe.
14622         * config.gcc: Remove handling of deprecations for most deprecated
14623         targets.
14624         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14625         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14626         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14627         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14628         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14629         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14630         Remove cases.
14631         * config.host: Don't handle i[34567]86-*-pe.
14632         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14633         (ASM_SPEC32): Don't handle -mcall-gnu.
14634         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14635         -mcall-gnu.
14636         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14637         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14638         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14639         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14640         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14641         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14642         conditional on SYMBIAN.
14643         * configure.ac: Don't handle powerpc*-*-gnu*.
14644         * configure: Regenerate.
14645         * doc/extend.texi (interrupt attribute): Don't mention CRX.
14646         * doc/install-old.texi (m6811, m6812): Don't mention.
14647         * doc/install.texi (arc-*-elf*): Don't document multilib option.
14648         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14649         (m68k-uclinuxoldabi): Don't mention.
14650         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14651         Remove.
14652         (-mcall-gnu): Remove.
14653         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14654         families): Remove constraint documentation.
14655
14656 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
14657
14658         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14659         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14660         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14661
14662 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14663
14664         PR target/48226
14665         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14666         vector when peeking at the next token for vector, don't expand the
14667         keywords.
14668
14669 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
14670
14671         * config/avr/avr-protos.h (expand_epilogue): Change prototype
14672         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14673         * config/avr/avr.c (init_cumulative_args)
14674         (avr_function_arg_advance): Use it.
14675         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14676         sibcall epilogues.
14677         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14678         (avr_function_ok_for_sibcall): ...this new function.
14679         (avr_lookup_function_attribute1): New static Function.
14680         (avr_naked_function_p, interrupt_function_p)
14681         (signal_function_p, avr_OS_task_function_p)
14682         (avr_OS_main_function_p): Use it.
14683         * config/avr/avr.md ("sibcall", "sibcall_value")
14684         ("sibcall_epilogue"): New expander.
14685         ("*call_insn", "*call_value_insn"): New insn.
14686         ("call_insn", "call_value_insn"): Remove
14687         ("call", "call_value", "epilogue"): Change expander to handle
14688         sibling calls.
14689
14690 2011-03-21  Nick Clifton  <nickc@redhat.com>
14691
14692         * doc/invoke.texi (Overall Options): Move closing brace to end of
14693         options list.
14694         (Optimization Options): Add missing @gol.
14695         (Directory Options): Likewise.
14696         (i386 and x86-64 Options): Likewise.
14697         (RS6000 and PowerPC Options): Likewise.
14698         (i386 and x86-64 Windows Options): Likewise.
14699         (V850 Options): Add text missing from descriptions.
14700
14701 2011-03-22  Richard Henderson  <rth@redhat.com>
14702
14703         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14704         (avr_incoming_return_addr_rtx): New.
14705         (emit_push_byte): New.
14706         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
14707         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
14708         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
14709         (emit_pop_byte): New.
14710         (expand_epilogue): Use it.  Pop frame pointer by bytes.
14711         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14712         (INCOMING_RETURN_ADDR_RTX): New.
14713         (INCOMING_FRAME_SP_OFFSET): New.
14714         (ARG_POINTER_CFA_OFFSET): New.
14715         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14716         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14717         (pophi): Remove.
14718
14719         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14720
14721 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14722
14723         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14724         (FUNCTION_ARG_ADVANCE): Likewise.
14725         * tm.texi.in: Change references to them to hook references.
14726         * tm.texi: Regenerate.
14727         * targhooks.c (default_function_arg): Eliminate check for target
14728         macro.
14729         (default_function_incoming_arg): Likewise.
14730         (default_function_arg_advance): Likewise.
14731         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14732         (function_arg_advance): Likewise.
14733         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14734
14735 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14736
14737         * tree.c (build_call_1): New function.
14738         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14739
14740 2011-03-22  Richard Guenther  <rguenther@suse.de>
14741
14742         PR tree-optimization/48228
14743         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14744         for single-arg PHIs.
14745
14746 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
14747
14748         PR rtl-optimization/48143
14749         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14750         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14751         sse2_cvtps2pd): Likewise.
14752
14753 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14754
14755         * recog.c (canonicalize_change_group): Use validate_unshare_change.
14756
14757 2011-03-22  Richard Guenther  <rguenther@suse.de>
14758
14759         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14760         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14761         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14762         and REALIGN_LOAD_EXPR.
14763         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14764         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14765         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14766         DOT_PROD_EXPR case ...
14767         (expand_expr_real_2): ... here.
14768         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14769         and REALIGN_LOAD_EXPR.
14770         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14771         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14772         (vect_create_epilog_for_reduction): Likewise.
14773         (vectorizable_reduction): Likewise.
14774         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14775         * tree-vect-stmts.c (vectorizable_load): Likewise.
14776
14777 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14778
14779         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14780
14781 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14782
14783         * config/s390/s390.c (s390_delegitimize_address): Fix offset
14784         handling for PLTOFF/GOTOFF.
14785
14786 2011-03-22  Nick Clifton  <nickc@redhat.com>
14787
14788         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14789         trailing backslash from the end of the macro definition.
14790
14791 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14792
14793         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14794         and PLT unspecs.
14795
14796 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
14797
14798         * expr.h (prepare_operand): Move to...
14799         * optabs.h (prepare_operand): ...here and change the insn code
14800         parameter from "int" to "enum insn_code".
14801         (insn_operand_matches): Declare.
14802         * expr.c (init_expr_target): Use insn_operand_matches.
14803         (compress_float_constant): Likewise.
14804         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14805         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14806         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14807         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14808         Likewise.
14809         (gen_cond_trap): Likewise.
14810         (prepare_operand): Likewise.  Change icode to an insn_code.
14811         (insn_operand_matches): New function.
14812         * reload.c (find_reloads_address_1): Use insn_operand_matches.
14813         * reload1.c (gen_reload): Likewise.
14814         * targhooks.c (default_secondary_reload): Likewise.
14815
14816 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14817
14818         * config/alpha/alpha.md (unspec): New define_c_enum.
14819         (unspecv): Ditto.
14820
14821 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14822
14823         PR debug/48214
14824         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14825         between a call and its CALL_ARG_LOCATION note.
14826
14827 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
14828
14829         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14830
14831 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14832
14833         PR c/42544
14834         PR c/48197
14835         * c-common.c (shorten_compare): If primopN is first sign-extended
14836         to opN and then zero-extended to result type, set primopN to opN.
14837
14838 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
14839
14840         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14841         for barrier handlers.
14842
14843 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14844
14845         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14846         UNSPEC constants to be in the unspec enumeration, and redefine
14847         all UNSPECV constants to be in the unspecv enumeration, so that
14848         dumps print which unspec/unspec_volatile this is.
14849         * config/rs6000/vector.md (UNSPEC_*): Ditto.
14850         * config/rs6000/paired.md (UNSPEC_*): Ditto.
14851         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14852         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14853         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14854
14855         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14856         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14857         UNSPECV_LWSYNC, since these are used as unspec_volatile.
14858         * config/rs6000/sync.md (isync, lwsync): Ditto.
14859
14860 2011-03-21  Richard Guenther  <rguenther@suse.de>
14861
14862         * params.def (lto-min-partition): Fix typo.
14863
14864 2011-03-21  Richard Guenther  <rguenther@suse.de>
14865
14866         PR c/47939
14867         * c-decl.c (grokdeclarator): Drop to the main variant only
14868         for array types.  Drop flag_gen_aux_info check.
14869
14870 2011-03-21  Richard Guenther  <rguenther@suse.de>
14871
14872         PR translation/47911
14873         * params.def (lto-partitions): Fix typo.
14874         (lto-min-partition): Fix wording.
14875
14876 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
14877
14878         * config/rs6000/t-freebsd: Remove duplication from file.
14879
14880 2011-03-21  Richard Guenther  <rguenther@suse.de>
14881
14882         PR middle-end/47661
14883         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14884
14885 2011-03-21  Richard Guenther  <rguenther@suse.de>
14886
14887         PR lto/48210
14888         * params.def (lto-partitions): Require at least 1 partition.
14889
14890 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14891
14892         * gthr-solaris.h: Remove.
14893         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14894         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14895         (LIB_SPEC): Likewise.
14896         * config/sol2.opt (threads): Remove.
14897         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14898         (sparc*-*-solaris2*): Likewise.
14899         * configure.ac (enable_threads): Enable solaris support.
14900         * configure: Regenerate.
14901         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14902         * doc/install.texi (Configuration, --enable-threads=lib): Remove
14903         solaris.
14904
14905 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14906
14907         * config.gcc: Obsolete *-*-solaris2.8*.
14908         * doc/install.texi (Specific, *-*-solaris2*): Document it.
14909
14910 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14911
14912         PR bootstrap/48135
14913         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14914         reference.  Solaris 8 perl works.
14915
14916 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14917
14918         PR bootstrap/48135
14919         * doc/install.texi (Prerequisites): Move jar etc. up.
14920         Explain support library version requirements.
14921
14922 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14923
14924         PR bootstrap/48135
14925         * doc/install.texi (Prerequisites): Move Perl to build
14926         requirements.  Always necessary on Solaris 2 with Sun ld.
14927
14928 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14929
14930         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14931         binutils 2.21.
14932         (Specific, i?86-*-solaris2.[89]): Likewise.
14933         (Specific, i?86-*-solaris2.10): Likewise.
14934         (Specific, mips-sgi-irix6): Likewise.
14935         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14936         Update for binutils 2.21.
14937
14938 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14939
14940         * configure.ac (gcc_cv_lto_plugin): Fix typo.
14941         Allow -fuse-linker-plugin for non-default plugin linker.
14942         * configure: Regenerate.
14943
14944 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14945
14946         PR bootstrap/48167
14947         * gengtype.c (files_rules): Added rule for cp/parser.h.
14948
14949 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14950
14951         PR target/48213
14952         * config/s390/s390.c (s390_delegitimize_address): Don't call
14953         lowpart_subreg if orig_x has BLKmode.
14954
14955 2011-03-21  Kai Tietz  <ktietz@redhat.com>
14956
14957         PR target/12171
14958         * doc/plugins.texi: Adjust documentation for plugin register_callback.
14959         * tree.h (attribute_spec): Add new member affects_type_identity.
14960         * attribs.c (empty_attribute_table): Adjust attribute_spec
14961         initializers.
14962         * config/alpha/alpha.c: Likewise.
14963         * config/arc/arc.c: Likewise.
14964         * config/arm/arm.c: Likewise.
14965         * config/avr/avr.c: Likewise.
14966         * config/bfin/bfin.c: Likewise.
14967         * config/crx/crx.c: Likewise.
14968         * config/darwin.h: Likewise.
14969         * config/h8300/h8300.c: Likewise.
14970         * config/i386/cygming.h: Likewise.
14971         * config/i386/i386.c: Likewise.
14972         * config/ia64/ia64.c: Likewise.
14973         * config/m32c/m32c.c: Likewise.
14974         * config/m32r/m32r.c: Likewise.
14975         * config/m68hc11/m68hc11.c: Likewise.
14976         * config/m68k/m68k.c: Likewise.
14977         * config/mcore/mcore.c: Likewise.
14978         * config/mep/mep.c: Likewise.
14979         * config/microblaze/microblaze.c: Likewise.
14980         * config/mips/mips.c: Likewise.
14981         * config/rs6000/rs6000.c: Likewise.
14982         * config/rx/rx.c: Likewise.
14983         * config/sh/sh.c: Likewise.
14984         * config/sol2.h: Likewise.
14985         * config/sparc/sparc.c: Likewise.
14986         * config/spu/spu.c: Likewise.
14987         * config/stormy16/stormy16.c: Likewise.
14988         * config/v850/v850.c: Likewise.
14989
14990 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14991
14992         * simplify-rtx.c (simplify_binary_operation_1): Handle
14993         (xor (and A B) C) case when B and C are both constants.
14994
14995 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
14996
14997         * tree-dfa.c (add_referenced_var): Fix typo in comment.
14998
14999 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
15000
15001         PR bootstrap/48168
15002         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15003
15004 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
15005
15006         PR rtl-optimization/48156
15007         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15008         assume df and df_lr are not NULL.
15009
15010 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15011
15012         PR debug/48023
15013         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15014         between a call and its CALL_ARG_LOCATION note.
15015
15016 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
15017
15018         PR debug/48178
15019         * config/sh/sh.c (find_barrier): Don't emit a constant pool
15020         between a call and its corresponding CALL_ARG_LOCATION note.
15021
15022 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
15023
15024         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15025         instead of loop. Use HARD_REGISTER_NUM_P predicate.
15026         * haifa-sched.c (setup_ref_regs): Ditto.
15027         * caller-save.c (add_used_regs_1): Ditto.
15028         * dse.c (look_for_hardregs): Ditto.
15029         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15030         * sched-rgn.c (check_live_1): Ditto.
15031
15032 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
15033
15034         * c-decl.c (diagnose_mismatched_decls): Give an error for
15035         redefining a typedef with variably modified type.
15036
15037 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
15038
15039         * c-decl.c (grokfield): Don't allow typedefs for structures or
15040         unions with no tag by default.
15041         * doc/extend.texi (Unnamed Fields): Update.
15042
15043 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
15044
15045         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15046         Rewrite using indirect functions.
15047         (lwp_slwpcb): Ditto.
15048         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15049         (avx_vinsertf128<mode>): Ditto.
15050
15051 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15052
15053         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15054         unspecs.
15055
15056 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15057
15058         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
15059         splitting between a call and its corresponding CALL_ARG_LOCATION note.
15060
15061 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15062
15063         PR rtl-optimization/48170
15064         * gcse.c (hoist_code): Remove bogus asserts.
15065
15066 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
15067
15068         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15069         computation for prologue/epilogue.
15070
15071 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15072
15073         * Makefile.in (check-consistency): Remove.
15074
15075 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
15076
15077         PR debug/48176
15078         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15079         arange_table_in_use is 0, but either text_section_used or
15080         cold_text_section_used is true.  Don't call it if
15081         !info_section_emitted.
15082
15083 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
15084
15085         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15086         FUNCTION_VALUE_REGNO_P): Remove.
15087         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15088         Remove.
15089         * config/avr/avr.c (avr_ret_register): Make static inline.
15090         (avr_function_value_regno_p): New function.
15091         (avr_libcall_value): Make static. Add 'func' argument.
15092         (avr_function_value): Make static. Rename 'func' argument to
15093         'fn_decl_or_type', forward it to avr_libcall_value. Call
15094         avr_ret_register function instead of RET_REGISTER macro.
15095         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15096
15097 2011-03-18  Jason Merrill  <jason@redhat.com>
15098
15099         PR c++/23372
15100         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15101
15102 2011-03-18  Richard Guenther  <rguenther@suse.de>
15103
15104         * doc/install.texi (--enable-gold): Remove.
15105         (--with-plugin-ld): Document.
15106         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15107
15108 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
15109
15110         PR middle-end/47790
15111         * expr.c (optimize_bitfield_assignment_op): Revamp to work
15112         again after expansion changes.
15113
15114 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
15115
15116         * combine.c (try_combine): Do simplification only call of
15117         subst() on i2 even when i1 is present. Update comments.
15118
15119 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15120
15121         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15122         and UNSPEC_PCREL_SYMOFF.
15123
15124 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15125
15126         * config/s390/s390.md: Use define_c_enum for the unspec constant
15127         definitions.
15128
15129 2011-03-18  Richard Henderson  <rth@redhat.com>
15130             Jakub Jelinek  <jakub@redhat.com>
15131
15132         PR bootstrap/48161
15133         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15134         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15135
15136 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15137
15138         PR middle-end/47725
15139         * combine.c (cant_combine_insn_p): Don't check zero/sign
15140         extended hard registers.
15141
15142 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15143
15144         PR middle-end/47725
15145         * combine.c (cant_combine_insn_p): Check zero/sign extended
15146         hard registers.
15147
15148 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
15149
15150         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15151         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15152         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15153         Change return type to bool.
15154         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15155
15156 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
15157
15158         PR debug/48163
15159         * var-tracking.c (prepare_call_arguments): If CALL target
15160         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15161         pc instead of looking it up using cselib_lookup and use
15162         Pmode for it if x has VOIDmode.
15163         * dwarf2out.c (gen_subprogram_die): If also both first and
15164         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15165
15166         PR debug/48163
15167         * function.c (assign_parms): For data.passed_pointer parms
15168         use MEM of data.entry_parm instead of data.entry_parm itself
15169         as DECL_INCOMING_RTL.
15170         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15171         also when passed and declared mode is the same, DECL_RTL
15172         is a MEM with pseudo as address and DECL_INCOMING_RTL is
15173         a MEM too.
15174
15175 2011-03-16  Jeff Law  <law@redhat.com>
15176
15177         PR rtl-optimization/37273
15178         * ira-costs.c (scan_one_insn): Detect constants living in memory and
15179         handle them like argument loads from stack slots.  Do not double
15180         count memory for memory constants and argument loads from stack slots.
15181
15182 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15183
15184         PR debug/48160
15185         * var-tracking.c (prepare_call_arguments): Check SUBREG.
15186
15187 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15188
15189         PR target/48171
15190         * config/i386/i386.opt: Add Save to -mavx and -mfma.
15191
15192 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
15193
15194         PR bootstrap/48153
15195         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15196         if dwarf_strict.
15197         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15198         Clear call_arg_locations and call_arg_loc_last always.
15199
15200         PR middle-end/48152
15201         * var-tracking.c (prepare_call_arguments): If argument needs to be
15202         passed by reference, adjust argtype and mode.
15203
15204 2011-03-17  Richard Guenther  <rguenther@suse.de>
15205
15206         PR middle-end/48134
15207         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15208         a value make sure to fold the statement.
15209
15210 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
15211
15212         PR target/43872
15213         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15214         return condition with !cfun->calls_alloca.
15215
15216 2011-03-17  Richard Guenther  <rguenther@suse.de>
15217
15218         PR bootstrap/48148
15219         * lto-cgraph.c (input_overwrite_node): Clear the abstract
15220         origin for decls in other ltrans units.
15221         (input_varpool_node): Likewise.
15222
15223 2011-03-17  Richard Guenther  <rguenther@suse.de>
15224
15225         PR middle-end/48165
15226         * tree-object-size.c (compute_object_offset): Properly return
15227         the offset operand of MEM_REFs as sizetype.
15228
15229 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
15230
15231         PR rtl-optimization/48141
15232         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15233         * dse.c: Include params.h.
15234         (active_local_stores_len): New variable.
15235         (add_wild_read, dse_step1): Clear it when setting active_local_stores
15236         to NULL.
15237         (record_store, check_mem_read_rtx): Decrease it when removing
15238         from the chain.
15239         (scan_insn): Likewise.  Increase it when adding to chain, if it
15240         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15241         set active_local_stores to NULL before the addition.
15242         * Makefile.in (dse.o): Depend on $(PARAMS_H).
15243
15244         PR rtl-optimization/48141
15245         * dse.c (record_store): If no positions are needed in an insn
15246         that cannot be deleted, at least unchain it from active_local_stores.
15247
15248 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
15249
15250         PR debug/47510
15251         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15252         (lookup_type_die_strip_naming_typedef): ... here.
15253         (get_context_die): Use it.
15254         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15255         the anonymous struct named by the naming typedef.
15256
15257 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15258
15259         PR target/48154
15260         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15261         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15262
15263 2011-03-16  Jeff Law  <law@redhat.com>
15264
15265         * tree-vrp.c (identify_jump_threads): Slightly simplify type
15266         check for operands of conditional.  Allow type to be a pointer.
15267
15268 2011-03-16  Richard Guenther  <rguenther@suse.de>
15269
15270         PR tree-optimization/48149
15271         * fold-const.c (fold_binary_loc): Fold
15272         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15273
15274 2011-03-16  Richard Guenther  <rguenther@suse.de>
15275
15276         PR tree-optimization/26134
15277         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15278         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15279         (non_rewritable_mem_ref_base): Handle complex type component
15280         accesses, constrain offsets for vector and complex extracts
15281         more properly.
15282
15283 2011-03-16  Richard Guenther  <rguenther@suse.de>
15284
15285         PR tree-optimization/48146
15286         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15287         operands avoiding the need for renaming.
15288
15289 2011-03-16  Richard Guenther  <rguenther@suse.de>
15290
15291         * gimple-fold.c (maybe_fold_reference): Open-code relevant
15292         constant folding.  Move MEM_REF canonicalization first.
15293         Rely on fold_const_aggregate_ref for initializer folding.
15294         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15295
15296 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15297
15298         PR middle-end/48136
15299         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15300         arg0/arg1 or their arguments are always fold converted to matching
15301         types.
15302
15303         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15304         to nargs.
15305
15306 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15307
15308         PR lto/46944
15309         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15310         Handle in-tree gold.
15311         (ld_vers): Extract binutils version for gold.
15312         (gcc_cv_ld_hidden): Handle gold here.
15313         (gcc_cv_lto_plugin): Determine level of linker plugin support.
15314         * configure: Regenerate.
15315         * config.in: Regenerate.
15316         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15317         -fuse-linker-plugin otherwise.
15318         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
15319         (LINK_COMMAND_SPEC): Use it.
15320         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15321
15322 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15323
15324         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15325         * calls.c: Remove debug.h include.
15326         (emit_call_1): Don't call virtual_call_token debug hook.
15327         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15328         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15329         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15330         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15331         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15332         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15333         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15334         dwarf2out_virtual_call): Remove.
15335         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15336         copy_call_info and virtual_call hooks.
15337         (dwarf2out_init): Don't initialize vcall_insn_table,
15338         debug_dcall_section and debug_vcall_section.
15339         (prune_unused_types): Don't mark nodes from dcall_table.
15340         (dwarf2out_finish): Don't output dcall or vcall tables.
15341         * final.c (final_scan_insn): Don't call direct_call or
15342         virtual_call debug hooks.
15343         * debug.h (struct gcc_debug_hooks): Remove direct_call,
15344         virtual_call_token, copy_call_info and virtual_call hooks.
15345         (debug_nothing_uid): Remove prototype.
15346         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15347         copy_call_info and virtual_call hooks.
15348         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15349         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15350         * debug.c (do_nothing_debug_hooks): Likewise.
15351         (debug_nothing_uid): Remove.
15352         * doc/invoke.texi (-fenable-icf-debug): Remove.
15353         * common.opt (-fenable-icf-debug): Likewise.
15354
15355         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15356         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15357         call's MEM.  Handle functions returning aggregate through a hidden
15358         first pointer.  For virtual calls add clobbered pc to call arguments
15359         chain.
15360         * dwarf2out.c (gen_subprogram_die): Emit
15361         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15362         can't be emitted.
15363
15364         PR debug/45882
15365         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15366         * rtl.h (ENTRY_VALUE_EXP): Define.
15367         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15368         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15369         * print-rtl.c (print_rtx): Likewise.
15370         * gengtype.c (adjust_field_rtx_def): Likewise.
15371         * var-tracking.c (vt_add_function_parameter): Adjust
15372         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15373         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15374         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15375         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15376         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15377
15378         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15379         Call var_location debug hook even on CALL_INSNs.
15380         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15381         * rtl.def (ENTRY_VALUE): New.
15382         * dwarf2out.c: Include cfglayout.h.
15383         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15384         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15385         (struct call_arg_loc_node): New type.
15386         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15387         tail_call_site_count): New variables.
15388         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15389         DW_TAG_GNU_call_site_parameter.
15390         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15391         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15392         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15393         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15394         and DW_AT_GNU_all_source_call_sites.
15395         (mem_loc_descriptor): Handle ENTRY_VALUE.
15396         (add_src_coords_attributes): Don't add enything if
15397         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15398         (dwarf2out_abstract_function): Save and clear call_arg_location,
15399         call_site_count and tail_call_site_count around dwarf2out_decl call.
15400         (gen_call_site_die): New function.
15401         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15402         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15403         (dwarf2out_function_decl): Clear call_arg_locations,
15404         call_arg_loc_last, set call_site_count and tail_call_site_count
15405         to -1 and free block_map.
15406         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15407         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
15408         followed by any real instructions.
15409         (dwarf2out_begin_function): Set call_site_count and
15410         tail_call_site_count to 0.
15411         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15412         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15413         attempt to force a DIE for it and worst case remove the attribute.
15414         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15415         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15416         the decl itself.
15417         * var-tracking.c: Include tm_p.h.
15418         (vt_stack_adjustments): For calls call note_register_arguments.
15419         (argument_reg_set): New variable.
15420         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15421         ensure the VALUE is resolved.
15422         (call_arguments): New variable.
15423         (prepare_call_arguments): New function.
15424         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15425         (struct expand_loc_callback_data): Add ignore_cur_loc field.
15426         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15427         always use the best expression.
15428         (vt_expand_loc): Add ignore_cur_loc argument.
15429         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15430         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15431         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15432         note for all calls.
15433         (vt_add_function_parameter): Use cselib_lookup_from_insn.
15434         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15435         argument.  Don't call cselib_preserve_only_values and
15436         cselib_reset_table.
15437         (note_register_arguments): New function.
15438         (vt_initialize): Compute argument_reg_set.  Call
15439         vt_add_function_parameters before processing basic blocks instead of
15440         afterwards.  For calls call prepare_call_arguments before calling
15441         cselib_process_insn.
15442         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15443         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15444         (var-tracking.o): Depend on $(TM_P_H).
15445         * cfglayout.h (insn_scope): New prototype.
15446         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15447         * cfglayout.c (insn_scope): No longer static.
15448         * insn-notes.def (CALL_ARG_LOCATION): New.
15449         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15450         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15451         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15452         nothing for DECL_EXTERNAL BLOCK_VARS.
15453
15454 2011-03-16  Alan Modra  <amodra@gmail.com>
15455
15456         PR target/45844
15457         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15458         create invalid offset address for vsx splat insn.
15459         * config/rs6000/predicates.md (splat_input_operand): New.
15460         * config/rs6000/vsx.md (vsx_splat_*): Use it.
15461
15462 2011-03-15  Xinliang David Li  <davidxl@google.com>
15463
15464         PR c/47837
15465         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15466         (normalize_preds): New function.
15467         (is_use_properly_guarded): Normalize def predicates.
15468
15469 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15470
15471         PR target/46788
15472         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15473         in the output template.
15474
15475 2011-03-15  Richard Guenther  <rguenther@suse.de>
15476
15477         PR middle-end/47650
15478         * tree-pretty-print.c (dump_function_declaration): Properly
15479         dump unprototyped and varargs function types.
15480
15481 2011-03-15  Richard Guenther  <rguenther@suse.de>
15482
15483         PR tree-optimization/13954
15484         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15485         and friends.
15486
15487 2011-03-15  Richard Guenther  <rguenther@suse.de>
15488
15489         PR tree-optimization/48037
15490         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15491         selects into BIT_FIELD_REFs.
15492         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15493         vector select.
15494
15495 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
15496
15497         PR tree-optimization/48129
15498         * builtins.c (fold_builtin_snprintf): Convert to type of
15499         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15500         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15501
15502 2011-03-15  Richard Guenther  <rguenther@suse.de>
15503
15504         PR tree-optimization/41490
15505         * tree-ssa-dce.c (propagate_necessity): Handle returns without
15506         value but with VUSE.
15507         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15508         return statements.
15509         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15510         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15511         * tree-tailcall.c (find_tail_calls): Ignore returns.
15512
15513 2011-03-15  Richard Guenther  <rguenther@suse.de>
15514
15515         PR middle-end/48031
15516         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15517         or variable-indexed array accesses when in gimple form.
15518
15519 2011-03-15  Richard Guenther  <rguenther@suse.de>
15520
15521         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15522
15523 2011-03-15  Alan Modra  <amodra@gmail.com>
15524
15525         PR target/48032
15526         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15527         presume symbol_refs without a symbol_ref_decl are suitably
15528         aligned, nor other trees we may see here.  Handle anchor symbols.
15529         (legitimate_constant_pool_address_p): Comment.  Add mode param.
15530         Check cmodel=medium addresses.  Adjust all calls.
15531         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15532         creating cmodel=medium optimized access to locals.
15533         * config/rs6000/constraints.md (R): Pass QImode to
15534         legitimate_constant_pool_address_p.
15535         * config/rs6000/predicates.md (input_operand): Pass mode to
15536         legitimate_constant_pool_address_p.
15537         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15538         Update prototype.
15539
15540 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15541
15542         PR target/48053
15543         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15544         64-bit constants being loaded into registers other than GPRs such
15545         as loading 0 into a VSX register.
15546
15547 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15548
15549         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15550
15551 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15552
15553         PR middle-end/47917
15554         * builtins.c (fold_builtin_snprintf): New function.
15555         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15556         (fold_builtin_4): Likewise.
15557
15558         PR middle-end/38878
15559         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15560         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
15561         and C - X == X also strip nops from +/-/p+ operand.
15562         When optimizing -X == C, fold C to arg0's type.
15563
15564         PR debug/47946
15565         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15566         emit it as add_AT_int instead of add_AT_unsigned.
15567
15568 2011-03-14  Tom Tromey  <tromey@redhat.com>
15569
15570         * unwind-dw2.c: Include sys/sdt.h if it exists.
15571         (_Unwind_DebugHook): Use STAP_PROBE2.
15572         * config.in, configure: Rebuild.
15573         * configure.ac: Check for sys/sdt.h.
15574
15575 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
15576
15577         * config/i386/i386.md (ROUND_FLOOR): New constant.
15578         (ROUND_CEIL): Ditto.
15579         (ROUND_TRUNC): Ditto.
15580         (ROUND_MXCSR): Ditto.
15581         (ROUND_NO_EXC): Ditto.
15582         (rint<mode>2): Use new defines instead of numerical constants.
15583         (floor<mode>2): Ditto.
15584         (ceil<mode>2): Ditto.
15585         (btrunc<mode>2): Ditto.
15586         * config/i386/i386-builtin-types.def: Define ROUND function type
15587         aliases.
15588         * config/i386/i386.c (enum ix86_builtins): Add
15589         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15590         (struct builtin_description): Add
15591         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15592         (ix86_expand_sse_round): New static function.
15593         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15594         function types.
15595         (ix86_builtin_vectorized_function): Handle
15596         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15597
15598 2011-03-14  Tom Tromey  <tromey@redhat.com>
15599
15600         * c-parser.c (c_parser_asm_string_literal): Clear
15601         warn_overlength_strings.
15602
15603 2011-03-14  Tom Tromey  <tromey@redhat.com>
15604
15605         * c-parser.c (disable_extension_diagnostics): Save
15606         warn_overlength_strings.
15607         (restore_extension_diagnostics): Restore warn_overlength_strings.
15608
15609 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15610
15611         * BASE-VER: Change to 4.7.0.
15612
15613 2011-03-14  Richard Guenther  <rguenther@suse.de>
15614
15615         PR middle-end/48098
15616         * tree.c (build_vector_from_val): Adjust assert to requirements
15617         and reality.
15618
15619 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15620
15621         PR bootstrap/48102
15622         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15623
15624 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
15625
15626         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15627         terms of target_flags_explicit. Adjust copyright year.
15628
15629         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15630         * config/rs6000/t-freebsd: New file. Add override for
15631         LIB2FUNCS_EXTRA.
15632
15633 2011-03-13  Chris Demetriou  <cgd@google.com>
15634
15635         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15636         (-fno-diagnostics-show-option): this, to reflect current default.
15637         (-Werror=): Update text about -fno-diagnostics-show-option.
15638
15639 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
15640
15641         PR target/48053
15642         * config/rs6000/predicates.md (easy_vector_constant_add_self,
15643         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15644         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15645         mode is not V2DImode or V2DFmode.
15646         (vspltis_constant): Do not handle V2DImode and V2DFmode.
15647         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15648         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15649         registers to 0.
15650         (movdi_internal64): Likewise.
15651
15652 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
15653
15654         PR tree-optimization/47127
15655         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15656         parameter.
15657         (set_cloog_options): Same.
15658         (scop_to_clast): Same.
15659         (print_clast_stmt): Do not call cloog_state_malloc and
15660         cloog_state_free.
15661         (print_generated_program): Same.
15662         (gloog): Same.
15663         * graphite-clast-to-gimple.h (cloog_state): Declared.
15664         (scop_to_clast): Adjust declaration.
15665         * graphite.c (cloog_state): Defined here.
15666         (graphite_initialize): Call cloog_state_malloc.
15667         (graphite_finalize): Call cloog_state_free.
15668
15669 2011-03-11  Jason Merrill  <jason@redhat.com>
15670
15671         * attribs.c (lookup_attribute_spec): Take const_tree.
15672         * tree.h: Adjust.
15673
15674 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
15675
15676         * config/sparc/sparc.c (sparc_option_override): Use
15677         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15678
15679 2011-03-11  Richard Guenther  <rguenther@suse.de>
15680
15681         PR tree-optimization/48067
15682         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15683         multiplication result will be only used once on the target
15684         stmt.
15685
15686 2011-03-11  Richard Guenther  <rguenther@suse.de>
15687
15688         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15689
15690 2011-03-11  Richard Guenther  <rguenther@suse.de>
15691
15692         PR lto/48073
15693         * tree.c (find_decls_types_r): Do not walk types only reachable
15694         from IDENTIFIER_NODEs.
15695
15696 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15697
15698         PR middle-end/48044
15699         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15700         all vnode->force_output nodes as needed.
15701
15702 2011-03-11  Jason Merrill  <jason@redhat.com>
15703
15704         PR c++/48069
15705         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15706         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15707
15708 2011-03-11  Martin Jambor  <mjambor@suse.cz>
15709
15710         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15711         cgraph_node.
15712
15713 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15714
15715         PR tree-optimization/48063
15716         * ipa-inline.c (cgraph_decide_inlining): Don't try to
15717         inline functions called once if !tree_can_inline_p (node->callers).
15718
15719 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
15720
15721         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15722         extra_objs.
15723         * config/score/score3.c: Delete.
15724         * config/score/score3.h: Delete.
15725         * config/score/mul-div.S: Delete.
15726         * config/score/sfp-machine.h: Add new file.
15727         * config/score/constraints.md: Add new file.
15728         * config/score/t-score-softfp: Add new file.
15729         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15730         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15731         (score7_extra_constraint): Delete.
15732         (score7_option_override): Remove unused code.
15733         * config/score/score.c: Remove score3 and score5 define and code.
15734         * config/score/score.h: Remove score3 and score5 define and code.
15735         * config/score/score.md: Remove score3 template and unusual insn.
15736         * config/score/score.opt: Remove score3 and score5 options.
15737
15738 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15739
15740         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15741         when _HPUX_SOURCE is defined.
15742         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15743
15744 2011-03-10  Jason Merrill  <jason@redhat.com>
15745
15746         PR c++/48029
15747         * stor-layout.c (layout_type): Don't set structural equality
15748         on arrays of incomplete type.
15749         * tree.c (type_hash_eq): Handle comparing them properly.
15750
15751 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15752
15753         PR debug/48043
15754         * config/s390/s390.c (s390_delegitimize_address): Make sure the
15755         result mode matches original rtl mode.
15756
15757 2011-03-10  Nick Clifton  <nickc@redhat.com>
15758
15759         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15760         (andsi3, andsi3_flags): Fix timings for three operand alternative.
15761
15762 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
15763
15764         PR rtl-optimization/47866
15765         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15766         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15767         if target wasn't scalar.
15768         * function.c (assign_stack_temp_for_type): Assert that neither
15769         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15770         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15771         macro.
15772         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15773
15774 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15775
15776         * config/s390/s390-protos.h (s390_label_align): New prototype.
15777         * config/s390/s390.c (s390_label_align): New function.
15778         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15779
15780 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15781
15782         PR target/47755
15783         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15784         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
15785         (output_vec_const_move): Ditto.
15786
15787 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
15788
15789         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15790         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15791         * config/mips/mips.c (mips_preferred_reload_class): Make static.
15792         Change 'rclass' argument and result type to reg_class_t.
15793         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15794
15795 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
15796
15797         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15798         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15799         (TARGET_MEMORY_MOVE_COST): Define.
15800         (avr_register_move_cost, avr_memory_move_cost): New Functions.
15801
15802 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
15803
15804         PR debug/47881
15805         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15806         removed anything.
15807
15808         PR tree-optimization/48022
15809         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15810         for EQ/NE_EXPR.
15811
15812 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
15813
15814         PR debug/47991
15815         * var-tracking.c (find_use_val): Return NULL for
15816         cui->sets && cui->store_p BLKmode MEMs.
15817
15818 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
15819
15820         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15821         Remove.
15822         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15823         xstormy16_print_operand_address): Remove.
15824         * config/stormy16/stormy16.c (xstormy16_print_operand,
15825         xstormy16_print_operand_address): Make static.
15826         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15827
15828 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
15829
15830         PR target/47862
15831         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15832         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15833         before definition.
15834
15835 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
15836
15837         PR bootstrap/48000
15838         * cfgloopmanip.c (fix_bb_placements): Return immediately
15839         if FROM is BASE_LOOP's header.
15840
15841 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
15842
15843         * gimplify.c (gimplify_function_tree): Fix building calls
15844         to __builtin_return_address.
15845
15846 2011-03-07  Alan Modra  <amodra@gmail.com>
15847
15848         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15849         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15850         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15851         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15852         return_mode args.
15853         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15854         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15855         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15856         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15857         * config/rs6000/rs6000.c
15858         (rs6000_elf_end_indicate_exec_stack): Rename to..
15859         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
15860         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
15861         (rs6000_file_start): ..here.
15862         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15863         file scope variables.
15864         (call_ABI_of_interest): New function.
15865         (init_cumulative_args): Set above vars when function return value
15866         is a float, vector, or small struct.
15867         (rs6000_function_arg_advance_1): Likewise for function args.
15868         (rs6000_va_start): Set rs6000_passes_float if variable arg function
15869         references float args.
15870
15871 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
15872
15873         * doc/cfg.texi: Remove "See" before @ref.
15874         * doc/invoke.texi: Likewise.
15875
15876 2011-03-05  Jason Merrill  <jason@redhat.com>
15877
15878         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15879
15880 2011-03-05  Anthony Green  <green@moxielogic.com>
15881
15882         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15883
15884 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
15885
15886         PR rtl-optimization/47899
15887         * cfgloopmanip.c (fix_bb_placements): Fix first argument
15888         to flow_loop_nested_p when moving the loop upward.
15889
15890 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
15891
15892         PR target/47719
15893         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
15894
15895 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
15896
15897         PR tree-optimization/47967
15898         * ipa-cp.c (build_const_val): Return NULL instead of creating
15899         VIEW_CONVERT_EXPR for mismatching sizes.
15900         (ipcp_create_replace_map): Return NULL if build_const_val failed.
15901         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15902         give up on versioning.
15903
15904 2011-03-05  Alan Modra  <amodra@gmail.com>
15905
15906         PR target/47986
15907         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15908         full cmodel medium/large lo_sum + high addresses.
15909
15910 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15911
15912         * config/s390/s390.c (s390_decompose_address): Reject non-literal
15913         pool references in UNSPEC_LTREL_OFFSET.
15914
15915 2011-03-04  Jan Hubicka  <jh@suse.cz>
15916
15917         PR lto/47497
15918         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15919         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15920         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15921         Add node pointers.
15922         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15923         cgraph_add_thunk): Add node pointers.
15924         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15925         associated to right node.
15926         (input_node): Update use of cgraph_same_body_alias
15927         and cgraph_add_thunk.
15928
15929 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15930
15931         * config/i386/i386.opt (mprefer-avx128): New flag.
15932         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15933         modes when the flag -mprefer-avx128 is on.
15934
15935 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
15936
15937         * dwarf2out.c (compare_loc_operands): Fix address handling.
15938
15939 2011-03-04  Alan Modra  <amodra@gmail.com>
15940
15941         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15942
15943 2011-03-04  Richard Guenther  <rguenther@suse.de>
15944
15945         PR middle-end/47968
15946         * expmed.c (extract_bit_field_1): Prefer vector modes that
15947         vec_extract patterns can handle.
15948
15949 2011-03-04  Richard Guenther  <rguenther@suse.de>
15950
15951         PR middle-end/47975
15952         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15953
15954 2011-03-04  Richard Henderson  <rth@redhat.com>
15955
15956         * explow.c (emit_stack_save): Remove 'after' parameter.
15957         (emit_stack_restore): Likewise.
15958         * expr.h: Update to match.
15959         * builtins.c, calls.c, stmt.c: Likewise.
15960         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15961         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15962         * function.c (expand_function_end): Insert the emit_stack_save
15963         sequence before parm_birth_insn instead of after.
15964
15965 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
15966
15967         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15968         (ssse3_pmaddubsw128): Ditto.
15969         (ssse3_pmaddubsw): Ditto.
15970
15971 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
15972
15973         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15974
15975 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
15976
15977         PR c/47963
15978         * gimplify.c (omp_add_variable): Only call omp_notice_variable
15979         on TYPE_SIZE_UNIT if it is a DECL.
15980
15981         PR debug/47283
15982         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15983         first operand is not is_gimple_mem_ref_addr, try to fold it.
15984         If the operand still isn't is_gimple_mem_ref_addr, clear
15985         MEM_EXPR on op0.
15986
15987 2011-03-03  Richard Guenther  <rguenther@suse.de>
15988
15989         PR middle-end/47283
15990         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15991         match comment.
15992         (refs_may_alias_p_1): For release branches return true if
15993         we are confused by our input.
15994
15995 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15996
15997         * config/s390/s390.c (s390_function_value): Rename to ...
15998         (s390_function_and_libcall_value): ... this.
15999         (s390_function_value): New function.
16000         (s390_libcall_value): New function.
16001         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
16002         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16003         target macro definitions.
16004         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16005
16006 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
16007
16008         * config/i386/freebsd64.h (CC1_SPEC): Define.
16009         * config/i386/linux64.h (CC1_SPEC): Define.
16010         * config/i386/x86-64.h (CC1_SPEC): Don't define.
16011
16012 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
16013
16014         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16015         Remove.
16016         * config/stormy16/stormy16.c: Include reload.h.
16017         (xstormy16_memory_move_cost): New function.
16018         (TARGET_MEMORY_MOVE_COST): Define.
16019
16020 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
16021
16022         PR rtl-optimization/47925
16023         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16024         with side effects.  Remove the more-specific check for volatile asms.
16025
16026 2011-03-02  Alan Modra  <amodra@gmail.com>
16027
16028         PR target/47935
16029         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16030         toc relative addresses for valid offsets.
16031
16032 2011-03-01  Richard Guenther  <rguenther@suse.de>
16033
16034         PR tree-optimization/47890
16035         * tree-vect-loop.c (get_initial_def_for_induction): Set
16036         related stmt properly.
16037
16038 2011-03-01  Richard Guenther  <rguenther@suse.de>
16039
16040         PR lto/47924
16041         * lto-streamer.c (lto_record_common_node): Also register
16042         the canonical type.
16043
16044 2011-03-01  Richard Guenther  <rguenther@suse.de>
16045
16046         PR lto/46911
16047         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16048         Do not stream DECL_ABSTRACT_ORIGIN.
16049         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16050         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16051         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16052         Do not stream DECL_ABSTRACT_ORIGIN.
16053         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16054         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16055
16056 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
16057
16058         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16059         FUNCTION_VALUE_REGNO_P): Remove.
16060         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
16061         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16062         Add 'outgoing' argument.
16063         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16064         function.
16065         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16066         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16067
16068 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
16069
16070         PR debug/28047
16071         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16072         (lookup_filename): Likewise.
16073         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
16074
16075 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
16076             Jakub Jelinek  <jakub@redhat.com>
16077
16078         PR middle-end/47893
16079         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16080         (assign_stack_local_1): Change last argument type to int.
16081         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16082         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
16083         don't record padding space into frame_space_list nor use those areas.
16084         (assign_stack_local): Adjust caller.
16085         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16086         of assign_stack_local, pass 0 as last argument.
16087         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16088         callers.
16089
16090 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
16091
16092         PR debug/47283
16093         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16094         Use target address_mode and pointer_mode hooks instead of hardcoded
16095         Pmode and ptr_mode.  Handle some simple cases of extending if
16096         POINTERS_EXTEND_UNSIGNED < 0.
16097         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16098         Call convert_debug_memory_address.
16099         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16100         convert_debug_memory_address.
16101
16102         PR middle-end/46790
16103         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16104         * configure: Regenerated.
16105         * config.in: Regenerated.
16106         * varasm.c (default_function_section): Return NULL
16107         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
16108
16109 2011-02-28  Martin Jambor  <mjambor@suse.cz>
16110
16111         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16112         the description to match the printed values.
16113
16114 2011-02-28  Richard Guenther  <rguenther@suse.de>
16115
16116         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16117         of the copied scope tree.
16118
16119 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16120
16121         * doc/extend.texi (Function Attributes): Avoid deeply (and
16122         wrongly) nested tables.
16123
16124 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
16125
16126         PR middle-end/47903
16127         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16128         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16129         r isn't op0 nor op1.
16130
16131 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
16132
16133         * config/avr/avr.md: Remove magic comment for emacs.
16134
16135 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
16136
16137         PR target/45261
16138         * config/avr/avr.c (avr_option_override): Use error on bad options.
16139         (avr_help): New function.
16140         (TARGET_HELP): Define.
16141
16142 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
16143
16144         PR target/42240
16145         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16146         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16147
16148 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
16149
16150         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16151         (ARM Options): Ditto.
16152         (i386 and x86-64 Options): Ditto.
16153         (RX Options): Ditto.
16154         (SPARC Options): Ditto.
16155
16156 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
16157
16158         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16159         FreeBSD 6 and later.  Generally use cpu generic.
16160
16161 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
16162
16163         * doc/cpp.texi: Update copyright years.
16164
16165 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
16166
16167         PR target/46898
16168         * config/lm32/lm32.md (ashrsi3): Added needed variable.
16169
16170 2011-02-25  Jon Beniston  <jon@beniston.com>
16171
16172         PR target/46898
16173         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16174         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16175         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16176         (lm32_block_move_inline): Add type cast to remove warning.
16177         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16178         (gen_int_relational): Move declarations to start of function.
16179
16180 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
16181
16182         PR tree-optimization/45470
16183         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16184         can throw internally only.
16185         * tree-vect-stmts.c (vectorizable_call): Likewise.
16186
16187 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
16188
16189         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16190         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16191         * config/stormy16/stormy16-protos.h
16192         (xstormy16_preferred_reload_class): Remove.
16193         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16194         static. Change 'rclass' argument and return type to reg_class_t.
16195         (TARGET_PREFERRED_RELOAD_CLASS,
16196         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16197
16198 2011-02-24  Richard Guenther  <rguenther@suse.de>
16199
16200         * lto-streamer-in.c (input_bb): Do not find referenced vars
16201         in debug statements.
16202
16203 2011-02-23  Jason Merrill  <jason@redhat.com>
16204
16205         * common.opt (fabi-version): Document v5 and v6.
16206
16207 2011-02-23  Richard Guenther  <rguenther@suse.de>
16208
16209         PR tree-optimization/47849
16210         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16211
16212 2011-02-23  Jie Zhang  <jie@codesourcery.com>
16213
16214         * opts-common.c (decode_cmdline_option): Print empty string
16215         argument as "" in decoded->orig_option_with_args_text.
16216         * gcc.c (execute): Print empty string argument as ""
16217         in the verbose output.
16218         (do_spec_1): Keep empty string argument.
16219
16220 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
16221
16222         * config.gcc: Declare score-* and crx-* obsolete.
16223
16224 2011-02-23  Jie Zhang  <jie@codesourcery.com>
16225
16226         PR rtl-optimization/47763
16227         * web.c (web_main): Ignore naked clobber when replacing register.
16228
16229 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
16230
16231         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16232         Remove.
16233
16234 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16235
16236         PR doc/47848
16237         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16238
16239 2011-02-22  Mike Stump  <mikestump@comcast.net>
16240
16241         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16242         assembler.
16243         * configure: Regenerate.
16244
16245 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
16246
16247         PR rtl-optimization/46002
16248         * ira-color.c (update_copy_costs): Change class intersection
16249         test to reg_class_contents[] test of 'hard_regno'.
16250
16251 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
16252
16253         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16254         than Driver option.
16255         * config/hpux11.opt (mt): Likewise.
16256         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16257         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16258         * config/vax/elf.opt (mno-asm-pic): Likewise.
16259         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16260
16261 2011-02-21  Mike Stump  <mikestump@comcast.net>
16262
16263         PR target/47822
16264         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16265         tree so we can get save the type.
16266         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16267         for CFString instead of trying to use past the end of the builtins.
16268         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16269         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16270         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16271         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16272         Rename to darwin_builtin_cfstring.
16273         (darwin_init_cfstring_builtins): Return the built type.
16274
16275 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
16276
16277         PR target/47840
16278         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16279         (_mm256_insert_epi64): Use _mm_insert_epi64.
16280
16281 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
16282
16283         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16284         * config/stormy16/stormy16-protos.h
16285         (xstormy16_mode_dependent_address_p): Remove.
16286         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16287         Make static. Change return type to bool. Change argument type to
16288         const_rtx. Remove dead code.
16289         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16290
16291 2011-02-21  Richard Guenther  <rguenther@suse.de>
16292
16293         PR lto/47820
16294         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16295         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16296         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16297         TUs context.
16298         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16299         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16300
16301 2011-02-20  Richard Guenther  <rguenther@suse.de>
16302
16303         PR lto/47822
16304         * tree.c (free_lang_data_in_decl): Clean builtins from
16305         the TU decl BLOCK_VARS.
16306
16307 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
16308
16309         PR debug/47620
16310         PR debug/47630
16311         * haifa-sched.c (fix_tick_ready): Skip tick computation
16312         for debug insns.
16313
16314 2011-02-19  Richard Guenther  <rguenther@suse.de>
16315
16316         PR lto/47647
16317         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16318         Remove lazy BLOCK_VARS streaming.
16319         (lto_input_ts_block_tree_pointers): Likewise.
16320         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16321
16322 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16323
16324         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16325
16326 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16327
16328         * config/i386/biarch32.h, config/i386/mach.h,
16329         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16330
16331 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
16332
16333         PR target/47800
16334         * config/i386/i386.md (peephole2 for shift and plus): Use
16335         operands[1] original mode in the first insn.
16336
16337 2011-02-18  Mike Stump  <mikestump@comcast.net>
16338
16339         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16340
16341 2011-02-18  Jan Hubicka  <jh@suse.cz>
16342
16343         PR middle-end/47788
16344         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16345         to zero when the function is not inlinable at all.
16346
16347 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16348
16349         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16350         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16351         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16352         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16353         * config/pa/t-pa64: Likewise.
16354         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16355
16356 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16357
16358         PR driver/47787
16359         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16360
16361 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16362
16363         PR target/47792
16364         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16365
16366 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
16367
16368         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16369         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16370         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16371         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16372         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16373         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16374         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16375         m32r_load_postinc_p, m32r_store_preinc_predec_p,
16376         m32r_legitimate_address_p): New functions.
16377         * config/m32r/constraints.md (constraint "S"): Don't use
16378         STORE_PREINC_PREDEC_P.
16379         (constraint "U"): Don't use LOAD_POSTINC_P.
16380
16381 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
16382
16383         PR rtl-optimization/46178
16384         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16385         compute ira_hard_regno_cover_class[].
16386
16387 2011-02-18  Richard Guenther  <rguenther@suse.de>
16388
16389         PR lto/47798
16390         * lto-streamer.h (lto_global_var_decls): Declare.
16391         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16392         statics for global var processing.
16393
16394 2011-02-18  Richard Guenther  <rguenther@suse.de>
16395
16396         PR tree-optimization/47737
16397         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16398         edge dominance check.
16399
16400 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16401
16402         PR debug/47780
16403         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16404         avoid invalid rtx sharing.
16405
16406 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
16407
16408         * doc/cpp.texi (Obsolete Features): Add background on the
16409         origin of assertions.
16410
16411 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
16412
16413         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16414         objc_abi == 2.
16415         * config/darwin.c (output_objc_section_asm_op): Added support for
16416         ABI v1 and v2.
16417         (is_objc_metadata): New.
16418         (darwin_objc2_section): New.
16419         (darwin_objc1_section): New.
16420         (machopic_select_section): Added support for ABI v1 and v2.
16421         (darwin_emit_objc_zeroed): New.
16422         (darwin_output_aligned_bss): Detect objc metadata and treat it
16423         appropriately.
16424         (darwin_asm_output_aligned_decl_common): Same.
16425         (darwin_asm_output_aligned_decl_local): Same.
16426         * config/darwin-sections.def: Updated for ABI v1 and v2.
16427         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16428         compiling Objective-C code for the NeXT runtime, default to using
16429         ABI version 0 for 32-bit, and version 2 for 64-bit.
16430
16431 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16432
16433         * common.opt (optimize_fast): New Variable.
16434         * opts.c (default_options_optimization): Use opts->x_optimize_fast
16435         instead of local variable ofast.
16436
16437 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
16438
16439         * doc/invoke.texi (fobjc-abi-version): Documented.
16440         (fobjc-nilcheck): Documented.
16441         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16442         version.
16443
16444 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16445
16446         PR driver/47390
16447         * common.opt (export-dynamic): New Driver option.
16448         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16449
16450 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16451
16452         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16453
16454 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
16455             Jan Hubicka  <jh@suse.cz>
16456
16457         PR debug/47106
16458         PR debug/47402
16459         * cfgexpand.c (account_used_vars_for_block): Remove.
16460         (estimated_stack_frame_size): Use referenced vars.
16461         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16462         that were referenced in the original function.  Test src_fn
16463         rather than cfun.  Drop redundant get_var_ann.
16464         (setup_one_parameter): Drop redundant get_var_ann.
16465         (declare_return_variable): Likewise.
16466         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16467         (copy_arguments_for_versioning): Drop redundant get_var_ann.
16468         * ipa-inline.c (compute_inline_parameters): Do not compute
16469         disregard_inline_limits here.
16470         (compute_inlinable_for_current, pass_inlinable): New.
16471         (pass_inline_parameters): Require PROP_referenced_vars.
16472         * cgraphunit.c (cgraph_process_new_functions): Don't run
16473         compute_inline_parameters explicitly unless function is in SSA form.
16474         (cgraph_analyze_function): Set .disregard_inline_limits.
16475         * tree-sra.c (convert_callers): Compute inliner parameters
16476         only for functions already in SSA form.
16477
16478 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16479
16480         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16481         -mlittle-endian-data.
16482
16483 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16484
16485         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16486         -mno-fpu, not -fpu and -no-fpu.
16487         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16488         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16489
16490 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
16491
16492         PR target/43653
16493         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16494         input reload with PLUS RTX.
16495
16496 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16497
16498         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16499         of InverseVar(MDMX).
16500
16501 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16502
16503         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16504         --m4-340.
16505
16506 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16507
16508         * config/mn10300/mn10300.opt (mno-crt0): New.
16509
16510 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16511
16512         * config/m68k/uclinux.opt (static-libc): New Driver option.
16513
16514 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16515
16516         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16517
16518 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16519
16520         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16521         %{muser-extend-enabled}.
16522
16523 2011-02-16  Richard Guenther  <rguenther@suse.de>
16524
16525         PR tree-optimization/47738
16526         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16527         the TODO from tree_predictive_commoning.
16528
16529 2011-02-15  Jeff Law  <law@redhat.com>
16530
16531         Revert
16532         2011-01-25  Jeff Law  <law@redhat.com>
16533
16534         PR rtl-optimization/37273
16535         * ira-costs.c (scan_one_insn): Detect constants living in memory and
16536         handle them like argument loads from stack slots.  Do not double
16537         count memory for memory constants and argument loads from stack slots.
16538
16539 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16540
16541         PR middle-end/47725
16542         * combine.c (cant_combine_insn_p): Revert the last change.
16543
16544 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16545
16546         PR target/47755
16547         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16548         mode for vector constants.  Remove code that checks for TImode.
16549
16550 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16551
16552         PR debug/47106
16553         PR debug/47402
16554         * cgraph.h (compute_inline_parameters): Return void.
16555         * ipa-inline.c (compute_inline_parameters): Adjust.
16556
16557 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16558
16559         PR debug/47106
16560         PR debug/47402
16561         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16562         rather than decl.
16563         * cfgexpand.c (estimated_stack_frame_size): Likewise.
16564         * ipa-inline.c (compute_inline_parameters): Adjust.
16565
16566 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16567
16568         PR debug/47106
16569         PR debug/47402
16570         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16571         Adjust all users.  Pass FN to...
16572         * tree-flow-inline.h (first_referenced_var): ... this.  Add
16573         fn argument.
16574         * ipa-struct-reorg.c: Adjust.
16575         * tree-dfa.c: Adjust.
16576         * tree-into-ssa.c: Adjust.
16577         * tree-sra.c: Adjust.
16578         * tree-ssa-alias.c: Adjust.
16579         * tree-ssa-live.c: Adjust.
16580         * tree-ssa.c: Adjust.
16581         * tree-ssanames.c: Adjust.
16582         * tree-tailcall.c: Adjust.
16583
16584 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16585
16586         PR debug/47106
16587         PR debug/47402
16588         * tree-flow.h (referenced_var_lookup): Add fn parameter.
16589         Adjust all callers.
16590         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16591         * tree-flow-inline.h: Adjust.
16592         * gimple-pretty-print.c: Adjust.
16593         * tree-into-ssa.c: Adjust.
16594         * tree-ssa.c: Adjust.
16595         * cfgexpand.c: Adjust.
16596
16597 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16598
16599         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16600         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16601         (EXTRA_CONSTRAINT): Delete.
16602         * config/iq2000/constraints.md: New file.
16603         * config/iq2000/iq2000.md: Include it.
16604         (define_insn ""): Delete.
16605         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16606         unsupported constraint letters from patterns.
16607         (call_value, call_value_internal1): Likewise.
16608         (call_value_multiple_internal1): Likewise.
16609
16610 2011-02-15  Nick Clifton  <nickc@redhat.com>
16611
16612         * config/mn10300/mn10300.c: Include tm-constrs.h.
16613         (struct liw_data): New data structure describing an LIW candidate
16614         instruction.
16615         (extract_bundle): Use struct liw_data.  Allow small integer
16616         operands for some instructions.
16617         (check_liw_constraints): Use struct liw_data.  Remove swapped
16618         parameter.  Add comments describing the checks.  Fix bug when
16619         assigning the source of liw1 to the source of liw2.
16620         (liw_candidate): Delete.  Code moved into extract_bundle.
16621         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
16622         before swapping.
16623         * config/mn10300/predicates.md (liw_operand): New predicate.
16624         Allows registers and small integer constants.
16625         * config/mn10300/constraints.md (O): New constraint.  Accetps
16626         integers in the range -8 to +7 inclusive.
16627         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16628         for moving a small integer into a register.  Give this alternative
16629         LIW attributes.
16630         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16631         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16632         using the J,K,L and M constraints,
16633         (liw): Remove SI mode on second operands to allow for HI and QI
16634         mode values.
16635         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
16636         instruction.
16637
16638 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16639
16640         PR middle-end/47725
16641         * combine.c (cant_combine_insn_p): Check zero/sign extended
16642         hard registers.
16643
16644 2011-02-15  Richard Guenther  <rguenther@suse.de>
16645
16646         PR tree-optimization/47743
16647         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16648         for a non-type-compatible VN lookup bail out.
16649
16650 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16651
16652         * config/fr30/constraints.md: New file.
16653         * config/fr30/fr30.md: Include it.
16654         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16655         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16656         (EXTRA_CONSTRAINT): Delete.
16657
16658 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16659
16660         * config/frv/constraints.md: New file.
16661         * config/frv/predicates.md: Include it.
16662         * config/frv/frv.c (reg_class_from_letter): Delete.
16663         (frv_option_override): Don't initialize it.
16664         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16665         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16666         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16667         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16668         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16669         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16670         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16671         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16672         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16673         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16674         (REG_CLASS_FROM_CONSTRAINT): Delete.
16675
16676 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
16677
16678         PR middle-end/47581
16679         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16680         if frame size is 0 in a leaf function.
16681
16682 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16683
16684         PR pch/14940
16685         * config/alpha/host-osf.c: New file.
16686         * config/alpha/x-osf: New file.
16687         * config.host (alpha*-dec-osf*): Use it.
16688
16689 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16690
16691         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16692         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16693         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16694         (rx_mode_dependent_address_p): ...this. Make static. Change argument
16695         type to const_rtx.
16696         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16697
16698 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16699
16700         * config/stormy16/constraints.md: New file.
16701         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16702         Use satisfies_constraint_Q and satisfies_constraint_R.
16703         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16704         Delete.
16705         (xstormy16_legitiamte_address_p): Declare.
16706         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16707         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16708         (EXTRA_CONSTRAINT): Delete.
16709         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16710         Un-staticize.
16711         (xstormy16_extra_constraint_p): Delete.
16712
16713 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16714
16715         PR tree-optimization/46494
16716         * loop-unroll.c (split_edge_and_insert): Adjust comment.
16717         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16718         (pass_rtl_loop_done): Add TODO_verify_flow.
16719         * fwprop.c (pass_rtl_fwprop): Likewise.
16720         * modulo-sched.c (pass_sms): Likewise.
16721         * tree-ssa-dom.c (pass_dominator): Likewise.
16722         * tree-ssa-loop-ch.c (pass_ch): Likewise.
16723         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16724         (pass_tree_loop_done): Likewise.
16725         * tree-ssa-pre.c (execute_pre): Likewise.
16726         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16727         * tree-ssa-sink.c (pass_sink_code): Likewise.
16728         * tree-vrp.c (pass_vrp): Likewise.
16729
16730 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16731
16732         * config/v850/constraints.md: New file.
16733         * config/v850/v850.md: Include it.
16734         * config/v850/predicates.md (reg_or_0_operand): Use
16735         satisfies_constraint_G.
16736         (special_symbolref_operand): Use satisfies_constraint_K.
16737         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16738         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16739         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16740         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16741         (EXTRA_CONSTRAINT): Delete.
16742         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16743         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16744         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16745
16746 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16747
16748         PR target/47696
16749         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16750         description.
16751
16752 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16753
16754         * config/mcore/constraints.md: New file.
16755         * config/mcore/mcore.md: Include it.
16756         * config/mcore/mcore.c (reg_class_from_letter): Delete.
16757         * config/mcore/mcore.h (reg_class_from_letter): Delete.
16758         (REG_CLASS_FROM_LETTER): Delete.
16759         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16760         insn_const_int_ok_for_constraint.
16761         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16762         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16763         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16764         (EXTRA_CONSTRAINT): Delete.
16765
16766 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16767
16768         PR ada/41929
16769         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16770         (IS_SIGHANDLER): Define.
16771         (sparc64_is_sighandler): New function, split off from
16772         sparc64_fallback_frame_state.
16773         (sparc_is_sighandler): New function, split off from
16774         sparc_fallback_frame_state.
16775         (sparc64_fallback_frame_state): Merge with ...
16776         (sparc_fallback_frame_state): ... this into ...
16777         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16778         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
16779         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
16780         stack instead of hardcoded offsets.
16781
16782 2011-02-14  Andriy Gapon  <avg@freebsd.org>
16783
16784         PR target/45808
16785         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16786
16787 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16788
16789         * configure: Regenerate.
16790
16791 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
16792
16793         PR driver/45731
16794         * gcc.c (asm_options): Correct spec matching --target-help.
16795
16796 2011-02-12  Martin Jambor  <mjambor@suse.cz>
16797
16798         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16799         to gimple call error.
16800
16801 2011-02-12  Mike Stump  <mikestump@comcast.net>
16802
16803         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16804         comments in backslash regions.
16805
16806 2011-02-12  Mike Stump  <mikestump@comcast.net>
16807             Jakub Jelinek  <jakub@redhat.com>
16808             Iain Sandoe  <iains@gcc.gnu.org>
16809
16810         PR target/47324
16811         * dwarf2out.c (output_cfa_loc): When required, apply the
16812         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16813         (output_loc_sequence): Likewise.
16814         (output_loc_operands_raw): Likewise.
16815         (output_loc_sequence_raw): Likewise.
16816         (output_cfa_loc): Likewise.
16817         (output_loc_list): Suppress register number adjustment when
16818         calling output_loc_sequence()
16819         (output_die): Likewise.
16820
16821 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
16822
16823         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16824         Remove macros.
16825         * config/xtensa/xtensa.c (xtensa_register_move_cost,
16826         xtensa_memory_move_cost): New functions.
16827         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16828
16829 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
16830
16831         PR lto/47225
16832         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16833         in the current directory.
16834         * configure: Rebuilt.
16835
16836 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16837
16838         * config/darwin.c (darwin_override_options): Add a hunk missed
16839         from the commit of r168571.  Trim comment line lengths and
16840         correct indents of the preceding block.
16841
16842 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16843
16844         * gcc.c (driver_handle_option): Concatenate the argument to -F with
16845         the switch.
16846
16847 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16848
16849         * common.opt (nostartfiles): New Driver option.
16850
16851 2011-02-11  Xinliang David Li  <davidxl@google.com>
16852
16853         PR tree-optimization/47707
16854         * tree-chrec.c (convert_affine_scev): Keep type precision.
16855
16856 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16857
16858         PR tree-optimization/47420
16859         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16860
16861 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
16862
16863         PR rtl-optimization/47614
16864         * rtl.h (check_for_inc_dec): Declare.
16865         * dse.c (check_for_inc_dec): Externalize...
16866         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16867         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16868
16869 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16870
16871         PR driver/47678
16872         * gcc.c (main): Do not compile inputs if there were errors in
16873         option handling.
16874         * opts-common.c (read_cmdline_option): Check for wrong language
16875         after other error checks.
16876
16877 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
16878
16879         * cgraph.c: Fix comment typos.
16880         * cgraph.h: Likewise.
16881         * cgraphunit.c: Likewise.
16882         * ipa-cp.c: Likewise.
16883         * ipa-inline.c: Likewise.
16884         * ipa-prop.c: Likewise.
16885         * ipa-pure-const.c: Likewise.
16886         * ipa-ref.c: Likewise.
16887         * ipa-reference.c: Likewise.
16888
16889 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16890
16891         PR debug/47684
16892         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16893
16894 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16895
16896         PR testsuite/47400
16897         * doc/sourcebuild.texi (Require Support): Document
16898         dg-require-ascii-locale.
16899
16900 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
16901
16902         * doc/lto.texi (Write summary): Fix missing parentheses.
16903
16904 2011-02-10  DJ Delorie  <dj@redhat.com>
16905
16906         * config/m32c/m32c.c (m32c_option_override): Disable
16907         -fcombine-stack-adjustments until flag value tracking and compare
16908         optimization can be rewritten.
16909
16910 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
16911
16912         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16913         PROCESSOR_POWER7.
16914         (PROCESSOR_DEFAULT64): Likewise.
16915
16916 2011-02-10  Richard Henderson  <rth@redhat.com>
16917
16918         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16919         change from 2011-02-03.
16920         * config/rx/rx.c (flags_from_code): Likewise.
16921         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16922         is valid, n/pz otherwise.
16923         (rx_select_cc_mode): Return CCmode if Y is not zero.
16924
16925 2011-02-10  Richard Guenther  <rguenther@suse.de>
16926
16927         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16928
16929 2011-02-10  Richard Guenther  <rguenther@suse.de>
16930
16931         PR tree-optimization/47677
16932         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16933
16934 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
16935
16936         PR target/47665
16937         * combine.c (make_compound_operation): Only change shifts into
16938         multiplication for SCALAR_INT_MODE_P.
16939
16940 2011-02-10  Jie Zhang  <jie@codesourcery.com>
16941
16942         PR testsuite/47622
16943         Revert
16944         2011-02-05  Jie Zhang  <jie@codesourcery.com>
16945         PR debug/42631
16946         * web.c (entry_register): Don't clobber the number of the
16947         first uninitialized reference in used[].
16948
16949 2011-02-09  Richard Guenther  <rguenther@suse.de>
16950
16951         PR tree-optimization/47664
16952         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16953         all edges again.
16954
16955 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
16956
16957         PR target/46481
16958         PR target/47032
16959         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16960         PROCESSOR_POWER7.
16961         (PROCESSOR_DEFAULT64): Same.
16962         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16963
16964 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16965
16966         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16967
16968 2011-02-09  Martin Jambor  <mjambor@suse.cz>
16969
16970         PR middle-end/45505
16971         * tree-sra.c (struct access): New flags grp_scalar_read and
16972         grp_scalar_write.  Changed description of assignment read and write
16973         flags.
16974         (dump_access): Dump new flags, reorder all of them.
16975         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16976         to detect multiple scalar reads.
16977         (analyze_access_subtree): Use the new scalar read write flags instead
16978         of the old flags.  Adjusted comments.
16979
16980 2011-02-08  DJ Delorie  <dj@redhat.com>
16981
16982         PR target/47548
16983         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16984         patterns.
16985
16986 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16987
16988         * config/m68k/uclinux.opt: New.
16989         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16990
16991 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16992
16993         * config/cris/elf.opt (sim): New Driver option.
16994
16995 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16996
16997         * config/xtensa/elf.opt: New.
16998         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16999
17000 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17001
17002         * config/vax/elf.opt: New.
17003         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17004
17005 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17006
17007         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17008
17009 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17010
17011         * config/gnu-user.opt: New.
17012         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17013         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17014         *-*-uclinux*): Use gnu-user.opt.
17015
17016 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
17017
17018         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17019         * config/i386/gnu.h (CPP_SPEC): Likewise.
17020
17021 2011-02-08  Ian Lance Taylor  <iant@google.com>
17022
17023         * common.opt (fcx-limited-range): Add SetByCombined flag.
17024         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17025         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17026         (fassociative-math, freciprocal-math): Likewise.
17027         (funsafe-math-optimizations): Likewise.
17028         * opth-gen.awk: Handle SetByCombined.
17029         * optc-gen.awk: Likewise.
17030         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
17031         (set_unsafe_math_optimizations_flags): Likewise.
17032         * doc/options.texi (Option properties): Document SetByCombined.
17033
17034 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17035
17036         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17037         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17038         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17039         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17040         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17041
17042 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
17043
17044         PR tree-optimization/46834
17045         PR tree-optimization/46994
17046         PR tree-optimization/46995
17047         * graphite-sese-to-poly.c (used_outside_reduction): New.
17048         (detect_commutative_reduction): Call used_outside_reduction.
17049         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17050         translate_scalar_reduction_to_array only when at least one
17051         loop-phi/close-phi tuple has been detected.
17052
17053 2011-02-08  Richard Guenther  <rguenther@suse.de>
17054
17055         PR middle-end/47639
17056         * tree-vect-generic.c (expand_vector_operations_1): Update
17057         stmts here ...
17058         (expand_vector_operations): ... not here.  Cleanup EH info
17059         and the CFG if required.
17060
17061 2011-02-08  Richard Guenther  <rguenther@suse.de>
17062
17063         PR tree-optimization/47641
17064         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17065         require type compatibility.
17066
17067 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17068
17069         * gimple-low.c (lower_function_body): Don't remove the location of
17070         the return statement here.
17071         (lower_gimple_return): Do it here instead but only if the return
17072         statement is actually used twice.
17073
17074 2011-02-08  Richard Guenther  <rguenther@suse.de>
17075
17076         PR tree-optimization/47632
17077         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17078         unused up_to_stmt parameter, return whether cfg-cleanup is
17079         necessary, remove EH info properly.
17080         (forward_propagate_into_gimple_cond): Adjust caller.
17081         (forward_propagate_into_cond): Likewise.
17082         (forward_propagate_comparison): Likewise.
17083         (tree_ssa_forward_propagate_single_use_vars): Make
17084         forward_propagate_comparison case similar to the two others.
17085
17086 2011-02-08  Nick Clifton  <nickc@redhat.com>
17087
17088         * config/mn10300/mn10300.opt (mliw): New command line option.
17089         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17090         (liw_bundling): New automaton.
17091         (liw): New attribute.
17092         (liw_op): New attribute.
17093         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17094         (movsi_internal): Add LIW attributes.
17095         (andsi3): Likewise.
17096         (iorsi3): Likewise.
17097         (xorsi3): Likewise.
17098         (addsi3): Separate register and immediate alternatives.
17099         Add LIW attributes.
17100         (subsi3): Likewise.
17101         (cmpsi): Likewise.
17102         (aslsi3): Likewise.
17103         (lshrsi3): Likewise.
17104         (ashrsi3): Likewise.
17105         (liw): New pattern.
17106         * config/mn10300/mn10300.c (liw_op_names): New
17107         (mn10300_print_operand): Handle 'W' operand descriptor.
17108         (extract_bundle): New function.
17109         (check_liw_constraints): New function.
17110         (liw_candidate): New function.
17111         (mn10300_bundle_liw): New function.
17112         (mn10300_reorg): New function.
17113         (TARGET_MACHINE_DEPENDENT_REORG): Define.
17114         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17115         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17116         __LIW__ or __NO_LIW__.
17117         * doc/invoke.texi: Describe the -mliw command line option.
17118
17119 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17120
17121         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17122         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17123         pthread_mutex_unlock): Remove.
17124         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17125         * config/pa/t-pa64: Likewise.
17126         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17127         shared libc if not linking against libpthread.
17128         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17129
17130 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
17131
17132         PR target/47558
17133         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17134         on 10.6 and later to ensure that we always use the unwinder from
17135         the system.  Only add -no_compact_unwind when tarteting darwin
17136         10.6 or later.
17137
17138 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
17139
17140         PR target/46997
17141         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17142         (vec_interleave_lowv2sf): Ditto.
17143         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17144         (vec_extract_oddv2sf): Ditto.
17145
17146 2011-02-07  Mike Stump  <mikestump@comcast.net>
17147
17148         PR target/42333
17149         Add __ieee_divdc3 entry point.
17150         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17151         entry point.
17152         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17153         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17154         * config/darwin.c (darwin_rename_builtins): Add.
17155         * config/darwin-protos.h (darwin_rename_builtins): Add.
17156
17157 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
17158
17159         PR target/47636
17160         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17161         for the condition.
17162
17163 2011-02-07  Mike Stump  <mikestump@comcast.net>
17164
17165         * config/darwin.opt (mmacosx-version-min): Update default OS version.
17166
17167 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
17168
17169         PR target/47534
17170         * config/avr/libgcc.S (exit): Move .endfunc
17171
17172 2011-02-07  Richard Guenther  <rguenther@suse.de>
17173
17174         PR tree-optimization/47615
17175         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17176         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17177         (run_scc_vn): Initialize it.
17178         (visit_reference_op_load): Use it.
17179         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17180
17181 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17182
17183         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17184         DImode trapping arithmetic libfuncs.
17185
17186 2011-02-07  Richard Guenther  <rguenther@suse.de>
17187
17188         PR tree-optimization/47621
17189         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17190         two duplicates ...
17191         (execute_update_addresses_taken): ... here.  Make it more
17192         conservative in what we accept.
17193
17194 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
17195
17196         * config/sparc/freebsd.h (ASM_SPEC): Define.
17197         * config/sparc/vxworks.h (ASM_SPEC): Define.
17198
17199 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
17200
17201         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17202
17203 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
17204
17205         * doc/invoke.texi: Remove reference to compiler internals from
17206         user documentation.
17207
17208         * reg-notes.def: Remove REG_VALUE_PROFILE.
17209         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17210
17211 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
17212
17213         PR middle-end/47610
17214         * varasm.c (default_section_type_flags): If decl is NULL,
17215         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17216
17217 2011-02-05  Jie Zhang  <jie@codesourcery.com>
17218
17219         PR debug/42631
17220         * web.c (entry_register): Don't clobber the number of the
17221         first uninitialized reference in used[].
17222
17223 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
17224
17225         PR tree-optimization/46194
17226         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17227         (build_classic_dist_vector_1): Do not represent classic distance
17228         vectors when the access functions are variating in different loops.
17229
17230 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17231
17232         * config/mips/iris6.opt: New.
17233         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17234
17235 2011-02-04  Richard Henderson  <rth@redhat.com>
17236             Steve Ellcey  <sje@cup.hp.com>
17237
17238         PR target/46997
17239         * config/ia64/predicates.md (mux1_brcst_element): New.
17240         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17241         * config/ia64/ia64.c (ia64_unpack_assemble): New.
17242         (ia64_unpack_sign): New.
17243         (ia64_expand_unpack): Rewrite using new routines.
17244         (ia64_expand_widen_sum): Ditto.
17245         (ia64_expand_dot_prod_v8qi): Ditto.
17246         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17247         routines, add endian check.
17248         (pmpy2_even): Rename from pmpy2_r, add endian check.
17249         (pmpy2_odd): Rename from pmpy2_l, add endian check.
17250         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17251         (vec_widen_smult_hi_v4hi): Ditto.
17252         (vec_widen_umult_lo_v4hi): Ditto.
17253         (vec_widen_umult_hi_v4hi): Ditto.
17254         (mulv2si3): Change endian checks.
17255         (sdot_prodv4hi): Rewrite with new calls.
17256         (udot_prodv4hi): New.
17257         (vec_pack_ssat_v4hi): Add endian check.
17258         (vec_pack_usat_v4hi): Ditto.
17259         (vec_pack_ssat_v2si): Ditto.
17260         (max1_even): Rename from max1_r, add endian check.
17261         (max1_odd): Rename from max1_l, add endian check.
17262         (*mux1_rev): Format change.
17263         (*mux1_mix): Ditto.
17264         (*mux1_shuf): Ditto.
17265         (*mux1_alt): Ditto.
17266         (*mux1_brcst_v8qi): Use new predicate.
17267         (vec_extract_evenv8qi): Remove endian check.
17268         (vec_extract_oddv8qi): Ditto.
17269         (vec_interleave_lowv4hi): Format change.
17270         (vec_interleave_highv4hi): Ditto.
17271         (mix2_even): Rename from mix2_r, add endian check.
17272         (mix2_odd): Rename from mux2_l, add endian check.
17273         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17274         (vec_extract_evenodd_helper): Format change.
17275         (vec_extract_evenv4hi): Remove endian check.
17276         (vec_extract_oddv4hi): Remove endian check.
17277         (vec_interleave_lowv2si): Format change.
17278         (vec_interleave_highv2si): Format change.
17279         (vec_initv2si): Remove endian check.
17280         (vecinit_v2si): Add endian check.
17281         (reduc_splus_v2sf): Add endian check.
17282         (reduc_smax_v2sf): Ditto.
17283         (reduc_smin_v2sf): Ditto.
17284         (vec_initv2sf): Remove endian check.
17285         (fpack): Add endian check.
17286         (fswap): Add endian check.
17287         (vec_interleave_highv2sf): Add endian check.
17288         (vec_interleave_lowv2sf): Add endian check.
17289         (fmix_lr): Add endian check.
17290         (vec_setv2sf): Format change.
17291         (*vec_extractv2sf_0_be): Use shift to extract operand.
17292         (*vec_extractv2sf_1_be): New.
17293         (vec_pack_trunc_v4hi): Add endian check.
17294         (vec_pack_trunc_v2si): Format change.
17295
17296 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
17297
17298         PR inline-asm/23200
17299         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
17300         do bb, locus and block comparison and disallow loads if it is not set.
17301         (stmt_is_replaceable_p): New function.
17302         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17303         callers.
17304         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17305         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17306         SSA_NAME_DEF_STMT.
17307         * tree-flow.h (stmt_is_replaceable_p): New prototype.
17308
17309 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17310
17311         * config/rs6000/xilinx.opt: New.
17312         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17313
17314 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17315
17316         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17317
17318 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
17319
17320         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17321         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17322         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17323         secondary_reload_info, xtensa_secondary_reload): Remove.
17324         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17325         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17326         (xtensa_preferred_reload_class): Make static. Change return and
17327         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17328         Use CONST_DOUBLE_P predicate.
17329         (xtensa_preferred_output_reload_class): New function.
17330         (xtensa_secondary_reload): Make static.
17331
17332 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
17333
17334         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17335         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17336         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17337
17338 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17339
17340         PR middle-end/31490
17341         * output.h (SECTION_RELRO): Define.
17342         (SECTION_MACH_DEP): Adjust.
17343         (get_variable_section): New prototype.
17344         * varpool.c (varpool_finalize_named_section_flags): New function.
17345         (varpool_assemble_pending_decls): Call it.
17346         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17347         * cgraphunit.c (cgraph_output_in_order): Call
17348         varpool_finalize_named_section_flags.
17349         * varasm.c (get_section): Allow section flags conflicts between
17350         relro and read-only sections if the section hasn't been declared yet.
17351         Set SECTION_OVERRIDE after diagnosing section type conflict.
17352         (get_variable_section): No longer static.
17353         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17354         readonly sections that need relocations.
17355         (decl_readonly_section_1): New function.
17356         (decl_readonly_section): Use it.
17357
17358         Revert:
17359         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
17360                     Steve Ellcey  <sje@cup.hp.com>
17361
17362         PR middle-end/31490
17363         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17364         if section attribute used.
17365
17366 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17367
17368         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17369         * config/darwin.c (SECTION_NO_ANCHOR): Define.
17370         (darwin_init_sections): Remove assertion.
17371
17372 2011-02-03  Nick Clifton  <nickc@redhat.com>
17373
17374         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17375         lt and ge.
17376         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17377         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17378         instead of "n" and "pz".
17379         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17380         CC_FLAG_S.
17381
17382 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17383
17384         PR target/47312
17385         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17386         fma, expand FMA_EXPR as fma{,f,l} call.
17387
17388         PR lto/47274
17389         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17390         copy them into a unsigned char variable and pass address of it to
17391         lto_output_data_stream.
17392
17393         PR target/47564
17394         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17395         around backend_init_target and lang_dependent_init_target calls.
17396         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17397         (verify_cgraph_node): Don't call set_cfun here.  Use
17398         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17399         Set error_found for incorrectly represented calls to thunks.
17400
17401 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17402
17403         PR debug/43092
17404         PR rtl-optimization/43494
17405         * rtl.h (for_each_inc_dec_fn): New type.
17406         (for_each_inc_dec): Declare.
17407         * rtlanal.c (struct for_each_inc_dec_ops): New type.
17408         (for_each_inc_dec_find_inc_dec): New fn.
17409         (for_each_inc_dec_find_mem): New fn.
17410         (for_each_inc_dec): New fn.
17411         * dse.c (struct insn_size): Remove.
17412         (replace_inc_dec, replace_inc_dec_mem): Remove.
17413         (emit_inc_dec_insn_before): New fn.
17414         (check_for_inc_dec): Use it, along with for_each_inc_dec.
17415         (canon_address): Pass mem modes to cselib_lookup.
17416         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
17417         (cselib_lookup_from_insn): Likewise.
17418         (cselib_subst_to_values): Likewise.
17419         * cselib.c (find_slot_memmode): New var.
17420         (cselib_find_slot): New fn.  Use it instead of
17421         htab_find_slot_with_hash everywhere.
17422         (entry_and_rtx_equal_p): Use find_slot_memmode.
17423         (autoinc_split): New fn.
17424         (rtx_equal_for_cselib_p): Rename and implement in terms of...
17425         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
17426         Deal with autoinc.  Special-case recursion into MEMs.
17427         (cselib_hash_rtx): Likewise.
17428         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
17429         address and MEM modes.
17430         (cselib_subst_to_values): Add memmode, pass it on.
17431         Deal with autoinc.
17432         (cselib_lookup): Add memmode argument, pass it on.
17433         (cselib_lookup_from_insn): Add memmode.
17434         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17435         (struct cselib_record_autoinc_data): New.
17436         (cselib_record_autoinc_cb): New fn.
17437         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
17438         mode to cselib_lookup.  Reset autoinced REGs here instead of...
17439         (cselib_process_insn): ... here.
17440         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17441         to cselib_lookup.
17442         (add_uses): Likewise, also to cselib_subst_to_values.
17443         (add_stores): Likewise.
17444         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
17445         cselib_subst_to_values.
17446         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
17447         * gcse.c (do_local_cprop): Adjusted.
17448         * postreload.c (reload_cse_simplify_set): Adjusted.
17449         (reload_cse_simplify_operands): Adjusted.
17450         * sel-sched-dump (debug_mem_addr_value): Pass mode.
17451
17452 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17453
17454         PR tree-optimization/45122
17455         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17456         unsafe assumptions when there's more than one loop exit.
17457
17458 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17459
17460         PR target/47272
17461         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17462         Document using vector double with the load/store builtins, and
17463         that the load/store builtins always use Altivec instructions.
17464
17465         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17466         to use altivec memory instructions, even on VSX.
17467         (vector_altivec_store_<mode>): Ditto.
17468
17469         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17470         function.
17471
17472         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17473         V2DF, V2DI support to load/store overloaded builtins.
17474
17475         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17476         altivec load/store builtins for V2DF/V2DI types.
17477
17478         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17479         set avoid indexed addresses on power6 if -maltivec.
17480         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17481         vector_altivec_load/vector_altivec_store builtins.
17482         (altivec_expand_st_builtin): Ditto.
17483         (altivec_expand_builtin): Add VSX memory builtins.
17484         (rs6000_init_builtins): Add V2DI types to internal types.
17485         (altivec_init_builtins): Add support for V2DF/V2DI altivec
17486         load/store builtins.
17487         (rs6000_address_for_altivec): Insure memory address is appropriate
17488         for Altivec.
17489
17490         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17491         vec_vsx_ld and vec_vsx_st.
17492         (vsx_store_<mode>): Ditto.
17493
17494         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17495         variables to hold long long types for VSX vector memory builtins.
17496         (RS6000_BTI_unsigned_long_long): Ditto.
17497         (long_long_integer_type_internal_node): Ditti.
17498         (long_long_unsigned_type_internal_node): Ditti.
17499
17500         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17501         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17502         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17503
17504         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17505         short cuts.
17506         (vec_vsx_st): Ditto.
17507
17508 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17509
17510         * config/pa/pa-hpux10.opt: New.
17511         * config/hpux11.opt (pthread): New Driver option.
17512         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17513         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17514
17515 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17516
17517         * config/ia64/vms.opt: New.
17518         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17519
17520 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
17521
17522         PR target/47580
17523         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17524         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17525         generator functions.
17526         (vsx_floatuns<VSi><mode>2): Ditto.
17527         (vsx_fix_trunc<mode><VSi>2): Ditto.
17528         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17529
17530 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17531
17532         * config/i386/djgpp.opt (posix): New Driver option.
17533
17534 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
17535
17536         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17537         Move to the unsupported targets list.
17538
17539 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
17540
17541         PR rtl-optimization/47525
17542         * df-scan.c: Update copyright years.
17543         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17544         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17545
17546 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17547
17548         * config/i386/sysv4.h (TARGET_VERSION): Remove.
17549         (SUBTARGET_RETURN_IN_MEMORY): Remove.
17550         (ASM_OUTPUT_ASCII): Remove.
17551         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17552
17553 2011-02-02  Jeff Law  <law@redhat.com>
17554
17555         PR middle-end/47543
17556         * reload.c (find_reloads_address): Handle reg+d address where both
17557         components are invalid by reloading the entire address.
17558
17559 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17560             Richard Guenther  <rguenther@suse.de>
17561
17562         PR tree-optimization/40979
17563         PR bootstrap/47044
17564         * passes.c (init_optimization_passes): After LIM call copy_prop
17565         and DCE to clean up.
17566         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17567
17568 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17569
17570         PR tree-optimization/47576
17571         PR tree-optimization/47555
17572         * doc/invoke.texi (scev-max-expr-complexity): Documented.
17573         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17574         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17575         * tree-scalar-evolution.c (follow_ssa_edge): Use
17576         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17577
17578 2011-02-02  Richard Guenther  <rguenther@suse.de>
17579
17580         PR tree-optimization/47566
17581         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17582
17583 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17584
17585         PR debug/47106
17586         PR debug/47402
17587         * tree-inline.c (declare_return_variable): Remove unused caller
17588         variable.
17589
17590         PR debug/47106
17591         PR debug/47402
17592         * tree-flow-inline.h (clear_is_used, is_used_p): New.
17593         * cfgexpand.c (account_used_vars_for_block): Use them.
17594         * tree-nrv.c (tree_nrv): Likewise.
17595         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17596         (dump_scope_block): Likewise.
17597         (remove_unused_locals): Likewise.
17598
17599         PR debug/47106
17600         PR debug/47402
17601         * tree-inline.c (declare_return_variable): Add result decl to
17602         local decls only once.
17603         * gimple-low.c (record_vars_into): Mark newly-created variables
17604         as referenced.
17605
17606 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17607
17608         PR debug/47498
17609         PR debug/47501
17610         PR debug/45136
17611         PR debug/45130
17612         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17613         debug insns.
17614         (no_real_insns_p, schedule_block, set_priorities): Drop special
17615         treatment of boundary debug insns.
17616         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17617         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17618         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17619         (BOUNDARY_DEBUG_INSN_P): Likewise.
17620         (SCHEDULE_DEBUG_INSN_P): Likewise.
17621         * sched-rgn.c (init_ready_list): Drop special treatment of
17622         boundary debug insns.
17623         * final.c (rest_of_clean_state): Clear notes' BB.
17624
17625 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17626
17627         * config/openbsd.opt (assert=): New Driver option.
17628
17629 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17630
17631         * config/i386/nto.opt: New.
17632         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17633
17634 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17635
17636         * config/i386/netware.opt: New.
17637         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17638
17639 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17640
17641         * config/interix.opt (posix): New Driver option.
17642
17643 2011-02-01  DJ Delorie  <dj@redhat.com>
17644
17645         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17646
17647         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17648         class for A0/A1.
17649
17650 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
17651
17652         PR tree-optimization/47561
17653         * toplev.c (process_options): Print the Graphite flags.  Add
17654         flag_loop_flatten to the list of options requiring Graphite.
17655
17656 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17657
17658         * config/i386/cygming.opt (posix): New Driver option.
17659
17660 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17661
17662         * config/arm/vxworks.opt: New.
17663         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17664
17665 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17666
17667         * config/alpha/elf.opt: New.
17668         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17669         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17670
17671 2011-02-01  Richard Guenther  <rguenther@suse.de>
17672
17673         PR tree-optimization/47559
17674         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17675         store-motion on references that can throw.
17676
17677 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
17678
17679         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17680         * tree-pass.h (TDF_CSELIB): New macro.
17681         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17682         cselib_lookup): Check for it rather than for TDF_DETAILS.
17683
17684 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
17685
17686         PR driver/47547
17687         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17688         is HOST_BIT_BUCKET.
17689
17690         * opts.c (finish_options): Don't add x_aux_base_name if it is
17691         HOST_BIT_BUCKET.
17692
17693 2011-02-01  Richard Guenther  <rguenther@suse.de>
17694
17695         PR tree-optimization/47555
17696         Revert
17697         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
17698
17699         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17700
17701 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
17702
17703         PR gcc/46692
17704         * config/lm32/t-lm32: Add multilib for all CPU options.
17705
17706 2011-02-01  Richard Guenther  <rguenther@suse.de>
17707
17708         PR tree-optimization/47541
17709         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17710         sure to have a field at offset zero.
17711
17712 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17713
17714         * config/arc/arc.opt (EB, EL): New Driver options.
17715
17716 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17717
17718         * config/alpha/osf5.opt: New.
17719         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17720
17721 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17722
17723         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17724
17725 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
17726
17727         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17728         -floop-interchange.
17729         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17730         is an alias of -floop-interchange and that it requires the
17731         Graphite infrastructure.
17732         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17733         flag_loop_interchange based on the value of flag_tree_loop_linear.
17734
17735 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
17736             Richard Guenther  <rguenther@suse.de>
17737
17738         PR tree-optimization/47538
17739         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17740         type instead of r1type, except for comparisons.  For right
17741         shifts and comparisons punt if there are mismatches in
17742         sizetype vs. non-sizetype types.
17743
17744 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17745
17746         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17747         avx_runtime.
17748
17749 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17750
17751         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17752         version number.
17753         * configure: Regenerate.
17754
17755 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17756
17757         * configure.ac (gcc_cv_ld_static_option): Define.
17758         (gcc_cv_ld_dynamic_option): Define.
17759         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17760         instead.
17761         (HAVE_LD_STATIC_DYNAMIC): Update message.
17762         (LD_STATIC_OPTION): Define.
17763         (LD_DYNAMIC_OPTION): Define.
17764         * configure: Regenerate.
17765         * config.in: Regenerate.
17766         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17767         HAVE_LD_STATIC_DYNAMIC]: Use them.
17768
17769 2011-01-31  Nick Clifton  <nickc@redhat.com>
17770
17771         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17772         registers inside interrupt handlers if the handler is not a leaf
17773         function.
17774
17775 2011-01-31  Nick Clifton  <nickc@redhat.com>
17776
17777         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17778         reg_renumber returning an INVALID_REGNUM.
17779
17780 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17781
17782         PR libgcj/44341
17783         * doc/install.texi: Document host options discarded when cross
17784         configuring target libraries.
17785
17786 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17787
17788         Reverted:
17789         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17790         PR debug/45136
17791         PR debug/45130
17792         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17793         debug insns.
17794         (no_real_insns_p, schedule_block, set_priorities): Drop special
17795         treatment of boundary debug insns.
17796         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17797         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17798         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17799         (BOUNDARY_DEBUG_INSN_P): Likewise.
17800         (SCHEDULE_DEBUG_INSN_P): Likewise.
17801         * sched-rgn.c (init_ready_list): Drop special treatment of
17802         boundary debug insns.
17803         * final.c (rest_of_clean-state): Clear notes' BB.
17804
17805 2011-01-31  Alan Modra  <amodra@gmail.com>
17806
17807         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17808         toc relative expressions as we do in print_operand_address.
17809
17810 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
17811
17812         * doc/extend.texi: Follow spelling conventions.
17813         * doc/invoke.texi: Fix a typo.
17814
17815 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
17816
17817         * config/hpux11.opt: New.
17818         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17819         ia64*-*-hpux*): Use hpux11.opt.
17820
17821 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
17822
17823         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17824         to tmake_file.
17825
17826 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17827
17828         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17829         support sites.
17830
17831 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17832
17833         * doc/install.texi (Binaries): Remove outdated reference for
17834         Motorola 68HC11/68HC12 downloads.
17835
17836 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17837
17838         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17839         Drepper's paper.
17840
17841 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
17842
17843         PR bootstrap/47147
17844         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17845         used by NetBSD.
17846
17847 2011-01-28  Ahmad Sharif  <asharif@google.com>
17848
17849         * value-prof.c (check_counter): Corrected error message.
17850
17851 2011-01-29  Jie Zhang  <jie@codesourcery.com>
17852
17853         * config/arm/arm.c (arm_legitimize_reload_address): New.
17854         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17855         arm_legitimize_reload_address.
17856         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17857
17858 2011-01-28  Ian Lance Taylor  <iant@google.com>
17859
17860         * godump.c (go_define): Ignore macros whose definitions include
17861         two adjacent operands.
17862
17863 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
17864
17865         PR target/42894
17866         * varasm.c (force_const_mem): Store copy of x in desc->constant
17867         instead of x itself.
17868         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17869         itself into REG_EQUAL note.
17870
17871 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
17872
17873         * config/freebsd.opt (posix, rdynamic): New Driver options.
17874
17875 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17876
17877         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17878         -Bstatic/-Bdynamic.
17879         * configure: Regenerate.
17880
17881 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
17882
17883         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17884         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17885
17886 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
17887
17888         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17889         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17890         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17891         (s390_preferred_reload_class): Make static. Change return and
17892         'rclass' argument type to reg_class_t.
17893
17894 2011-01-27  Jan Hubicka  <jh@suse.cz>
17895
17896         PR middle-end/46949
17897         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17898         (process_function_and_variable_attributes): Check defined weakrefs.
17899
17900 2011-01-27  Martin Jambor  <mjambor@suse.cz>
17901
17902         PR tree-optimization/47228
17903         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17904         build_ref_for_offset.
17905
17906 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17907
17908         * config/spu/spu-elf.h (ASM_SPEC): Remove.
17909
17910 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
17911
17912         PR rtl-optimization/46856
17913         * postreload.c (reload_combine_recognize_const_pattern): Do not
17914         separate cc0 setter and user on cc0 targets.
17915
17916 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
17917
17918         PR c/43082
17919         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17920         passed a VOID_TYPE expression, immediately emit an error and
17921         return error_mark_node.
17922
17923 2011-01-26  Jeff Law  <law@redhat.com>
17924
17925         PR rtl-optimization/47464
17926         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17927         rather than may_trap_p as needed.
17928
17929 2011-01-26  DJ Delorie  <dj@redhat.com>
17930
17931         PR rtl-optimization/46878
17932         * combine.c (insn_a_feeds_b): Check for the implicit cc0
17933         setter/user dependency as well.
17934
17935 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17936
17937         PR rtl-optimization/44469
17938         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17939         after removing trivially dead basic blocks.
17940
17941 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17942
17943         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17944         * config/frv/frv.h (LINK_SPEC): Likewise.
17945         * config/i386/netware.h (LINK_SPEC): Likewise.
17946         * config/m68k/linux.h (ASM_SPEC): Likewise.
17947         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17948         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17949         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17950         * config/sparc/linux.h (ASM_SPEC): Likewise.
17951         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17952         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17953
17954 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17955
17956         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17957         * config/frv/frv.h (ASM_SPEC): Likewise.
17958         * config/m68k/linux.h (ASM_SPEC): Likewise.
17959         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17960         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17961         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17962         * config/sparc/linux.h (ASM_SPEC): Likewise.
17963         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17964         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17965
17966 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17967
17968         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17969         * config/frv/frv.h (LINK_SPEC): Likewise.
17970         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17971
17972 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17973
17974         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17975         * config/frv/frv.h (ASM_SPEC): Likewise.
17976         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17977         * config/m68k/linux.h (ASM_SPEC): Likewise.
17978         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17979         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17980         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17981         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17982         * config/sparc/linux.h (ASM_SPEC): Likewise.
17983         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17984         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17985         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17986
17987 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
17988
17989         PR target/46997
17990         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17991         (*mux2): Ditto.
17992         (vec_extract_evenodd_help): Ditto.
17993         (vec_extract_evenv4hi): Ditto.
17994         (vec_extract_oddv4hi): Ditto.
17995         (vec_interleave_lowv2si): Ditto.
17996         (vec_interleave_highv2si): Ditto.
17997         (vec_extract_evenv2si): Ditto.
17998         (vec_extract_oddv2si: Ditto.
17999         (vec_pack_trunc_v2si): Ditto.
18000
18001 2011-01-22  Jan Hubicka  <jh@suse.cz>
18002
18003         PR target/47237
18004         * cgraph.h (cgraph_local_info): New field can_change_signature.
18005         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18006         signature can change.
18007         (ipcp_estimate_growth): Call sequence simplify only if calle signature
18008         can change.
18009         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18010         (cgraph_function_versioning): We can not change signature of functions
18011         that don't allow that.
18012         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18013         (lto_input_node): Likewise.
18014         * ipa-inline.c (compute_inline_parameters): Compute
18015         local.can_change_signature.
18016         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
18017         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18018         functions that can not change signature.
18019         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
18020         init_cumulative_args): Do not use local calling conventions
18021         for functions that can not change signature.
18022
18023 2011-01-22  Jan Hubicka  <jh@suse.cz>
18024
18025         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18026
18027 2011-01-26  Richard Guenther  <rguenther@suse.de>
18028
18029         PR tree-optimization/47190
18030         * cgraphunit.c (process_common_attributes): New function.
18031         (process_function_and_variable_attributes): Use it.
18032
18033 2011-01-26  Richard Guenther  <rguenther@suse.de>
18034
18035         PR lto/47423
18036         * cgraphbuild.c (record_eh_tables): Record reference to personality
18037         function.
18038
18039 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
18040
18041         PR debug/45454
18042         * sel-sched.c (moveup_expr): Don't let debug insns prevent
18043         non-debug insns from moving up.
18044
18045 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
18046
18047         PR target/40125
18048         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18049         t-dlldir{,-x} fragment for build and add it to tmake_file.
18050         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18051         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18052         * config/i386/t-dlldir: New file.
18053         (SHLIB_DLLDIR): Define.
18054         * config/i386/t-dlldir-x: New file.
18055         (SHLIB_DLLDIR): Define.
18056         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18057         (SHLIB_INSTALL): Use it.
18058
18059 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
18060
18061         PR target/47246
18062         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18063         lower bound of the allowed Thumb-2 coprocessor load/store
18064         index range to -256. Add explaining comment.
18065
18066 2011-01-25  Ian Lance Taylor  <iant@google.com>
18067
18068         * godump.c (go_define): Improve lexing of macro expansion to only
18069         accept expressions which match Go spec.
18070
18071 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
18072
18073         PR c++/43601
18074         * tree.c (handle_dll_attribute): Handle it.
18075         * doc/extend.texi (@item dllexport): Mention it.
18076         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18077
18078 2011-01-25  Ian Lance Taylor  <iant@google.com>
18079
18080         PR tree-optimization/26854
18081         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18082         (decl_jump_unsafe): Move higher in file, with no other change.
18083         (bind): Set has_jump_unsafe_decl if appropriate.
18084         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18085         (check_earlier_gotos): Likewise.
18086         (c_check_switch_jump_warnings): Likewise.
18087
18088 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
18089
18090         * doc/invoke.texi (Warning Options): Add missing hyphen.
18091         (-fprofile-dir): Minor grammatical fixes.
18092         (-fbranch-probabilities): Likewise.
18093
18094 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
18095
18096         PR debug/45136
18097         PR debug/45130
18098         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18099         debug insns.
18100         (no_real_insns_p, schedule_block, set_priorities): Drop special
18101         treatment of boundary debug insns.
18102         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18103         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18104         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18105         (BOUNDARY_DEBUG_INSN_P): Likewise.
18106         (SCHEDULE_DEBUG_INSN_P): Likewise.
18107         * sched-rgn.c (init_ready_list): Drop special treatment of
18108         boundary debug insns.
18109         * final.c (rest_of_clean-state): Clear notes' BB.
18110
18111 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18112
18113         * Makefile.in (LAMBDA_H): Removed.
18114         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18115         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18116         lambda-trans.o, and tree-loop-linear.o.
18117         (lto-symtab.o): Remove dependence on LAMBDA_H.
18118         (tree-loop-linear.o): Remove rule.
18119         (lambda-mat.o): Same.
18120         (lambda-trans.o): Same.
18121         (lambda-code.o): Same.
18122         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18123         (tree-vect-slp.o): Same.
18124         * hwint.h (gcd): Moved here.
18125         (least_common_multiple): Same.
18126         * lambda-code.c: Removed.
18127         * lambda-mat.c: Removed.
18128         * lambda-trans.c: Removed.
18129         * lambda.h: Removed.
18130         * tree-loop-linear.c: Removed.
18131         * lto-symtab.c: Do not include lambda.h.
18132         * omega.c (gcd): Removed.
18133         * passes.c (init_optimization_passes): Remove pass_linear_transform.
18134         * tree-data-ref.c (print_lambda_vector): Moved here.
18135         (lambda_vector_copy): Same.
18136         (lambda_matrix_copy): Same.
18137         (lambda_matrix_id): Same.
18138         (lambda_vector_first_nz): Same.
18139         (lambda_matrix_row_add): Same.
18140         (lambda_matrix_row_exchange): Same.
18141         (lambda_vector_mult_const): Same.
18142         (lambda_vector_negate): Same.
18143         (lambda_matrix_row_negate): Same.
18144         (lambda_vector_equal): Same.
18145         (lambda_matrix_right_hermite): Same.
18146         * tree-data-ref.h: Do not include lambda.h.
18147         (lambda_vector): Moved here.
18148         (lambda_matrix): Same.
18149         (dependence_level): Same.
18150         (lambda_transform_legal_p): Removed declaration.
18151         (lambda_collect_parameters): Same.
18152         (lambda_compute_access_matrices): Same.
18153         (lambda_vector_gcd): Same.
18154         (lambda_vector_new): Same.
18155         (lambda_vector_clear): Same.
18156         (lambda_vector_lexico_pos): Same.
18157         (lambda_vector_zerop): Same.
18158         (lambda_matrix_new): Same.
18159         * tree-flow.h (least_common_multiple): Removed declaration.
18160         * tree-parloops.c (lambda_trans_matrix): Moved here.
18161         (LTM_MATRIX): Same.
18162         (LTM_ROWSIZE): Same.
18163         (LTM_COLSIZE): Same.
18164         (LTM_DENOMINATOR): Same.
18165         (lambda_trans_matrix_new): Same.
18166         (lambda_matrix_vector_mult): Same.
18167         (lambda_transform_legal_p): Same.
18168         * tree-pass.h (pass_linear_transform): Removed declaration.
18169         * tree-ssa-loop.c (tree_linear_transform): Removed.
18170         (gate_tree_linear_transform): Removed.
18171         (pass_linear_transform): Removed.
18172         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18173         flag_loop_interchange.
18174
18175 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
18176
18177         PR tree-optimization/47265
18178         PR tree-optimization/47443
18179         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18180         if name still has some uses.
18181
18182 2011-01-25  Martin Jambor  <mjambor@suse.cz>
18183
18184         PR tree-optimization/47382
18185         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18186         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18187
18188 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
18189
18190         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18191         sjlj_except_unwind_info.
18192
18193 2011-01-25  Richard Guenther  <rguenther@suse.de>
18194
18195         PR tree-optimization/47426
18196         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18197         visible functions results escape.
18198
18199 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
18200
18201         PR target/45701
18202         * config/arm/arm.c (any_sibcall_uses_r3): New function.
18203         (arm_get_frame_offsets): Use it.
18204
18205 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18206             Jakub Jelinek  <jakub@redhat.com>
18207
18208         PR tree-optimization/47271
18209         * tree-if-conv.c (bb_postdominates_preds): New.
18210         (if_convertible_bb_p): Call bb_postdominates_preds.
18211         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18212         (predicate_scalar_phi): Call bb_postdominates_preds.
18213
18214 2011-01-25  Nick Clifton  <nickc@redhat.com>
18215
18216         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18217         * config/rx/rx.c (rx_function_value): Likewise.
18218         (rx_promote_function_mode): Likewise.
18219         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18220         in order to make it legitimate.
18221         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18222         make sure that the first operand is the same as the result register.
18223         (addsi3_unspec): Delete.
18224         (subdi3): Do not accept immediate operands.
18225         (subdi3_internal): Likewise.
18226
18227 2011-01-25  Jeff Law  <law@redhat.com>
18228
18229         PR rtl-optimization/37273
18230         * ira-costs.c (scan_one_insn): Detect constants living in memory and
18231         handle them like argument loads from stack slots.  Do not double
18232         count memory for memory constants and argument loads from stack slots.
18233
18234 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
18235
18236         PR tree-optimization/47427
18237         PR tree-optimization/47428
18238         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18239         coalesce if the new root var would be TREE_READONLY.
18240
18241 2011-01-25  Richard Guenther  <rguenther@suse.de>
18242
18243         PR middle-end/47414
18244         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18245         correct type for TBAA.
18246
18247 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18248
18249         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18250         (close_phi_written_to_memory): Call for_each_index with
18251         dr_indices_valid_in_loop.
18252
18253 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18254
18255         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18256         when it is initialized.
18257
18258 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18259
18260         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18261         call to graphite_find_data_references_in_stmt.
18262         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18263         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
18264         call to graphite_find_data_references_in_stmt.
18265         (analyze_drs_in_stmts): Same.
18266         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18267         in which the scalar analysis of indices is performed.
18268         (create_data_ref): Same.  Update call to dr_analyze_indices.
18269         (find_data_references_in_stmt): Update call to create_data_ref.
18270         (graphite_find_data_references_in_stmt): Same.
18271         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18272         declaration.
18273         (create_data_ref): Same.
18274         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18275         call to create_data_ref.
18276
18277 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18278
18279         * graphite-sese-to-poly.c (build_poly_scop): Move
18280         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18281
18282 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18283
18284         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18285         VAR_DECL, PARM_DECL, and RESULT_DECL.
18286
18287 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18288
18289         * graphite-dependences.c (reduction_dr_1): Allow several reductions
18290         in a reduction PBB.
18291         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18292         that have already been marked as PBB_IS_REDUCTION.
18293
18294 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18295
18296         * graphite-scop-detection.c (same_close_phi_node): New.
18297         (remove_duplicate_close_phi): New.
18298         (make_close_phi_nodes_unique): New.
18299         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18300
18301 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18302
18303         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18304         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18305         of both data references to be the same.
18306
18307 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18308
18309         * graphite-dependences.c (build_lexicographical_constraint): Remove
18310         the gdim parameter.
18311         (build_lexicographical_constraint): Adjust call to
18312         ppl_powerset_is_empty.
18313         (dependence_polyhedron): Same.
18314         (graphite_legal_transform_dr): Same.
18315         (graphite_carried_dependence_level_k): Same.
18316         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18317         parameter.
18318         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18319
18320 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18321
18322         * graphite-sese-to-poly.c
18323         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18324         (close_phi_written_to_memory): New.
18325         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18326         and unshare_expr.
18327
18328 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18329
18330         * doc/install.texi: Update the expected version number of PPL to 0.11.
18331         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18332         #if PPL_VERSION_MINOR < 11.
18333
18334 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18335
18336         * graphite-dependences.c: Include graphite-cloog-util.h.
18337         (new_poly_ddr): Inlined into dependence_polyhedron.
18338         (free_poly_ddr): Moved close by new_poly_ddr.
18339         (dependence_polyhedron_1): Renamed dependence_polyhedron.
18340         Early return NULL when ppl_powerset_is_empty returns true.
18341         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
18342         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
18343         (graphite_legal_transform_dr): Call new_poly_ddr.
18344         (graphite_carried_dependence_level_k): Same.
18345         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
18346         (dot_transformed_deps_stmt_1): Removed.
18347         (dot_deps_stmt_1): Call dot_deps_stmt_2.
18348         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
18349         (dot_deps_1): Call dot_deps_2.
18350         * Makefile.in (graphite-dependences.o): Add missing dependence on
18351         graphite-cloog-util.h.
18352
18353 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18354
18355         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18356         (build_lexicographical_constraint): Same.
18357         (dependence_polyhedron_1): Same.
18358         (graphite_legal_transform_dr): Same.
18359         (graphite_carried_dependence_level_k): Same.
18360         * graphite-ppl.c (ppl_powerset_is_empty): New.
18361         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18362         * tree-data-ref.c (dump_data_reference): Print the basic block index.
18363
18364 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18365
18366         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18367         the "a followed by b" relation and document it.
18368
18369 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18370
18371         * graphite-dependences.c (build_lexicographical_constraint): Stop the
18372         iteration when the bag of constraints is empty.
18373
18374 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18375
18376         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18377
18378 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18379
18380         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18381         nest and two loop depths as parameters.
18382         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18383         lst_perfect_nestify.
18384
18385 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18386
18387         * graphite-dependences.c (print_pddr): Call
18388         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18389
18390 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18391
18392         * graphite-ppl.c (debug_gmp_value): New.
18393         * graphite-ppl.h (debug_gmp_value): Declared.
18394
18395 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
18396
18397         * doc/install.texi: Document availability of cloog-0.16.
18398
18399 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
18400
18401         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18402         invalid postdominance info.
18403
18404 2011-01-24  Jan Hubicka  <jh@suse.cz>
18405
18406         PR c/21659
18407         * doc/extend.texi (weak pragma): Drop claim that it must
18408         appear before definition.
18409         * varasm.c (merge_weak, declare_weak): Only sanity check
18410         that DECL is not output at a time it is declared weak.
18411
18412 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
18413
18414         * machmode.def: Fixed comments.
18415
18416 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
18417
18418         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18419
18420 2011-01-24  Paul Koning  <ni1d@arrl.net>
18421
18422         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18423         WORDS_BIG_ENDIAN.
18424
18425 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
18426
18427         PR target/46519
18428         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18429         (block_info): Add scanned and prev.
18430         (move_or_delete_vzeroupper_2): Return if the basic block
18431         has been scanned and the upper 128bit state is unchanged
18432         from the last scan.
18433         (move_or_delete_vzeroupper_1): Return true if the exit
18434         state is changed.
18435         (move_or_delete_vzeroupper): Visit basic blocks using the
18436         work-list based algorithm based on vt_find_locations in
18437         var-tracking.c.
18438
18439         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18440
18441 2011-01-24  Nick Clifton  <nickc@redhat.com>
18442
18443         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18444         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18445         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
18446         then define __v850e1__.
18447         * doc/invoke.texi: Document -mv850es.
18448
18449 2011-01-24  Richard Henderson  <rth@redhat.com>
18450
18451         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18452         compound unordered comparisons.
18453         * config/rx/rx.c (rx_split_fp_compare): Remove.
18454         * config/rx/rx-protos.h: Update.
18455         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18456         (cbranchsf4): Don't call rx_split_fp_compare.
18457         (*cbranchsf4): Use rx_split_cbranch.
18458         (*cmpsf): Don't accept "i" constraint.
18459         (*conditional_branch): Only valid after reload.
18460         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
18461
18462 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18463
18464         PR target/47385
18465         * config/rs6000/altivec.md (vector constant splitters): Add
18466         support for creating vector single precision constants if -mvsx is
18467         used and we would create the constant using Altivec primitives.
18468
18469 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
18470             Richard Sandiford  <rdsandiford@googlemail.com>
18471
18472         PR rtl-optimization/47166
18473         * reload1.c (emit_reload_insns): Disable the spill_reg_store
18474         mechanism for PRE_MODIFY and POST_MODIFY.
18475         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18476         reloadreg.
18477
18478 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
18479
18480         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18481
18482 2011-01-22  Jan Hubicka  <jh@suse.cz>
18483
18484         PR lto/47333
18485         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18486
18487 2011-01-22  Jan Hubicka  <jh@suse.cz>
18488
18489         PR tree-optimization/43884
18490         PR lto/44334
18491         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18492         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18493
18494 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
18495
18496         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18497         * config/s390/s390.c (s390_register_move_cost,
18498         s390_memory_move_cost): New.
18499         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18500
18501 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18502
18503         PR middle-end/47401
18504         * except.c (sjlj_assign_call_site_values): Move setting the
18505         crtl->uses_eh_lsda flag to ...
18506         (sjlj_mark_call_sites): ... here.
18507         (sjlj_emit_function_enter): Support NULL dispatch label.
18508         (sjlj_build_landing_pads): In a function with no landing pads
18509         that still has must-not-throw regions, generate code to register
18510         a personality function with empty LSDA.
18511
18512 2011-01-21  Richard Henderson  <rth@redhat.com>
18513
18514         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18515
18516         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18517
18518         * compare-elim.c: New file.
18519         * Makefile.in (OBJS-common): Add it.
18520         (compare-elim.o): New.
18521         * common.opt (fcompare-elim): New.
18522         * opts.c (default_options_table): Add OPT_fcompare_elim.
18523         * tree-pass.h (pass_compare_elim_after_reload): New.
18524         * passes.c (init_optimization_passes): Add it.
18525         * recog.h: Protect against re-inclusion.
18526         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18527         * doc/invoke.texi (-fcompare-elim): Document it.
18528         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18529         * doc/tm.texi: Rebuild.
18530
18531 2011-01-22  Nick Clifton  <nickc@redhat.com>
18532
18533         * config/rx/rx.md (cstoresf4): Pass comparison operator to
18534         rx_split_fp_compare.
18535
18536 2011-01-22  Nick Clifton  <nickc@redhat.com>
18537
18538         * config/rx/rx.md (UNSPEC_CONST): New.
18539         (deallocate_and_return): Wrap the amount popped off the stack in
18540         an UNSPEC_CONST in order to stop it being rejected by
18541         -mmax-constant-size.
18542         (pop_and_return): Add a "(return)" rtx.
18543         (call): Drop the immediate operand.
18544         (call_internal): Likewise.
18545         (call_value): Likewise.
18546         (call_value_internal): Likewise.
18547         (sibcall_internal): Likewise.
18548         (sibcall_value_internal): Likewise.
18549         (sibcall): Likewise.  Generate an explicit call using
18550         sibcall_internal.
18551         (sibcall_value): Likewise.
18552         (mov<>): FAIL if a constant operand is not legitimate.
18553         (addsi3_unpsec): New pattern.
18554
18555         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18556         (ok_for_max_constant): New function.
18557         (gen_safe_add): New function.
18558         (rx_expand_prologue): Use gen_safe_add.
18559         (rx_expand_epilogue): Likewise.
18560         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
18561         UNSPEC CONSTs.
18562
18563 2011-01-21  Jeff Law  <law@redhat.com>
18564
18565         PR tree-optimization/47053
18566         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18567         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18568         statements are deleted.
18569         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
18570         is nonempty, then purge dead edges and cleanup the CFG.
18571
18572 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18573
18574         PR debug/47402
18575         Temporarily revert:
18576         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18577         PR debug/47106
18578         * tree-dfa.c (create_var_ann): Mark variable as used.
18579
18580 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18581
18582         PR middle-end/45566
18583         * except.c (convert_to_eh_region_ranges): Emit queued no-region
18584         notes from other section in hot/cold partitioning even if
18585         last_action is -3.  Increment call_site_base.
18586
18587         PR rtl-optimization/47366
18588         * fwprop.c (forward_propagate_into): Return bool.  If
18589         any changes are made, -fnon-call-exceptions is used and
18590         REG_EH_REGION note is present, call purge_dead_edges
18591         and return true if it purged anything.
18592         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18593         any EH edges were purged.
18594
18595 2011-01-21  Jeff Law  <law@redhat.com>
18596
18597         PR rtl-optimization/41619
18598         * caller-save.c (setup_save_areas): Break out code to determine
18599         which hard regs are live across calls by examining the reload chains
18600         so that it is always used.
18601         Eliminate code which checked REG_N_CALLS_CROSSED.
18602
18603 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18604
18605         PR tree-optimization/47355
18606         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18607         NOP has non-debug uses beyond PHIs in new_bb.
18608
18609 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18610
18611         PR debug/47106
18612         * cfgexpand.c (account_used_vars_for_block): Only account vars
18613         that are annotated as used.
18614         (estimated_stack_frame_size): Don't set TREE_USED.
18615         * tree-dfa.c (create_var_ann): Mark variable as used.
18616
18617 2011-01-21  Richard Guenther  <rguenther@suse.de>
18618
18619         PR middle-end/47395
18620         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18621
18622 2011-01-21  Richard Guenther  <rguenther@suse.de>
18623
18624         PR tree-optimization/47365
18625         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18626         (vn_reference_lookup_pieces): Adjust.
18627         (vn_reference_lookup): Likewise.
18628         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18629         (vn_reference_lookup_3): Only look through kills if in
18630         VN_WALKREWRITE mode.
18631         (vn_reference_lookup_pieces): Adjust.
18632         (vn_reference_lookup): Likewise.
18633         (visit_reference_op_load): Likewise.
18634         (visit_reference_op_store): Likewise.
18635         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18636         (compute_avail): Likewise.
18637         (eliminate): Likewise.
18638
18639 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18640
18641         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18642         DECL_IGNORED_P non-reg vars if they are used.
18643
18644         PR tree-optimization/47391
18645         * varpool.c (const_value_known_p): Return false if
18646         decl is volatile.
18647
18648 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
18649
18650         PR bootstrap/47215
18651         * config/i386/i386.c (ix86_local_alignment): Handle
18652         case for va_list_type_node is nil.
18653         (ix86_canonical_va_list_type): Likewise.
18654
18655 2011-01-21  Alan Modra  <amodra@gmail.com>
18656
18657         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18658         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18659
18660 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18661
18662         * config/arm/arm.md (define_attr type): Rename f_load
18663         and f_store to f_fpa_load and f_fpa_store. Update.
18664         (write_conflict): Deal with rename fallout.
18665         (*push_fp_multi): Likewise.
18666         * config/arm/fpa.md (f_load): Use f_fpa_load.
18667         (f_store): Use f_fpa_store.
18668         (*movsf_fpa): Likewise.
18669         (*movdf_fpa): Likewise.
18670         (*movxf_fpa): Likewise.
18671         (*thumb2_movsf_fpa): Likewise.
18672         (*thumb2_movdf_fpa): Likewise.
18673         (*thumb2_movxf_fpa): Likewise.
18674         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18675         f_loadd and f_stored.
18676         (*thumb2_movdi_vfp): Likewise.
18677         (*thumb2_movsf_vfp): Fix attribute to f_loads.
18678         (*thumb2_movsi_vfp): Likewise.
18679         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18680         Use f_loads instead of f_load.
18681         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18682
18683 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
18684
18685         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18686         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18687         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18688         (xtensa_mode_dependent_address_p): New function.
18689         (constantpool_address_p): Make static. Change return type to bool.
18690         Change argument type to const_rtx. Use CONST_INT_P predicate.
18691
18692 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
18693
18694         PR debug/46583
18695         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18696
18697 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18698
18699         PR debug/47283
18700         * cfgexpand.c (expand_debug_expr): Instead of generating
18701         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18702         etc. handling.
18703
18704 2011-01-20  Richard Guenther  <rguenther@suse.de>
18705
18706         PR middle-end/47370
18707         * tree-inline.c (remap_gimple_op_r): Recurse manually for
18708         the pointer operand of MEM_REFs.
18709
18710 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18711
18712         PR tree-optimization/46130
18713         * ipa-split.c (consider_split): If return_bb contains non-virtual
18714         PHIs other than for retval or if split_function would not adjust it,
18715         refuse to split.
18716
18717 2011-01-20  Richard Guenther  <rguenther@suse.de>
18718
18719         PR tree-optimization/47167
18720         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18721         Revert previous change, only avoid enumeral type changes.
18722
18723 2011-01-19  Mike Stump  <mikestump@comcast.net>
18724
18725         * doc/tm.texi.in (BRANCH_COST): Englishify.
18726         * doc/tm.texi (BRANCH_COST): Likewise.
18727
18728 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
18729
18730         PR c++/47291
18731         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18732         (gen_scheduled_generic_parms_dies): New functions.
18733         (gen_struct_or_union_type_die): Schedule template parameters DIEs
18734         generation for the end of CU compilation.
18735         (dwarf2out_finish): Generate template parameters DIEs here.
18736
18737 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18738
18739         PR debug/46240
18740         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18741         debug bind stmt on merge edges.
18742
18743 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18744
18745         PR debug/47079
18746         PR debug/46724
18747         * function.c (instantiate_expr): Instantiate incoming rtl of
18748         implicit arguments, and recurse on VALUE_EXPRs.
18749         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18750         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18751
18752 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18753
18754         * c-parser.c (c_parser_for_statement): Initialize
18755         collection_expression.
18756
18757 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18758
18759         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18760
18761 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18762
18763         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18764         (LINK_SHLIB_SPEC): Don't use %(link_path).
18765         (SUBTARGET_EXTRA_SPECS): Remove link_path.
18766
18767 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18768
18769         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18770         (NO_SHARED_LIB_SUPPORT): Remove.
18771         (LINK_SHLIB_SPEC): Remove one conditional definition.
18772
18773 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18774
18775         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18776         %{call_shared}.
18777         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18778         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18779         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18780         %{call_shared} and conditionals on these options not being passed.
18781         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18782         %{call_shared}.
18783
18784 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18785
18786         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18787         simplify.
18788
18789         * ipa-split.c: Spelling fixes.
18790
18791 2011-01-19  Richard Henderson  <rth@redhat.com>
18792
18793         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18794         (*mulsi3): Likewise.
18795
18796         * longlong.h [__mn10300__] (count_leading_zeros): New.
18797         [__mn10300__] (umul_ppmm, smul_ppmm): New.
18798         [__mn10300__] (add_ssaaaa, subddmmss): New.
18799         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18800         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18801
18802 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18803
18804         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18805
18806 2011-01-19  Richard Henderson  <rth@redhat.com>
18807
18808         * config/mn10300/mn10300.md (addsi3_flags): New.
18809         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18810         (subsi3_flags, subc_internal, subdi3): New.
18811         (subdi3_internal, *subdi3_degenerate): New.
18812         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18813
18814         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18815         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18816         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
18817         * config/mn10300/mn10300-protos.h: Update.
18818         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18819         (return_ret): Likewise.  Rename from return_internal_regs.
18820         (return_internal): Remove.
18821
18822         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18823         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18824         (mn10300_legitimate_constant_p): Likewise.
18825         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18826         (mn10300_frame_size): New.
18827         (mn10300_expand_prologue): Use it.
18828         (mn10300_expand_epilogue): Likewise.
18829         (mn10300_initial_offset): Likewise.
18830         * config/mn10300/mn10300-protos.h: Update.
18831         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18832         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18833         (prologue, epilogue, return_internal): Tidy output code.
18834         (mn10300_store_multiple_operation, return): Likewise.
18835         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18836         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18837         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18838         (load_pic, am33_load_pic): New.
18839         (mn10300_load_pic0, mn10300_load_pic1): New.
18840
18841         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18842         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18843         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18844         (cc_flags_for_mode, cc_flags_for_code): New.
18845         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18846         overflow flag is not valid.  Validate that the flags we need
18847         for the comparison are valid.
18848         (mn10300_output_cmp): Remove.
18849         (mn10300_output_add): New.
18850         (mn10300_select_cc_mode): Use cc_flags_for_code.
18851         (mn10300_split_cbranch): New.
18852         (mn10300_match_ccmode): New.
18853         (mn10300_split_and_operand_count): New.
18854         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18855         to the function.
18856         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18857         (addsi3): ... here.  Use mn10300_output_add.
18858         (*addsi3_flags): New.
18859         (*am33_subsi3, *mn10300_subsi3): Merge...
18860         (subsi3): ... here.  Use attribute isa.
18861         (*subsi3_flags): New.
18862         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
18863         when possible.
18864         (*am33_andsi3, *mn10300_andsi3): Merge...
18865         (andsi3): ... here.
18866         (*andsi3_flags): New.
18867         (andsi3 splitters): New.
18868         (*am33_iorsi3, *mn10300_iorsi3): Merge...
18869         (iorsi3): ... here.
18870         (*iorsi3_flags): New.
18871         (*am33_xorsi3, *mn10300_xorsi3): Merge...
18872         (xorsi3): ... here.
18873         (*xorsi3_flags): New.
18874         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18875         (one_cmplsi2): ... here.
18876         (*one_cmplsi2_flags): New.
18877         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
18878         instead of "dax" in constraints.  Use mn10300_split_cbranch.
18879         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
18880         use matching constraints to eliminate a self-comparison.
18881         (*integer_conditional_branch): Rename from integer_conditional_branch.
18882         Use int_mode_flags to match CC_REG.
18883         (*cbranchsi4_btst, *btstsi): New.
18884         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
18885         mn10300_split_cbranch.
18886         (*am33_cmpsf): Rename from am33_cmpsf.
18887         (*float_conditional_branch): Rename from float_conditional_branch.
18888         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18889         (zero_extendqisi2): ... here.
18890         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18891         (zero_extendhisi2): ... here.
18892         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18893         (extendqisi2): ... here.
18894         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18895         (extendhisi2): ... here.
18896         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18897         (ashlsi3): ... here.
18898         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18899         (lshrsi3): ... here.
18900         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18901         (ashrsi3): ... here.
18902         (consecutive add peephole): Remove.
18903         * config/mn10300/predicates.md (label_ref_operand): New.
18904         (int_mode_flags): New.
18905         (CCZN_comparison_operator): New.
18906
18907         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18908         (throughput_42_latency_43): New reservation.
18909         (mulsidi3, umulsidi3): New expanders.
18910         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
18911         the MDR register to allocation; separately allocate the low and
18912         high parts of the DImode result.
18913         (umulsidi3_internal): Similarly.
18914         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18915         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
18916         (udivsi3, umodsi3): Remove.
18917         (udivmodsi4, divmodsi4): New expanders.
18918         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
18919         (*divmodsi4): Simiarly.
18920         (ext_internal): New.
18921
18922         * config/mn10300/constraints.md ("z"): New constraint.
18923         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18924         (FIXED_REGISTERS): Don't fix MDR.
18925         (CALL_USED_REGSITERS): Reformat nicely.
18926         (REG_ALLOC_ORDER): Add MDR.
18927         (enum regclass): Add MDR_REGS.
18928         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18929         (IRA_COVER_CLASSES): Add MDR_REGS.
18930         (REGNO_REG_CLASS): Handle MDR_REG.
18931         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18932         (mn10300_register_move_cost): Likewise.
18933         * config/mn10300/mn10300.md (MDR_REG): New.
18934         (*movsi_internal): Handle moves to/from MDR_REGS.
18935
18936         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18937         POST_MODIFY.
18938         (mn10300_secondary_reload): Tidy combination reload classes.
18939         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18940         addresses for AM33.  Allow symbolic offsets for reg+imm.
18941         (mn10300_regno_in_class_p): New.
18942         (mn10300_legitimize_reload_address): New.
18943         * config/mn10300/mn10300.h (enum reg_class): Remove
18944         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18945         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
18946         SP_OR_GENERAL_REGS.
18947         (REG_CLASS_NAMES): Update to match.
18948         (REG_CLASS_CONTENTS): Likewise.
18949         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18950         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18951         (REGNO_IN_RANGE_P): Remove.
18952         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18953         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18954         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18955         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18956         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18957         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18958         (REGNO_GENERAL_P): New.
18959         (HAVE_POST_MODIFY_DISP): New.
18960         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18961         (LEGITIMIZE_RELOAD_ADDRESS): New.
18962         * config/mn10300/mn10300-protos.h: Update.
18963
18964         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18965         DATA_REGS for AM33 stack-pointer destination.
18966         (mn10300_preferred_output_reload_class): Likewise.
18967         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18968         into a form appropriate for ...
18969         (TARGET_SECONDARY_RELOAD): New.
18970         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18971         * config/mn10300/mn10300-protos.h: Update.
18972         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18973         reload_insi; use the "A" constraint for the scratch; handle AM33
18974         moves of sp to non-address registers.
18975
18976         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18977         (*movqi_internal): ... here.
18978         (*am33_movhi, *mn10300_movhi): Merge into...
18979         (*movhi_internal): ... here.
18980         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
18981         as the source/destination of moves from/to SP.
18982         (movsf): Only allow for AM33-2.
18983         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18984         any integer constant constraint.  Only allow for AM33-2.  Tidy
18985         all of the alternative outputs.
18986         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18987         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
18988         for MN103.
18989         (udivsi3, umodsi3): New patterns for MN103 only.
18990
18991 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
18992
18993         * doc/tm.texi.in: Spell out that a lack of register class unions
18994         can lead to ICEs.
18995         * doc/tm.texi: Regenerate.
18996
18997 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18998
18999         PR rtl-optimization/47337
19000         * dce.c (check_argument_store): New function.
19001         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
19002
19003         PR tree-optimization/47290
19004         * tree-eh.c (infinite_empty_loop_p): New function.
19005         (cleanup_empty_eh): Use it.
19006
19007 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
19008
19009         PR target/46997
19010         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19011         (a64_expand_widen_sum): Ditto.
19012         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19013         (vec_extract_evenodd_help): Ditto.
19014         (vec_extract_evenv4hi): Ditto.
19015         (vec_extract_oddv4hi): Ditto.
19016         (vec_extract_evenv2si): Ditto.
19017         (vec_extract_oddv2si): Ditto.
19018         (vec_extract_evenv2sf): Ditto.
19019         (vec_extract_oddv2sf): Ditto.
19020         (vec_pack_trunc_v4hi: Ditto.
19021         (vec_pack_trunc_v2si): Ditto.
19022         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19023         (vec_interleave_highv8qi): Ditto.
19024         (mix1_r): Ditto.
19025         (vec_extract_oddv8qi): Ditto.
19026         (vec_interleave_lowv4hi): Ditto.
19027         (vec_interleave_highv4hi): Ditto.
19028         (vec_interleave_lowv2si): Ditto.
19029         (vec_interleave_highv2si): Ditto.
19030
19031 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19032
19033         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19034         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19035         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
19036         (pa_c_mode_for_suffix): New.
19037         (TARGET_EXPAND_BUILTIN): Define.
19038         (TARGET_C_MODE_FOR_SUFFIX): Define.
19039         (pa_builtins): Define.
19040         (pa_init_builtins): Register __float128 type and init new support
19041         builtins.
19042         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19043         * config/pa/quadlib.c (_U_Qfcopysign): New.
19044
19045 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
19046
19047         PR middle-end/46894
19048         * explow.c (allocate_dynamic_stack_space): Do not assume more than
19049         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19050         are defined.
19051
19052 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19053
19054         PR tree-optimization/47179
19055         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19056         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19057
19058 2011-01-18  Richard Guenther  <rguenther@suse.de>
19059
19060         PR rtl-optimization/47216
19061         * emit-rtl.c: Include tree-flow.h.
19062         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19063         of replicating it with different semantics.
19064         * Makefile.in (emit-rtl.o): Adjust.
19065
19066 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19067
19068         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
19069         (cortex_a9_dp): Handle neon types correctly.
19070
19071 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
19072
19073         PR rtl-optimization/47299
19074         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
19075         subtarget.  Use normal multiplication if both operands are constants.
19076         * expmed.c (expand_widening_mult): Don't try to optimize constant
19077         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
19078         before using it.
19079
19080 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19081
19082         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
19083         spacing after 'e.g.', typos, comma, hyphenation.
19084
19085 2011-01-17  Richard Henderson  <rth@redhat.com>
19086
19087         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19088         (rx_restricted_mem_operand): New.
19089         (rx_shift_operand): Use register_operand.
19090         (rx_source_operand, rx_compare_operand): Likewise.
19091         * config/rx/rx.md (addsi3_flags): New expander.
19092         (adddi3): Rewrite as expander.
19093         (adc_internal, *adc_flags, adddi3_internal): New patterns.
19094         (subsi3_flags): New expander.
19095         (subdi3): Rewrite as expander.
19096         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19097
19098         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19099         (rx_init_builtins): Remove sat builtin.
19100         (rx_expand_builtin): Likewise.
19101         * config/rx/rx.md (ssaddsi3): New.
19102         (*sat): Rename from sat.  Represent the CC_REG input.
19103
19104         * config/rx/predicates.md (rshift_operator): New.
19105         * config/rx/rx.c (rx_expand_insv): Remove.
19106         * config/rx/rx-protos.h: Update.
19107         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
19108         operand to the canonical position.
19109         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19110         (*bitclr, *bitclr_in_memory): Similarly.
19111         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19112         (insv): Retain the zero_extract in the expansion.
19113
19114         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19115         (bswaphi2, bitinvert, revw): Likewise.
19116
19117         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19118         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19119         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19120         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19121         (bitset, bitset_in_memory): Likewise.
19122         (bitinvert, bitinvert_in_memory): Likewise.
19123         (bitclr, bitclr_in_memory): Likewise.
19124         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19125         (rx_strend, rx_cmpstrn): Likewise.
19126         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
19127         (bitop peep2 patterns): Remove.
19128
19129         * config/rx/rx.c (rx_match_ccmode): New.
19130         * config/rx/rx-protos.h: Update.
19131         * config/rx/rx.md (abssi2): Clobber, don't set flags.
19132         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19133         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19134         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19135         (fix_truncsfsi2, floatsisf2): Likewise.
19136         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19137         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19138         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19139         (*subsi3_flags, *xorsi3_flags): New.
19140
19141         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19142
19143         * config/rx/rx.c (rx_print_operand): Remove workaround for
19144         unsplit comparison operations.
19145
19146         * config/rx/rx.md (movsicc): Split after reload.
19147         (*movsicc): Merge *movsieq and *movsine via match_operator.
19148         (*stcc): New pattern.
19149
19150         * config/rx/rx.c (rx_float_compare_mode): Remove.
19151         * config/rx/rx.h (rx_float_compare_mode): Remove.
19152         * config/rx/rx.md (cstoresi4): Split after reload.
19153         (*sccc): New pattern.
19154
19155         * config/rx/predicates.md (label_ref_operand): New.
19156         (rx_z_comparison_operator): New.
19157         (rx_zs_comparison_operator): New.
19158         (rx_fp_comparison_operator): New.
19159         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19160         Validate that the flags are set properly for the comparison.
19161         (rx_gen_cond_branch_template): Remove.
19162         (rx_cc_modes_compatible): Remove.
19163         (mode_from_flags): New.
19164         (flags_from_code): Rename from flags_needed_for_conditional.
19165         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19166         (rx_select_cc_mode): Likewise.
19167         (rx_split_fp_compare): New.
19168         (rx_split_cbranch): New.
19169         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19170         (*cbranchsi4): Use match_operator and rx_split_cbranch.
19171         (*cbranchsf4): Similarly.
19172         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
19173         match_operator and rx_split_cbranch.
19174         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19175         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
19176         (*cmpsi): Rename from cmpsi.
19177         (*tstsi): Rename from tstsi.
19178         (*cmpsf): Rename from cmpsf; use CC_Fmode.
19179         (*conditional_branch): Rename from conditional_branch.
19180         (*reveresed_conditional_branch): Remove.
19181         (b<code>): Remove expander.
19182         * config/rx/rx-protos.h: Update.
19183
19184         * config/rx/rx.c (rx_compare_redundant): Remove.
19185         * config/rx/rx.md (cmpsi): Don't use it.
19186         * config/rx/rx-protos.h: Update.
19187
19188         * config/rx/rx-modes.def (CC_F): New mode.
19189         * config/rx/rx.c (rx_select_cc_mode): New.
19190         * config/rx/rx.h (SELECT_CC_MODE): Use it.
19191         * config/rx/rx-protos.h: Update.
19192
19193 2011-01-17  Richard Henderson  <rth@redhat.com>
19194
19195         * except.c (dump_eh_tree): Fix stray ; after for statement.
19196
19197 2011-01-17  Richard Guenther  <rguenther@suse.de>
19198
19199         PR tree-optimization/47313
19200         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19201         handling before copying the body.  Properly deal with
19202         by-reference result in SSA form.
19203
19204 2011-01-17  Ian Lance Taylor  <iant@google.com>
19205
19206         PR target/47219
19207         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19208         (struct_value_alias_set): Don't define.
19209         (sparc_option_override): Don't set sparc_sr_alias_set and
19210         struct_value_alias_set.
19211         (save_or_restore_regs): Use gen_frame_mem rather than calling
19212         set_mem_alias_set.
19213         (sparc_struct_value_rtx): Likewise.
19214
19215 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
19216
19217         PR target/47318
19218         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19219         (_mm_maskstore_pd): Likewise.
19220         (_mm_maskload_ps): Likewise.
19221         (_mm_maskstore_ps): Likewise.
19222         (_mm256_maskload_pd): Change mask to __m256i.
19223         (_mm256_maskstore_pd): Likewise.
19224         (_mm256_maskload_ps): Likewise.
19225         (_mm256_maskstore_ps): Likewise.
19226
19227         * config/i386/i386-builtin-types.def: Updated.
19228         (ix86_expand_special_args_builtin): Likewise.
19229
19230         * config/i386/i386.c (bdesc_special_args): Update
19231         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19232         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19233         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19234         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19235
19236         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19237         Use <avxpermvecmode> on mask register.
19238         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19239
19240 2011-01-17  Olivier Hainque  <hainque@adacore.com>
19241             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19242             Eric Botcazou  <ebotcazou@adacore.com>
19243
19244         PR target/46655
19245         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19246         if <= USHRT_MAX in 32-bit mode.
19247
19248 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19249
19250         * doc/install.texi (Configuration, Specific): Wrap long
19251         lines in examples.  Allow line wrapping in long options
19252         and URLs where beneficial for PDF output.
19253
19254 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
19255
19256         * config/mips/mips.c (mips_classify_symbol): Don't return
19257         SYMBOL_PC_RELATIVE for nonlocal labels.
19258
19259 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
19260
19261         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19262
19263 2011-01-15  Jan Hubicka  <jh@suse.cz>
19264
19265         PR tree-optimization/47276
19266         * ipa.c (function_and_variable_visibility): Do not try to mark alias
19267         declarations as needed.
19268
19269 2011-01-15  Martin Jambor  <mjambor@suse.cz>
19270
19271         * common.opt (fdevirtualize): New flag.
19272         * doc/invoke.texi (Option Summary): Document it.
19273         * opts.c (default_options_table): Add devirtualize flag.
19274         * ipa-prop.c (detect_type_change): Return immediately if
19275         devirtualize flag is not set.
19276         (detect_type_change_ssa): Likewise.
19277         (compute_known_type_jump_func): Likewise.
19278         (ipa_analyze_virtual_call_uses): Likewise.
19279
19280 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19281
19282         PR tree-optimization/45934
19283         PR tree-optimization/46302
19284         * ipa-prop.c (type_change_info): New type.
19285         (stmt_may_be_vtbl_ptr_store): New function.
19286         (check_stmt_for_type_change): Likewise.
19287         (detect_type_change): Likewise.
19288         (detect_type_change_ssa): Likewise.
19289         (compute_complex_assign_jump_func): Check for dynamic type change.
19290         (compute_complex_ancestor_jump_func): Likewise.
19291         (compute_known_type_jump_func): Likewise.
19292         (compute_scalar_jump_functions): Likewise.
19293         (ipa_analyze_virtual_call_uses): Likewise.
19294         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19295
19296 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19297
19298         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19299         * config/i386/i386.opt (msse5): New Alias.
19300
19301 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19302
19303         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19304         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19305         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19306         * config/sparc/sparc.h (CC1_SPEC): Likewise.
19307
19308 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19309
19310         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19311         -mcpu options.
19312         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19313         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19314         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19315         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19316         Likewise.
19317         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19318
19319 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19320
19321         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19322
19323 2011-01-14  Mike Stump  <mikestump@comcast.net>
19324
19325         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19326         * config/fr30/fr30.md: Likweise
19327         (movsi_push): Likewise.
19328         (movsi_pop): Likewise.
19329         (enter_func): Likewise.
19330         * config/moxie/moxie.md (movsi_push): Likewise.
19331         (movsi_pop): Likewise.
19332
19333 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19334
19335         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19336         %{no_archive} %{exact_version}.
19337         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19338         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19339         %{no_archive} %{exact_version}.
19340         * config/mips/openbsd.h (LINK_SPEC): Likewise.
19341         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19342         * config/mips/vxworks.h: Likewise.
19343
19344 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19345
19346         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19347
19348 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19349
19350         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19351         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19352
19353 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19354
19355         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19356         -nodefaultlib.
19357
19358 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19359
19360         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19361         for mcpu not cpu.
19362         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19363         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19364         not cpu.
19365         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19366         Don't handle -shlib.
19367
19368 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19369
19370         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19371         (CC1_SPEC): Don't handle -profile.
19372
19373 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19374
19375         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19376         * config/mips/mips.h (CC1_SPEC): Likewise.
19377
19378 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19379
19380         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19381         * config/mips/mips.h (CC1_SPEC): Likewise.
19382
19383 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19384
19385         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19386         * config/m32r/linux.h (LINK_SPEC): Likewise.
19387         * config/mips/linux.h (LINK_SPEC): Likewise.
19388         * config/mips/linux64.h (LINK_SPEC): Likewise.
19389         * config/sparc/linux.h (LINK_SPEC): Likewise.
19390         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19391         LINK_SPEC): Likewise.
19392         * config/xtensa/linux.h (LINK_SPEC): Likewise.
19393
19394 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19395
19396         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19397         %{version:-v}.
19398         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19399
19400 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19401
19402         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19403         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19404
19405 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19406
19407         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19408
19409 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19410
19411         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19412         supports -Bstatic/-Bdynamic.
19413         * configure: Regenerate.
19414
19415 2011-01-14  Jan Hubicka  <jh@suse.cz>
19416             Jack Howarth  <howarth@bromo.med.uc.edu>
19417
19418         PR target/46037
19419         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19420         when checking debug_info_level. Test write_symbols instead of
19421         debug_hooks->var_location when setting flag_var_tracking_uninit.
19422
19423 2011-01-14  Richard Guenther  <rguenther@suse.de>
19424
19425         PR tree-optimization/47179
19426         * target.def (ref_may_alias_errno): New target hook.
19427         * targhooks.h (default_ref_may_alias_errno): Declare.
19428         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19429         (default_ref_may_alias_errno): New function.
19430         * target.h (struct ao_ref_s): Declare.
19431         * tree-ssa-alias.c: Include target.h.
19432         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19433         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19434         (targhooks.o): Likewise.
19435         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19436         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19437
19438 2011-01-14  Richard Guenther  <rguenther@suse.de>
19439
19440         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
19441
19442 2011-01-14  Richard Guenther  <rguenther@suse.de>
19443
19444         PR tree-optimization/47280
19445         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19446         return CFG changes.
19447         (tree_ssa_forward_propagate_single_use_vars): Deal with
19448         CFG changes from associate_plusminus.
19449
19450 2011-01-14  Richard Guenther  <rguenther@suse.de>
19451
19452         PR middle-end/47281
19453         Revert
19454         2011-01-11  Richard Guenther  <rguenther@suse.de>
19455
19456         PR tree-optimization/46076
19457         * tree-ssa.c (useless_type_conversion_p): Conversions from
19458         unprototyped to empty argument list function types are useless.
19459
19460 2011-01-14  Richard Guenther  <rguenther@suse.de>
19461
19462         PR tree-optimization/47286
19463         * tree-ssa-structalias.c (new_var_info): Register variables are global.
19464
19465 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19466
19467         PR middle-end/46823
19468         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19469
19470 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
19471
19472         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19473         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19474         * config/xtensa/xtensa.c (xtensa_libcall_value,
19475         xtensa_function_value_regno_p): New functions.
19476         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19477
19478 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
19479
19480         PR c++/47213
19481         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19482         PE specific hook.
19483         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19484         New function prototype.
19485         * config/i386/winnt.c (i386_pe_assemble_visibility):
19486         Warn only if attribute was specified by user.
19487
19488 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
19489
19490         PR target/47251
19491         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19492         floating point.
19493         (floatunsdidf2_fcfidu): Ditto.
19494
19495 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19496
19497         * config/s390/s390.c (print_operand_address): Replace 'error' with
19498         'output_operand_lossage'.
19499         (print_operand): Likewise.
19500
19501 2011-01-13  Jeff Law  <law@redhat.com>
19502
19503         PR rtl-optimization/39077
19504         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19505         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19506         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19507         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19508         * gcse.c (prune_insertions_deletions): New function.
19509         (compute_pre_data): Use it.
19510
19511 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
19512
19513         PR debug/PR46973
19514         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19515         static function.
19516         (prune_unused_types_mark): Use it.
19517
19518 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
19519
19520         PR rtl-optimization/45352
19521         * sel-sched.c: Update copyright years.
19522         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19523         in the advancing loop when we have issued issue_rate insns.
19524
19525 2011-01-12  Richard Henderson  <rth@redhat.com>
19526
19527         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19528         (TARGET_MD_ASM_CLOBBERS): New.
19529
19530         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19531         (TARGET_DELEGITIMIZE_ADDRESS): New.
19532
19533         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19534         (clzsi2, *bsch): New patterns.
19535
19536         * config/mn10300/mn10300.md (INT): New mode iterator.
19537         (*mov<INT>_clr): New pattern, and peep2 to generate it.
19538
19539         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19540         flag_split_wide_types.
19541
19542         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19543         (mn10300_trampoline_init): Rewrite without a template, an immediate
19544         load and a direct branch.
19545         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19546
19547 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
19548
19549         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19550         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19551         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19552         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19553
19554 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
19555
19556         PR debug/47209
19557         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19558         of type.
19559
19560 2011-01-12  Jan Hubicka  <jh@suse.cz>
19561
19562         PR driver/47244
19563         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19564         (PLUGIN_COND_CLOSE): New macro.
19565         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19566
19567 2011-01-12  Richard Guenther  <rguenther@suse.de>
19568
19569         PR lto/47259
19570         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19571         register variables in a MEM_REF.
19572
19573 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
19574
19575         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19576         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19577         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19578         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19579         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19580         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19581         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19582         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19583         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19584         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19585         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19586         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19587         * config/gnu-user.h: New.  Copied from linux.h.
19588         (LINUX_TARGET_STARTFILE_SPEC): Rename to
19589         GNU_USER_TARGET_STARTFILE_SPEC.
19590         (LINUX_TARGET_ENDFILE_SPEC): Rename to
19591         GNU_USER_TARGET_ENDFILE_SPEC.
19592         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19593         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19594         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19595         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19596         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19597         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19598         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19599         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19600         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19601         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19602         * config/arm/linux-eabi.h (CC1_SPEC): Use
19603         GNU_USER_TARGET_CC1_SPEC.
19604         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19605         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19606         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19607         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19608         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19609         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19610         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19611         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19612
19613 2011-01-12  Richard Guenther  <rguenther@suse.de>
19614
19615         PR other/46946
19616         * doc/invoke.texi (ffast-math): Document it is turned on
19617         with -Ofast.
19618
19619 2011-01-12  Jan Hubicka  <jh@suse.cz>
19620
19621         PR tree-optimization/47233
19622         * opts.c (common_handle_option): Disable ipa-reference with profile
19623         feedback.
19624
19625 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19626
19627         * c-parser.c (c_parser_objc_at_property_declaration): Improved
19628         error message.
19629
19630 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19631
19632         * c-parser.c (c_lex_one_token): Updated and reindented some
19633         comments.  No changes in code.
19634
19635 2011-01-11  Ian Lance Taylor  <iant@google.com>
19636
19637         * godump.c (go_output_var): Don't output the variable if there is
19638         already a type with the same name.
19639
19640 2011-01-11  Ian Lance Taylor  <iant@google.com>
19641
19642         * godump.c (go_format_type): Don't generate float80.
19643
19644 2011-01-11  Richard Henderson  <rth@redhat.com>
19645
19646         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19647         declaration.  Rewrite for both speed and size.
19648         (mn10300_address_cost_1): Remove.
19649         (mn10300_register_move_cost): New.
19650         (mn10300_memory_move_cost): New.
19651         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
19652         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
19653         extensions, shifts, BSWAP, CLZ.
19654         (mn10300_wide_const_load_uses_clr): Remove.
19655         (TARGET_REGISTER_MOVE_COST): New.
19656         (TARGET_MEMORY_MOVE_COST): New.
19657         * config/mn10300/mn10300-protos.h: Update.
19658         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19659
19660         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19661         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19662         * config/mn10300/mn10300-protos.h: Update.
19663         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19664         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19665         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19666         (*test_int_bitfield, *test_byte_bitfield): Remove.
19667         (*bit_test, *subreg_bit_test): Remove.
19668         * config/mn10300/predicates.md (const_8bit_operand): Remove.
19669
19670         * config/mn10300/constraints.md ("c"): Rename from "A".
19671         ("A", "D"): New constraint letters.
19672         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19673         (fmssf4, fnmasf4, fnmssf4): Likewise.
19674
19675         * config/mn10300/mn10300.md (isa): New attribute.
19676         (enabled): New attribute.
19677
19678         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19679         (abssf2, negsf2): Define only for hardware fp.
19680         (sqrtsf2): Reformat.
19681         (addsf3, subsf3, mulsf3): Merge expander and insn.
19682
19683         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19684         (DEBUGGER_AUTO_OFFSET): Remove.
19685         (DEBUGGER_ARG_OFFSET): Remove.
19686
19687         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19688         Emit register stores with the same offsets as the hardware.
19689         (mn10300_store_multiple_operation): Don't check that the register
19690         save offsets are monotonic.
19691         * config/mn10300/mn10300-protos.h: Update.
19692
19693         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19694
19695         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19696         in terms of the value on the stack, not the MDR register.
19697
19698 2011-01-11  Jan Hubicka  <jh@suse.cz>
19699
19700         PR lto/45721
19701         PR lto/45375
19702         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19703         (symbol_alias_set_destroy, symbol_alias_set_contains,
19704         propagate_aliases_backward): Declare.
19705         * lto-streamer-out.c (struct sets): New sturcture.
19706         (trivally_defined_alias): New function.
19707         (output_alias_pair_p): Rewrite.
19708         (output_unreferenced_globals): Fix output of alias pairs.
19709         (produce_symtab): Likewise.
19710         * ipa.c (function_and_variable_visibility): Set weak alias destination
19711         as needed in lto.
19712         * varasm.c (symbol_alias_set_t): Remove.
19713         (symbol_alias_set_destroy): Export.
19714         (propagate_aliases_forward, propagate_aliases_backward): New functions
19715         based on ...
19716         (compute_visible_aliases): ... this one; remove.
19717         (trivially_visible_alias): New
19718         (trivially_defined_alias): New.
19719         (remove_unreachable_alias_pairs): Rewrite.
19720         (finish_aliases_1): Reorganize code checking if alias is defined.
19721         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19722         in LTO mode.
19723
19724 2011-01-11  Richard Guenther  <rguenther@suse.de>
19725
19726         PR tree-optimization/46076
19727         * tree-ssa.c (useless_type_conversion_p): Conversions from
19728         unprototyped to empty argument list function types are useless.
19729
19730 2011-01-11  Richard Guenther  <rguenther@suse.de>
19731
19732         PR middle-end/45235
19733         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19734         volatile MEMs as MEM_READONLY_P.
19735
19736 2011-01-11  Richard Guenther  <rguenther@suse.de>
19737
19738         PR tree-optimization/47239
19739         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19740
19741 2011-01-11  Jeff Law  <law@redhat.com>
19742
19743         PR tree-optimization/47086
19744         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19745         IVs from statements that might throw.
19746
19747 2011-01-10  Jan Hubicka  <jh@suse.cz>
19748
19749         PR lto/45375
19750         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19751
19752 2011-01-10  Jan Hubicka  <jh@suse.cz>
19753
19754         PR lto/45375
19755         * profile.c (read_profile_edge_counts): Ignore profile inconistency
19756         when correcting profile.
19757
19758 2011-01-10  Jan Hubicka  <jh@suse.cz>
19759
19760         PR lto/46083
19761         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19762         DECL_FINI_PRIORITY.
19763         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19764         Restore DECL_FINI_PRIORITY.
19765
19766 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19767
19768         * doc/gimple.texi: Fix quoting of multi-word return values in
19769         @deftypefn statements.  Ensure presence of return value.  Wrap
19770         overlong @deftypefn lines.
19771         (is_gimple_operand, is_gimple_min_invariant_address): Remove
19772         descriptions of removed functions.
19773         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19774         of multi-word return value in @deftypefn statement.
19775
19776 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19777
19778         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19779         (Conditional Expressions, Logical Operators)
19780         (Statement and operand traversals): Do not indent smallexample
19781         code.  Fix duplicate function argument in example.
19782
19783 2011-01-10  Jeff Law  <law@redhat.com>
19784
19785         PR tree-optimization/47141
19786         * ipa-split.c (split_function): Handle case where we are
19787         returning a value and the return block has a virtual operand phi.
19788
19789 2011-01-10  Jan Hubicka  <jh@suse.cz>
19790
19791         PR tree-optimization/47234
19792         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19793         (pass_feedback_split_functions): Declare.
19794         * passes.c (init_optimization_passes): Add ipa-split as subpass of
19795         tree-profile.
19796         * ipa-split.c (gate_split_functions): Update comments; disable
19797         split-functions for profile_arc_flag and branch_probabilities.
19798         (gate_feedback_split_functions): New function.
19799         (execute_feedback_split_functions): New function.
19800         (pass_feedback_split_functions): New global var.
19801
19802 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
19803
19804         PR lto/46760
19805         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19806         calling gimple_call_set_cannot_inline.
19807
19808 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
19809
19810         * config/darwin-sections.def: Remove unused section.
19811
19812 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
19813
19814         PR c++/47218
19815         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19816
19817 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19818
19819         PR objc/47232
19820         * c-parser.c (c_parser_declaration_or_fndef): Improved
19821         error message.
19822
19823 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
19824
19825         * config/i386/winnt.c (i386_pe_start_function): Make sure
19826         to switch back to function's section.
19827
19828 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
19829
19830         PR gcc/46902
19831         PR testsuite/46912
19832         * plugin.c: Move include of dlfcn.h from here...
19833         * system.h: ... to here.
19834
19835 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19836
19837         * doc/cpp.texi (C++ Named Operators): Fix markup for header
19838         file name.
19839         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19840         two extra empty pages in PDF output.
19841
19842 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
19843
19844         PR objc/47078
19845         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19846         for error recovery purposes behave as if it was not specified so
19847         that the default type is usd.
19848
19849 2011-01-07  Jan Hubicka  <jh@suse.cz>
19850
19851         PR tree-optmization/46469
19852         * ipa.c (function_and_variable_visibility): Clear needed flags on
19853         nodes with external decls; handle weakrefs merging correctly.
19854
19855 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
19856
19857         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19858         not false.
19859
19860 2011-01-07  Jan Hubicka  <jh@suse.cz>
19861
19862         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19863         and no longer claim that gold is required for linker plugin.
19864         * configure: Regenerate.
19865         * gcc.c (PLUGIN_COND): New macro.
19866         (LINK_COMMAND_SPEC): Use it.
19867         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19868         * config.in (HAVE_LTO_PLUGIN): New.
19869         * configure.ac (--with-lto-plugin): New parameter; autodetect
19870         HAVE_LTO_PLUGIN.
19871
19872 2011-01-07  Jan Hubicka  <jh@suse.cz>
19873
19874         PR tree-optimization/46367
19875         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19876         when we can update original.
19877         (cgraph_mark_inline_edge): Sanity check.
19878         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19879
19880 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19881
19882         * config/spu/spu.h (ASM_COMMENT_START): Define.
19883
19884 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19885
19886         PR driver/42445
19887         * gcc.c (%>S): New.
19888         (SWITCH_KEEP_FOR_GCC): Likewise.
19889         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19890         (do_spec_1): Handle "%>".
19891
19892         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19893
19894 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
19895
19896         PR target/47201
19897         * config/i386/i386.c (ix86_delegitimize_address): If
19898         simplify_gen_subreg fails, return orig_x.
19899
19900         PR bootstrap/47187
19901         * value-prof.c (gimple_stringop_fixed_value): Handle
19902         lhs of the call properly.
19903
19904 2011-01-07  Jan Hubicka  <jh@suse.cz>
19905
19906         PR lto/45375
19907         * lto-opt.c (lto_reissue_options): Set flag_shlib.
19908
19909 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19910
19911         * target.def (function_switched_text_sections): New hook.
19912         * doc/tm.texi: Regenerated.
19913         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19914         * final.c (default_function_switched_text_sections): New.
19915         (final_scan_insn): Call function_switched_text_sections when a
19916         mid-function section change occurs.
19917         * output.h (default_function_switched_text_sections): Declare.
19918         * config/darwin-protos.h (darwin_function_switched_text_sections):
19919         Likewise.
19920         * config/darwin.c (darwin_function_switched_text_sections): New.
19921         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19922
19923 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19924
19925         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
19926         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
19927         the secondary code fragment when outputting for DWARF == 2.
19928
19929 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
19930
19931         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19932         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19933         Remove.
19934         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19935         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19936
19937 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19938
19939         PR debug/46704
19940         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19941         when it is not empty.
19942
19943 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
19944
19945         Bobcat Enablement
19946         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19947         (case ${target}): Add btver1.
19948         * config/i386/driver-i386.c (host_detect_local_cpu): Let
19949         -march=native recognize btver1 processors.
19950         * config/i386/i386-c.c (ix86_target_macros_internal): Add
19951         btver1 def_and_undef
19952         * config/i386/i386.c (struct processor_costs btver1_cost): New
19953         btver1 cost table.
19954         (m_BTVER1): New definition.
19955         (m_AMD_MULTIPLE): Includes m_BTVER1.
19956         (initial_ix86_tune_features): Add btver1 tune.
19957         (processor_target_table): Add btver1 entry.
19958         (static const char *const cpu_names): Add btver1 entry.
19959         (software_prefetching_beneficial_p): Add btver1.
19960         (ix86_option_override_internal): Add btver1 instruction sets.
19961         (ix86_issue_rate): Add btver1.
19962         (ix86_adjust_cost): Add btver1.
19963         * config/i386/i386.h (TARGET_BTVER1): New definition.
19964         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19965         (enum processor_type): Add PROCESSOR_BTVER1.
19966         * config/i386/i386.md (define_attr "cpu"): Add btver1.
19967
19968 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19969
19970         PR target/43309
19971         * config/i386/i386.c (legitimize_tls_address)
19972         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19973         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19974         (tls_initial_exec_64_sun): New pattern.
19975
19976 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19977
19978         * doc/invoke.texi (Overall Options): Improve wording and markup
19979         of the description of -wrapper.
19980
19981 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19982
19983         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19984         rdynamic, threads): New Driver options.
19985
19986 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19987
19988         PR target/38118
19989         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19990         if coming from .tdata.
19991         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19992
19993 2011-01-06  Jan Hubicka  <jh@suse.cz>
19994
19995         PR lto/47188
19996         * collect2.c (main): Do not enable LTOmode when plugin is active.
19997
19998 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19999
20000         PR other/45915
20001         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20002         --version output if supported.
20003         * configure: Regenerate.
20004
20005 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
20006
20007         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20008         Driver options.
20009
20010 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
20011
20012         PR c/47150
20013         * c-convert.c (convert): When converting a complex expression
20014         other than COMPLEX_EXPR to a different complex type, ensure
20015         c_save_expr is called instead of save_expr, unless in_late_binary_op.
20016         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20017         when converting COMPLEX_TYPE.
20018
20019 2011-01-06  Ira Rosen  <irar@il.ibm.com>
20020
20021         PR tree-optimization/47139
20022         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20023         only the last reduction value is used outside the loop.  Update
20024         documentation.
20025
20026 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
20027
20028         * config/rtems.opt: New.
20029         * config.gcc (*-*-rtems*): Use rtems.opt.
20030
20031 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
20032
20033         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20034         processors do not support 3DNow instructions.
20035
20036 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20037
20038         * config/spu/spu.c (spu_option_override): Set parameter
20039         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20040
20041 2011-01-05  Jan Hubicka  <jh@suse.cz>
20042
20043         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20044         at the command line.
20045
20046 2011-01-05  Martin Jambor  <mjambor@suse.cz>
20047
20048         PR lto/47162
20049         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20050         deltas on streamed outgoing edges.
20051         (output_node_opt_summary): Output info for outgoing edges only when
20052         the node is in new parameter set.
20053         (output_cgraph_opt_summary): New parameter set, passed to the two
20054         aforementioned functions.  Update its forward declaration and its
20055         callee too.
20056
20057 2011-01-05  Tom Tromey  <tromey@redhat.com>
20058
20059         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20060         operator to c_finish_omp_atomic.
20061         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20062         (build_unary_op): Update.
20063         (build_modify_expr): Update.
20064         (build_asm_expr): Update.
20065
20066 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20067
20068         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20069         newly inserted insns.
20070         (pad_bb): Likewise.
20071         (spu_emit_branch_hint): Likewise.
20072         (insert_hbrp_for_ilb_runout): Likewise.
20073         (spu_machine_dependent_reorg): Call df_finish_pass after
20074         schedule_insns returns.
20075
20076 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20077
20078         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20079
20080 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
20081
20082         PR tree-optimization/47005
20083         * tree-sra.c (struct access): Add 'non_addressable' bit.
20084         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20085         (decide_one_param_reduction): Return 0 if the parameter is passed by
20086         reference and one of the accesses in the group is non_addressable.
20087
20088 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
20089
20090         PR tree-optimization/47056
20091         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20092         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
20093         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
20094
20095 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
20096
20097         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20098         initializer.  Skip view conversions from aggregate types.
20099
20100 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
20101
20102         PR bootstrap/47055
20103         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20104
20105 2011-01-04  Philipp Thomas  <pth@suse.de>
20106
20107         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20108         obvious typo.
20109
20110 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20111
20112         * function.c (thread_prologue_and_epilogue_insns): Do not crash
20113         on empty epilogue sequences.
20114
20115 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
20116
20117         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20118         non-static): New Driver options.
20119
20120 2011-01-04  Jie Zhang  <jie@codesourcery.com>
20121
20122         PR driver/47137
20123         * gcc.c (default_compilers[]): Set combinable field to 0
20124         for all assembly languages.
20125
20126 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
20127
20128         * config/mips/loongson3a.md: New file.
20129         * config/mips/mips.md: Include loongson3a.md.
20130         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20131         TUNE_LOONGSON_3A.
20132
20133 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
20134
20135         PR middle-end/47017
20136         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20137         instead of convert_memory_address_addr_space on the base expression.
20138
20139 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20140
20141         * config/spu/spu.c (spu_option_override): Update error text
20142         for bad -march= / -mtune= values.
20143
20144 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20145
20146         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20147         if branch-hint optimization will be performed.
20148
20149 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
20150
20151         PR tree-optimization/47148
20152         * ipa-split.c (split_function): Convert arguments to
20153         DECL_ARG_TYPE if possible.
20154
20155         PR tree-optimization/47155
20156         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20157         when computing uns.
20158
20159         PR rtl-optimization/47157
20160         * combine.c (try_combine): If undobuf.other_insn becomes
20161         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20162         and set *new_direct_jump_p too.
20163
20164 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
20165
20166         PR tree-optimization/47021
20167         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20168
20169 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
20170
20171         * gcc.c (process_command): Update copyright notice dates.
20172         * gcov.c (print_version): Likewise.
20173         * gcov-dump.c (print_version): Likewise.
20174         * mips-tfile.c (main): Likewise.
20175         * mips-tdump.c (main): Likewise.
20176
20177 2011-01-03  Martin Jambor  <mjambor@suse.cz>
20178
20179         PR tree-optimization/46801
20180         * tree-sra.c (type_internals_preclude_sra_p): Check whether
20181         aggregate fields start at byte boundary instead of the bit-field flag.
20182
20183 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
20184
20185         PR driver/47137
20186         * gcc.c (main): Revert revision 168407.
20187
20188 2011-01-03  Martin Jambor  <mjambor@suse.cz>
20189
20190         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20191
20192 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20193
20194         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20195         vector optab to expand vector/scalar shift, update gimple to vector.
20196
20197 2011-01-03  Martin Jambor  <mjambor@suse.cz>
20198
20199         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20200         a thunk.
20201
20202 2011-01-03  Martin Jambor  <mjambor@suse.cz>
20203
20204         PR tree-optimization/46984
20205         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20206         HOST_WIDE_INT.
20207         (cgraph_create_indirect_edge): Fixed line length.
20208         (cgraph_indirect_call_info): Declare.
20209         (cgraph_make_edge_direct) Update declaration.
20210         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20211         (cgraph_create_indirect_edge): Use it.
20212         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
20213         callees.
20214         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20215         the new thunk_delta representation.
20216         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20217         HOST_WIDE_INT.
20218         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20219         (ipa_read_indirect_edge_info): Likewise.
20220         * lto-cgraph.c (output_edge_opt_summary): New function.
20221         (output_node_opt_summary): Call it on all outgoing edges.
20222         (input_edge_opt_summary): New function.
20223         (input_node_opt_summary): Call it on all outgoing edges.
20224
20225 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
20226
20227         PR driver/47137
20228         * gcc.c (main): Don't check have_o when settting combine_inputs.
20229
20230 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
20231
20232         * regrename.c: Add general comment describing the pass.
20233         (struct du_head): Remove 'length' field.
20234         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20235         (regrename_optimize): Do not sort chains.  Rework comments, add others.
20236         Force renaming to the preferred class (if any) in the first pass and do
20237         not consider registers that belong to it in the second pass.
20238         (create_new_chain): Do not set 'length' field.
20239         (scan_rtx_reg): Likewise.
20240
20241 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
20242
20243         PR tree-optimization/47140
20244         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20245         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20246         to bit_value_binop.
20247
20248         PR rtl-optimization/47028
20249         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20250         parm_birth_insn instead of at the beginning of first bb.
20251
20252 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
20253
20254         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20255         Remove the word "see" before "@pxref".
20256         * doc/rtl.texi: Remove the word "see" before "@pxref".
20257
20258 2011-01-01  Jan Hubicka  <jh@suse.cz>
20259
20260         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20261         memory.
20262
20263 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
20264
20265         PR target/38662
20266         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20267
20268 \f
20269 Copyright (C) 2011 Free Software Foundation, Inc.
20270
20271 Copying and distribution of this file, with or without modification,
20272 are permitted in any medium without royalty provided the copyright
20273 notice and this notice are preserved.