OSDN Git Service

34d6aaf7d2068eab0d13a94e862438cdfd84e4bb
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2
3         Uniquization of constants at the Tree level
4         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
5         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
6         bit to the end.
7         (tree_output_constant_def): Declare.
8         * gimplify.c (gimplify_init_constructor): When using block copy, first
9         uniquize the constant constructor on the RHS.
10         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11         DECL_IN_CONSTANT_POOL flag.
12         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
13         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
14         constant pool.
15         (assemble_variable): Deal with symbols belonging to the tree constant
16         pool.
17         (get_constant_section): Add ALIGN parameter and simplify.
18         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
19         (assemble_constant_contents): Use the expression of the VAR_DECL.
20         (output_constant_def_contents): Use the alignment of the VAR_DECL.
21         (tree_output_constant_def): New global function.
22         (mark_constant): Use the expression of the VAR_DECL.
23         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
24         its expression.
25         (output_object_block): Likewise and assemble the expression.
26
27 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28
29         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
30         hash_tree, eq_tree): New tree hash table.
31         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
32         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
33         lto_orig_address_remove): Reimplement.
34
35 2010-04-28  Xinliang David Li  <davidxl@google.com>
36
37         PR c/42643
38         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
39         (compute_uninit_opnds_pos): New function.
40         (is_non_loop_exit_postdominating): New function.
41         (compute_control_dep_chain): New function.
42         (find_pdom): New function.
43         (convert_control_dep_chain_into_preds): New function.
44         (find_predicates): New function.
45         (find_control_equiv_block): New function.
46         (collect_phi_def_edges): New function.
47         (find_def_preds): New function.
48         (find_dom): New function.
49         (dump_predicates): New function.
50         (get_cmp_code): New function.
51         (is_value_included_in): New function.
52         (find_matching_predicate_in_rest_chains): New function.
53         (use_pred_not_overlap_with_undef_path_pred): New function.
54         (is_use_properly_guarded): New function.
55         (normalize_cond_1): New function.
56         (is_and_or_or): New function.
57         (normalize_cond): New function.
58         (is_gcond_subset_of): New function.
59         (is_subset_of_any): New function.
60         (is_or_set_subset_of): New function.
61         (is_and_set_subset_of): New function.
62         (is_norm_cond_subset_of): New function.
63         (is_pred_expr_subset_of): New function.
64         (is_pred_chain_subset_of): New function.
65         (is_included_in): New function.
66         (is_superset_of): New function.
67         (find_uninit_use): New function.
68         (warn_uninitialized_phi): New function.
69         (compute_possibly_undefined_names): New function.
70         (ssa_undefined_value_p): New function.
71         (execute_late_warn_uninitialized): New function.
72         * tree-ssa.c (ssa_undefined_value_p): Removed.
73         (warn_uninit): Changed to extern.
74         (warn_uninitialized_phi): Removed.
75         (warn_uninitialized_vars): Changed to extern.
76         (execute_late_warn_uninitialized): Removed
77         * tree-flow.h: Add new prototypes.
78         * timevar.def: Add new time variable.
79         * Makefile.in: Add new build file.
80
81 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
82
83         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
84         type if available.
85
86 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
87
88         PR target/22224
89         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
90
91 2010-04-28  Martin Jambor  <mjambor@suse.cz>
92
93         * cgraph.h (struct cgraph_node): New field indirect_calls.
94         (struct cgraph_indirect_call_info): New type.
95         (struct cgraph_edge): Removed field indirect_call. New fields
96         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
97         (cgraph_create_indirect_edge): Declare.
98         (cgraph_make_edge_direct): Likewise.
99         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
100         * ipa-prop.h (struct ipa_param_call_note): Removed.
101         (struct ipa_node_params): Removed field param_calls.
102         (ipa_create_all_structures_for_iinln): Declare.
103         * cgraph.c: Described indirect edges and uids in initial comment.
104         (cgraph_add_edge_to_call_site_hash): New function.
105         (cgraph_edge): Search also among the indirect edges, use
106         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
107         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
108         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
109         site hash.
110         (initialize_inline_failed): Assign a reason to indirect edges.
111         (cgraph_create_edge_1): New function.
112         (cgraph_create_edge): Moved some functionality to
113         cgraph_create_edge_1.
114         (cgraph_create_indirect_edge): New function.
115         (cgraph_edge_remove_callee): Add an assert checking for
116         non-indirectness.
117         (cgraph_edge_remove_caller): Special-case indirect edges.
118         (cgraph_remove_edge): Likewise.
119         (cgraph_set_edge_callee): New function.
120         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
121         (cgraph_make_edge_direct): New function.
122         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
123         the declaration of the call statement matches.
124         (cgraph_node_remove_callees): Special-case indirect edges.
125         (cgraph_clone_edge): Likewise.
126         (cgraph_clone_node): Clone also the indirect edges.
127         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
128         indirect_call, dump count of indirect_calls edges.
129         * ipa-prop.c (iinlining_processed_edges): New variable.
130         (ipa_note_param_call): Create indirect edges instead of
131         creating notes.  New parameter node.
132         (ipa_analyze_call_uses): New parameter node, pass it on to
133         ipa_note_param_call.
134         (ipa_analyze_stmt_uses): Likewise.
135         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
136         (print_edge_addition_message): Work on edges rather than on notes.
137         (update_call_notes_after_inlining): Likewise, renamed to
138         update_indirect_edges_after_inlining.
139         (ipa_create_all_structures_for_iinln): New function.
140         (ipa_free_node_params_substructures): Do not free notes.
141         (ipa_edge_duplication_hook): Propagate bits within
142         iinlining_processed_edges bitmap.
143         (ipa_node_duplication_hook): Do not duplicate notes.
144         (free_all_ipa_structures_after_ipa_cp): Renamed to
145         ipa_free_all_structures_after_ipa_cp.
146         (free_all_ipa_structures_after_iinln): Renamed to
147         ipa_free_all_structures_after_iinln.g
148         (ipa_write_param_call_note): Removed.
149         (ipa_read_param_call_note): Removed.
150         (ipa_write_indirect_edge_info): New function.
151         (ipa_read_indirect_edge_info): Likewise.
152         (ipa_write_node_info): Do not stream notes, do stream information
153         in indirect edges.
154         (ipa_read_node_info): Likewise.
155         (lto_ipa_fixup_call_notes): Removed.
156         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
157         * ipa-inline.c (pass_ipa_inline): Likewise.
158         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
159         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
160         * tree-inline.c (copy_bb): Removed an unnecessary double check for
161         is_gimple_call.
162         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
163         edges.
164         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
165         (output_cgraph): Stream also indirect edges.
166         (lto_output_edge): Added capability to stream indirect edges.
167         (input_edge): Likewise.
168         (input_cgraph_1): Likewise.
169
170 2010-04-28  Richard Guenther  <rguenther@suse.de>
171
172         PR tree-optimization/43879
173         PR tree-optimization/43909
174         * tree-ssa-structalias.c (struct variable_info): Add
175         only_restrict_pointers flag.
176         (new_var_info): Initialize it.  Increment stats.total_vars here.
177         (create_function_info_for): Do not increment stats.total_vars
178         here.
179         (get_function_part_constraint): Fix build with C++.
180         (insert_into_field_list): Remove.
181         (push_fields_onto_fieldstack): Properly merge fields.
182         (create_variable_info_for): Split and simplify.
183         (create_variable_info_for_1): New piece.
184         (intra_create_variable_infos): Properly make restrict constraints
185         from parameters.
186
187 2010-04-28  Richard Guenther  <rguenther@suse.de>
188
189         PR c++/43880
190         * tree-inline.c (copy_bind_expr): Also copy bind expr vars
191         value-exprs.
192
193 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
194             Jan Hubicka <hubicka@ucw.cz>
195
196         * doc/invoke.texi (-Wsuggest-attribute=const,
197         -Wsuggest-attribute=pure): Document.
198         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
199         (function_always_visible_to_compiler_p,
200         suggest_attribute, warn_function_pure, warn_function_const):
201         New functions.
202         (check_call): Improve debug info.
203         (analyze_function): Do not check availability.
204         (add_new_function): Check availability.
205         (propagate): Output warnings.
206         (skip_function_for_local_pure_const): New function.
207         (local_pure_const): Use it; output warnings.
208         * common.opt (Wsuggest-attribute=const,
209         Wsuggest-attribute=pure): New.
210
211 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
212
213         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
214         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
215         or DW_CFA_def_cfa_offset{,_sf}.
216
217 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
218
219         * tree.h: Fix truncated long macros.
220
221 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
222
223         * collect2.c (TARGET_64BIT): Redefine to target's default.
224         * tlink.c: Likewise.
225         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
226         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
227         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
228         for underscoring __USER_LABEL_PREFIX__.
229         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
230         (SUB_LINK_ENTRY32): New.
231         (SUB_LINK_ENTRY64): New.
232         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
233         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
234         (SUB_LINK_ENTRY64): New.
235         (SUB_LINK_ENTRY): New.
236         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
237         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
238         x64 target is choosen.
239         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
240         * configure: Regenerated.
241         * configure.ac (leading-mingw64-underscores): Option added.
242
243 2010-04-27  Jan Hubicka  <jh@suse.cz>
244
245         * doc/invoke.texi (-fipa-profile): Document.
246         * opts.c (decode_options): Enable ipa-profile at -O1.
247         * timevar.def (TV_IPA_PROFILE): Define.
248         * common.opt (fipa-profile): Add.
249         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
250         flag for clones.
251         (cgraph_propagate_frequency): Handle only local ones.
252         * tree-pass.h (pass_ipa_profile): Declare.
253         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
254         (pass_ipa_profile): Use TV_IPA_PROFILE.
255         * ipa.c (ipa_profile): New function.
256         (gate_ipa_profile): Likewise.
257         (pass_ipa_profile): New global variable.
258         * passes.c (pass_ipa_profile): New.
259
260 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
261
262         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
263
264 2010-04-27  Martin Jambor  <mjambor@suse.cz>
265
266         PR middle-end/43812
267         * ipa.c (dissolve_same_comdat_group_list): New function.
268         (function_and_variable_visibility): Call
269         dissolve_same_comdat_group_list when comdat group contains external or
270         newly local nodes.
271         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
272         lists are circular and that they contain only DECL_ONE_ONLY nodes.
273
274 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
275
276         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
277         (const_hash_1) <VECTOR_CST>: New case.
278         (compare_constant) <VECTOR_CST>: Likewise.
279         <ADDR_EXPR>: Deal with LABEL_REFs.
280         (copy_constant) <VECTOR_CST>: New case.
281
282 2010-04-27  Jan Hubicka  <jh@suse.cz>
283
284         * cgraph.c (cgraph_propagate_frequency): New function.
285         * cgraph.h (cgraph_propagate_frequency): Declare.
286         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
287         cgraph_propagate_frequency.
288
289 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
290
291         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
292
293 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
294
295         PR target/40657
296         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
297         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
298         here to determine which regs to push and how much stack to reserve.
299
300 2010-04-27  Jie Zhang  <jie@codesourcery.com>
301
302         * doc/gimple.texi (gimple_statement_with_ops): Remove
303         addresses_taken field.
304         (gimple_statement_with_memory_ops): Likewise.
305
306 2010-04-27  Jan Hubicka  <jh@suse.cz>
307
308         * tree-inline.c (eni_inlining_weights): Remove.
309         (estimate_num_insns): Special case more builtins.
310
311 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
312
313         PR c/32207
314         * c-typeck.c (build_binary_op): Move forward check for comparison
315         pointer with null pointer constant and adjust the diagnostic message.
316
317 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
318
319         PR lto/42776
320         * configure.ac (gcc_cv_as_section_has_align): Set if installed
321         binutils supports extended .section directive needed by LTO, or
322         warn if older binutils found.
323         (LTO_BINARY_READER): New AC_SUBST'd variable.
324         (LTO_USE_LIBELF): Likewise.
325         * gcc/config.gcc (lto_binary_reader): New target-specific configure
326         variable.
327         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
328         (LTO_USE_LIBELF): Likewise.
329         * configure: Regenerate.
330
331         * collect2.c (is_elf): Rename from this ...
332         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
333          object files in addition to ELF-formatted ones.
334         (scan_prog_file): Caller updated.  Also allow for LTO info marker
335         symbol to be prefixed or not by an extra underscore.
336
337         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
338         * config/i386/winnt.c: Also #include lto-streamer.h
339         (i386_pe_asm_named_section): Specify 1-byte section alignment for
340         LTO named sections.
341         (i386_pe_asm_output_aligned_decl_common): Add comment.
342         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
343
344 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
345
346         PR target/43889
347         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
348         Add missing earlyclobber for second alternative.
349
350 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
351
352         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
353         bits for artificial defs at the top of the block.
354         * fwprop.c (single_def_use_enter_block): Don't call it.
355
356 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
357
358         PR 43715
359         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
360         instead of "$gcc_cv_objdump -T".
361         Use "-undefined dynamic_lookup" on darwin.
362         * gcc/configure: Regenerate.
363
364 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
365
366         PR c/43893
367         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
368
369 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
370
371         * c-parser.c (struct c_token): Move location field up.
372         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
373         (struct c_declspecs): Convert typespec_word, storage_class, and
374         default_int_p into bitfields.
375         (struct c_declarator): Move loc field up.
376
377 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
378
379         * cfgloop.h (struct loop): Move can_be_parallel field up.
380         * ipa-prop.h (struct ip_node_params): Move bitfields up.
381         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
382         down.
383         (struct iv_cand): Convert pos field into a bitfield.
384         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
385         field up.
386         (struct _stmt_vec_info): Shuffle fields for better packing.
387
388 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
389
390         * varasm.c (IN_NAMED_SECTION): Remove guard.
391         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
392         (IN_NAMED_SECTION_P): ...this.
393         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
394         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
395
396 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
397
398         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
399         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
400         of shadowing it.  Fix comments.
401
402 2010-04-26  Jan Hubicka  <jh@suse.cz>
403
404         * cgraph.c (cgraph_create_node): Set node frequency to normal.
405         (cgraph_clone_node): Copy function frequency.
406         * cgraph.h (node_frequency): New enum
407         (struct cgraph_node): Add.
408         * final.c (rest_of_clean_state): Update.
409         * lto-cgraph.c (lto_output_node): Output node frequency.
410         (input_overwrite_node): Input node frequency.
411         * tre-ssa-loop-ivopts (computation_cost): Update.
412         * lto-streamer-out.c (output_function): Do not output function
413         frequency.
414         * predict.c (maybe_hot_frequency_p): Update and handle functions
415         executed once.
416         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
417         attribute lookup.
418         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
419         (compute_function_frequency): Set noreturn functions to be executed
420         once.
421         (choose_function_section): Update.
422         * lto-streamer-in.c (input_function): Do not input function frequency.
423         * function.c (allocate_struct_function): Do not initialize function
424         frequency.
425         * function.h (function_frequency): Remove.
426         (struct function): Remove function frequency.
427         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
428         (try_update): Update.
429         * tree-inline.c (initialize_cfun): Do not update function frequency.
430         * passes.c (pass_init_dump_file): Update.
431         * i386.c (ix86_compute_frame_layout): Update.
432         (ix86_pad_returns): Update.
433
434 2010-04-26  Jie Zhang  <jie@codesourcery.com>
435
436         PR tree-optimization/43833
437         * tree-vrp.c (range_int_cst_p): New.
438         (range_int_cst_singleton_p): New.
439         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
440         when both operands are constants.  Use range_int_cst_p in
441         BIT_IOR_EXPR case.
442
443 2010-04-26  Jan Hubicka  <jh@suse.cz>
444
445         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
446
447 2010-04-26  Richard Guenther  <rguenther@suse.de>
448
449         PR lto/43080
450         * gimple.c (gimple_decl_printable_name): Deal gracefully
451         with a NULL DECL_NAME.
452
453 2010-04-26  Richard Guenther  <rguenther@suse.de>
454
455         PR lto/42425
456         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
457         if emitting debug information and it is either a function
458         or a namespace decl.
459
460 2010-04-26  Ira Rosen  <irar@il.ibm.com>
461
462         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
463         determine if the statement is vectorizable, and a macro to access it.
464         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
465         Skip statements that can't be vectorized. If the analysis fails,
466         mark the statement as unvectorizable if vectorizing basic block.
467         (vect_compute_data_refs_alignment): Likewise.
468         (vect_verify_datarefs_alignment): Skip statements marked as
469         unvectorizable. Add print.
470         (vect_analyze_group_access): Skip statements that can't be
471         vectorized. If the analysis fails, mark the statement as
472         unvectorizable if vectorizing basic block.
473         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
474         * tree-vect-stmts.c (vectorizable_store): Fix the number of
475         generated stmts for SLP.
476         (new_stmt_vec_info): Initialize the new field.
477         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
478         statements marked as unvectorizable.
479
480 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
481
482         * c-common.c (flag_isoc1x): New.
483         (flag_isoc99): Update comment.
484         * c-common.h (flag_isoc1x): New.
485         (flag_isoc99): Update comment.
486         * c-cppbuiltin.c (builtin_define_float_constants): Also define
487         __<type>_DECIMAL_DIG__.
488         * c-opts.c (set_std_c1x): New.
489         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
490         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
491         * c.opt (-std=c1x, -std=gnu1x): New options.
492         * doc/cpp.texi: Mention -std=c1x.
493         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
494         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
495         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
496         * doc/standards.texi: Mention C1X.
497         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
498         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
499         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
500         Define for C1X.
501
502 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
503
504         * config/i386/gmon-sol2.c (_mcleanup): Change format string
505         placeholder from 0x%x to %#x.
506         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
507         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
508         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
509         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
510         * config/i386/i386.c (ix86_target_string): Ditto.
511         (output_pic_addr_const): Ditto.
512         (print_operand): Ditto.
513
514 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
515
516         * combine.c (find_split_point): Add third argument.  Use it
517         to find nested multiply-accumulate instructions.  Adjust calls.
518         (try_combine): Adjust call to find_split_point.
519
520 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
521
522         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
523
524 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
525
526         PR tree-optimization/41442
527         * fold-const.c (merge_truthop_with_opposite_arm): New function.
528         (fold_binary_loc): Call it.
529
530 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
531
532         * toplev.c (general_init): Set default for fdiagnostics-show-option.
533         * opts.c (common_handle_option): Allow disabling it.
534         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
535
536 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
537
538         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
539         between modes if both types are integral.
540
541 2010-04-23  Richard Guenther  <rguenther@suse.de>
542
543         PR tree-optimization/43572
544         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
545
546 2010-04-23  Richard Guenther  <rguenther@suse.de>
547
548         PR lto/43455
549         * tree-inline.c (tree_can_inline_p): Also check compatibility
550         of return types.
551
552 2010-04-23  Martin Jambor  <mjambor@suse.cz>
553
554         PR tree-optimization/43846
555         * tree-sra.c (struct access): New flag grp_assignment_read.
556         (build_accesses_from_assign): Set grp_assignment_read.
557         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
558         (enum mark_read_status): New type.
559         (analyze_access_subtree): Propagate grp_assignment_read, create
560         accesses also if both direct_read and root->grp_assignment_read.
561
562 2010-04-23  Martin Jambor  <mjambor@suse.cz>
563
564         PR middle-end/43835
565         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
566         function does not have type attributes.
567
568 2010-04-23  Richard Guenther  <rguenther@suse.de>
569
570         PR lto/42653
571         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
572         of FUNCTION_DECLs.
573
574 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
575
576         * sese.h (create_if_region_on_edge): Remove.
577
578         * sese.c (create_if_region_on_edge): Make static.
579
580         * tree-inline.c: Do not include ggc.h.
581
582         * expr.c: Do not include ggc.h.
583
584         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
585         dependencies.
586
587 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
588
589         PR target/43744
590         * config/sh/sh.c (find_barrier): Don't emit a constant pool
591         in the middle of insns for casesi_worker_2.
592
593 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
594
595         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
596
597 2010-04-22  Ira Rosen  <irar@il.ibm.com>
598
599         PR tree-optimization/43842
600         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
601         loop unrolling in update of exit phis. Fix comment.
602         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
603         least two reduction statements in the loop before starting SLP
604         analysis.
605
606 2010-04-22  Nick Clifton  <nickc@redhat.com>
607
608         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
609
610 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
611
612         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
613         to simplify a + ~a.
614
615 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
616
617         * tree-parloops.c (loop_parallel_p): New argument
618         parloop_obstack.  Pass it down.
619         (parallelize_loops): New variable parloop_obstack.  Initialize it,
620         pass it down, free it.
621
622         * tree-loop-linear.c (linear_transform_loops): Pass down
623         lambda_obstack.
624
625         * tree-data-ref.h (lambda_compute_access_matrices): New argument
626         of type struct obstack *.
627
628         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
629         scratch_obstack.  Initialize it, pass down, free it.
630
631         * lambda.h (lambda_loop_new): Remove.
632         (lambda_matrix_new, lambda_matrix_inverse)
633         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
634         argument of type struct obstack *.
635
636         * lambda-trans.c (lambda_trans_matrix_new): New argument
637         lambda_obstack.  Pass it down, use obstack allocation for ret.
638         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
639         it down.
640
641         * lambda-mat.c (lambda_matrix_get_column)
642         (lambda_matrix_project_to_null): Remove.
643         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
644         allocation for mat.
645         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
646         lambda_obstack.
647
648         * lambda-code.c (lambda_loop_new): New function.
649         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
650         (lambda_compute_auxillary_space, lambda_compute_target_space)
651         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
652         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
653         (build_access_matrix): New argument lambda_obstack.  Use obstack
654         allocation for am.
655         (lambda_compute_step_signs, lambda_compute_access_matrices): New
656         argument lambda_obstack.  Pass it down.
657
658 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
659
660         * optabs.h (expand_widening_mult): Declare.
661
662 2010-04-22  Richard Guenther  <rguenther@suse.de>
663
664         PR tree-optimization/43845
665         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
666         lookup the CALL_EXPR function and arguments.
667
668 2010-04-22  Nick Clifton  <nickc@redhat.com>
669
670         * config/stormy16/stormy16.c
671         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
672         * config/stormy16/stormy16.h: Tidy up formatting.
673         (DONT_USE_BUILTIN_SETJMP): Remove definition.
674         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
675         (ineqbranchsi): Delete pattern.
676         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
677         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
678         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
679         stormy16-lib2-ucmpsi2.c.
680
681 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
682
683         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
684         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
685         extra set merge_set_noclobber, and use it to relax the final test
686         slightly.
687         * df.h (df_simulate_find_noclobber_defs): Declare.
688         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
689         conditional defs.
690         (df_simulate_find_noclobber_defs): New function.
691
692 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
693
694         * config/i386/i386.md: Use {} around multi-line preparation statements.
695
696 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
697
698         * c-tree.h (push_init_level, pop_init_level, set_init_index)
699         (process_init_element): New argument of type struct obstack *.
700
701         * c-typeck.c (push_init_level, pop_init_level, set_designator)
702         (set_init_index, set_init_label, set_nonincremental_init)
703         (set_nonincremental_init_from_string, find_init_member)
704         (output_init_element, output_pending_init_elements)
705         (process_init_element): New argument braced_init_obstack.  Pass it
706         down.
707         (push_range_stack, add_pending_init): New argument
708         braced_init_obstack.  Use obstack allocation.
709
710         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
711         braced_init_obstack.  Pass it down.
712         (c_parser_braced_init): New variables ret, braced_init_obstack.
713         Initialize obstack, pass it down and finally free it.
714
715 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
716
717         PR middle-end/29274
718         * tree-pass.h (pass_optimize_widening_mul): Declare.
719         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
720         gate_optimize_widening_mul): New static functions.
721         (pass_optimize_widening_mul): New.
722         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
723         <case MULT_EXPR>: Remove support for widening multiplies.
724         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
725         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
726         simplify_gen_unary rather than directly building extensions.
727         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
728         WIDEN_MULT_EXPR.
729         * expmed.c (expand_widening_mult): New function.
730         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
731
732 2010-04-21  Jan Hubicka  <jh@suse.cz>
733
734         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
735         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
736         * lto-wpa-fixup.c: Remove.
737         * Makefile.in (lto-wpa-fixup.o): Remove.
738         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
739         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
740         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
741
742 2010-04-21  Jan Hubicka  <jh@suse.cz>
743
744         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
745         add write_optimization_summary, read_optimization_summary.
746         (ipa_write_summaries_of_cgraph_node_set): Remove.
747         (ipa_write_optimization_summaries): Declare.
748         (ipa_read_optimization_summaries): Declare.
749         * ipa-cp.c (pass_ipa_cp): Update.
750         * ipa-reference.c (pass_ipa_reference): Update.
751         * ipa-pure-const.c (pass_ipa_pure_const): Update.
752         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
753         Update.
754         * ipa-inline.c (pass_ipa_inline): Update.
755         * ipa.c (pass_ipa_whole_program): Update.
756         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
757         * passes.c (ipa_write_summaries_1): Do not test wpa.
758         (ipa_write_optimization_summaries_1): New.
759         (ipa_write_optimization_summaries): New.
760         (ipa_read_summaries): Do not test ltrans.
761         (ipa_read_optimization_summaries_1): New.
762         (ipa_read_optimization_summaries): New.
763
764 2010-04-21  Jan Hubicka  <jh@suse.cz>
765
766         * lto-cgraph.c (lto_output_node): Do not output comdat groups
767         for boundary nodes.
768         (output_cgraph): Do not arrange comdat groups for boundary nodes.
769
770 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
771
772         PR debug/40040
773         * dwarf2out.c (add_name_and_src_coords_attributes): Add
774         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
775
776 2010-04-21  Jan Hubicka  <jh@suse.cz>
777
778         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
779
780 2010-04-21  Jan Hubicka  <jh@suse.cz>
781
782         * varpool.c (decide_is_variable_needed): Variable is always needed
783         during ltrans.
784
785 2010-04-21  Jan Hubicka  <jh@suse.cz>
786
787         * opts.c (decode_options): Enable pure-const pass for whopr.
788
789 2010-04-21  Jan Hubicka  <jh@suse.cz>
790
791         * cgraph.c (dump_cgraph_node): Dump also assembler name.
792         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
793         at WPA dumping.
794         (cgraph_decide_inlining): Do not expect callee to be removed in all
795         cases.
796
797 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
798
799         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
800
801 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
802
803         * config/i386/i386.md (x86_shrd): Add athlon_decode and
804         amdfam10_decode attributes.
805
806 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
807
808         PR middle-end/43570
809         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
810         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
811         (lower_copyprivate_clauses): Use private var in outer
812         context instead of original var.  Make sure the types
813         are correct for VLAs.
814
815 2010-04-21  Richard Guenther  <rguenther@suse.de>
816
817         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
818         to non-pointer objects.
819
820 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
821
822         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
823         last chain entry if it starts with the still current label.
824         (add_location_or_const_value_attribute): Check that
825         loc_list->first->next is NULL instead of comparing ->first with ->last.
826         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
827         to add_var_loc_to_decl.
828
829         * dwarf2out.c (output_call_frame_info): For dw_cie_version
830         >= 4 add also address size and segment size fields into CIE header.
831
832         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
833         long as address size is the same as sizeof (void *) and
834         segment size is 0.
835         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
836         address size or segment size is unexpected, return DW_EH_PE_omit.
837         (classify_object_over_fdes): If get_cie_encoding returned
838         DW_EH_PE_omit, return -1.
839         (init_object): If classify_object_over_fdes returned -1,
840         pretend there were no FDEs at all.
841
842 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
843
844         * config/i386/i386.md (bswap<mode>2): Macroize expander from
845         bswap{si,di}2 using SWI48 mode iterator.
846         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
847         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
848         set modrm attribute of bswap insn to 0 and remove length attribute.
849         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
850         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
851         set mode attribute to <MODE> and remove length attribute.
852
853 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
854
855         PR rtl-optimization/43520
856         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
857         zero available registers.
858
859 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
860
861         * builtins.c (fold_builtin_cproj): Fold more cases.
862
863 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
864
865         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
866         (fold_builtin_1): Fold builtin cproj.
867         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
868         Use ATTR_CONST_NOTHROW_LIST.
869
870 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
871
872         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
873         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
874         ffsi2_no_cmove for !TARGET_CMOVE.
875         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
876         (ffssi2): Remove expander.
877         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
878         mode iterator.
879         (ctz<mode>2): Ditto from ctz{si,di}2.
880         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
881         mode iterator.
882         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
883         mode iterator.
884
885 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
886
887         * dwarf2out.c (AT_linkage_name): Define.
888         (clone_as_declaration): Handle DW_AT_linkage_name.
889         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
890         of DW_AT_MIPS_linkage_name.
891         (move_linkage_attr): Likewise.
892         (dwarf2out_finish): Likewise.
893
894 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
895
896         PR middle-end/41952
897         * fold-const.c (fold_comparison): New folding rule.
898
899 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
900
901         * double-int.h (double_int_setbit): Declare.
902         * double-int.c (double_int_setbit): New function.
903         * rtl.h (immed_double_int_const): Declare.
904         * emit-rtl.c (immed_double_int_const): New function.
905         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
906         and immed_double_int_const functions.
907         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
908         expand_copysign_bit):  (Ditto.).
909         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
910         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
911         * dojump.c (prefer_and_bit_test): (Ditto.).
912         * expr.c (convert_modes, reduce_to_bit_field_precision,
913         const_vector_from_tree): (Ditto.).
914         * expmed.c (mask_rtx, lshift_value): (Ditto.).
915
916 2010-04-20  Jan Hubicka  <jh@suse.cz>
917
918         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
919         (dump_cgraph_node): Dump new flags.
920         * cgraph.h (struct cgraph_node): Add flags
921         reachable_from_other_partition and in_other_partition.
922         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
923         other partition can not be removed.
924         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
925         the other partition must be output; silence sanity checking on
926         leaking functions bodies from other paritition.
927         * lto-cgraph.c (reachable_from_other_partition_p): New function.
928         (lto_output_node): Output new flags; do not sanity check that inline
929         clones are output; drop lto_forced_extern_inline_p code; do not mock
930         visibility flags at partition boundaries.
931         (add_node_to): New function.
932         (output_cgraph): Use it to sort functions so masters appear before
933         clones.
934         (input_overwrite_node): Input new flags.
935         * passes.c (ipa_write_summaries): Do not call
936         lto_new_extern_inline_states.
937         * lto-section-out.c (forced_extern_inline, lto_new_extern_inline_states,
938         lto_delete_extern_inline_states, lto_force_functions_extern_inline,
939         lto_forced_extern_inline_p): Kill.
940         * lto-streamer.h (lto_new_extern_inline_states,
941         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
942         lto_forced_extern_inline_p): Kill.
943
944 2010-04-20  Richard Guenther  <rguenther@suse.de>
945
946         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
947         from vars that can have pointers.
948         (process_constraint): Dump useless constraints.
949
950 2010-04-20  Richard Guenther  <rguenther@suse.de>
951
952         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
953         (dump_sa_points_to_info): Remove asserts.
954         (init_base_vars): nothing_id isn't an escape point nor does it
955         have pointers.
956
957 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
958
959         * tree.h (TYPE_REF_IS_RVALUE): Define.
960         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
961         should_move_die_to_comdat, prune_unused_types_walk): Handle
962         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
963         (modified_type_die, gen_reference_type_die): Emit
964         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
965         if TYPE_REF_IS_RVALUE and -gdwarf-4.
966
967 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
968
969         PR target/43635
970         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
971         calls for -fpic -m31 if they have been sibcall optimized.
972
973 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
974
975         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
976         ar.lc fixed and call-used.
977
978         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
979
980 2010-04-19  Jan Hubicka  <jh@suse.cz>
981
982         * opts.c (decode_options): Disable whpr incompatible passes.
983         * lto/lto.c (lto_1_to_1_map): Skip clones.
984         (read_cgraph_and_symbols): Do not mark everything as needed.
985         (do_whole_program_analysis): Do map only after optimizing;
986         set proper cgraph_state; use passmanager.
987
988 2010-04-19  DJ Delorie  <dj@redhat.com>
989
990         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
991         POINTER_PLUS_EXPR and fix them.
992
993 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
994
995         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
996         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
997         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
998         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
999         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
1000         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
1001         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
1002         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
1003         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
1004         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
1005         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
1006
1007 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1008
1009         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
1010         (check_cond_move_block): Likewise.
1011         (cond_move_process_if_block): Likewise.
1012         (noce_find_if_block): Improve formatting.
1013         (find_if_header): Pass 0 to memset and tweak conditions.
1014         (cond_exec_find_if_block): Fix long lines and tweak conditions.
1015
1016 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1017
1018         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
1019         for -gdwarf-4.
1020
1021         PR middle-end/43337
1022         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
1023         with non-local decl doesn't need chain.
1024
1025 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1026
1027         * ira-color.c (allocno_reload_assign): Avoid accumulating
1028         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
1029
1030 2010-04-19  Martin Jambor  <mjambor@suse.cz>
1031
1032         * gimple.h (create_tmp_reg): Declare.
1033         * gimplify.c (create_tmp_reg): New function.
1034         (gimplify_return_expr): Use create_tmp_reg.
1035         (gimplify_omp_atomic): Likewise.
1036         (gimple_regimplify_operands): Likewise.
1037         * tree-dfa.c (make_rename_temp): Likewise.
1038         * tree-predcom.c (predcom_tmp_var): Likewise.
1039         (reassociate_to_the_same_stmt): Likewise.
1040         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
1041         (get_replaced_param_substitute): Likewise.
1042         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1043         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1044         * tree-ssa-pre.c (get_representative_for): Likewise.
1045         (create_expression_by_pieces): Likewise.
1046         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
1047         (create_tailcall_accumulator): Likewise.
1048
1049 2010-04-19  Martin Jambor  <mjambor@suse.cz>
1050
1051         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
1052         new_stmt.
1053         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
1054
1055 2010-04-19  Richard Guenther  <rguenther@suse.de>
1056
1057         PR tree-optimization/43796
1058         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
1059         from SCEV in the lattice.
1060         (vrp_visit_phi_node): Dump change.
1061
1062 2010-04-19  Richard Guenther  <rguenther@suse.de>
1063
1064         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
1065         * configure: Re-generated.
1066
1067 2010-04-19  Richard Guenther  <rguenther@suse.de>
1068
1069         PR tree-optimization/43783
1070         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
1071         constant ARRAY_REF operands two and three if possible.
1072
1073 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
1074
1075         PR target/43766
1076         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
1077
1078 2010-04-19  Jie Zhang  <jie@codesourcery.com>
1079
1080         PR target/43662
1081         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
1082
1083 2010-04-19  Ira Rosen  <irar@il.ibm.com>
1084
1085         PR tree-optimization/37027
1086         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
1087         and macro to access it.
1088         (vectorizable_reduction): Add argument.
1089         (vect_get_slp_defs): Likewise.
1090         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
1091         statements for possible use in SLP.
1092         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
1093         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
1094         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
1095         add new argument.
1096         (vectorizable_reduction): Likewise.
1097         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
1098         vect_get_slp_defs.
1099         (vectorizable_type_demotion, vectorizable_type_promotion,
1100         vectorizable_store): Likewise.
1101         (vect_analyze_stmt): Update call to vectorizable_reduction.
1102         (vect_transform_stmt): Likewise.
1103         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
1104         (vect_build_slp_tree): Fix indentation. Check that there are no loads
1105         from different interleaving chains in same node.
1106         (vect_slp_rearrange_stmts): New function.
1107         (vect_supported_load_permutation_p): Allow load permutations for
1108         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
1109         inside SLP nodes if necessary.
1110         (vect_analyze_slp_instance): Handle reductions.
1111         (vect_analyze_slp): Try to build SLP instances originating from groups
1112         of reductions.
1113         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
1114         (vect_get_constant_vectors): Create initial vectors for reductions
1115         according to reduction code. Add new argument.
1116         (vect_get_slp_defs): Add new argument, pass it to
1117         vect_get_constant_vectors.
1118         (vect_schedule_slp_instance): Remove SLP tree root statements.
1119
1120 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1121
1122         * tree.h (ENUM_IS_SCOPED): Define.
1123         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
1124         for ENUM_IS_SCOPED enums.
1125
1126 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1127
1128         * fold-const.c (fold_comparison): Use ssizetype.
1129         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1130         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
1131         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
1132         * tree-object-size.c (compute_object_sizes): Use size_type_node.
1133
1134         * tree.h (initialize_sizetypes): Remove parameter.
1135         (build_common_tree_nodes): Remove second parameter.
1136         * stor-layout.c (initialize_sizetypes): Remove parameter.
1137         Always create an unsigned type.
1138         (set_sizetype): Assert that the passed type is unsigned and simplify.
1139         * tree.c (build_common_tree_nodes): Remove second parameter.
1140         Adjust call to initialize_sizetypes.
1141         * c-decl.c (c_init_decl_processing): Remove second argument in call to
1142         build_common_tree_nodes.
1143
1144 2010-04-18  Matthias Klose  <doko@ubuntu.com>
1145
1146         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
1147
1148 2010-04-18  Ira Rosen  <irar@il.ibm.com>
1149
1150         PR tree-optimization/43771
1151         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
1152         load permutation doesn't have gaps.
1153
1154 2010-04-18  Jan Hubicka  <jh@suse.cz>
1155
1156         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
1157         (sse_prologue_save_insn expander): Use new pattern.
1158         (sse_prologue_save_insn1): New pattern and splitter.
1159         (sse_prologue_save_insn): Update to deal also with 64bit aligned
1160         blocks.
1161         * i386.c (setup_incoming_varargs_64): Do not compute jump
1162         destination here.
1163         (ix86_gimplify_va_arg): Update alignment needed.
1164         (ix86_local_alignment): Do not align all local arrays to 128bit.
1165
1166 2010-04-17  Jan Hubicka  <jh@suse.cz>
1167
1168         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
1169
1170 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1171
1172         * arm.md (negdi2): Remove redundant code to force values into a
1173         register.
1174
1175 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1176
1177         * arm/bpabi.S: Add EABI alignment attributes to objects.
1178         * arm/bpabi-v6m.S: Likewise.
1179         * arm/crti.asm: Likewise.
1180         * arm/crtn.asm: Likewise.
1181         * arm/lib1funcs.asm: Likewise.
1182         * arm/libunwind.S: Likewise.
1183
1184 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1185
1186         * arm-protos.h (tune_params): New structure.
1187         * arm.c (current_tune): New variable.
1188         (arm_constant_limit): Delete.
1189         (struct processors): Add pointer to the tune parameters.
1190         (arm_slowmul_tune): New tuning option.
1191         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
1192         (all_cores): Adjust to pick up the tuning model.
1193         (arm_constant_limit): New function.
1194         (arm_override_options): Select the appropriate tuning model.  Delete
1195         initialization of arm_const_limit.
1196         (arm_split_constant): Use the new constant-limit model.
1197         (arm_rtx_costs): Pick up the current tuning model.
1198         * arm.md (is_strongarm, is_xscale): Delete.
1199         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
1200         for Xscale variant architectures.
1201         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
1202
1203 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1204
1205         * config/arm/arm.c (arm_gen_constant): Remove unused variable
1206         can_shift.
1207         (arm_rtx_costs_1): Remove unused variable extra_cost.
1208         (arm_unwind_emit_set): Use variable offset.
1209         (thumb1_output_casesi): Remove unused variable flags.
1210
1211 2010-04-16  Jeff Law  <law@redhat.com>
1212
1213         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
1214         needing assignment rather than doing a two-phase assignment.  Remove
1215         unused variable 'm'.
1216
1217 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1218
1219         PR bootstrap/43767
1220         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
1221
1222 2010-04-16  Doug Kwan  <dougkwan@google.com>
1223
1224         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
1225         (next_operand_entry_id): New static variable.
1226         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
1227         (add_to_ops_vec): Assigned unique ID to operand entry.
1228         (struct oecount_s): New field ID.
1229         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
1230         (undistribute_ops_list): Assign unique IDs to oecounts.
1231         (init_reassoc): reset next_operand_entry_id.
1232
1233 2010-04-16  Doug Kwan  <dougkwan@google.com>
1234
1235         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
1236         missing left parenthesis.
1237
1238 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
1239
1240         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
1241         *btdi_rex64 using SWI48 mode iterator.
1242         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
1243         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
1244         *jcc_btdi_mask_rex64.
1245
1246 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
1247
1248         * double-int.h (tree_to_double_int): Convert to macro.
1249         * double-int.c (tree_to_double_int): Remove.
1250
1251 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1252
1253         PR debug/43762
1254         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
1255         with want_address 2 and in case a single element list might be
1256         possible, call it again with want_address 0.
1257
1258 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1259
1260         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
1261         case 'W' print operands for HI mode.
1262         * config/h8300/h8300.h (Y0, Y2) : New constraints.
1263         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
1264         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
1265         * config/h8300/predicate.md (bit_register_indirect_operand): New.
1266
1267         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
1268
1269         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
1270         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
1271         #xx:3 and #xx:4 mode.
1272
1273         * config/h8300/h8300.md (inverted load with HImode dest): Add
1274         support for H8300SX.
1275
1276         * config/h8300/predicate.md (bit_operand): Allow immediate values that
1277         satisfy 'U' constraint.
1278
1279 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1280
1281         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
1282         * configure: Regenerate.
1283         * config.in: Regenerate.
1284         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
1285         works.
1286
1287 2010-04-16  Richard Guenther  <rguenther@suse.de>
1288
1289         * tree.h (struct tree_decl_minimal): Move pt_uid ...
1290         (struct tree_decl_common): ... here.
1291         (DECL_PT_UID): Adjust.
1292         (SET_DECL_PT_UID): Likewise.
1293         (DECL_PT_UID_SET_P): Likewise.
1294
1295 2010-04-16  Richard Guenther  <rguenther@suse.de>
1296
1297         PR tree-optimization/43572
1298         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
1299         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
1300         * tree-flow.h (is_call_clobbered): Remove.
1301         * tree-flow-inline.h (is_call_clobbered): Likewise.
1302         * tree-dfa.c (dump_variable): Do not dump call clobber state.
1303         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
1304         (execute_return_slot_opt): Adjust.
1305         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
1306         check for call clobbered vars here.
1307         (find_tail_calls): Move tailcall verification to the
1308         proper place.
1309
1310 2010-04-16  Diego Novillo  <dnovillo@google.com>
1311
1312         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
1313
1314 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1315
1316         PR target/40603
1317         * config/arm/arm.md (cbranchqi4): New pattern.
1318         * config/arm/predicates.md (const0_operand,
1319         cbranchqi4_comparison_operator): New predicates.
1320
1321 2010-04-16  Richard Guenther  <rguenther@suse.de>
1322
1323         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
1324         (dump_gimple_stmt): Likewise.
1325
1326 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1327
1328         * recog.h (struct recog_data): New field is_operator.
1329         (struct insn_operand_data): New field is_operator.
1330         * recog.c (extract_insn): Set recog_data.is_operator.
1331         * genoutput.c (output_operand_data): Emit code to set the
1332         is_operator field.
1333         * reload.c (find_reloads): Use it rather than testing for an
1334         empty constraint string.
1335
1336         PR target/41514
1337         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
1338         If the previous insn is a cbranchsi4_insn with the same arguments,
1339         omit the compare instruction.
1340
1341         * config/arm/arm.md (addsi3_cbranch): If destination is a high
1342         register, inputs must be low registers and we need a low register
1343         scratch.  Handle alternative 2 like alternative 3.
1344
1345 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1346
1347         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
1348         don't call get_addr on both.  If one expression is a VALUE and
1349         the other a REG, check VALUE's locs if the REG isn't among them.
1350
1351 2010-04-16  Christian Bruel  <christian.bruel@st.com>
1352
1353         * config/sh/sh.h (sh_frame_pointer_required): New function.
1354         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
1355         (flag_omit_frame_pointer) Set.
1356         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
1357         (rounded_frame_size): Adjust size with outgoing_args_size.
1358         (sh_set_return_address): Must return from stack pointer.
1359         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
1360         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
1361         (ACCUMULATE_OUTGOING_ARGS): Define.
1362         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
1363         * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
1364
1365 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1366
1367         PR target/43471
1368         * config/sh/sh.c (sh_legitimize_reload_address): Use
1369         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
1370         Remove a unneeded check for offset_base.
1371
1372 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1373
1374         * configure: Regenerated.
1375
1376 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1377
1378         * config/s390/s390.c (s390_call_save_register_used): Switch back
1379         to HARD_REGNO_NREGS.
1380
1381 2010-04-15  Richard Guenther  <rguenther@suse.de>
1382
1383         * alias.c (alias_set_subset_of): Handle alias-set zero
1384         child properly.
1385
1386 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
1387             Julian Brown  <julian@codesourcery.com>
1388
1389         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
1390         alternatives according to use of high and low regs.
1391         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1392         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
1393         optimizing for size on Thumb-2.
1394
1395 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
1396
1397         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
1398
1399 2010-04-15  Richard Guenther  <rguenther@suse.de>
1400
1401         * tree-ssa-structalias.c (struct variable_info): Add
1402         is_fn_info flag.
1403         (new_var_info): Initialize it.
1404         (dump_constraints): Support printing last added constraints.
1405         (debug_constraints): Adjust.
1406         (dump_constraint_graph): Likewise.
1407         (make_heapvar_for): Check for NULL cfun.
1408         (get_function_part_constraint): New function.
1409         (get_fi_for_callee): Likewise.
1410         (find_func_aliases): Properly implement IPA PTA constraints.
1411         (process_ipa_clobber): New function.
1412         (find_func_clobbers): Likewise.
1413         (insert_into_field_list_sorted): Remove.
1414         (create_function_info_for): Properly allocate vars for IPA mode.
1415         Do not use insert_into_field_list_sorted.
1416         (create_variable_info_for): Properly generate constraints for
1417         global vars in IPA mode.
1418         (dump_solution_for_var): Always dump the solution.
1419         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
1420         (find_what_var_points_to): Adjust.
1421         (pt_solution_set): Change.
1422         (pt_solution_ior_into): New function.
1423         (pt_solution_empty_p): Export.
1424         (pt_solution_includes_global): Adjust.
1425         (pt_solution_includes_1): Likewise.
1426         (pt_solutions_intersect_1): Likewise.
1427         (dump_sa_points_to_info): Check some invariants.
1428         (solve_constraints): Move constraint dumping ...
1429         (compute_points_to_sets): ... here.
1430         (ipa_pta_execute): ... and here.
1431         (compute_may_aliases): Do not re-compute points-to info
1432         locally if IPA info is available.
1433         (ipa_escaped_pt): New global var.
1434         (ipa_pta_execute): Properly implement IPA PTA.
1435         * tree-into-ssa.c (dump_decl_set): Support dumping
1436         decls not in referenced-vars.
1437         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
1438         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
1439         (dump_points_to_solution): Likewise.
1440         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
1441         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
1442         (remap_gimple_stmt): Reset call clobber/use information if necessary.
1443         (copy_decl_to_var): Copy DECL_PT_UID.
1444         (copy_result_decl_to_var): Likewise.
1445         * tree.c (make_node_stat): Initialize DECL_PT_UID.
1446         (copy_node_stat): Copy it.
1447         * tree.h (DECL_PT_UID): New macro.
1448         (SET_DECL_PT_UID): Likewise.
1449         (DECL_PT_UID_SET_P): Likewise.
1450         (struct tree_decl_minimal): Add pt_uid member.
1451         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
1452         (pt_solution_empty_p): Declare.
1453         (pt_solution_set): Adjust.
1454         (ipa_escaped_pt): Declare.
1455         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
1456         * gimple-pretty-print.c (pp_points_to_solution): New function.
1457         (dump_gimple_call): Dump call clobber/use information.
1458         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
1459         * tree-pass.h (TDF_ALIAS): New dump option.
1460         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
1461         * doc/invoke.texi (-fipa-pta): Update documentation.
1462
1463 2010-04-15  Richard Guenther  <rguenther@suse.de>
1464
1465         * Makefile.in (OBJS-common): Add gimple-fold.o.
1466         (gimple-fold.o): New rule.
1467         * tree.h (maybe_fold_offset_to_reference,
1468         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
1469         prototypes ...
1470         * gimple.h: ... here.
1471         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
1472         may_propagate_address_into_dereference): Move prototypes ...
1473         * gimple.h: ... here.
1474         * tree-ssa-ccp.c (get_symbol_constant_value,
1475         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
1476         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
1477         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
1478         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
1479         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
1480         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
1481         gimplify_and_update_call_from_tree): Move ...
1482         * gimple-fold.c: ... here.  New file.
1483         (ccp_fold_builtin): Rename to ...
1484         (gimple_fold_builtin): ... this.
1485         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
1486
1487 2010-04-15  Richard Guenther  <rguenther@suse.de>
1488
1489         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
1490         fit_double_type, force_fit_type_double, add_double_with_sign,
1491         neg_double, mul_double_with_sign, lshift_double, rshift_double,
1492         lrotate_double, rrotate_double, div_and_round_double): Move ...
1493         * double-int.c: ... here.
1494         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
1495         add_double, neg_double, mul_double_with_sign, mul_double,
1496         lshift_double, rshift_double, lrotate_double, rrotate_double,
1497         div_and_round_double): Move prototypes ...
1498         * double-int.h: ... here.
1499
1500 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
1501
1502         PR target/43742
1503         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
1504         matching constraints to ensure inputs match the output.
1505
1506 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1507
1508         PR target/43742
1509         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
1510         in an input-only operand.
1511
1512 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
1513
1514         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
1515         (double_int_not, double_int_lshift, double_int_rshift): Declare.
1516         (double_int_negative_p): Convert to static inline function.
1517         * double-int.c (double_int_lshift, double_int_lshift): Add new function.
1518         (double_int_negative_p): Remove.
1519         * tree.h (lshift_double, rshift_double):
1520         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
1521         * fold-const.c (fold_convert_const_int_from_real,
1522         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
1523         (lshift_double): Change type of arith argument to bool.
1524         (rshift_double): Change type of arith argument to bool. Correct
1525         comment.
1526         * expmed.c (mask_rtx, lshift_value): (Ditto.).
1527
1528 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
1529
1530         PR target/21803
1531         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
1532         at the start and end of the then/else blocks, and omit them from the
1533         conversion.
1534         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
1535         argument; all callers changed.  Pass zero to old_insns_match_p instead.
1536         (flow_find_head_matching_sequence): New function.
1537         (old_insns_match_p): Check REG_EH_REGION notes for calls.
1538         * basic-block.h (flow_find_cross_jump,
1539         flow_find_head_matching_sequence): Declare functions.
1540
1541 2010-04-14  Jason Merrill  <jason@redhat.com>
1542
1543         PR c++/36625
1544         * c-common.c (attribute_takes_identifier_p): New fn.
1545         * c-common.h: Declare it.
1546
1547 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1548
1549         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
1550         splitter condition.
1551         (*udivmod<mode>4): Ditto.
1552
1553 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1554
1555         * config/i386/i386.md (maxmin_int): Rename code attribute from
1556         maxminiprefix and update all users.
1557         (maxmin_float): Ditto from maxminfprefix.
1558         (logic): Ditto from logicprefix.
1559         (absneg_mnemonic): Ditto from absnegprefix.
1560         * config/i386/mmx.md: Update all users of maxminiprefix,
1561         maxminfprefix and logicprefix for rename.
1562         * config/i386/sse.md: Ditto.
1563         * config/i386/sync.md (sync_<code><mode>): Update for
1564         logicprefix rename.
1565
1566 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1567
1568         PR 42966
1569         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
1570         warnings converted to errors.
1571
1572 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1573
1574         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
1575         used insn_type variable.
1576         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
1577         to avoid set-but-not-used warning.
1578
1579 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1580
1581         * df-core.c (df_ref_debug): Change format string placeholder
1582         from 0x%x to %#x.
1583         * dwarf2asm.c (dw2_asm_output_data_raw,
1584         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
1585         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
1586         * dwarf2out.c (output_cfi, output_cfi_directive,
1587         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
1588         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
1589         Ditto.
1590         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
1591         * print-rtl.c (print_rtx): Ditto.
1592
1593 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1594
1595         PR middle-end/42694
1596         * builtins.c (expand_builtin_pow_root): New function to expand pow
1597         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
1598         series of sqrt and cbrt calls under -ffast-math.
1599         (expand_builtin_pow): Call it.
1600
1601 2010-04-14  Michael Matz  <matz@suse.de>
1602
1603         PR tree-optimization/42963
1604         * tree-cfg.c (touched_switch_bbs): New static variable.
1605         (group_case_labels_stmt): New function broken out from ...
1606         (group_case_labels): ... here, use the above.
1607         (start_recording_case_labels): Allocate touched_switch_bbs.
1608         (end_recording_case_labels): Deallocate it, call
1609         group_case_labels_stmt.
1610         (gimple_redirect_edge_and_branch): Remember index of affected BB.
1611
1612 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1613
1614         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
1615         from insn template.
1616
1617 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1618
1619         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
1620
1621 2010-04-13  Jan Hubicka  <jh@suse.cz>
1622
1623         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
1624         of optimized out static functions.
1625         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
1626         cost computation.  Also sanity check for overflows.
1627         (update_caller_keys): Update cgraph_edge_badness call; properly
1628         update fibheap and sanity check that it is up to date.
1629         (add_new_edges_to_heap): Update cgraph_edge_badness.
1630         (cgraph_decide_inlining_of_small_function): Likewise;
1631         add sanity checking that badness in heap is up to date;
1632         improve dumping of reason; Update badness of calls to the
1633         offline copy of function currently inlined; dump badness
1634         of functions not inlined because of unit growth limits.
1635
1636 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
1637
1638         PR middle-end/32628
1639         * c-common.c (pointer_int_sum): Disregard overflow that occured only
1640         because of sign-extension change when converting to sizetype here...
1641         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
1642
1643         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
1644         the folding to constants.  Remove redundant final conversion.
1645         (fold_binary) <associate>: Do not associate if the re-association of
1646         constants alone overflows.
1647         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
1648         to the end of the list.
1649         (multiple_of_p) <COND_EXPR>: New case.
1650
1651 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1652
1653         * opt-functions.awk (opt_sanitized_name): New.
1654         (opt_enum): New.
1655         * optc-gen.awk: Use it
1656         * opth-gen.awk: Use it.
1657
1658 2010-04-13  Martin Jambor  <mjambor@suse.cz>
1659
1660         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
1661         (sra_modify_assign): Delete stmts loading dead data even if racc has no
1662         children.  Call replace_uses_with_default_def_ssa_name to handle
1663         SSA_NAES on lhs.
1664
1665 2010-04-13  Michael Matz  <matz@suse.de>
1666
1667         PR middle-end/43730
1668         * builtins.c (expand_builtin_interclass_mathfn): Also create
1669         a register if the predicate doesn't match.
1670
1671 2010-04-13  Diego Novillo  <dnovillo@google.com>
1672
1673         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
1674         * c-pch.c: Include timevar.h.
1675         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
1676         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
1677         * ggc-common.c: Include timevar.h.
1678         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
1679         * timevar.def (TV_PCH_SAVE): Define.
1680         (TV_PCH_CPP_SAVE): Define.
1681         (TV_PCH_PTR_REALLOC): Define.
1682         (TV_PCH_PTR_SORT): Define.
1683         (TV_PCH_RESTORE): Define.
1684         (TV_PCH_CPP_RESTORE): Define.
1685
1686 2010-04-13  Michael Matz  <matz@suse.de>
1687
1688         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
1689         into MINUS_EXPRs.
1690         (can_reassociate_p): New function.
1691         (break_up_subtract_bb, reassociate_bb): Use it.
1692
1693 2010-04-13  Richard Guenther  <rguenther@suse.de>
1694
1695         PR bootstrap/43737
1696         * builtins.c (c_readstr): Fix assert.
1697
1698 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
1699
1700         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
1701         when generating cltd insn.
1702
1703         (*ashl<mode>3_1): Remove special handling for register operand 2.
1704         (*ashlsi3_1_zext): Ditto.
1705         (*ashlhi3_1): Ditto.
1706         (*ashlhi3_1_lea): Ditto.
1707         (*ashlqi3_1): Ditto.
1708         (*ashlqi3_1_lea): Ditto.
1709         (*<shiftrt_insn><mode>3_1): Ditto.
1710         (*<shiftrt_insn>si3_1_zext): Ditto.
1711         (*<shiftrt_insn>qi3_1_slp): Ditto.
1712         (*<rotate_insn><mode>3_1): Ditto.
1713         (*<rotate_insn>si3_1_zext): Ditto.
1714         (*<rotate_insn>qi3_1_slp): Ditto.
1715
1716 2010-04-13  Richard Guenther  <rguenther@suse.de>
1717
1718         * tree-ssa-structalias.c (callused_id): Remove.
1719         (call_stmt_vars): New.
1720         (get_call_vi): Likewise.
1721         (lookup_call_use_vi): Likewise.
1722         (lookup_call_clobber_vi): Likewise.
1723         (get_call_use_vi): Likewise.
1724         (get_call_clobber_vi): Likewise.
1725         (make_transitive_closure_constraints): Likewise.
1726         (handle_const_call): Adjust to do per-call call-used handling.
1727         (handle_pure_call): Likewise.
1728         (find_what_var_points_to): Remove general callused handling.
1729         (init_base_vars): Likewise.
1730         (init_alias_vars): Initialize call_stmt_vars.
1731         (compute_points_to_sets): Process call-used and call-clobbered
1732         vars for call statements.
1733         (delete_points_to_sets): Free call_stmt_vars.
1734
1735 2010-04-13  Richard Guenther  <rguenther@suse.de>
1736
1737         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1738         Only add RW dependence for dependence distance zero.
1739         Adjust maximal vectorization factor according to dependences.
1740         Move alignment handling ...
1741         (vect_find_same_alignment_drs): ... here.  New function.
1742         (vect_analyze_data_ref_dependences): Adjust.
1743         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
1744         (vect_analyze_data_refs): Adjust minimal vectorization factor
1745         according to data references.
1746         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
1747         dependences before determining the vectorization factor.
1748         Analyze alignment after determining the vectorization factor.
1749         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
1750         dependences before alignment.
1751         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
1752         Adjust prototype.
1753         (vect_analyze_data_refs): Likewise.
1754         (MAX_VECTORIZATION_FACTOR): New define.
1755
1756 2010-04-13  Duncan Sands  <baldrick@free.fr>
1757
1758         * except.h (lang_eh_type_covers): Remove.
1759         * except.c (lang_eh_type_covers): Likewise.
1760
1761 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1762             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1763
1764         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
1765         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
1766         UNITS_PER_LONG where it is ABI relevant.
1767         (s390_return_addr_rtx): Likewise.
1768         (s390_back_chain_rtx): Likewise.
1769         (s390_frame_area): Likewise.
1770         (s390_frame_info): Likewise.
1771         (s390_initial_elimination_offset): Likewise.
1772         (save_gprs): Likewise.
1773         (s390_emit_prologue): Likewise.
1774         (s390_emit_epilogue): Likewise.
1775         (s390_function_arg_advance): Likewise.
1776         (s390_function_arg): Likewise.
1777         (s390_va_start): Likewise.
1778         (s390_gimplify_va_arg): Likewise.
1779         (s390_function_profiler): Likewise.
1780         (s390_optimize_prologue): Likewise.
1781         (s390_rtx_costs): Likewise.
1782         (s390_secondary_reload): Likewise.
1783         (s390_promote_function_mode): Likewise.
1784         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
1785         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
1786         registers available.
1787         (s390_unwind_word_mode): New function.
1788         (s390_function_value): Split 64 bit values into register pair if
1789         used as return value.
1790         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
1791         function call parameters.  Handle parallels.
1792         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
1793         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
1794         (DWARF_CIE_DATA_ALIGNMENT): New macro.
1795         (s390_expand_setmem): Remove unused variable src_addr.
1796         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
1797         deal with 64 bit registers.
1798         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
1799         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
1800         (UNITS_PER_LONG): New macro.
1801         * libjava/include/s390-signal.h: Define extended ucontext
1802         structure containing the upper halfs of the 64 bit registers.
1803
1804 2010-04-13  Simon Baldwin  <simonb@google.com>
1805
1806         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
1807
1808 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
1809
1810         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
1811         rvalue on the RHS if the LHS is of a non-renamable type.
1812         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
1813
1814 2010-04-13  Matthias Klose  <doko@ubuntu.com>
1815
1816         * gcc.c (cc1_options): Handle -iplugindir before processing
1817         the cc1 spec. Only add -iplugindir once.
1818         (cpp_unique_options): Add -iplugindir option if -fplugin* options
1819         found.
1820         * common.opt (iplugindir): Remove `Separate' property, initialize.
1821         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
1822         option.
1823         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
1824         (distclean): Remove plugin dir.
1825         * doc/invoke.texi: Document -iplugindir.
1826
1827 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
1828
1829         * doc/plugins.texi (Loading Plugins): Document short
1830         -fplugin=foo option.
1831         (Plugin API): Mention default_plugin_dir_name function.
1832
1833         * gcc.c (find_file_spec_function): Add new declaration.
1834         (static_spec_func): Use it for "find-file".
1835         (find_file_spec_function): Add new function.
1836         (cc1_options): Add -iplugindir option if -fplugin* options found.
1837
1838         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
1839
1840         * plugin.c (add_new_plugin): Updated comment, and handle short
1841         plugin name.
1842         (default_plugin_dir_name): Added new function.
1843
1844         * common.opt (iplugindir): New option to set the plugin directory.
1845
1846 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
1847
1848         * config/i386/i386.md (any_rotate): New code iterator.
1849         (rotate_insn): New code attribute.
1850         (rotate): Ditto.
1851         (SWIM124): New mode iterator.
1852         (<rotate_insn>ti3): New expander.
1853         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
1854         any_rotate code iterator.
1855         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
1856         using any_rotate code iterator and SWIM124 mode iterator.
1857         (ix86_rotlti3): New insn_and_split pattern.
1858         (ix86_rotrti3): Ditto.
1859         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
1860         ix86_rotl{di,ti}3 patterns.
1861         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
1862         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
1863         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
1864         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
1865         code iterator and SWI mode iterator.
1866         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
1867         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
1868         code iterator.
1869         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
1870         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
1871         (bswap rotatert splitter): Add splitter.
1872         (bswap splitter): Macroize splitter using any_rotate code iterator.
1873         Add insn predicate to split only for TARGET_USE_XCHGB or when
1874         optimizing function for size.
1875
1876 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
1877
1878         * config/pa/pa.c (emit_move_sequence): Remove use of
1879         deleted variable flag_argument_noalias.
1880
1881 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1882
1883         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
1884         configurations.
1885         Add to unsupported targets list.
1886         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
1887         sparc*-sun-solaris2.[567]* from target lists.
1888         * configure: Regenerate.
1889         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
1890         removal.
1891         Remove Solaris 7 patch references.
1892         (Specific, sparc-sun-solaris2.7): Removed.
1893         (sparc-sun-solaris2*): Update Solaris 7 example.
1894         (sparc64-*-solaris2*): Likewise.
1895
1896 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1897
1898         * config.build (alpha*-dec-osf4*): Remove.
1899         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
1900         of obsolete configurations.
1901         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
1902         support.
1903         * config/alpha/t-osf4: Renamed to ...
1904         * config/alpha/t-osf5: ... this.
1905         * config/alpha/osf.h: Renamed to ...
1906         * config/alpha/osf5.h: ... this.
1907         Merged old osf5.h contents.
1908         Update comments.
1909         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
1910         (EXTRA_SPECS): Removed.
1911         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
1912         reflect removal of Tru64 UNIX V4.0/V5.0 support.
1913         Document that.
1914
1915 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1916
1917         * doc/contrib.texi (Contributors, Rainer Orth): Update.
1918
1919 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
1920
1921         PR/43702
1922         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
1923         __thiscall convention.
1924
1925 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
1926
1927         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
1928         orig_base.
1929         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
1930
1931 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
1932
1933         * function.c (assign_parms_initialize_all): Add unused attribute
1934         to fntype.
1935
1936 2010-04-12  Richard Guenther  <rguenther@suse.de>
1937
1938         * gsstruct.def (GSS_CALL): New.
1939         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
1940         * gimple.h: Include tree-ssa-alias.h.
1941         (struct gimple_statement_call): New.
1942         (union gimple_statement_struct_d): Add gimple_call member.
1943         (gimple_call_reset_alias_info): Declare.
1944         (gimple_call_use_set): New function.
1945         (gimple_call_clobber_set): Likewise.
1946         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
1947         * gimple.c (gimple_call_reset_alias_info): New function.
1948         (gimple_build_call_1): Call it.
1949         * lto-streamer-in.c (input_gimple_stmt): Likewise.
1950         * tree-inline.c (remap_gimple_stmt): Likewise.
1951         (expand_call_inline): Remove callused handling.
1952         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
1953         * tree-dfa.c (dump_variable): Likewise.
1954         * tree-parloops.c (parallelize_loops): Likewise.
1955         * tree-ssa.c (init_tree_ssa): Likewise.
1956         (delete_tree_ssa): Likewise.
1957         * tree-flow-inline.h (is_call_used): Remove.
1958         * tree-flow.h (struct gimple_df): Remove callused member.
1959         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
1960         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
1961         (ref_maybe_used_by_call_p_1): Simplify.
1962         (call_may_clobber_ref_p_1): Likewise.
1963         * tree-ssa-structalias.c (compute_points_to_sets): Set
1964         the call stmt used and clobbered sets.
1965         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
1966         (find_tail_calls): Verify the tail call.
1967
1968 2010-04-12  Richard Guenther  <rguenther@suse.de>
1969
1970         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
1971         single-iteration always-inline inlining.
1972         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
1973         (cgraph_decide_inlining): Do not handle always-inline specially.
1974         (try_inline): Remove always-inline cycle detection special case.
1975         Do not recurse on always-inlines.
1976         (cgraph_early_inlining): Do not iterate if not optimizing.
1977         (cgraph_gate_early_inlining): remove.
1978         (pass_early_inline): Run unconditionally.
1979         (gate_cgraph_decide_inlining): New function.
1980         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
1981         not inlining or optimizing.
1982         (cgraph_decide_inlining_of_small_functions): Also consider
1983         always-inline functions.
1984         (cgraph_default_inline_p): Return true for nodes which should
1985         disregard inline limits.
1986         (estimate_function_body_sizes): Assume zero size and time for
1987         nodes which are marked as disregarding inline limits.
1988         (cgraph_decide_recursive_inlining): Do not perform recursive
1989         inlining on always-inline nodes.
1990
1991 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
1992
1993         PR bootstrap/43699
1994         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
1995         for exprs satisfying handled_component_p.
1996
1997 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
1998
1999         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
2000         non-constant aggregate elements.
2001
2002         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
2003         is a real initialization.
2004
2005 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
2006
2007         PR c/36774
2008         * c-decl.c (start_function): Move forward check for nested function.
2009
2010 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2011
2012         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
2013         * config/sh/sh.c: Include reload.h.
2014         (sh_legitimize_reload_address): New.
2015         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
2016         sh_legitimize_reload_address.
2017
2018 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2019
2020         * config/sh/sh.md (*movqi_pop): New insn pattern.
2021         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
2022
2023 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2024
2025         * config/i386/i386.md (any_shiftrt): New code iterator.
2026         (shiftrt_insn): New code attribute.
2027         (shiftrt): Ditto.
2028         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
2029         using any_shiftrt code iterator.
2030         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
2031         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
2032         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
2033         pattern from corresponding peephole2 patterns.
2034         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
2035         using any_shiftrt code iterator.
2036         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
2037         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
2038         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
2039         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
2040         *{ashr,lshr}<mode>3_cmp_zext.
2041         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
2042
2043 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2044
2045         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
2046         scratch register.
2047         (*lshr<mode>3_cconly): Ditto.
2048
2049 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2050
2051         * config/i386/i386.md (lshr<mode>3): Macroize expander from
2052         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2053         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2054         pattern from *lshr{di,ti}3_1 and corresponding splitters using
2055         DWI mode iterator.
2056         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2057         from corresponding peephole2 patterns.
2058         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
2059         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
2060         and *lshrdi3_1_rex64 using SWI mode iterator.
2061         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
2062         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
2063         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
2064         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
2065         and *lshrdi3_cmp_rex64 using SWI mode iterator.
2066         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
2067         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
2068         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
2069         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
2070         SWI mode iterator.
2071
2072 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
2073
2074         * config/i386/i386.md (ashr<mode>3): Macroize expander from
2075         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2076         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2077         pattern from *ashr{di,ti}3_1 and corresponding splitters using
2078         DWI mode iterator.
2079         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2080         from corresponding peephole2 patterns.
2081         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
2082         (ashrsi3_cvt): Rename from ashrsi3_31.
2083         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
2084         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
2085         and x86_64_shift_adj_3 using SWI48 mode iterator.
2086         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
2087         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
2088         and *ashrdi3_1_rex64 using SWI mode iterator.
2089         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
2090         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
2091         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
2092         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
2093         and *ashrdi3_cmp_rex64 using SWI mode iterator.
2094         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
2095         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
2096         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
2097         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
2098         SWI mode iterator.
2099         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
2100         * config/i386/i386.c (ix86_split_ashr): Update for renamed
2101         x86_shift<mode>_adj_3 expanders.
2102
2103 2010-04-10  Wei Guozhi  <carrot@google.com>
2104
2105         PR target/42601
2106         * config/arm/arm.c (arm_pic_static_addr): New function.
2107         (legitimize_pic_address): Call arm_pic_static_addr when it detects
2108         a static symbol.
2109         (arm_output_addr_const_extra): Output expression for new pattern.
2110         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
2111
2112 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
2113
2114         * ira-costs.c (record_reg_classes): Ignore alternatives that are
2115         not enabled.
2116
2117         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
2118         * web.c: Include "insn-config.h" and "recog.h".
2119         (union_match_dups): New function.
2120         (web_main): Call it.
2121         (union_defs): Don't try to recognize match_dups.
2122
2123         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
2124         if doing so would replace the entire pattern.
2125
2126 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
2127
2128         PR target/43707
2129         PR target/43709
2130         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
2131         and splitter pattern.  Change splitter operand 1 predicate to
2132         nonmemory_operand.
2133
2134 2010-04-09  Martin Jambor  <mjambor@suse.cz>
2135
2136         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
2137         lattices are addresses of CONST_DECLs with the same initial value.
2138         (ipcp_print_all_lattices): Print values of CONST_DECLs.
2139         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
2140
2141 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
2142             Bernd Schmidt  <bernds@codesourcery.com>
2143
2144         * loop-invariant.c (replace_uses): New static function.
2145         (move_invariant_reg): Use it to ensure we can replace the uses.
2146
2147 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
2148
2149         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
2150         function template.
2151         (picochip_override_options): Enable section anchors only above -O1.
2152         (picochip_reorg): Fixed a couple of build warnings.
2153
2154 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2155
2156         * configure.ac (plugin -rdynamic test): Log result.
2157         * configure: Regenerate.
2158         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
2159         (RDYNAMIC_SPEC): Define.
2160         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
2161
2162 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2163
2164         * configure.ac: Determine Sun ld version numbers.
2165         (comdat_group): Restrict GNU ld version checks to gld.
2166         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
2167         (enable_comdat): Support --enable-comdat.
2168         * configure: Regenerate.
2169         * doc/install.texi (Configuration): Document --enable-comdat.
2170
2171 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2172
2173         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
2174         * config/sol2-gld.h: ... here.
2175         * config.gcc (sparc*-*-solaris2*): Reflect this.
2176         (i[34567]86-*-solaris2*): Use it.
2177
2178 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
2179
2180         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
2181         setup_clocks_p.
2182         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
2183
2184 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2185
2186         PR 42965
2187         * diagnostic.c (diagnostic_initialize): Initialize
2188         some_warnings_are_errors.
2189         (diagnostic_finish): New.
2190         (diagnostic_action_after_output): Call it before exiting.
2191         (diagnostic_report_diagnostic): Do not print message here. Set
2192         some_warnings_are_errors.
2193         * diagnostic.h (diagnostic_context): Delete
2194         issue_warnings_are_errors_message. Add some_warnings_are_errors.
2195         (diagnostic_finish): Declare.
2196         * toplev.c (toplev_main): Call it before exit.
2197
2198 2010-04-09  Jason Merrill  <jason@redhat.com>
2199
2200         PR c++/42623
2201         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
2202         for incomplete type.
2203
2204         PR c++/41788
2205         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
2206         based on a warning flag.
2207
2208 2010-04-09  Richard Guenther  <rguenther@suse.de>
2209
2210         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
2211
2212 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
2213
2214         PR bootstrap/43684
2215         * varasm.c (default_assemble_visibility): Wrap vars that are
2216         set, but unused, by targets without GAS.
2217         * config/rs6000/rs6000.c: (paired_emit_vector_compare):
2218         Remove set, but unused, vars.
2219         (rs6000_legitimize_tls_address): Likewise.
2220         (altivec_expand_dst_builtin): Likewise.
2221         * config/darwin.c (machopic_classify_symbol): Likewise.
2222         (machopic_indirection_name): Likewise.
2223
2224 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
2225
2226         * config/i386/i386.md (DWI): New mode iterator.
2227         (S): New mode attribute.
2228         (shift_operand): Ditto.
2229         (shift_immediate_operand): Ditto.
2230         (ashl_input_operand): Ditto.
2231         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
2232         using SDWIM mode iterator.
2233         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2234         pattern from *ashl{di,ti}3_1 and corresponding splitters using
2235         DWI mode iterator.
2236         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
2237         from corresponding peephole2 patterns.
2238         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
2239         and x86_64_shift_adj_1 using SWI48 mode iterator.
2240         (x86_shift<mode>_adj_2): Ditto.
2241         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
2242         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
2243         using SWI48 mode iterator.
2244         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
2245         *ashldi3_cmp_rex64 using SWI mode iterator.
2246         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
2247         *ashldi3_cconly_rex64 using SWI mode iterator.
2248         * config/i386/i386.c (ix86_split_ashl): Update for renamed
2249         x86_shift<mode>_adj_{1,2}.
2250         (ix86_split_ashr): Ditto.
2251         (ix86_split_lshr): Ditto.
2252
2253 2010-04-09  Richard Guenther  <rguenther@suse.de>
2254
2255         * target.h (builtin_conversion): Pass in input and output types.
2256         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
2257         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
2258         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
2259         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
2260
2261         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
2262         Handle AVX modes.
2263         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
2264
2265 2010-04-09  Richard Guenther  <rguenther@suse.de>
2266
2267         PR target/43152
2268         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
2269
2270 2010-04-09  Richard Guenther  <rguenther@suse.de>
2271
2272         * tree-vectorizer.h (struct _stmt_vec_info): Document
2273         that vectype is the type of the LHS.
2274         (supportable_widening_operation, supportable_narrowing_operation):
2275         Get both input and output vector types as arguments.
2276         (vect_is_simple_use_1): Declare.
2277         (get_same_sized_vectype): Likewise.
2278         * tree-vect-loop.c (vect_determine_vectorization_factor):
2279         Set STMT_VINFO_VECTYPE to the vector type of the def.
2280         (vectorizable_reduction): Adjust.
2281         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
2282         Adjust.  Specify the output vector type.
2283         (vect_pattern_recog_1): Adjust.
2284         * tree-vect-stmts.c (get_same_sized_vectype): New function.
2285         (vectorizable_call): Adjust.
2286         (vectorizable_conversion): Likewise.
2287         (vectorizable_operation): Likewise.
2288         (vectorizable_type_demotion): Likewise.
2289         (vectorizable_type_promotion): Likewise.
2290         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
2291         the def.
2292         (vect_is_simple_use_1): New function.
2293         (supportable_widening_operation): Get both input and output
2294         vector types.
2295         (supportable_narrowing_operation): Likewise.
2296         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
2297
2298 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
2299
2300         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
2301         __thiscall and _thiscall as predefined macros.
2302         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
2303         thiscall attribute handling.
2304         (ix86_comp_type_attributes): Likewise.
2305         (ix86_function_regparm): Likewise.
2306         (ix86_return_pops_args): Likewise.
2307         (init_cumulative_args): Likewise.
2308         (find_drap_reg): Likewise.
2309         (ix86_static_chain): Likewise.
2310         (x86_this_parameter): Likewise.
2311         (x86_output_mi_thunk): Likewise.
2312         (ix86_attribute_table): Add description for thiscall attribute.
2313         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
2314         * doc/extend.texi: Add documentation for thiscall.
2315
2316 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2317
2318         PR c++/28584
2319         * c.opt (Wint-to-pointer-cast): Available in C++.
2320         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
2321
2322 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2323
2324         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
2325         * calls.c (expand_call): Pass the function type to aggregate_value_p.
2326         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
2327         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
2328         function type instead.  Reorder and simplify checks.
2329
2330         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
2331
2332 2010-04-08  Jing Yu  <jingyu@google.com>
2333             Zdenek Dvorak  <ook@ucw.cz>
2334
2335         PR tree-optimization/42720
2336         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
2337         loop unswitch conditions here from ...
2338         (tree_unswitch_single_loop): ... here.
2339
2340 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2341
2342         * tree-if-conv.c: Fix comments and simplify logic.
2343
2344 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2345
2346         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
2347         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
2348         (main_tree_if_conversion): Update call to tree_if_conversion.
2349
2350 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2351
2352         PR 42485
2353         * doc/invoke.texi (-b,-V): Delete.
2354         * doc/tm.texi: Do not mention -b.
2355         * gcc.c (display_help): Delete -b and -V.
2356         (process_command): Delete -b and -V.
2357         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
2358
2359 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
2360             Wolfgang Gellerich  <gellerich@de.ibm.com>
2361
2362         Implement target hook for loop unrolling
2363         * target.h (loop_unroll_adjust): Add a new target hook function.
2364         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
2365         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
2366         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
2367         (s390_loop_unroll_adjust): Implement the new target hook for s390.
2368         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
2369         target hook.
2370         (decide_unroll_stupid): Likewise.
2371
2372 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2373
2374         PR target/43643
2375         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
2376
2377 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2378
2379         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
2380         (Specific, *-*-solaris2*): Likewise.
2381         Don't prefer Sun as over GNU as.
2382
2383 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
2384
2385         * config/s390/s390.c (override_options): Adjust the z10
2386           defaults for max-unroll-times, max-completely-peeled-insns
2387           and max-completely-peel-times.
2388
2389 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2390
2391         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
2392         instructions for z10.
2393         (s390_expand_setmem): Likewise.
2394         (s390_expand_cmpmem): Likewise.
2395
2396 2010-04-08  Richard Guenther  <rguenther@suse.de>
2397
2398         PR tree-optimization/43679
2399         * tree-ssa-pre.c (eliminate): Only propagate copies.
2400
2401 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
2402
2403         PR bootstrap/43681
2404         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
2405         set but not used variable warning.
2406
2407 2010-04-08  Wei Guozhi  <carrot@google.com>
2408
2409         PR target/41653
2410         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
2411         (arm_size_rtx_costs): Call the new function when optimized for size.
2412
2413 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
2414
2415         PR debug/43670
2416         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
2417         op0 is not a MEM, just return NULL instead of assertion
2418         failure.
2419         (discover_nonconstant_array_refs): Don't walk debug stmts.
2420
2421 2010-04-08  Doug Kwan  <dougkwan@google.com>
2422
2423         * configure.ac: Recognize gold and do not use its version number
2424         to test ld features.
2425         * configure: Regenerate.
2426
2427 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2428
2429         PR middle-end/40815
2430         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
2431         (negate_value): Move code to push elements to broken_up_substracts ...
2432         (eliminate_plus_minus_pair): ... here.  Push operands that have no
2433         negative pair to plus_negates.
2434         (repropagate_negates, init_reassoc, fini_reassoc): Update.
2435
2436 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2437
2438         * doc/install.texi (Configuration): Move description of
2439         --enable-lto, --with-libelf*, --enable-gold from Java section to
2440         general section.
2441
2442         * doc/generic.texi (Working with declarations)
2443         (Function Properties, C and C++ Trees): Fix typos.
2444         * doc/sourcebuild.texi (Top Level): Likewise.
2445
2446 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
2447
2448         PR c/18624
2449         * tree.h (DECL_READ_P): Define.
2450         (struct tree_decl_common): Add decl_read_flag.
2451         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
2452         a set but not used warning.
2453         (merge_decls): Merge DECL_READ_P flag.
2454         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
2455         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
2456         * c-common.c (handle_used_attribute, handle_unused_attribute):
2457         Likewise.
2458         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
2459         New prototypes.
2460         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
2461         New functions.
2462         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
2463         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
2464         c_parser_binary_expression, c_parser_cast_expression,
2465         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
2466         Call default_function_array_read_conversion instead of
2467         default_function_array_conversion where needed.
2468         (c_parser_unary_expression, c_parser_conditional_expression,
2469         c_parser_postfix_expression_after_primary, c_parser_initelt):
2470         Likewise.  Call mark_exp_read where needed.
2471         (c_parser_statement_after_labels, c_parser_asm_operands,
2472         c_parser_typeof_specifier, c_parser_sizeof_expression,
2473         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
2474         where needed.
2475         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
2476         New.
2477         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
2478         (warn_unused_but_set_parameter): Default to warn_unused
2479         && extra_warnings.
2480         * doc/invoke.texi: Document -Wunused-but-set-variable and
2481         -Wunused-but-set-parameter.
2482
2483         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
2484         used count variable.
2485         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
2486         when operandN variables aren't used in the body of the expander
2487         or splitter.
2488         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
2489         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
2490         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
2491         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
2492         FOR_EACH_IMM_USE_ON_STMT): Likewise.
2493         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
2494         * tree.c (PROCESS_ARG): Likewise.
2495
2496 2010-04-07  Simon Baldwin  <simonb@google.com>
2497
2498         * diagnostic.h (diagnostic_override_option_index): New macro to
2499         set a diagnostic's option_index.
2500         * c-tree.h (c_cpp_error): Add warning reason argument.
2501         * opts.c (_warning_as_error_callback): New.
2502         (register_warning_as_error_callback): Store callback for
2503         warnings enabled via enable_warning_as_error.
2504         (enable_warning_as_error): Call callback, minor code tidy.
2505         * opts.h (register_warning_as_error_callback): Declare.
2506         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
2507         response to -Werror=.
2508         (c_common_init_options): Register warning_as_error_callback in opts.c.
2509         * common.opt: Add -Wno-cpp option.
2510         * c-common.c (struct reason_option_codes_t): Map cpp warning
2511         reason codes to gcc option indexes.
2512         * (c_option_controlling_cpp_error): New function, lookup the gcc
2513         option index for a cpp warning reason code.
2514         * (c_cpp_error): Add warning reason argument, call
2515         c_option_controlling_cpp_error for diagnostic_override_option_index.
2516         * doc/invoke.texi: Document -Wno-cpp.
2517
2518 2010-04-07  Richard Guenther  <rguenther@suse.de>
2519
2520         * ipa-reference.c (mark_load): Use get_base_address.
2521         (mark_store): Likewise.
2522
2523         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
2524         inserting GIMPLE_NOPs into the IL.
2525         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2526         Explicitly strip handled components and indirect references.
2527
2528         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
2529         folding address expressions.
2530         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
2531         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
2532         operand_equal_p to compare decls.
2533         (ptr_deref_may_alias_decl_p): Likewise.
2534         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
2535         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2536         Handle reversed comparison ops.
2537         * tree-sra.c (asm_visit_addr): Use get_base_address.
2538         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
2539         * ipa-reference.c (mark_address): Use get_base_address.
2540
2541 2010-04-07  Richard Guenther  <rguenther@suse.de>
2542
2543         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
2544         Propagate constants everywhere.
2545
2546 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
2547
2548         PR debug/43516
2549         * tree.c (MAX_INT_CACHED_PREC): Define.
2550         (nonstandard_integer_type_cache): New array.
2551         (build_nonstandard_integer_type): Cache results for precision
2552         <= MAX_INT_CACHED_PREC.
2553
2554 2010-04-07  Richard Guenther  <rguenther@suse.de>
2555
2556         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
2557         -fargument-noalias-global, -fargument-noalias-anything): Remove.
2558         * common.opt: Likewise.
2559         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
2560         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
2561         (nonoverlapping_memrefs_p): Likewise.
2562         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2563         * opts.c (common_handle_option): Handle OPT_fargument_alias,
2564         OPT_fargument_noalias, OPT_fargument_noalias_anything and
2565         OPT_fargument_noalias_global for backward compatibility.
2566
2567 2010-04-07  Richard Guenther  <rguenther@suse.de>
2568
2569         PR tree-optimization/43270
2570         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
2571         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
2572         * tree-ssa-pre.c (phi_translate_1): Adjust.
2573         (fully_constant_expression): Split out vn_reference handling to ...
2574         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
2575         Fold reads from constant strings.
2576         (vn_reference_lookup): Handle fully constant references.
2577         (vn_reference_lookup_pieces): Likewise.
2578         * Makefile.in (expmed.o-warn): Add -Wno-error.
2579
2580 2010-04-07  Martin Jambor  <mjambor@suse.cz>
2581
2582         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
2583
2584 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
2585
2586         PR driver/41594
2587         * gcc.c: Add -static-libstdc++ to list of recognized options.
2588
2589 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2590
2591         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
2592
2593 2010-04-07  Richard Guenther  <rguenther@suse.de>
2594
2595         PR middle-end/42617
2596         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
2597         bases build simple mem attributes to retain points-to information.
2598
2599 2010-04-07  Richard Guenther  <rguenther@suse.de>
2600
2601         PR middle-end/42617
2602         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
2603         preserve points-to related information.
2604
2605 2010-04-07  Richard Guenther  <rguenther@suse.de>
2606
2607         PR middle-end/42617
2608         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
2609         discard plain indirect references.
2610         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
2611         * tree.c (tree_nop_conversion): Likewise.
2612
2613 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
2614
2615         PR debug/43628
2616         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
2617
2618 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
2619
2620         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
2621         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
2622
2623 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2624
2625         * tree-if-conv.c: Fix indentation and comments.
2626
2627 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2628
2629         * tree-if-conv.c: Sort static functions in topological order.
2630
2631 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2632
2633         * tree-if-conv.c: Fix indentation and comments.
2634
2635 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2636
2637         PR middle-end/43519
2638         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
2639         lang_hooks.types.type_for_size instead of
2640         build_nonstandard_integer_type.
2641         When converting an unsigned type to signed, double its precision.
2642         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
2643         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
2644         (graphite_create_new_loop_guard): When ub + 1 wraps around,
2645         use lb <= ub.
2646
2647 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2648
2649         PR middle-end/43519
2650         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
2651         POINTER_PLUS_EXPR for pointer types.
2652
2653 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2654
2655         PR middle-end/43519
2656         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
2657         * graphite-clast-to-gimple.c: Include langhooks.h.
2658         (max_signed_precision_type): New.
2659         (max_precision_type): Takes two types as arguments.
2660         (precision_for_value): New.
2661         (precision_for_interval): New.
2662         (gcc_type_for_interval): New.
2663         (gcc_type_for_value): New.
2664         (gcc_type_for_clast_term): New.
2665         (gcc_type_for_clast_red): New.
2666         (gcc_type_for_clast_bin): New.
2667         (gcc_type_for_clast_expr): Split up into several functions.
2668         (gcc_type_for_clast_eq): Rewritten.
2669         (compute_bounds_for_level): New.
2670         (compute_type_for_level_1): New.
2671         (compute_type_for_level): New.
2672         (gcc_type_for_cloog_iv): Removed.
2673         (gcc_type_for_iv_of_clast_loop): Rewritten.
2674         (graphite_create_new_loop): Compute the lower and upper bound types
2675         with gcc_type_for_clast_expr.
2676         (graphite_create_new_loop_guard): Same.
2677         (find_cloog_iv_in_expr): Removed.
2678         (compute_cloog_iv_types_1): Removed.
2679         (compute_cloog_iv_types): Removed.
2680         (gloog): Do not call compute_cloog_iv_types.
2681         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
2682         GBB_CLOOG_IV_TYPES.
2683         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
2684         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
2685         (GBB_CLOOG_IV_TYPES): Removed.
2686
2687 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2688
2689         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
2690         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
2691         (detect_commutative_reduction): Same.
2692
2693 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2694
2695         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
2696         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
2697         argument.
2698         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
2699         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
2700         (rewrite_commutative_reductions_out_of_ssa): Same.
2701         * passes.c (execute_function_todo): Call verify_ssa for every pass
2702         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
2703         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
2704         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
2705         with an extra argument.
2706         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
2707         verify_ssa only when the extra argument is true.
2708         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
2709         with an extra argument.
2710         (tree_transform_and_unroll_loop): Same.
2711
2712 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2713
2714         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
2715         for all the passes of the LNO having LOOP_CLOSED_SSA.
2716         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
2717         * tree-loop-distribution.c (pass_loop_distribution): Same.
2718         * tree-pass.h (TODO_verify_loops): Removed.
2719         * tree-ssa-loop.c (pass_tree_loop_init): Same.
2720         (pass_lim): Same.
2721         (pass_tree_unswitch): Same.
2722         (pass_predcom): Same.
2723         (pass_vectorize): Same.
2724         (pass_linear_transform): Same.
2725         (pass_graphite_transforms): Same.
2726         (pass_iv_canon): Same.
2727         (pass_complete_unroll): Same.
2728         (pass_complete_unrolli): Same.
2729         (pass_parallelize_loops): Same.
2730         (pass_loop_prefetch): Same.
2731         (pass_iv_optimize): Same.
2732
2733 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
2734
2735         PR middle-end/32824
2736         * passes.c (init_optimization_passes): Move pass_lim before
2737         pass_copy_prop and pass_dce_loop.
2738
2739 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
2740
2741         PR target/43667
2742         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
2743         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
2744         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
2745         MULTI_* defines for 4 argument vpermil2p* builtins.
2746
2747 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
2748
2749         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
2750         * config/i386/i386.c (x86_maybe_negate_const_int): New.
2751         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
2752         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
2753         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
2754         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
2755         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
2756         Use x86_maybe_negate_const_int to output insn mnemonic.
2757         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
2758         check from instruction predicate.  Update comments.
2759         * config/i386/sync.md (sync_add<mode>): Use
2760         x86_maybe_negate_const_int to output insn mnemonic.
2761
2762 2010-04-06  Jan Hubicka  <jh@suse.cz>
2763
2764         PR tree-optimization/42906
2765         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
2766         IGNORE_SELF argument.  Set visited_control_parents for fully
2767         processed BBs.
2768         (find_obviously_necessary_stmts): Update call of
2769         mark_control_dependent_edges_necessary.
2770         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
2771
2772 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
2773
2774         * config/i386/i386.md: Remove comment about 'e' and 'E'
2775         operand modifier.
2776
2777 2010-04-06  Richard Guenther  <rguenther@suse.de>
2778
2779         PR tree-optimization/43627
2780         * tree-vrp.c (extract_range_from_unary_expr): Widenings
2781         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
2782         not varying.
2783
2784 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
2785
2786         * BASE-VER: Change to 4.6.0.
2787
2788         PR target/43638
2789         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
2790         handling.
2791
2792 2010-04-06  Richard Guenther  <rguenther@suse.de>
2793
2794         PR middle-end/43661
2795         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
2796
2797 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2798
2799         * doc/invoke.texi (Optimize Options): Document that LTO
2800         won't remove object access purely due to incompatible
2801         declarations.
2802
2803 2010-04-04  Matthias Klose  <doko@ubuntu.com>
2804
2805         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
2806         Initialize variable.
2807
2808 2010-04-03  Richard Guenther  <rguenther@suse.de>
2809
2810         PR middle-end/42509
2811         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
2812         require a non-NULL MEM_OFFSET.
2813
2814 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
2815
2816         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
2817         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
2818         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
2819         config/alpha/predicates.md, config/arm/arm.md,
2820         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
2821         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
2822         config/darwin9.h, config/darwin.c, config/darwin.h,
2823         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
2824         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
2825         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
2826         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
2827         config/mips/mips.md, config/mn10300/mn10300.c,
2828         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
2829         config/rs6000/aix.h, config/rs6000/dfp.md,
2830         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
2831         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
2832         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
2833         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
2834         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
2835         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
2836         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
2837         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
2838         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
2839         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
2840         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
2841         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
2842         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
2843         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
2844         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
2845         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
2846         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
2847         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
2848         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
2849         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
2850         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
2851         opt-functions.awk, opth-gen.awk, params.def, passes.c,
2852         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
2853         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
2854         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
2855         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
2856         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
2857         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
2858         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
2859         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
2860         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
2861         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
2862         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2863         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
2864         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
2865         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
2866
2867 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2868
2869         PR other/43620
2870         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
2871         * aclocal.m4: Regenerate.
2872
2873 2010-04-02  Richard Guenther  <rguenther@suse.de>
2874
2875         PR tree-optimization/43629
2876         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
2877         if we have seen a constant value.
2878
2879 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
2880
2881         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
2882
2883 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
2884
2885         PR target/43469
2886         * arm.c (legitimize_tls_address): Adjust call to
2887         gen_tls_load_dot_plus_four.
2888         (arm_note_pic_base): New function.
2889         (arm_cannot_copy_insn_p): Use it.
2890         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
2891         constraint.
2892
2893 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2894
2895         PR bootstrap/43531
2896
2897         Revert:
2898         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2899
2900         * Makefile.in ($(out_object_file)): Depend on
2901         gt-$(basename $(notdir $(out_file))).h.
2902
2903 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
2904
2905         * config.gcc (lm32-*-rtems*): Add t-lm32.
2906
2907 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
2908
2909         * config.gcc: Add lm32-*-rtems*.
2910         * config/lm32/rtems.h: New file.
2911
2912 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
2913
2914         PR target/42609
2915         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
2916
2917 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
2918
2919         * dwarf2out.c (output_compilation_unit_header): For
2920         -gdwarf-4 use version 4 instead of version 3.
2921         (output_line_info): For version 4 and above emit additional
2922         maximum ops per insn header field.
2923         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
2924
2925         * dwarf2out.c (is_c_family, is_java): Remove.
2926         (lower_bound_default): New function.
2927         (add_bound_info, gen_descr_array_type_die): Use it.
2928
2929 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
2930
2931         PR debug/43325
2932         * dwarf2out.c (gen_variable_die): Allow debug info for variable
2933         re-declaration when it happens in a function.
2934
2935 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
2936
2937         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
2938         (cgraph_remove_function_insertion_hook): Same.
2939         (cgraph_call_function_insertion_hooks): Same.
2940
2941 2010-04-01  Richard Guenther  <rguenther@suse.de>
2942
2943         PR middle-end/43614
2944         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
2945         and TREE_THIS_VOLATILE.
2946         (copy_ref_info): Likewise.
2947         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
2948         * tree.c (build6_stat): Ignore side-effects of all but arg5
2949         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
2950         TARGET_MEM_REF.
2951
2952 2010-04-01  Richard Guenther  <rguenther@suse.de>
2953
2954         PR tree-optimization/43607
2955         * ipa-type-escape.c (check_call): Do not access non-existing
2956         arguments.
2957
2958 2010-04-01  Richard Guenther  <rguenther@suse.de>
2959
2960         PR middle-end/43602
2961         Revert
2962         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
2963                     Jack Howarth <howarth@bromo.med.uc.edu>
2964
2965         * tree-profile.c (tree_init_ic_make_global_vars): Make static
2966         variables TLS.
2967
2968 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2969
2970         * doc/install.texi (Prerequisites): Document libelf usability on
2971         IRIX 5/6 and Solaris 2.
2972         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
2973         Update GNU as, GNU ld requirements.
2974         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
2975         Document Sun Studio compiler download.
2976         Update and simplify as, ld recommendations.
2977         (Specific, *-*-solaris2.7): Note obsoletion, removal.
2978
2979 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2980
2981         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
2982         with_tune_32 to pentium4.
2983
2984 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
2985
2986         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
2987
2988 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2989
2990         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
2991         obsoletion, removal.
2992         Update IDO URL.
2993         Document GNU as requirement.
2994         Update configure requirements.
2995         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
2996         Recomment IRIX 6.5.18+.
2997         Document IDF/IDL requirement.
2998         Document GNU as requirement.
2999         Document GNU ld bootstrap failure.
3000         Remove freeware.sgi.com reference.
3001
3002 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3003
3004         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
3005         UNIX V4.0, V5.0 obsoletion, removal.
3006         Remove --with-gc=simple reference.
3007         Update VM requirements during bootstrap.
3008         Remove -oldas bootstrap description.
3009         Update binutils reference.
3010         Remove comparison failure note.
3011
3012 2010-03-31  Richard Guenther  <rguenther@suse.de>
3013             Zdenek Dvorak  <ook@ucw.cz>
3014             Sebastian Pop  <sebastian.pop@amd.com>
3015
3016         PR middle-end/43464
3017         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
3018         with multiple arguments.
3019         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
3020
3021 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3022
3023         * graphite-dependences.c (print_pddr): Call print_pdr with an
3024         extra argument.
3025         * graphite-poly.c (debug_pdr): Add an extra argument for the
3026         verbosity level.
3027         (print_pdr): Same.
3028         (print_pbb_domain): Same.
3029         (print_pbb): Same.
3030         (print_scop_context): Same.
3031         (print_scop): Same.
3032         (print_cloog): Same.
3033         (debug_pbb_domain): Same.
3034         (debug_pbb): Same.
3035         (print_pdrs): Same.
3036         (debug_pdrs): Same.
3037         (debug_scop_context): Same.
3038         (debug_scop): Same.
3039         (debug_cloog): Same.
3040         (print_scop_params): Same.
3041         (debug_scop_params): Same.
3042         (print_iteration_domain): Same.
3043         (print_iteration_domains): Same.
3044         (debug_iteration_domain): Same.
3045         (debug_iteration_domains): Same.
3046         (print_scattering_function): Same.
3047         (print_scattering_functions): Same.
3048         (debug_scattering_function): Same.
3049         (debug_scattering_functions): Same.
3050         * graphite-poly.h (debug_pdr): Update declaration.
3051         (print_pdr): Same.
3052         (print_pbb_domain): Same.
3053         (print_pbb): Same.
3054         (print_scop_context): Same.
3055         (print_scop): Same.
3056         (print_cloog): Same.
3057         (debug_pbb_domain): Same.
3058         (debug_pbb): Same.
3059         (print_pdrs): Same.
3060         (debug_pdrs): Same.
3061         (debug_scop_context): Same.
3062         (debug_scop): Same.
3063         (debug_cloog): Same.
3064         (print_scop_params): Same.
3065         (debug_scop_params): Same.
3066         (print_iteration_domain): Same.
3067         (print_iteration_domains): Same.
3068         (debug_iteration_domain): Same.
3069         (debug_iteration_domains): Same.
3070         (print_scattering_function): Same.
3071         (print_scattering_functions): Same.
3072         (debug_scattering_function): Same.
3073         (debug_scattering_functions): Same.
3074
3075 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3076
3077         * graphite-poly.c (print_scattering_function_1): New.
3078         (print_scattering_function): Call it.
3079         (print_scop_params): Remove spaces at the end of lines.
3080         (print_cloog): New.
3081         (debug_cloog): New.
3082         * graphite-poly.h (print_cloog): Declared.
3083         (debug_cloog): Declared.
3084
3085 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3086
3087         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
3088         in loop->header.
3089         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
3090         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
3091         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
3092         to switch between adding the IV bump in loop->latch or in loop->header.
3093
3094 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3095
3096         * graphite-poly.c (print_scattering_function): Pretty print following
3097         the scoplib format.
3098         (print_pdr): Same.
3099         (print_pbb_domain): Same.
3100         (dump_gbb_cases): Same.
3101         (dump_gbb_conditions): Same.
3102         (print_pdrs): Same.
3103         (print_pbb): Same.
3104         (print_scop_params): Same.
3105         (print_scop_context): Same.
3106         (print_scop): Same.
3107         (print_pbb_body): New.
3108         (lst_indent_to): New.
3109         (print_lst): Start new lines with a #.
3110         * graphite-poly.h (pbb_bb): New.
3111         (pbb_index): Use pbb_bb.
3112         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
3113         disjuncts.
3114         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
3115
3116 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
3117
3118         * dwarf2out.c (size_of_die): For -gdwarf-4 use
3119         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
3120         and 0 instead of 1 for dw_val_class_flag.
3121         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
3122         dw_val_class_range_list, dw_val_class_loc_list,
3123         dw_val_class_lineptr and dw_val_class_macptr, use
3124         DW_FORM_flag_present for dw_val_class_flag and
3125         DW_FORM_exprloc for dw_val_class_loc.
3126         (output_die): For -gdwarf-4 print dw_val_class_loc
3127         size as uleb128 instead of 1 or 2 bytes and don't print
3128         anything for dw_val_class_flag.
3129
3130         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
3131         instead of cselib_lookup following by tweaking locs->setting_insn.
3132
3133         PR bootstrap/43596
3134         * cselib.c (cselib_process_insn): Clear cselib_current_insn
3135         even before returning from label, setjmp call or volatile asm
3136         handling.
3137
3138 2010-03-31  Richard Guenther  <rguenther@suse.de>
3139
3140         PR middle-end/43600
3141         * cgraphunit.c (cgraph_output_in_order): Do not allocate
3142         temporary data on stack.
3143
3144 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3145
3146         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
3147         (PUSHSECTION_ASM_OP): Remove.
3148         (POPSECTION_ASM_OP): Remove.
3149         (PUSHSECTION_FORMAT): Remove.
3150         * config/sol2.h (PUSHSECTION_FORMAT): Define.
3151         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
3152         * config/sol2.c (solaris_output_init_fini): Use it.
3153
3154 2010-03-31  Jie Zhang  <jie@codesourcery.com>
3155
3156         PR 43574
3157         * opt-functions.awk (var_type_struct): Use signed char type
3158         for simple variables.
3159
3160 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3161
3162         * config/sol2.c: Include output.h.
3163         (solaris_assemble_visibility): New function.
3164         * config/t-sol2 (sol2.o): Add output.h dependency.
3165         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
3166         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
3167         Redefine.
3168
3169 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
3170
3171         PR target/43580
3172         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
3173         V2SImode or XFmode on PRE_DEC.
3174
3175         PR debug/43557
3176         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
3177         BLKmode.
3178
3179 2010-03-31  Jie Zhang  <jie@codesourcery.com>
3180
3181         PR 43562
3182         * reload.h (caller_save_initialized_p): Declare.
3183         * toplev.c (backend_init_target): Don't call
3184         init_caller_save but set caller_save_initialized_p to false.
3185         * caller-save.c (caller_save_initialized_p): Define.
3186         (init_caller_save): Check caller_save_initialized_p.
3187         * ira.c (ira): Call init_caller_save if flag_caller_saves.
3188
3189 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3190
3191         PR target/39048
3192         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
3193         and soft-fp/t-softfp to tmake_file.
3194         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
3195         (LIBGCC2_TF_CEXT): Define.
3196         (TF_SIZE): Define.
3197
3198 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
3199
3200         PR debug/42977
3201         * cselib.c (n_useless_values): Document handling of debug locs.
3202         (n_useless_debug_values, n_debug_values): New variables.
3203         (new_elt_loc_list): Don't add to debug values, keep count.
3204         (promote_debug_loc): New.
3205         (cselib_reset_table): Zero new variables.
3206         (entry_and_rtx_equal_p): Promote debug locs.
3207         (discard_useless_locs): Increment n_useless_debug_values for
3208         debug values.
3209         (remove_useless_values): Adjust n_useless_values and n_debug_values
3210         with n_useless_debug_values.
3211         (add_mem_for_addr): Promote debug locs.
3212         (cselib_lookup_mem): Likewise.
3213         (cselib_lookup_addr): Renamed to...
3214         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
3215         (cselib_log_lookup): ... this.  Turn into...
3216         (cselib_lookup_addr): ... new wrapper.
3217         (cselib_lookup_from_insn): New.
3218         (cselib_invalidate_regno): Increment n_useless_debug_values for
3219         debug values.
3220         (cselib_invalidate_mem): Likewise.
3221         (cselib_process_insn): Take n_deleted and n_debug_values into
3222         account to guard remove_useless_value call.
3223         (cselib_finish): Zero n_useless_debug_values.
3224         * cselib.h (cselib_lookup_from_insn): Declare.
3225         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
3226         (sched_analyze_2): Likewise.
3227
3228 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
3229
3230         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
3231         functions.
3232         (adjust_mems): Replace narrowing SUBREG of expression containing
3233         just PLUS, MINUS, MULT and ASHIFT of registers and constants
3234         with operations in the narrower mode.
3235
3236         PR debug/43593
3237         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
3238         regs_invalidated_by_call instead all call_used_reg_set registers.
3239
3240 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
3241
3242         PR middle-end/43430
3243         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
3244         pointer comparisons with types_compatible_p.
3245         * tree-vect-stmts.c (vectorizable_call): Same.
3246         (vectorizable_condition): Same.
3247
3248 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3249
3250         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
3251         stack check if the mask would be zero.
3252
3253 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
3254             Jack Howarth <howarth@bromo.med.uc.edu>
3255
3256         * tree-profile.c (tree_init_ic_make_global_vars): Make static
3257         variables TLS.
3258
3259 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
3260
3261         PR other/25232
3262         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
3263         and __unordtf2.
3264         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
3265         Include ___unordxf2 and ___unordtf2.
3266         * config/i386/libgcc-glibc.ver: Do not define inheritance from
3267         GCC_4.4.0 here.
3268
3269 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
3270
3271         * config/lm32/t-lm32: New file.
3272         * config.gcc: Use the above file when targetting lm32.
3273
3274 2010-03-28  Duncan Sands  <baldrick@free.fr>
3275
3276         * Makefile.in (PLUGIN_HEADERS): Add except.h.
3277
3278 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
3279
3280         PR middle-end/43431
3281         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
3282         Improve vectorization cost model diagnostic.
3283
3284 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
3285
3286         PR middle-end/43436
3287         * tree-vect-data-refs.c (vect_analyze_data_refs): When
3288         compute_data_dependences_for_loop returns false, early exit
3289         and output an extra diagnostic for the failed data reference
3290         analysis.
3291
3292 2010-03-29  Richard Guenther  <rguenther@suse.de>
3293
3294         PR tree-optimization/43560
3295         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
3296         (can_sm_ref_p): Treat stores to readonly locations as trapping.
3297
3298 2010-03-29  Jie Zhang  <jie@codesourcery.com>
3299
3300         PR 43564
3301         * toplev.c (process_options): Set optimization_default_node
3302         and optimization_current_node.
3303         * opts.c (decode_options): Don't set optimization_default_node
3304         and optimization_current_node.
3305
3306 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
3307
3308         * config/rtems.h: Abandon -qrtems_debug.
3309
3310 2010-03-28  Jan Hubicka  <jh@suse.cz>
3311
3312         PR tree-optimization/43505
3313         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
3314         map should not be copied.
3315
3316 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3317
3318         PR middle-end/41674
3319         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
3320         cdtors, set DECL_PRESERVE_P.
3321         * ipa.c (cgraph_externally_visible_p): Return true if declaration
3322         should be preseved.
3323
3324 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
3325
3326         PR tree-optimization/43528
3327         * stor-layout.c (place_field): Check that constant fits into
3328         unsigned HWI when skipping calculation of MS bitfield layout.
3329
3330 2010-03-27  Jan Hubicka  <jh@suse.cz>
3331
3332         PR middle-end/43391
3333         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
3334         notice_global_symbol work.
3335
3336 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
3337
3338         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
3339         instead of dwarf2out_decl.
3340         (struct var_loc_node): Remove section_label field.
3341         (dwarf2out_function_decl): New function.
3342         (dwarf2out_var_location): Don't set section_label field.
3343         (dwarf2out_begin_function): Don't empty decl_loc_table here.
3344
3345 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3346
3347         PR tree-optimization/43544
3348         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3349         First argument for builtin vectorized function hook is now a
3350         tree to be able to distinguish between machine specific and
3351         standard builtins.
3352         * targhooks.c (default_builtin_vectorized_function): Ditto.
3353         * targhooks.h (default_builtin_vectorized_function): Ditto.
3354         * target.h (struct gcc_target): Ditto.
3355         * tree-vect-stmts.c (vectorizable_function): Ditto.
3356         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
3357         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3358         Ditto.
3359
3360 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
3361
3362         PR c/43381
3363         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
3364         nested binding iff it is a FUNCTION_DECL.
3365         (store_parm_decls_newstyle): Pass nested=true to bind for
3366         FUNCTION_DECLs amongst parameters.
3367
3368 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
3369
3370         * var-tracking.c (vt_expand_loc_callback): Don't run
3371         cselib_expand_value_rtx_cb in dummy mode if
3372         cselib_dummy_expand_value_rtx_cb returned false.
3373
3374         * var-tracking.c (emit_note_insn_var_location): For one part
3375         notes with offset 0, don't add EXPR_LIST around the location.
3376         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
3377         add_location_or_const_value_attribute): Adjust for that change.
3378
3379         PR debug/43540
3380         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
3381         into first operand and location into second.
3382         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
3383         dw_cfi_oprnd_loc for DW_CFA_expression.
3384         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
3385         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
3386         assume first argument is regnum and second argument is location.
3387
3388 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
3389
3390         PR target/42113
3391         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
3392         of scratch register to DImode.  Split to DImode comparison operator.
3393         Use SImode subreg of scratch register in the multiplication.
3394         (*cmp_sadd_sidi): Ditto.
3395         (*cmp_ssub_si): Ditto.
3396         (*cmp_ssub_sidi): Ditto.
3397
3398 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
3399
3400         PR target/43524
3401         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
3402         Remove invalid assert and wrong comment.
3403
3404 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
3405
3406         PR debug/43516
3407         * flags.h (final_insns_dump_p): New extern.
3408         * final.c (final_insns_dump_p): New variable.
3409         (rest_of_clean_state): Set it before -fdump-final-insns=
3410         dumping, clear afterwards.
3411         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
3412         MEM_ALIAS_SET on MEMs.
3413
3414 2010-03-26  David S. Miller  <davem@davemloft.net>
3415
3416         * configure.ac: Fix sparc GOTDATA_OP bug check.
3417         * configure: Rebuild.
3418
3419 2010-03-26  Alan Modra  <amodra@gmail.com>
3420
3421         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
3422
3423 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3424
3425         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
3426         TLS_SECTION_ASM_FLAG.
3427
3428 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
3429
3430         PR bootstrap/43511
3431         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
3432         Clear first_function_block_is_cold.
3433
3434         PR c/43385
3435         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
3436         argument if the argument is truth_value_p.
3437
3438 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3439
3440         * config/rs6000/constraints.md: Update copyright year for my changes.
3441
3442         PR target/43484
3443         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
3444         used in reg+reg addressing, swap registers.
3445
3446 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
3447
3448         PR debug/43293
3449         * target.h (struct gcc_target): Add code_end hook.
3450         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
3451         if not yet defined.
3452         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
3453         * toplev.c (compile_file): Call targetm.asm_out.code_end
3454         hook before unwind info/debug info output.
3455         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
3456         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
3457         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
3458         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
3459         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
3460         * config/i386/i386.c (ix86_file_end): Renamed to...
3461         (ix86_code_end): ... this.  Make static.  Don't call
3462         file_end_indicate_exec_stack.  Emit unwind info using
3463         final_start_function/final_end_function.
3464         (darwin_x86_file_end): Remove.
3465         (TARGET_ASM_CODE_END): Define.
3466         * config/i386/i386.h (TARGET_ASM_FILE_END,
3467         NEED_INDICATE_EXEC_STACK): Don't define.
3468         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
3469         (TARGET_ASM_FILE_END): Define to darwin_file_end.
3470         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
3471         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
3472
3473         PR target/43498
3474         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
3475         at the beginning and final_end_function at the end.
3476         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
3477
3478 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3479
3480         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
3481         and Sun as TLS syntax.
3482         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
3483         * configure: Regenerate.
3484         * config.in: Regenerate.
3485         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
3486         (default_elf_asm_named_section): Use it.
3487         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
3488         (i386_output_dwarf_dtprel): Likewise.
3489         (output_addr_const_extra): Likewise.
3490         (output_pic_addr_const): Lowercase @GOTTPOFF.
3491         (output_addr_const_extra): Likewise.
3492         (output_pic_addr_const): Lowercase @GOTNTPOFF.
3493         (output_addr_const_extra): Likewise.
3494         (output_pic_addr_const): Lowercase @INDNTPOFF.
3495         (output_addr_const_extra): Likewise.
3496         (output_pic_addr_const): Lowercase @NTPOFF.
3497         (output_addr_const_extra): Likewise.
3498         (output_pic_addr_const): Lowercase @TPOFF.
3499         (output_addr_const_extra): Likewise.
3500         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
3501         (*tls_global_dynamic_64): Likewise.
3502         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
3503         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
3504
3505         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
3506         (ASM_OUTPUT_TLS_COMMON): Use it.
3507         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
3508
3509         PR target/38118
3510         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
3511         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
3512         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
3513         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
3514         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
3515         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
3516
3517 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3518
3519         * config/i386/i386.c (override_options): Don't accept
3520         -mtls-dialect=sun any longer.
3521         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
3522         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
3523         (*tls_local_dynamic_base_32_sun): Likewise.
3524         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
3525
3526 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
3527
3528         PR debug/43508
3529         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
3530         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
3531
3532         PR debug/43479
3533         * ira.c (adjust_cleared_regs): New function.
3534         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
3535
3536         PR debug/19192
3537         PR debug/43479
3538         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
3539         from gimple_block.
3540         * expr.c (expand_expr_real): Restore previous
3541         curr_insn_source_location and curr_insn_block after
3542         expand_expr_real_1 call.
3543         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
3544         instead of expand_expr_real_1.
3545
3546 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
3547
3548         PR rtl-optimization/43413
3549         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
3550         hard regs too.
3551
3552 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
3553
3554         PR target/43348
3555         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
3556         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
3557
3558 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3559
3560         * config/i386/i386.c (ix86_target_string): Add -mfma.
3561         Fix a typo in comment.
3562
3563 2010-03-22  Mike Stump  <mikestump@comcast.net>
3564
3565         PR target/23071
3566         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
3567         Don't overly align based upon packed packed fields.
3568
3569 2010-03-22  Jason Merrill  <jason@redhat.com>
3570
3571         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
3572         Use () rather than [], and move before the element type.
3573
3574 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3575
3576         * doc/configfiles.texi (Configuration Files): Removed
3577         fixinc/Makefile*, intl/Makefile.*.
3578         * doc/makefile.texi: Fixed markup. Abstract from version
3579         control system used.
3580         (Makefile): Removed obsolete gcc/java/parse.y example.
3581         * doc/sourcebuild.texi: Likewise.
3582         (Top Level): Added config, gnattools, libdecnumber, libgcc,
3583         libgomp, libssp.  Removed fastjar.
3584         (Miscellaneous Docs): Clarify location.
3585         Added COPYING3, COPYING3.LIB.
3586         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
3587
3588 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3589
3590         PR target/38085
3591         * config/i386/i386.c (x86_function_profiler)
3592         [!NO_PROFILE_COUNTERS]: Fix typo.
3593         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
3594         instead of callq.
3595
3596 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
3597             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3598
3599         * doc/sourcebuild.texi (Test Directives): Split into six
3600         subsections, with most of the current text in new subsections
3601         Directives, Selectors, and Final Actions.
3602         (Directives): Split list of test directives into multiple
3603         subsubsections.
3604         (Selectors): Describe use and syntax of selectors.
3605         (Effective-Target Keywords): Describe all existing keywords.
3606         (Add Options): Describe features for dg-add-options.
3607         (Require Support): Describe variants of dg-require-support.
3608         (Final Actions): Describe commands to use in dg-final.
3609
3610 2010-03-22  Michael Matz  <matz@suse.de>
3611
3612         PR middle-end/43475
3613         * recog.c (validate_replace_rtx_group): Replace also in
3614         REG_EQUAL and REG_EQUIV notes.
3615
3616 2010-03-22  Richard Guenther  <rguenther@suse.de>
3617
3618         PR tree-optimization/43390
3619         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
3620         sure vector extracts are type correct.
3621
3622 2010-03-22  Richard Guenther  <rguenther@suse.de>
3623
3624         PR middle-end/40106
3625         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
3626         x * sqrt (x) even when optimizing for size if the target
3627         has native support for sqrt.
3628
3629 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
3630
3631         * varasm.c (make_decl_rtl_for_debug): Also clear
3632         flag_mudflap for the duration of make_decl_rtl call.
3633
3634         PR debug/43443
3635         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
3636         locs from preserved VALUEs.
3637
3638 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3639
3640         PR middle-end/42718
3641         * pa.md (movmemsi): Set align to one if zero.
3642         (movmemdi): Likewise.
3643
3644 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
3645
3646         PR target/42321
3647         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
3648         with their corresponding prologue pushes.
3649
3650 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
3651
3652         PR target/43156
3653         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
3654         at the begining or end.
3655         (spu_expand_epilogue): Likewise.
3656
3657 2010-03-20  Richard Guenther  <rguenther@suse.de>
3658
3659         PR rtl-optimization/43438
3660         * combine.c (make_extraction): Properly zero-/sign-extend an
3661         extraction of the low part of a CONST_INT.  Also handle
3662         CONST_DOUBLE.
3663
3664 2010-03-19  Mike Stump  <mikestump@comcast.net>
3665
3666         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
3667         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
3668         (override_options): Use SUBTARGET32_DEFAULT_CPU.
3669
3670 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
3671
3672         PR c/43211
3673         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
3674         an error.
3675
3676 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
3677
3678         PR rtl-optimization/42258
3679         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
3680         use that may match DEF.
3681
3682         PR target/40697
3683         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
3684         the cost of loading the constant rather than assuming
3685         COSTS_N_INSNS (1).
3686         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
3687         outer code is AND, do the same tests as the andsi3 expander and
3688         return COSTS_N_INSNS (1) if and is cheap.
3689
3690         * optabs.c (avoid_expensive_constant): Fix formatting.
3691
3692 2010-03-19  Michael Matz  <matz@suse.de>
3693
3694         PR c++/43116
3695         * attribs.c (decl_attributes): When rebuilding a function pointer
3696         type use the same qualifiers as the original pointer type.
3697
3698 2010-03-19  Martin Jambor  <mjambor@suse.cz>
3699
3700         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
3701         and is_gimple_ip_invariant_address.
3702
3703 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3704
3705         Revert
3706         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3707
3708         * config/arm/arm.c (arm_override_options): Turn off
3709         flag_dwarf2_cfi_asm for AAPCS variants.
3710
3711 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3712
3713         PR target/43399
3714         * config/arm/arm.c (emit_multi_reg_push): Update comments.
3715         Use PRE_MODIFY instead of PRE_DEC.
3716         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
3717         (vfp_emit_fstmd): Likewise.
3718
3719 2010-03-19  Michael Matz  <matz@suse.de>
3720
3721         PR target/43305
3722         * builtins.c (expand_builtin_interclass_mathfn,
3723         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
3724         if that fails.
3725
3726 2010-03-19  Richard Guenther  <rguenther@suse.de>
3727
3728         PR tree-optimization/43415
3729         * tree-ssa-pre.c (phi_translate): Split out worker to ...
3730         (phi_translate_1): ... this.
3731         (phi_translate): Move all caching here.  Cache all NARY
3732         and REFERENCE translations.
3733
3734 2010-03-19  David S. Miller  <davem@davemloft.net>
3735
3736         With help from Eric Botcazou.
3737         * config/sparc/sparc.c: Include dwarf2out.h.
3738         (emit_pic_helper): Delete.
3739         (pic_helper_symbol_name): Delete.
3740         (pic_helper_emitted_p): Delete.
3741         (pic_helper_needed): New.
3742         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
3743         (get_pc_thunk_name): New.
3744         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
3745         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
3746         Set pic_helper_needed to true.  Don't call emit_pic_helper.
3747         (sparc_expand_prologue): Update load_pic_register call.
3748         (sparc_output_mi_thunk): Likewise.
3749         (sparc_file_end): Emit a hidden comdat symbol for the PIC
3750         thunk if possible.  Output CFI information as needed.
3751
3752 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3753             Jack Howarth <howarth@bromo.med.uc.edu>
3754
3755         PR target/36399
3756         * config/i386/i386.h: Fix ABI on darwin x86-32.
3757
3758 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
3759
3760         * tree.h: Declare make_decl_rtl_for_debug.
3761         * varasm.c (make_decl_rtl_for_debug): New.
3762         * dwarf2out.c (rtl_for_decl_location): Call it.
3763         * cfgexpand.c (expand_debug_expr): Call it.
3764
3765 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
3766
3767         PR bootstrap/43399
3768         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
3769         mem_mode.
3770
3771         PR bootstrap/43403
3772         * var-tracking.c (vt_init_cfa_base): Do nothing if
3773         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
3774
3775 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
3776
3777         PR debug/42873
3778         * var-tracking.c (canonicalize_vars_star): New.
3779         (dataflow_post_merge_adjust): Use it.
3780
3781 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
3782
3783         PR debug/43058
3784         * var-tracking.c (non_suitable_const): New function.
3785         (add_uses): For DEBUG_INSNs with constants, don't record any
3786         value, instead just the constant value itself.
3787         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
3788         is not VAR_LOC_UNKNOWN_P, set var to the constant.
3789         (emit_notes_in_bb): Likewise.
3790         (emit_note_insn_var_location): For onepart variables if
3791         cur_loc is a VOIDmode constant, use DECL_MODE.
3792
3793 2010-03-18  Martin Jambor  <mjambor@suse.cz>
3794
3795         PR middle-end/42450
3796         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
3797         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
3798         all non-clones.  Moved call redirection...
3799         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
3800         (cgraph_materialize_all_clones): Dispose of all
3801         combined_args_to_skip bitmaps.
3802         (verify_cgraph_node): Do not check for edges pointing to wrong
3803         nodes in inline clones.
3804         * tree-inline.c (copy_bb): Call
3805         cgraph_redirect_edge_call_stmt_to_callee.
3806         * ipa.c (cgraph_remove_unreachable_nodes): Call
3807         cgraph_node_remove_callees even when there are used clones.
3808
3809 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
3810
3811         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
3812
3813 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
3814
3815         PR target/43383
3816         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
3817         for 32bit.
3818
3819 2010-03-18  Michael Matz  <matz@suse.de>
3820
3821         PR middle-end/43419
3822         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
3823         into sqrt(x) if we need to preserve signed zeros.
3824
3825 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
3826             Eric Botcazou  <ebotcazou@adacore.com>
3827
3828         PR rtl-optimization/43360
3829         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
3830         note if we don't know its invariant status.
3831
3832 2010-03-18  Michael Matz  <matz@suse.de>
3833
3834         PR tree-optimization/43402
3835         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
3836         PHI chains of ssa names registered for update.
3837
3838 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
3839
3840         PR target/42427
3841         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
3842         non-offsettable and pre_modify update addressing.
3843         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
3844         and "2" alternatives "#".
3845         (*movdd_softfloat32): Make all alternatives "#";
3846         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
3847         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
3848         (*movdf_softfloat32): Make all alternatives "#";
3849         (movdi): Use the new DIFD mode iterator to create a common splitter
3850         for movdi, movdf and movdd patterns.
3851
3852 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
3853
3854         * common.opt (dumpdir): Remove redundant tab.
3855
3856 2010-03-17  Martin Jambor  <mjambor@suse.cz>
3857
3858         PR tree-optimization/43347
3859         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
3860         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
3861
3862 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
3863
3864         PR rtl-optimization/42216
3865         * regrename.c (create_new_chain): New function, broken out from...
3866         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
3867         appending a use to an empty chain.
3868         (build_def_use): Remove previous changes that convert OP_INOUT to
3869         OP_OUT operands; instead detect the case where an OP_INOUT operand
3870         uses a previously untracked register and create an empty chain for it.
3871
3872 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3873
3874         * doc/extend.texi (Function Attributes): Rewrite unfinished
3875         sentence in ms_abi documentation.
3876
3877 2010-03-17  Alan Modra  <amodra@gmail.com>
3878
3879         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
3880         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
3881         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
3882         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
3883
3884 2010-03-16  Richard Henderson  <rth@redhat.com>
3885
3886         PR middle-end/43365
3887         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
3888         (lower_try_finally): Save and restore eh_seq around the expansion
3889         of the try-finally.
3890
3891 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
3892
3893         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
3894         statements before splitting block.
3895
3896 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3897
3898         * doc/sourcebuild.texi (Testsuites): Fix markup.
3899         Use pathnames relative to gcc/testsuite.
3900         (Test Directives): Move description of how timeout is determined.
3901         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
3902         (C Tests): Correct gcc.misc-tests directory.
3903         Framework tests now live in gcc.test-framework.
3904
3905 2010-03-16  Richard Guenther  <rguenther@suse.de>
3906
3907         PR middle-end/43379
3908         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
3909         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
3910
3911 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
3912             Alexandre Oliva  <aoliva@redhat.com>
3913
3914         PR tree-optimization/42917
3915         * lambda-code.c (remove_iv): Skip debug statements.
3916         (lambda_loopnest_to_gcc_loopnest): Likewise.
3917         (not_interesting_stmt): Debug statements are not interesting.
3918
3919 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
3920
3921         PR debug/43051
3922         PR debug/43092
3923         * cselib.c (cselib_preserve_constants,
3924         cfa_base_preserved_val): New static variables.
3925         (preserve_only_constants): New function.
3926         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
3927         clear its REG_VALUES.  If cselib_preserve_constants, don't
3928         empty the whole hash table, but preserve there VALUEs with constants,
3929         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
3930         (cselib_preserve_cfa_base_value): New function.
3931         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
3932         (cselib_init): Change argument to int bitfield.  Set
3933         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
3934         is in it.
3935         (cselib_finish): Clear cselib_preserve_constants and
3936         cfa_base_preserved_val.
3937         * cselib.h (enum cselib_record_what): New enum.
3938         (cselib_init): Change argument to int.
3939         (cselib_preserve_cfa_base_value): New prototype.
3940         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
3941         * dse.c (dse_step1): Likewise.
3942         * cfgcleanup.c (thread_jump): Likewise.
3943         * sched-deps.c (sched_analyze): Likewise.
3944         * gcse.c (local_cprop_pass): Likewise.
3945         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
3946         If FN is non-NULL, call the callback always and whenever it returns
3947         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
3948         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
3949         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
3950         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
3951         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
3952         * var-tracking.c: Include recog.h.
3953         (bb_stack_adjust_offset): Remove.
3954         (vt_stack_adjustments): Don't call it, instead just gather the
3955         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
3956         (adjust_stack_reference): Remove.
3957         (compute_cfa_pointer): New function.
3958         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
3959         (struct adjust_mem_data): New type.
3960         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
3961         functions.
3962         (get_address_mode): New function.
3963         (replace_expr_with_values): Use it.
3964         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
3965         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
3966         (adjust_sets): Remove.
3967         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
3968         Use get_address_mode.
3969         (get_adjusted_src): Remove.
3970         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
3971         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
3972         (add_with_sets): Don't call adjust_sets.
3973         (fp_setter, vt_init_cfa_base): New functions.
3974         (vt_initialize): Change return type to bool.  Move most of pool etc.
3975         initialization to the beginning of the function from end.  Pass
3976         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
3977         If !frame_pointer_needed, call vt_stack_adjustment before mos
3978         vector is filled, call vt_init_cfa_base if argp/framep has been
3979         eliminated to sp.  If frame_pointer_needed and argp/framep has
3980         been eliminated to hard frame pointer, set
3981         hard_frame_pointer_adjustment and call vt_init_cfa_base after
3982         encountering fp setter in the prologue.  For MO_ADJUST, call
3983         log_op_type before pusing the op into mos vector, not afterwards.
3984         Call adjust_insn before cselib_process_insn/add_with_sets,
3985         call cancel_changes (0) afterwards.
3986         (variable_tracking_main_1): Adjust for vt_initialize calling
3987         vt_stack_adjustments and returning whether it succeeded or not.
3988
3989 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
3990
3991         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
3992         debug statements.
3993
3994 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
3995
3996         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
3997         has been set.
3998         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
3999         drap_reg has not been set.
4000
4001 2010-03-15  Michael Matz  <matz@suse.de>
4002
4003         PR middle-end/43300
4004         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
4005         use it to expand block copies.
4006         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
4007         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
4008         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
4009
4010 2010-03-15  Richard Guenther  <rguenther@suse.de>
4011
4012         PR tree-optimization/43367
4013         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
4014         elimination check.
4015
4016 2010-03-15  Richard Guenther  <rguenther@suse.de>
4017
4018         PR tree-optimization/43317
4019         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
4020
4021 2010-03-15  Martin Jambor  <mjambor@suse.cz>
4022
4023         PR tree-optimization/43141
4024         * tree-sra.c (create_abstract_origin): New function.
4025         (modify_function): Call create_abstract_