OSDN Git Service

Uniquization of constants at the Tree level
[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,
9         uniquize the constant constructor on the RHS.
10         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal
11         with 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
14         global 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
24         of 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_origin.
4026
4027 2010-03-15  Chris Demetriou  <cgd@google.com>
4028
4029         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
4030         wasn't copied.
4031
4032 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4033
4034         PR middle-end/43354
4035         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
4036         call insert_out_of_ssa_copy for default definitions.
4037
4038 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4039
4040         * graphite-clast-to-gimple.c (my_long_long): Defined.
4041         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
4042         * graphite-sese-to-poly.c (my_long_long): Defined.
4043         (scop_ivs_can_be_represented): Use it.
4044
4045 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4046
4047         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
4048         graphite-max-bbs-per-function, and loop-block-tile-size.
4049         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
4050         with "maximum".
4051         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
4052
4053 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4054
4055         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
4056         forward declaration.
4057         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
4058         (add_upper_bounds_from_estimated_nit): New.
4059         (build_loop_iteration_domains): Use it.
4060
4061 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4062
4063         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
4064
4065 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4066
4067         PR middle-end/43306
4068         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
4069         should be an INTEGER_CST.  Also handle CASE_CONVERT.
4070
4071 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4072
4073         * graphite.c (graphite_initialize): To bound the number of bbs per
4074         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4075         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
4076         * doc/invoke.texi: Document it.
4077
4078 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4079
4080         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
4081         * graphite-sese-to-poly.h (build_poly_scop): Same.
4082
4083 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4084
4085         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
4086         the number of parameters in the scop.  Use as an upper bound
4087         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
4088         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
4089         * doc/invoke.texi: Document it.
4090
4091 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
4092
4093         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
4094         * doc/c-tree.texi: Remove.
4095         * doc/generic.texi: Merge c-tree.texi here.
4096         * doc/gccint.texi (Trees): Remove menu entry.
4097         (c-tree.texi): Remove @include.
4098         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
4099         * doc/languages.texi (Reading RTL): Ditto.
4100
4101 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
4102
4103         PR target/42869
4104         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
4105
4106 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4107
4108         PR middle-end/42431
4109         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
4110         code added to work around reload clobbering CONST insns.
4111
4112 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
4113
4114         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
4115         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
4116         (cselib_preserve_only_values): Remove retain argument, don't
4117         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
4118         * cselib.h (cselib_preserve_only_values): Remove retain argument.
4119         * var-tracking.c (micro_operation): Move insn field before union.
4120         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
4121         (struct variable_tracking_info_def): Remove n_mos field, change
4122         mos into a vector of micro_operations.
4123         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
4124         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
4125         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
4126         changing into a vector.
4127         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
4128         come before all other uops generated by add_stores.
4129         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
4130         argument removal.
4131         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
4132         a vector.  Run just one pass over the bbs instead of separate counting
4133         and computation phase.
4134         (vt_finalize): Free VTI (bb)->mos vector instead of array.
4135
4136         PR debug/43329
4137         * tree-inline.c (remap_decls): Put old_var rather than origin_var
4138         into *nonlocalized_list vector.
4139         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
4140         even if origin is non-NULL.
4141         (gen_variable_die): Likewise.
4142         (process_scope_var): Don't change origin.
4143         (gen_decl_die): Likewise.
4144         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
4145         before adding new edges instead of after it, fix moving over
4146         debug stmts.
4147
4148 2010-03-11  David S. Miller  <davem@davemloft.net>
4149
4150         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
4151         of four.
4152         * configure: Rebuild.
4153
4154 2010-03-11  Martin Jambor  <mjambor@suse.cz>
4155
4156         PR tree-optimization/43257
4157         * tree.c (assign_assembler_name_if_neeeded): New function.
4158         (free_lang_data_in_cgraph): Assembler name assignment moved to the
4159         above new function.
4160         * tree.h (assign_assembler_name_if_neeeded): Declare.
4161         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
4162         the function if needed.
4163
4164 2010-03-11  Chris Demetriou  <cgd@google.com>
4165
4166         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
4167         include/stdint-gcc.h, and include/stdint.h world-readable.
4168
4169 2010-03-11  Richard Guenther  <rguenther@suse.de>
4170
4171         PR tree-optimization/43255
4172         * tree-vrp.c (process_assert_insertions_for): Do not insert
4173         asserts for trivial conditions.
4174
4175 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4176
4177         PR tree-optimization/43280
4178         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
4179         generation.  Move calculation of size out of the if branch.
4180         (find_bswap): Modify compare number generation.
4181
4182 2010-03-11  Richard Guenther  <rguenther@suse.de>
4183
4184         PR lto/43200
4185         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
4186         (input_gimple_stmt): Fixup handled component types during
4187         operand read.  Also fix up decls in ADDR_EXPRs.
4188
4189 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
4190
4191         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
4192         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
4193
4194 2010-03-10  Jan Hubicka  <jh@suse.cz>
4195
4196         PR c/43288
4197         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
4198         * varasm.c (get_variable_section): Don't do that here...
4199         (make_decl_rtl): ... and here.
4200         (do_assemble_alias): Produce decl RTL.
4201         (assemble_alias): Likewise.
4202
4203 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
4204
4205         PR debug/43290
4206         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
4207         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
4208         of fde->vdrap_reg.
4209         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
4210         (based_loc_descr): Only express drap or vdrap regno based expressions
4211         using DW_OP_fbreg when not optimizing.
4212         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
4213         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
4214         REG_CFA_SET_VDRAP note.
4215
4216 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
4217
4218         PR tree-optimization/43236
4219         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
4220         error in calculation of base address in reverse iteration case.
4221         (generate_builtin): Take number of latch executions if the statement
4222         is in the latch.
4223
4224 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
4225
4226         PR middle-end/42859
4227         * tree-eh.c: Include pointer-set.h.
4228         (lower_eh_dispatch): Filter out duplicate case labels and
4229         remove the unneeded edge when the label is unused.  Return
4230         true when some edges are removed.
4231         (execute_lower_eh_dispatch): When any lowering resulted in
4232         removing an edge, also delete unreachable blocks.
4233
4234 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
4235
4236         PR bootstrap/43287
4237         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4238         UNSPEC_MACHOPIC_OFFSET.
4239
4240 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
4241
4242         PR target/43294
4243         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
4244         (m68k_delegitimize_address): New function.
4245
4246 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
4247
4248         PR debug/43299
4249         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
4250
4251         PR debug/43299
4252         * var-tracking.c (adjust_sets): New function.
4253         (count_with_sets, add_with_sets): Use it.
4254         (get_adjusted_src): New inline function.
4255         (add_stores): Use it.
4256
4257         PR debug/43304
4258         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
4259         call cselib_dummy_expand_value_rtx_cb instead of
4260         cselib_expand_value_rtx_cb.
4261
4262         PR debug/43293
4263         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
4264         * config/i386/i386.c: Include debug.h and dwarf2out.h.
4265         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
4266         and .cfi_endproc around the pic thunks.
4267         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
4268         all queued unwind info register saves are saved before the call.
4269         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
4270         considered as sp-=4 for unwind info and the pop as sp+=4 which
4271         also clobbers dest, but doesn't actually restore it.
4272
4273         PR debug/43290
4274         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
4275         RTX_FRAME_RELATED_P.
4276
4277 2010-03-09  Jie Zhang  <jie@codesourcery.com>
4278
4279         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
4280         whitespaces in output template.
4281
4282 2010-03-09  Jie Zhang  <jie@codesourcery.com>
4283
4284         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
4285         out array boundary.
4286
4287 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
4288
4289         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
4290         builtins.exp in a separate job.
4291
4292 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4293
4294         * graphite-sese-to-poly.c (add_param_constraints): Use
4295         lower_bound_in_type and upper_bound_in_type.
4296
4297 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4298
4299         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
4300         instead of unsigned_type_node.
4301
4302 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4303             Reza Yazdani  <reza.yazdani@amd.com>
4304
4305         PR middle-end/43065
4306         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
4307         on pointer type parameters.
4308
4309 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
4310
4311         PR middle-end/42644
4312         PR middle-end/42130
4313         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
4314         handle conversions from pointer to integers.
4315         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
4316         induction variable, to be able to work with code generated by CLooG.
4317         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
4318         (build_poly_scop): Bail out if we cannot codegen a loop.
4319
4320 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
4321
4322         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
4323         code generation with gloog_error.
4324
4325 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4326
4327         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
4328         Call fold_convert on all the returned values.
4329         (expand_scalar_variables_expr): Pass to
4330         expand_scalar_variables_ssa_name the type of the resulting expression.
4331
4332 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4333
4334         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
4335         ppl_min_for_le_pointset.
4336         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
4337         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
4338
4339 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4340
4341         * graphite-dependences.c (map_into_dep_poly): Removed.
4342         (dependence_polyhedron_1): Use combine_context_id_scat.
4343
4344 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4345
4346         * graphite-poly.h (struct poly_scattering): Add layout documentation.
4347         (struct poly_bb): Same.
4348         (combine_context_id_scat): New.
4349
4350 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4351
4352         PR middle-end/42326
4353         * sese.c (name_defined_in_loop_p): Return false for default
4354         definitions.
4355
4356 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4357
4358         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
4359         and clean up the logic.
4360
4361 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4362
4363         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
4364         early return.
4365
4366 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
4367
4368         * var-tracking.c (remove_cselib_value_chains): Define only for
4369         ENABLE_CHECKING.
4370         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
4371         delete_slot_part, emit_notes_for_differences_1): Don't call
4372         remove_cselib_value_chains here.
4373         (set_slot_part, emit_notes_for_differences_2): Don't call
4374         add_cselib_value_chains here.
4375         (preserved_values): New vector.
4376         (preserve_value): New function.
4377         (add_uses, add_stores, vt_add_function_parameters): Use it
4378         instead of cselib_preserve_value.
4379         (changed_values_stack): New vector.
4380         (check_changed_vars_0): New function.
4381         (check_changed_vars_1, check_changed_vars_2): Use it.
4382         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
4383         changed_values_stack VALUEs.
4384         (vt_emit_notes): For all preserved_values call
4385         add_cselib_value_chains.  If ENABLE_CHECKING call
4386         remove_cselib_value_chains before verifying value_chains is empty.
4387         Initialize and free changed_values_stack.
4388         (vt_initialize): Initialize preserved_values.
4389         (vt_finalize): Free preserved_values.
4390
4391 2010-03-08  Richard Guenther  <rguenther@suse.de>
4392
4393         PR tree-optimization/43269
4394         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
4395         region detection.
4396
4397 2010-03-08  Martin Jambor  <mjambor@suse.cz>
4398
4399         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
4400         (ipa_is_param_called): Removed.
4401         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
4402         (ipa_print_node_params): Do not print the called flag.
4403         (ipa_write_node_info): Do not stream the called flag.
4404         (ipa_read_node_info): Likewise.
4405
4406 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
4407
4408         PR debug/43176
4409         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
4410         * cselib.c (struct expand_value_data): Add dummy field.
4411         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
4412         dummy to false.
4413         (cselib_dummy_expand_value_rtx_cb): New function.
4414         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
4415         any rtl.
4416         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
4417         * var-tracking.c: Include pointer-set.h.
4418         (variable): Change n_var_parts to char from int.  Add
4419         cur_loc_changed and in_changed_variables fields.
4420         (variable_canonicalize): Remove.
4421         (shared_var_p): New inline function.
4422         (unshare_variable): Maintain cur_loc_changed and
4423         in_changed_variables fields.  If var was in changed_variables,
4424         replace it there with new_var.  Just copy cur_loc instead of
4425         resetting it to something else.
4426         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
4427         (dataflow_set_union): Don't call variable_canonicalize.
4428         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
4429         of their DEBUG_EXPR_TREE_DECLs.
4430         (canonicalize_loc_order_check): Verify that cur_loc is NULL
4431         and in_changed_variables and cur_loc_changed is false.
4432         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
4433         and cur_loc_changed.  Don't update cur_loc here.
4434         (variable_merge_over_src): Don't call variable_canonicalize.
4435         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
4436         removing loc that is equal to cur_loc, clear cur_loc,
4437         set cur_loc_changed and ensure variable_was_changed is called.
4438         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
4439         compare pointers in cur_loc check, if it is equal to loc,
4440         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
4441         (variable_different_p): Remove compare_current_location argument,
4442         don't compare cur_loc.
4443         (dataflow_set_different_1): Adjust variable_different_p caller.
4444         (variable_was_changed): If dv had some var in changed_variables
4445         already, reset in_changed_variables flag for it and propagate
4446         cur_loc_changed over to the new variable.  On empty var
4447         always set cur_loc_changed.  Set in_changed_variables on whatever
4448         var is added to changed_variables.
4449         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
4450         Use shared_var_p.  When removing loc that is equal to cur_loc,
4451         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
4452         end, don't set it to something else, just call variable_was_changed.
4453         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
4454         loc being removed, clear cur_loc and set cur_loc_changed.
4455         Set cur_loc_changed if all locations have been removed.
4456         (struct expand_loc_callback_data): New type.
4457         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
4458         allocated.  Always create SUBREGs if simplify_subreg failed.
4459         Prefer to use cur_loc, when that fails and still in
4460         changed_variables (and seen first time) recompute it.  Set
4461         cur_loc_changed of variables which had to change cur_loc and
4462         compute elcd->cur_loc_changed if any of the subexpressions used
4463         had to change cur_loc.
4464         (vt_expand_loc): Adjust to pass arguments in
4465         expand_loc_callback_data structure.
4466         (vt_expand_loc_dummy): New function.
4467         (emitted_notes): New variable.
4468         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
4469         that weren't used for any other decl in current
4470         emit_notes_for_changes call call vt_expand_loc_dummy to update
4471         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
4472         first loc_chain location if NULL before.  Always use just
4473         cur_loc instead of first loc_chain location.  When cur_loc_changed
4474         is false, when not --enable-checking=rtl just don't emit any note.
4475         When rtl checking, compute the note and assert it is the same
4476         as previous note.  Clear cur_loc_changed and in_changed_variables
4477         at the end before removing from changed_variables.
4478         (check_changed_vars_3): New function.
4479         (emit_notes_for_changes): Traverse changed_vars to call
4480         check_changed_vars_3 on each changed var.
4481         (emit_notes_for_differences_1): Clear cur_loc_changed and
4482         in_changed_variables.  Recompute cur_loc of new_var.
4483         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
4484         (vt_emit_notes): Initialize and destroy emitted_notes.
4485
4486 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
4487
4488         PR rtl-optimization/42220
4489         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
4490         Use verify_reg_tracked to determine if we should use OP_OUT rather
4491         than OP_INOUT.
4492         (build_def_use): If we see an in-out operand for a register that we
4493         know nothing about, treat is an output if possible, fail the block if
4494         not.
4495
4496 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
4497
4498         PR debug/42897
4499         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
4500         permanently.
4501
4502 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
4503
4504         PR debug/42897
4505         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
4506         uses of relevant DEFs that are dead outside the loop too.
4507
4508 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
4509
4510         * var-tracking.c (dataflow_set_merge): Swap src and src2.
4511         Reverted:
4512         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
4513         PR debug/41371
4514         * var-tracking.c (values_to_unmark): New variable.
4515         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
4516         values_to_unmark vector.  Moved body to...
4517         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
4518         instead queue it into values_to_unmark vector.
4519         (vt_find_locations): Free values_to_unmark vector.
4520
4521 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4522
4523         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
4524         (site.exp): Export them when plugins are enabled.
4525
4526 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
4527
4528         PR middle-end/42326
4529         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
4530         that contain scevs.
4531         (chrec_fold_multiply): Same.
4532
4533 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
4534
4535         PR c/43248
4536         * c-decl.c (build_compound_literal): Return early if init is
4537         an error_mark_node.
4538
4539 2010-03-04  Martin Jambor  <mjambor@suse.cz>
4540
4541         PR tree-optimization/43164
4542         PR tree-optimization/43191
4543         * tree-sra.c (type_consists_of_records_p): Reject records with
4544         zero-size bit-fields at the end.
4545
4546 2010-03-04  Mike Stump  <mikestump@comcast.net>
4547
4548         * Makefile.in (TAGS): Remove *.y.
4549
4550 2010-03-04  Richard Guenther  <rguenther@suse.de>
4551
4552         PR tree-optimization/40761
4553         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
4554         in reverse order.
4555         (my_rev_post_order_compute): New function.
4556         (init_pre): Call it.
4557
4558 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
4559
4560         PR middle-end/43209
4561         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
4562         decrease the cost of an IV candidate when the cost is infinite.
4563
4564 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4565
4566         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
4567         Use '3DNow!' for the extension of that name, ensure normal space
4568         after the string.
4569         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
4570
4571 2010-03-03  Jeff Law  <law@redhat.com>
4572
4573         * PR middle-end/32693
4574         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
4575         than gen_rtx_SUBREG.
4576         (extract_bit_field_1): Likewise.
4577
4578 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
4579
4580         * doc/sourcebuild.texi (Test directives): Document that arguments
4581         include-opts and exclude-opts are now optional for dg-skip-if,
4582         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
4583
4584 2010-03-03  Jason Merrill  <jason@redhat.com>
4585
4586         PR c++/12909
4587         * cgraph.h (varpool_node): Add extra_name field.
4588         * varpool.c (varpool_extra_name_alias): New.
4589         (varpool_assemble_decl): Emit extra name aliases.
4590         (varpool_mark_needed_node): Look past an extra name alias.
4591         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
4592         * lto-streamer-in.c (lto_input_tree): Read it.
4593         * lto-streamer-out.c (output_unreferenced_globals): Write it.
4594
4595 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
4596
4597         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
4598         (sparc*-*-solaris2*): ...this.
4599
4600 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
4601
4602         PR debug/43229
4603         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
4604         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
4605         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
4606         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
4607
4608         PR debug/43237
4609         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
4610         fallthrough to default handling, just with want_address 0 instead of 2.
4611         For single element lists, add_AT_loc directly, otherwise create an
4612         artificial variable DIE and stick location list to it.
4613
4614         PR debug/43177
4615         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
4616         (VAL_EXPR_HAS_REVERSE): Define.
4617         (reverse_op): New function.
4618         (add_stores): For reversible operations add an extra MO_VAL_USE.
4619
4620 2010-03-02  Jason Merrill  <jason@redhat.com>
4621
4622         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
4623
4624 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
4625
4626         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
4627         (sparc64-*-linux*): Likewise.
4628         (sparc64-*-solaris2*): Include assembler files before linker ones.
4629         (sparc-*-solaris2*): Simplify and reorder to match previous case.
4630         * config/sparc/gas.h: Delete.
4631         * config/sparc/sol2-64.h: Add copyright notice.
4632         * config/sparc/sol2-gas-bi.h: Likewise.
4633         * config/sparc/sol2-gld.h: Likewise.
4634         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
4635         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
4636         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
4637         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
4638         (sparc_elf_asm_named_section): Rename into...
4639         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
4640
4641 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
4642
4643         * config/alpha/alpha.c (override_options): Fix -mtune error message.
4644
4645 2010-03-02  Jeff Law  <law@redhat.com>
4646
4647         PR middle-end/42431
4648         * reload1.c (rtx_p, substitute_stack): Declare.
4649         (substitute): Record addresses of changed rtxs.
4650         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
4651         Restore the original rtx when complete.
4652         (reload): Free subsitute_stack when complete.
4653
4654 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
4655
4656         * doc/gccint.texi (menu): Add Testsuites as a chapter.
4657         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
4658         new chapter.
4659         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
4660         LTO Testing, gcov Testing, profopt Testing, compat Testing,
4661         Torture Tests): Change from subsection to section.
4662
4663 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
4664             Steven Bosscher  <steven@gcc.gnu.org>
4665
4666         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
4667         instead of bb.
4668
4669 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
4670
4671         PR middle-end/42640
4672         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
4673         the assignment from the new induction variable to the assignment
4674         of the value from the original loop PHI function.
4675
4676 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
4677             Daniel Jacobowitz  <dan@codesourcery.com>
4678
4679         * doc/sourcebuild.texi (Test directives): Clarify options to
4680         dg-skip-if.
4681
4682 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4683
4684         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
4685         Disable cfi directives unless GCC and gas agree on using read-only
4686         .eh_frame sections for 64-bit.
4687         * configure: Regenerate.
4688
4689 2010-03-01  Richard Guenther  <rguenther@suse.de>
4690
4691         PR tree-optimization/43220
4692         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
4693         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
4694
4695 2010-03-01  Richard Guenther  <rguenther@suse.de>
4696             Martin Jambor  <mjambor@suse.cz>
4697
4698         PR middle-end/41250
4699         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
4700         gimplified parameters.
4701
4702 2010-03-01  Christian Bruel  <christian.bruel@st.com>
4703
4704         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
4705
4706 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4707
4708         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
4709
4710 2010-03-01  Richard Guenther  <rguenther@suse.de>
4711
4712         PR middle-end/43213
4713         * expr.c (expand_assignment): Use the alias-oracle to tell
4714         if the rhs aliases the result decl.
4715
4716 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4717
4718         PR pch/14940
4719         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
4720         to sol_gt_pch_get_address.
4721         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
4722         64-bit, SPARC and x86.
4723         (sol_gt_pch_get_address): New function.
4724
4725 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
4726
4727         * toplev.h (inform_n, error_n): Declare.
4728         * diagnostic.c (inform_n, error_n): New function.
4729
4730 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
4731
4732         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
4733         has no rtl yet when processing local_decls, queue it and recheck
4734         if deferred stack allocation hasn't assigned it rtl.
4735
4736 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
4737
4738         * config/sh/sh.c (unspec_bbr_uid): New.
4739         (gen_block_redirect): Use it instead of INSN_UID.
4740         (gen_far_branch): Likewise.
4741
4742 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
4743
4744         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
4745         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
4746
4747 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4748
4749         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
4750         (Warning Options): -Wno-conversion-null is valid for
4751         Objective-C++ as well.
4752         * doc/tm.texi (Named Address Spaces): Likewise.
4753         * doc/plugins.texi (Plugins): Replace TABs with spaces.
4754         * doc/tree-ssa.texi (Tree SSA): Likewise.
4755
4756 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
4757
4758         PR bootstrap/43202
4759         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
4760         by default.  Don't set the default arch for
4761         i[34567]86-*-darwin*|x86_64-*-darwin*.
4762
4763 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
4764
4765         PR bootstrap/43202
4766         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
4767         default.  Set the default 32bit/64bit archs with $with_arch
4768         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
4769
4770 2010-02-27  Richard Guenther  <rguenther@suse.de>
4771
4772         PR tree-optimization/43186
4773         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
4774         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
4775         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
4776         unroller iterations.
4777
4778 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
4779
4780         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
4781         required and i[34567]86-*-* targets don't support 64bit ISA.
4782
4783 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
4784
4785         PR ada/43096
4786         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
4787         the same alias set.
4788
4789 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
4790
4791         * config.gcc: Set the default arch at least to Prescott for
4792         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
4793         if SSE math is enabled.
4794
4795 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4796
4797         * diagnostic.c (diagnostic_initialize): Update.
4798         (diagnostic_report_diagnostic): Test inhibit_notes_p for
4799         informative notes.
4800         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
4801         (diagnostic_inhibit_notes): New.
4802         * toplev.c (process_options): inhibit notes with -fcompare-debug.
4803
4804 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4805
4806         PR c/20631
4807         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
4808         * doc/standards.texi: Likewise.
4809         * doc/extend.texi: Likewise.
4810         * doc/trouble.texi: Likewise.
4811         * doc/cppopts.texi: Likewise.
4812         * doc/install.texi: Likewise.
4813         * c.opt (std=c90,std=gnu90): New options.
4814         * c-opts.c (c_common_handle_option): Handle them.
4815
4816 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4817
4818         PR c/24577
4819         * c-decl.c (undeclared_variable): Use an informative note.
4820
4821 2010-02-26  Richard Guenther  <rguenther@suse.de>
4822
4823         PR tree-optimization/43186
4824         * gimple.h (gimple_fold): Remove.
4825         * gimple.c (gimple_fold): Remove.  Inline into single user ...
4826         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
4827         Try harder for conditions.
4828
4829 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
4830
4831         PR debug/43190
4832         * function.c (used_types_insert): Don't skip through named pointer
4833         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
4834         and it is different from the main variant's type.
4835
4836 2010-02-26  Nick Clifton  <nickc@redhat.com>
4837
4838         * config/rx/rx.md (sminsi3): Remove bogus alternative.
4839
4840 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
4841
4842         * config.gcc: Support --with-fpmath=sse for x86.
4843
4844         * config/i386/ssemath.h: New.
4845
4846         * doc/install.texi (--with-fpmath=sse): Documented.
4847
4848 2010-02-26  Richard Guenther  <rguenther@suse.de>
4849
4850         PR tree-optimization/43188
4851         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
4852         vector types of over-aligned element type.
4853
4854 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
4855
4856         PR target/43175
4857         * config/i386/i386.c (expand_vec_perm_blend): Use correct
4858         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
4859
4860 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4861
4862         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
4863
4864 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
4865
4866         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
4867         * var-tracking.c: Include diagnostic.h.
4868         (debug_dv): New function.
4869         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
4870
4871         PR debug/43160
4872         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
4873         (add_value_chain, add_value_chains, remove_value_chain,
4874         remove_value_chains): Handle DEBUG_EXPRs.
4875         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
4876
4877         PR debug/43161
4878         * regcprop.c (struct queued_debug_insn_change): New type.
4879         (struct value_data_entry): Add debug_insn_changes field.
4880         (struct value_data): Add n_debug_insn_changes field.
4881         (debug_insn_changes_pool): New variable.
4882         (free_debug_insn_changes, apply_debug_insn_changes,
4883         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
4884         (kill_value_one_regno): Call free_debug_insn_changes if needed.
4885         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
4886         fields.
4887         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
4888         changes for them.
4889         (copyprop_hardreg_forward_1): Don't call apply_change_group for
4890         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
4891         changes, call cprop_find_used_regs via note_stores.
4892         (copyprop_hardreg_forward): When copying vd from predecessor
4893         which has any queued DEBUG_INSN changes, make sure the pointers are
4894         cleared.  At the end call df_analyze and then if there are any
4895         DEBUG_INSN changes queued at the end of some basic block for still
4896         live registers, apply them.
4897         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
4898
4899 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
4900
4901         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
4902         (arm*-*-*): Ditto.
4903
4904 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
4905
4906         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
4907         targets.  Set the default with_cpu/with_arch from arch/cpu.
4908         Allow x86-64 and native for with_cpu/with_arch.
4909
4910 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
4911
4912         * ebitmap.c: Change calls to verify_popcount with calls to
4913         sbitmap_verify_popcount.
4914         (ebitmap_clear_bit): Fixed map->cacheindex test and
4915         map>cache update when bit clearing results in an empty
4916         element.
4917
4918 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
4919
4920         PR target/43154
4921         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
4922         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
4923         and support both V2DF and V2DI modes.
4924         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
4925         support both V2DF and V2DI modes.
4926         (general): Delete trailing whitespace from a few patterns.
4927
4928         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4929         V2DF/V2DI interleave high/low builtins.
4930
4931         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
4932         new VSX builtins.
4933
4934         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
4935         interleave high/low functions.
4936
4937 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
4938
4939         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
4940         #pragma extern_prefix.
4941
4942 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
4943
4944         PR debug/43166
4945         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
4946         BLKmode, assert op0 is a MEM and just adjust its mode.
4947
4948         PR debug/43165
4949         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
4950         if bitpos isn't multiple of mode's bitsize.
4951
4952 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4953
4954         * c.opt (-ftemplate-depth=): New.
4955         (-ftemplate-depth-): Deprecate.
4956         * optc-gen.awk: Handle -ftemplate-depth=.
4957         * opth-gen.awk: Likewise.
4958         * c-opts.c (c_common_handle_option): Likewise.
4959         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
4960
4961 2010-02-24  Jason Merrill  <jason@redhat.com>
4962
4963         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
4964
4965 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4966
4967         * cfg.c (alloc_aux_for_block): Remove inline.
4968         (alloc_aux_for_edge): Likewise.
4969
4970 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4971
4972         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
4973
4974 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4975
4976         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
4977         * config/i386/sol2-gas.h: New file.
4978         * config.gcc (i[34567]86-*-solaris2*): Use it.
4979
4980 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4981
4982         PR c/43128
4983         * c-typeck.c (ep_convert_and_check): New.
4984         (build_conditional_expr): Use it.
4985         (build_binary_op): Likewise.
4986
4987 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
4988
4989         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
4990
4991         PR debug/43150
4992         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
4993         bounds even for -O+.
4994         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
4995         expr needs to have DECL_NAME set.
4996
4997 2010-02-24  Nick Clifton  <nickc@redhat.com>
4998
4999         * config/mep/mep.c: Include gimple.h.
5000         (mep_function_uses_sp): Delete unused function.
5001         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
5002         parameters.  Use unsigned integers to count args.  Return a
5003         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
5004
5005 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
5006
5007         PR target/43107
5008         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
5009         greater or equal to nelt instead of 2 * nelt.
5010         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
5011         with nelt - 1.
5012
5013 2010-02-23  Jason Merrill  <jason@redhat.com>
5014
5015         PR debug/42800
5016         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
5017         in cfun->local_decls even if they have register types.
5018
5019         PR c++/42837
5020         * stor-layout.c (place_field): Don't warn about unnecessary
5021         DECL_PACKED if the type is packed.
5022
5023 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
5024
5025         PR target/43139
5026         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
5027         GOTOFF relocs, even when the base reg isn't pic pointer.
5028
5029 2010-02-23  Michael Matz  <matz@suse.de>
5030
5031         PR debug/43077
5032         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
5033         (expand_gimple_basic_block): Generate and use debug temps if there
5034         are debug uses left after the last real use of TERed ssa names.
5035         Unlink debug immediate uses when they are expanded.
5036
5037 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5038
5039         PR 43123
5040         * config/i386/i386.c (override_options): Reorganise to provide
5041         better error messages.
5042
5043 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
5044
5045         PR middle-end/43083
5046         * graphite-scop-detection.c (create_single_exit_edge): Move
5047         the call to find_single_exit_edge to....
5048         (create_sese_edges): ...here.  Don't handle multiple edges
5049         exiting the function.
5050         (build_graphite_scops): Don't handle multiple edges
5051         exiting the function.
5052
5053 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
5054
5055         PR middle-end/43097
5056         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
5057         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
5058
5059 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
5060
5061         PR middle-end/43026
5062         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
5063
5064 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5065
5066         PR c++/43126
5067         * c-typeck.c (convert_arguments): Print declaration location.
5068         * c-common.c (validate_nargs): Rename as
5069         builtin_function_validate_nargs.
5070         (check_builtin_function_arguments): Update.
5071
5072 2010-02-22  Richard Guenther  <rguenther@suse.de>
5073
5074         PR lto/43045
5075         * tree-inline.c (declare_return_variable): Use the type of
5076         the call stmt lhs if available.
5077
5078 2010-02-22  Duncan Sands  <baldrick@free.fr>
5079
5080         * passes.c (register_pass): Always consider all pass lists when
5081         ref_pass_instance_number is zero.
5082
5083 2010-02-22  Richard Guenther  <rguenther@suse.de>
5084
5085         PR tree-optimization/42749
5086         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
5087         parameter.  Do arithmetic in the original type.
5088         (update_accumulator_with_ops): Likewise.
5089         (adjust_accumulator_values): Adjust.
5090
5091 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5092
5093         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
5094         (QI to BLKmode splitter): New splitter.
5095
5096 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
5097
5098         * config/i386/i386.c (initial_ix86_tune_features): Turn on
5099         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
5100
5101 2010-02-22  Richard Guenther  <rguenther@suse.de>
5102
5103         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
5104
5105 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
5106
5107         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
5108         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
5109         ($(T)crti.o, $(T)crtn.o): Remove rules.
5110
5111 2010-02-21  Tobias Burnus  <burnus@net-b.de>
5112
5113         PR fortran/35259
5114         * doc/invoke.texi (-fassociative-math): Document that this
5115         option is automatically enabled for Fortran.
5116
5117 2010-02-20  David S. Miller  <davem@davemloft.net>
5118
5119         * configure.ac: Test if linker and assembler properly support
5120         GOTDATA_OP relocations.
5121         * configure: Rebuild.
5122         * config.in: Likewise.
5123         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
5124         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
5125         (movsi_high_pic): Likewise.
5126         (movdi_lo_sum_pic): Likewise.
5127         (movdi_high_pic): Likewise.
5128         (movsi_pic_gotdata_op): New pattern.
5129         (movdi_pic_gotdata_op): Likewise.
5130         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
5131         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
5132
5133 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
5134
5135         PR target/43067
5136         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
5137         attribute to ssemul.
5138         (xop_mulv2div2di3_high): Ditto.
5139
5140 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5141
5142         PR c++/35669
5143         * c.opt (Wconversion-null): New option.
5144         * doc/invoke.texi (Wconversion-null): Document.
5145
5146 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5147
5148         * common.opt (Wlarger-than-): Add Undocumented.
5149
5150 2010-02-19  Mike Stump  <mikestump@comcast.net>
5151
5152         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
5153
5154 2010-02-19  Jason Merrill  <jason@redhat.com>
5155
5156         PR target/40332
5157         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
5158         * configure: Likewise.
5159
5160 2010-02-20  Alan Modra  <amodra@gmail.com>
5161
5162         PR middle-end/42344
5163         * cgraph.h (cgraph_make_decl_local): Declare.
5164         * cgraph.c (cgraph_make_decl_local): New function.
5165         (cgraph_make_node_local): Use it.
5166         * cgraphunit.c (cgraph_function_versioning): Likewise.
5167         * ipa.c (function_and_variable_visibility): Likewise.
5168
5169 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
5170
5171         PR bootstrap/43121
5172         * except.c (sjlj_emit_function_enter): Don't call
5173         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
5174         directly.
5175         * rtl.h (add_reg_br_prob_note): Remove prototype.
5176
5177 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5178
5179         PR 41779
5180         * c-common.c (conversion_warning): Remove widening conversions
5181         before checking the conversion of integers to reals.
5182
5183 2010-02-19  Mike Stump  <mikestump@comcast.net>
5184
5185         PR middle-end/43125
5186         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
5187
5188         PR objc/43061
5189         * cgraphunit.c (process_function_and_variable_attributes): Check
5190         DECL_PRESERVE_P instead of looking up attribute "used".
5191         * ipa-pure-const.c (check_decl): Likewise.
5192         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
5193         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
5194         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
5195         instead of attribute "used".
5196         * config/sol2-c.c (solaris_pragma_init): Likewise.
5197         (solaris_pragma_fini): Likewise.
5198
5199 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
5200
5201         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
5202         Use XCNEW instead of xcalloc.
5203         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
5204         XNEW instead of xmalloc.
5205         (get_fields): Use XNEWVEC instead of xmalloc.
5206
5207         PR debug/43084
5208         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
5209         populate vars array.
5210         (create_new_general_access): For debug stmts just reset value.
5211         (get_stmt_accesses): For accesses within debug stmts just record them
5212         using add_access_to_acc_sites instead of preventing the peeling or
5213         counting them as accesses.
5214
5215         PR middle-end/42233
5216         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
5217
5218 2010-02-19  Richard Guenther  <rguenther@suse.de>
5219
5220         PR tree-optimization/42916
5221         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
5222         instructions.
5223
5224 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
5225
5226         * configure.ac: Replace all uses of changequote in macro arguments
5227         with proper quoting.
5228
5229 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
5230
5231         PR middle-end/42233
5232         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
5233
5234 2010-02-19  Richard Guenther  <rguenther@suse.de>
5235
5236         PR tree-optimization/42944
5237         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
5238         test for aliasing with errno.
5239
5240 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
5241
5242         PR middle-end/42233
5243         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
5244         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
5245         * dojump.c: Include output.h.
5246         (inv): New inline function.
5247         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
5248         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
5249         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
5250         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
5251         argument, pass it down to other calls.
5252         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
5253         add REG_BR_PROB note to the conditional jump.
5254         * cfgexpand.c (add_reg_br_prob_note): Removed.
5255         (expand_gimple_cond): Don't call it, add the probability
5256         as last argument to jumpif_1/jumpifnot_1.
5257         * Makefile.in (dojump.o): Depend on output.h.
5258         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
5259         callers.
5260         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
5261         * stmt.c (do_jump_if_equal): Likewise.
5262         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
5263         * loop-unswitch.c (compare_and_jump_seq): Likewise.
5264         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
5265         Likewise.
5266         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
5267         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
5268         jumpifnot_1 callers.
5269         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
5270         callers.
5271         (store_expr): Adjust jumpifnot caller.
5272         (store_constructor): Adjust jumpif caller.
5273
5274         PR middle-end/42233
5275         * gimplify.c (gimple_boolify): For __builtin_expect call
5276         gimple_boolify also on its first argument.
5277
5278 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
5279
5280         * configure.ac (gnu-unique-object): Wrap regexps using [] in
5281         changequote block.
5282         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
5283         * configure: Regenerated.
5284
5285 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5286
5287         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
5288         lang_hooks.types_compatible_p instead of comptypes.
5289
5290 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
5291
5292         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
5293         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
5294         if __prefer_thumb__ is defined.
5295
5296 2010-02-18  Martin Jambor  <mjambor@suse.cz>
5297
5298         PR tree-optimization/43066
5299         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
5300         array with zero-sized element type.
5301
5302 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
5303
5304         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
5305         rtx, allocate struct var_loc_node here and return it to the
5306         caller, and only if it is actually needed.
5307         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
5308         move it earlier and return immediately if it returns NULL.
5309
5310 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
5311
5312         * config/sparc/gas.h: New file.  Restore
5313         TARGET_ASM_NAMED_SECTION to its ELF default.
5314         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
5315         check !HAVE_GNU_AS.
5316         * config/sparc/sparc.c (sparc_elf_asm_named_section):
5317         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
5318         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
5319         after sparc/sysv4.h.
5320
5321 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
5322
5323         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
5324
5325 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
5326
5327         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
5328         patterns from predicated pattern.
5329
5330 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
5331
5332         PR target/43103
5333         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
5334         for insn mnemonic suffix.
5335
5336 2010-02-17  Richard Guenther  <rguenther@suse.de>
5337
5338         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
5339         to loop PHI nodes.
5340
5341 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
5342
5343         PR debug/42918
5344         * caller-save.c (save_call_clobbered_regs): If BB ends with
5345         a DEBUG_INSN, move any notes in between last real insn and the last
5346         DEBUG_INSN after the last DEBUG_INSN.
5347
5348 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
5349
5350         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
5351         Fix return type.  Fix argument type.  Explain meaning of return value.
5352
5353 2010-02-16  Richard Guenther  <rguenther@suse.de>
5354
5355         PR tree-optimization/41043
5356         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
5357         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
5358         statements ...
5359         (vrp_visit_phi_node): ... but only for loop PHI nodes.
5360
5361 2010-02-16  Ira Rosen  <irar@il.ibm.com>
5362
5363         PR tree-optimization/43074
5364         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
5365         * tree-vect-loop.c (vect_analyze_loop_operations): Add
5366         vectorizable cycles in hybrid SLP check.
5367         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
5368
5369 2010-02-16  Richard Guenther  <rguenther@suse.de>
5370
5371         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
5372         (true_dependence): If memrefs_conflict_p computes must-alias
5373         trust it.  Move TBAA check after offset-based disambiguation.
5374         (canon_true_dependence): Likewise.
5375
5376 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
5377
5378         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
5379         * doc/invoke.texi: Document it.
5380         * var-tracking.c: Include toplev.h and params.h.
5381         (vt_find_locations): Return bool indicating success.  Compute
5382         hash sizes unconditionally.  Check new parameter, report.
5383         (variable_tracking_main_1): Check vt_find_locations results and
5384         retry.  Renamed from...
5385         (variable_tracking_main): ... this.  New wrapper to preserve
5386         flag_var_tracking_assignments.
5387         * Makefile.in (var-tracking.o): Adjust dependencies.
5388
5389 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
5390             Jakub Jelinek <jakub@redhat.com>
5391
5392         PR target/42854
5393         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
5394         if weak_import attribute is present.
5395         * config/darwin.c (machopic_select_section): Likewise.
5396
5397 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
5398
5399         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
5400         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
5401         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
5402         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
5403
5404         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
5405         types.
5406
5407         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
5408         Fix argument types.
5409
5410         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
5411         Rewrite text to refer to the names.
5412
5413 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
5414
5415         * config/i386/i386-builtin-types.def
5416         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
5417         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
5418         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
5419         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
5420         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
5421         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
5422         IX86_BUILTIN_VPERMIL2PS256.
5423         (MULTI_ARG_4_DF2_DI_I): Defined.
5424         (MULTI_ARG_4_DF2_DI_I1): Defined.
5425         (MULTI_ARG_4_SF2_SI_I): Defined.
5426         (MULTI_ARG_4_SF2_SI_I1): Defined.
5427         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
5428         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
5429         __builtin_ia32_vpermil2ps256.
5430         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
5431         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
5432         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
5433         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
5434         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
5435         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
5436         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
5437         CODE_FOR_xop_vpermil2v8sf3.
5438         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
5439         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
5440         * config/i386/xopintrin.h (_mm_permute2_pd): New.
5441         (_mm256_permute2_pd): New.
5442         (_mm_permute2_ps): New.
5443         (_mm256_permute2_ps): New.
5444
5445 2010-02-15  Nick Clifton  <nickc@redhat.com>
5446
5447         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
5448         boolean parameters.  Use emit_jump_insn when emitting a pop
5449         instruction containing a return insn.
5450         (push): Use 'true' rather than '1' as second parameter to F.
5451         (h8300_expand_prologue): Likewise.
5452         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
5453         (h8300_expand_epilogue): Likewise.
5454
5455 2010-02-15  Richard Guenther  <rguenther@suse.de>
5456
5457         PR middle-end/43068
5458         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
5459         if that is zero.
5460
5461 2010-02-15  Nick Clifton  <nickc@redhat.com>
5462
5463         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
5464         delta.
5465
5466 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
5467
5468         * intl.c (fake_ngettext): New function.
5469         * intl.h (fake_ngettext): Declare.
5470         (ngettext): Define macro.
5471         * collect2.c (notice_translated): New function.
5472         (main): Use notice_translated and ngettext.
5473         * collect2.h (notice_translated): Declare.
5474
5475 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
5476
5477         * reorg.c (delete_computation): Comment fixes.
5478         * caller-save.c (setup_save_areas): Idem.
5479         * sel-sched-dump.c (dump_lv_set): Idem.
5480         * rtl.def: Idem.
5481
5482 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5483
5484         * config/s390/s390.c (s390_sched_init): New function.
5485         (TARGET_SCHED_INIT): Target hook defined.
5486
5487 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
5488             Jack Howarth  <howarth@bromo.med.uc.edu>
5489             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5490
5491         PR target/42982
5492         Partial revert of unintended change in fix for PR41605.
5493         * config/darwin.h: Fix typo.
5494         * config/darwin9.h: Same.
5495
5496 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
5497
5498         * c-pch.c (pch_init): Clear v.
5499
5500 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
5501
5502         PR middle-end/42930
5503         * graphite-scop-detection.c (graphite_can_represent_scev): Call
5504         graphite_can_represent_init for MULT_EXPR.
5505
5506 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
5507
5508         PR middle-end/42914
5509         PR middle-end/42530
5510         * graphite-sese-to-poly.c (remove_phi): New.
5511         (translate_scalar_reduction_to_array): Call remove_phi.
5512
5513 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
5514
5515         PR middle-end/42771
5516         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
5517         * graphite-clast-to-gimple.h (gloog): Update declaration.
5518         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
5519         * graphite-poly.h (struct poly_bb): Add missing comments.
5520         (struct scop): Add poly_scop_p field.
5521         (POLY_SCOP_P): New.
5522         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
5523         * graphite.c (graphite_transform_loops): Build the polyhedral
5524         representation for each scop before code generation.
5525         * sese.c (rename_variables_in_operand): Removed.
5526         (rename_variables_in_expr): Return the renamed expression.
5527         (rename_sese_parameters): New.
5528         * sese.h (rename_sese_parameters): Declared.
5529
5530 2010-02-11  Richard Guenther  <rguenther@suse.de>
5531
5532         PR tree-optimization/42998
5533         * tree-ssa-pre.c (create_expression_by_pieces): Treat
5534         POINTER_PLUS_EXPR properly.
5535
5536 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
5537             Changpeng Fang  <changpeng.fang@amd.com>
5538
5539         PR middle-end/40886
5540         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
5541         the cost of an IV candidate when the IV is used in a test against zero.
5542
5543         * gcc.dg/tree-ssa/ivopts-3.c: New.
5544
5545 2010-02-11  Richard Guenther  <rguenther@suse.de>
5546
5547         PR lto/41664
5548         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
5549         pointer-vs-decl case by swapping refs.  Handle some cases
5550         of pointer-vs-decl disambiguations more conservatively.
5551         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
5552         to false after expanding.
5553
5554 2010-02-11  Richard Guenther  <rguenther@suse.de>
5555
5556         PR driver/43021
5557         * gcc.c (process_command): Handle LTO file@offset case more
5558         appropriately.
5559
5560 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
5561
5562         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
5563         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
5564         of DEBUG_INSNs.
5565         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
5566
5567         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
5568         if MEM's mode size isn't DWARF2_ADDR_SIZE.
5569         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
5570         Optimize eq/ne comparisons when both arguments are known to be
5571         zero-extended.
5572         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
5573         Don't mask operands unnecessarily if they are known to be already
5574         zero-extended.
5575
5576 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
5577
5578         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
5579         instead of loop.
5580
5581 2010-02-10  Richard Guenther  <rguenther@suse.de>
5582
5583         PR tree-optimization/43017
5584         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
5585         for wrapping signed arithmetic.
5586
5587 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
5588
5589         PR debug/43010
5590         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
5591         if no debug info should be emitted for it.
5592
5593 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
5594
5595         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
5596         note when flag_exceptions is set.
5597
5598 2010-02-10  Duncan Sands  <baldrick@free.fr>
5599
5600         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
5601
5602 2010-02-10  Richard Guenther  <rguenther@suse.de>
5603
5604         PR c/43007
5605         * tree.c (get_unwidened): Handle constants.
5606         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
5607
5608 2010-02-10  Martin Jambor  <mjambor@suse.cz>
5609
5610         PR lto/42985
5611         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
5612         check for variable argument counts independently.
5613
5614 2010-02-10  Christian Bruel  <christian.bruel@st.com>
5615
5616         PR target/42841
5617         * config/sh/sh.c (find_barrier): Increase length for non delayed
5618         conditional branches.
5619
5620 2010-02-10  Christian Bruel  <christian.bruel@st.com>
5621
5622         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
5623
5624 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
5625
5626         * builtins.c (set_builtin_user_assembler_name): Also handle
5627         ffs if int is smaller than word.
5628
5629 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
5630
5631         PR middle-end/42973
5632         * ira-conflicts.c (get_dup): Remove.
5633         (process_reg_shuffles): Add new parameter.  Use it as an
5634         additional guard for copy generation.
5635         (add_insn_allocno_copies): Rewrite.
5636
5637 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
5638
5639         * common.opt (fsched2-use-traces): Preserved for backward
5640         compatibility.
5641         * doc/invoke.texi: Remove the documentation about option
5642         -fsched2-use-traces.
5643         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
5644         flag_sched2_use_traces.
5645         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
5646         the backward compatibility flag section.
5647
5648 2010-02-09  Richard Guenther  <rguenther@suse.de>
5649
5650         PR tree-optimization/43008
5651         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
5652         make HEAP variables initialized from global memory if they
5653         are not known builtin functions.
5654         (find_func_aliases): Adjust.
5655
5656 2010-02-09  Richard Guenther  <rguenther@suse.de>
5657
5658         PR tree-optimization/43000
5659         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
5660         arithmetic manually.
5661
5662 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
5663
5664         PR tree-optimization/42931
5665         * tree-loop-linear.c (try_interchange_loops): Don't call
5666         double_int_mul if estimated_loop_iterations failed.
5667
5668 2010-02-08  Martin Jambor  <mjambor@suse.cz>
5669
5670         PR middle-end/42898
5671         * tree-sra.c (build_accesses_from_assign): Do not mark in
5672         should_scalarize_away_bitmap if stmt has volatile ops.
5673         (sra_modify_assign): Do not process assigns piecemeal if if stmt
5674         has volatile ops.
5675
5676 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
5677
5678         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
5679
5680 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
5681
5682         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
5683         before the pattern.
5684
5685 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
5686
5687         PR middle-end/42946
5688         * df-core.c (df_finish_pass): Change type of saved_flags to int.
5689
5690 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
5691
5692         PR middle-end/42988
5693         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
5694         to unknown_dependence.
5695         (graphite_legal_transform_dr): Handle the unknown_dependence.
5696         (graphite_carried_dependence_level_k): Same.
5697
5698 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
5699
5700         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
5701
5702 2010-02-07  Richard Guenther  <rguenther@suse.de>
5703
5704         PR middle-end/42991
5705         * expr.c (get_inner_reference): Always initialize *pbitsize.
5706
5707 2010-02-07  Richard Guenther  <rguenther@suse.de>
5708
5709         PR middle-end/42956
5710         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
5711         new ARRAY_REFs on variable size element or minimal index arrays.
5712         Complete.
5713         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
5714         gimple_fold_indirect_ref.
5715
5716 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
5717
5718         PR target/42957
5719         * arm.c (arm_override_options): Just return if the user has specified
5720         an invalid fpu name.
5721
5722 2010-02-03  Jason Merrill  <jason@redhat.com>
5723
5724         PR c++/42870
5725         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
5726         i386_pe_maybe_record_exported_symbol.
5727
5728 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
5729
5730         PR target/42924
5731         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
5732         (pa_delegitimize_address): New function.
5733
5734 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
5735
5736         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
5737         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
5738
5739 2010-02-05  Richard Guenther  <rguenther@suse.de>
5740
5741         PR lto/42762
5742         * lto-streamer-in.c (get_resolution): Deal with references
5743         to undefined functions.
5744
5745 2010-02-05  Richard Guenther  <rguenther@suse.de>
5746
5747         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
5748         (fold_const_aggregate_ref): Likewise.
5749         (ccp_fold_stmt): Substitute loads.
5750         (maybe_fold_reference): Verify types before substituting.
5751         Unshare properly.
5752         (fold_gimple_assign): Unshare properly.
5753         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
5754
5755 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
5756
5757         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
5758         for rs6000_gen_cell_microcode.
5759
5760 2010-02-04  Richard Guenther  <rguenther@suse.de>
5761
5762         PR rtl-optimization/42952
5763         * dse.c (const_or_frame_p): Remove MEM handling.
5764
5765 2010-02-04  Nick Clifton  <nickc@redhat.com>
5766
5767         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5768         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
5769         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
5770         (mn10300_asm_output_mi_thunk): New function.
5771         (mn10300_can_output_mu_thunk): New function.
5772         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
5773         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
5774         (FUNCTION_ARG): Delete incorrect comment.
5775
5776 2010-02-03  Jason Merrill  <jason@redhat.com>
5777
5778         PR c++/40138
5779         * fold-const.c (operand_equal_p): Handle erroneous types.
5780
5781 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5782
5783         * config/h8300/h8300.md (can_delay): Fix attibute condition.
5784
5785 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
5786
5787         PR rtl-optimization/42941
5788         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
5789         of xmalloc.
5790
5791 2010-02-03  Jason Merrill  <jason@redhat.com>
5792
5793         PR c++/35652
5794         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
5795
5796 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
5797
5798         PR debug/42896
5799         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
5800         (cselib_reset_table): Renamed from...
5801         (cselib_reset_table_with_next_value): ... this.
5802         (cselib_get_next_uid): Renamed from...
5803         (cselib_get_next_unknown_value): ... this.
5804         * cselib.c (next_uid): Renamed from...
5805         (next_unknown_value): ... this.
5806         (cselib_clear_table): Adjust.
5807         (cselib_reset_table): Adjust.  Renamed from...
5808         (cselib_reset_table_with_next_value): ... this.
5809         (cselib_get_next_uid): Adjust.  Renamed from...
5810         (cselib_get_next_unknown_value): ... this.
5811         (get_value_hash): Use hash.
5812         (cselib_hash_rtx): Likewise.
5813         (new_cselib_val): Adjust.  Set and dump uid.
5814         (cselib_lookup_mem): Pass next_uid as hash.
5815         (cselib_subst_to_values): Likewise.
5816         (cselib_log_lookup): Dump uid.
5817         (cselib_lookup): Pass next_uid as hash.  Adjust.
5818         (cselib_process_insn): Adjust.
5819         (cselib_init): Initialize next_uid.
5820         (cselib_finish): Adjust.
5821         (dump_cselib_table): Likewise.
5822         * dse.c (canon_address): Dump value uid.
5823         * print-rtl.c (print_rtx): Print value uid.
5824         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
5825         (dvuid): New type.
5826         (dv_uid): New function, sort of renamed from...
5827         (dv_htab_hash): ... this, reimplemented in terms of it and...
5828         (dv_uid2hash): ... this.  New.
5829         (variable_htab_eq): Drop excess assertions.
5830         (tie_break_pointers): Removed.
5831         (canon_value_cmp): Compare uids.
5832         (variable_post_merge_New_vals): Print uids.
5833         (vt_add_function_parameters): Adjust.
5834         (vt_initialize): Reset table.  Adjust.
5835
5836 2010-02-03  Richard Guenther  <rguenther@suse.de>
5837
5838         PR tree-optimization/42944
5839         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
5840         (call_may_clobber_ref_p_1): Likewise.  Properly handle
5841         malloc and calloc clobbering errno.
5842
5843 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
5844
5845         * doc/invoke.texi: Fix name of sched1 dump.
5846
5847         * opts.c (decode_options): Set flag_tree_switch_conversion
5848         only conditionally on optimize >= 2.
5849
5850         * gcse.c: Assorted comment fixes in pass description.
5851
5852 2010-02-03  Anthony Green  <green@moxielogic.com>
5853
5854         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
5855         nop padding in order to maintain alignment of storage location of
5856         target function address.
5857         (moxie_trampoline_init): Store target function address at newly
5858         aligned location.
5859         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
5860         to 32.
5861         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
5862
5863 2010-02-03  Richard Guenther  <rguenther@suse.de>
5864
5865         PR middle-end/42927
5866         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
5867
5868 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5869
5870         * config.gcc: Reenable check for obsolete targets.
5871         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
5872         mips-sgi-irix6.[0-4]*.
5873
5874 2010-02-02  Nick Clifton  <nickc@redhat.com>
5875
5876         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
5877         constant size of 4 as being the same as 0.
5878         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
5879         can take values in the range 0..4.
5880
5881 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
5882
5883         PR java/41991
5884         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
5885         as _darwin10_Unwind_FindEnclosingFunction().
5886         * libgcc-libsystem.ver: New.
5887
5888 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
5889
5890         PR target/41399
5891         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
5892         implicitly set registers.
5893
5894 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
5895
5896         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
5897         (arm_override_options): Allow automatic selection of the thread
5898         pointer register if thumb2.
5899         (legitimize_pic_address): Improve code sequences for Thumb2.
5900         (arm_call_tls_get_addr): Likewise.
5901         (legitimize_tls_address): Likewise.
5902         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
5903         (pic_load_addr_32bit): ... this.  New named pattern.
5904         * thumb2.md (pic_load_addr_thumb2): Delete.
5905         (pic_load_dot_plus_four): Delete.
5906         (tls_load_dot_plus_four): New named pattern.
5907
5908 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5909
5910         PR libgomp/29986
5911         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
5912         Document fix for TLS bug.
5913
5914 2010-01-31  Richard Guenther  <rguenther@suse.de>
5915
5916         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
5917         conservatively correct.
5918
5919 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5920
5921         PR target/42850
5922         Revert:
5923         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5924
5925         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
5926
5927 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5928
5929         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
5930
5931 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
5932
5933         * config.gcc: Adjust order of makefile fragments for mingw targets.
5934
5935 2010-01-31  Richard Guenther  <rguenther@suse.de>
5936
5937         PR middle-end/42898
5938         * gimplify.c (gimplify_init_constructor): For volatile LHS
5939         initialize a temporary.
5940
5941 2010-01-31  Matthias Klose  <doko@ubuntu.com>
5942
5943         * configure.ac: Fix __stack_chk_fail check for cross builds configured
5944         --with-headers
5945         * configure: Regenerate.
5946
5947 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
5948
5949         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
5950         the same alias set and their sizes different constantness.
5951         (aliasing_component_refs_p): Revert 2009-10-24 change.
5952
5953 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5954
5955         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
5956         unused.
5957
5958 2010-01-29  Richard Guenther  <rguenther@suse.de>
5959
5960         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
5961         Assert we successfully updated the call.
5962
5963 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
5964
5965         PR rtl-optimization/42889
5966         * df.h (df_set_bb_dirty_nonlr): New prototype.
5967         * df-core.c (df_set_bb_dirty_nonlr): New function.
5968         * df-scan.c (df_insn_rescan): Call it instead of
5969         df_set_bb_dirty for DEBUG_INSNs.
5970
5971 2010-01-29  Richard Guenther  <rguenther@suse.de>
5972
5973         PR middle-end/37448
5974         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
5975         quadratic behavior in most cases.
5976
5977 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
5978
5979         PR target/42891
5980         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
5981         in the call to gen_x86_movsicc_0_m1.
5982
5983 2010-01-28  Richard Guenther  <rguenther@suse.de>
5984
5985         PR tree-optimization/42871
5986         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
5987
5988 2010-01-28  Richard Guenther  <rguenther@suse.de>
5989
5990         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
5991         into call arguments.
5992
5993 2010-01-28  Richard Guenther  <rguenther@suse.de>
5994
5995         PR middle-end/42883
5996         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
5997         the forwarder if the destination is an EH landing pad.
5998
5999 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
6000
6001         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
6002         block list passed to gimple_duplicate_sese_tail.
6003         (parallelize_loops): Avoid parallelization when the function
6004         has_nonlocal_label.
6005         Avoid parallelization when the preheader is IRREDUCIBLE.
6006         Try to optimize when estimated_loop_iterations_int is unresolved.
6007         Add the loop's location to the dump file.
6008         * tree-cfg.c (add_phi_args_after_redirect): Remove.
6009         (gimple_duplicate_sese_tail): Remove the check for the latch.
6010         Redirect nexits to the exit block.
6011         Remove handling of the incoming edges to the latch.
6012         Redirect the backedge from the copied latch to the exit bb.
6013
6014 2010-01-28  Michael Matz  <matz@suse.de>
6015
6016         PR target/42881
6017         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
6018         Wrap force_reg into a sequence, emit it before user.
6019
6020 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
6021
6022         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
6023         (arm_rev): New.
6024         (arm_legacy_rev): Likewise.
6025         (thumb_legacy_rev): Likewise.
6026
6027 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
6028
6029         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
6030         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
6031         on MEM's address failed, try avoid_constant_pool_reference and
6032         recurse if it returned something different.
6033         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
6034         address, try avoid_constant_pool_reference and recurse if it
6035         returned something different.
6036         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
6037         address and avoid_constant_pool_reference returned something
6038         different, don't set have_address.
6039
6040 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
6041
6042         PR debug/42861
6043         * var-tracking.c (val_store): Add modified argument, obey it.
6044         Adjust callers.
6045         (count_uses): Move down logging of main.
6046         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
6047         don't need resolution.
6048         (emit_notes_in_bb): Likewise.
6049
6050 2010-01-27  Richard Guenther  <rguenther@suse.de>
6051
6052         PR middle-end/42878
6053         * tree-inline.c (remap_decl): Delay remapping of SSA name
6054         default definitions until we need them.
6055
6056 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
6057
6058         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6059         (rs6000_delegitimize_address): New function.
6060
6061         * config/s390/s390.c (s390_delegitimize_address): Call
6062         delegitimize_mem_from_attrs.
6063
6064         PR middle-end/42874
6065         * tree-inline.c (cannot_copy_type_1): Removed.
6066         (copy_forbidden): Don't forbid copying of functions containing
6067         records/unions with variable length fields.
6068
6069 2010-01-27  Christian Bruel  <christian.bruel@st.com>
6070
6071         Revert:
6072         PR target/42841
6073         * config/sh/sh.c (find_barrier): Increase length for non delayed
6074         conditional branches.
6075
6076 2010-01-27  Matthias Klose  <doko@ubuntu.com>
6077
6078         * configure.ac (gnu-unique-object): Fix ldd version check.
6079         * configure: Regenerate.
6080
6081 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6082
6083         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
6084         HAVE_GNU_AS value.
6085         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
6086         Test for HAVE_GNU_AS value.
6087
6088 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6089
6090         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
6091         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
6092         INT64_TYPE): Define.
6093         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
6094         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6095         INT_LEAST64_TYPE): Define.
6096         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
6097         UINT_LEAST64_TYPE): Define.
6098         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
6099         INT_FAST64_TYPE): Define.
6100         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6101         UINT_FAST64_TYPE): Define.
6102         (INTMAX_TYPE, UINTMAX_TYPE): Define.
6103         (INTPTR_TYPE, UINTPTR_TYPE): Define.
6104         (SIG_ATOMIC_TYPE): Define.
6105
6106 2010-01-26  Richard Guenther  <rguenther@suse.de>
6107
6108         * df-scan.c (df_scan_set_bb_info): Remove assert.
6109         (df_insn_rescan_debug_internal): Merge asserts.
6110         (df_install_ref): Likewise.
6111         (df_mark_reg): Use bitmap_set_range.
6112         (df_hard_reg_used_p): Remove assert.
6113         (df_hard_reg_used_count): Likewise.
6114
6115 2010-01-26  Richard Guenther  <rguenther@suse.de>
6116
6117         PR rtl-optimization/42685
6118         * web.c (web_main): Ignore DEBUG_INSNs.
6119
6120 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
6121
6122         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
6123
6124         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
6125         Fix types of fndecl and arglist parameters.
6126
6127 2010-01-26  Richard Guenther  <rguenther@suse.de>
6128
6129         PR middle-end/42806
6130         * tree-eh.c (unsplit_eh): Skip debug insns.
6131
6132 2010-01-26  Richard Guenther  <rguenther@suse.de>
6133
6134         PR tree-optimization/42250
6135         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
6136
6137 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
6138
6139         PR fortran/42866
6140         * omp-low.c (expand_omp_sections): Only use single_pred if
6141         l2_bb is single_pred_p.
6142
6143 2010-01-25  Christian Bruel  <christian.bruel@st.com>
6144
6145         PR target/42841
6146         * config/sh/sh.c (find_barrier): Increase length for non delayed
6147         conditional branches.
6148         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
6149
6150 2010-01-24  David S. Miller  <davem@davemloft.net>
6151
6152         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
6153         define if not using GAS.
6154         * config/sparc/sparc.c (sparc_elf_asm_named_section):
6155         Likewise.  Delete SECTION_MERGE code, which is only applicable
6156         when using GAS.
6157
6158 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
6159
6160         PR c++/42748
6161         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
6162         mangling of va_list in system headers.
6163
6164 2010-01-23  Toon Moene  <toon@moene.org>
6165
6166         * tree-predcom.c (combine_chains): Return NULL, not false.
6167
6168 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
6169
6170         * tree-loop-distribution.c (distribute_loop): Fix declaration and
6171         initialization of variable res to agree with return type.
6172
6173 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
6174
6175         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
6176         * tree-sra.c: Add include of expr.h.
6177
6178 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
6179
6180         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
6181         insert the debug stmt on the single non-EH edge from the stmt.
6182
6183 2010-01-22  Richard Henderson  <rth@redhat.com>
6184
6185         PR tree-opt/42833
6186         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
6187         the RHS until after generate_subtree_copies has insertted its
6188         code before the current statement.
6189
6190 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
6191
6192         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
6193
6194         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
6195
6196 2010-01-21  Martin Jambor  <mjambor@suse.cz>
6197
6198         PR tree-optimization/42585
6199         * tree-sra.c (struct access): New field grp_total_scalarization.
6200         (dump_access): Dump the new field.
6201         (should_scalarize_away_bitmap): New variable.
6202         (cannot_scalarize_away_bitmap): Likewise.
6203         (sra_initialize): Allocate new bitmaps.
6204         (sra_deinitialize): Free new bitmaps.
6205         (create_access_1): New function.
6206         (create_access): Parts moved to create_access_1.
6207         (type_consists_of_records_p): New function.
6208         (completely_scalarize_record): Likewise.
6209         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
6210         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
6211         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
6212         access.
6213         (analyze_all_variable_accesses): Completely scalarize small eligible
6214         records.
6215
6216 2010-01-21  Martin Jambor  <mjambor@suse.cz>
6217
6218         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
6219
6220 2010-01-21  Andrew Haley  <aph@redhat.com>
6221
6222         * gcc.c (process_command): Move lang_specific_driver before
6223         setting cc_libexec_prefix.
6224
6225 2010-01-21  Richard Guenther  <rguenther@suse.de>
6226
6227         PR middle-end/19988
6228         * fold-const.c (negate_expr_p): Pretend only negative
6229         real constants are easily negatable.
6230
6231 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
6232             Jason Merrill  <jason@redhat.com>
6233
6234         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
6235         (TYPE_TRANSPARENT_AGGR): this, for union and record.
6236         * calls.c (initialize argument_information): Handle it.
6237         * c-common.c (handle_transparent_union_attribute): Use new name.
6238         * c-decl.c (finish_struct): Ditto.
6239         * c-typeck.c (type_lists_compatible_p): Ditto.
6240         (convert_for_assignment): Use new name and also handle record.
6241         * function.c (aggregate_value_p): Handle it.
6242         (pass_by_reference): Ditto.
6243         (assign_parm_data_types): Ditto.
6244         * print-tree.c (print_node): Ditto.
6245         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
6246         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
6247         * tree.c (first_field): New fn.
6248
6249 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
6250
6251         PR target/42818
6252         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
6253         even when linking statically, for now.
6254
6255 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
6256
6257         PR debug/42715
6258         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
6259         without a cselib val.
6260         (count_uses): Accept MO_VAL_SET with no val on stores.
6261         (add_stores): Likewise.
6262
6263 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
6264
6265         * var-tracking.c (check_value_val): Add a compile time assertion.
6266         (dv_is_decl_p): Simplify.
6267         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
6268         gcc_assert if ENABLE_CHECKING.
6269
6270 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
6271
6272         PR debug/42782
6273         * var-tracking.c: Include tree-flow.h.
6274         (mem_dies_at_call): New.
6275         (dataflow_set_preserve_mem_locs): Use it.
6276         (dataflow_set_remove_mem_locs): Likewise.
6277         (dump_var): Renamed from dump_variable.  Adjust all callers.
6278         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
6279         * Makefile.in (var-tracking.o): Adjust deps.
6280
6281 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
6282
6283         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
6284
6285 2010-01-20  Richard Guenther  <rguenther@suse.de>
6286
6287         PR tree-optimization/42717
6288         * tree-ssa-dce.c (get_live_post_dom): Remove.
6289         (forward_edge_to_pdom): Take an arbitrary edge to copy
6290         degenerate PHI args from.
6291         (remove_dead_stmt): Use the first post-dominator even if it
6292         does not contain live statements as redirection destination.
6293
6294 2010-01-20  Richard Guenther  <rguenther@suse.de>
6295
6296         * tree-inline.c (estimate_num_insns): Handle EH builtins.
6297
6298 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
6299
6300         * sel-sched.c (create_speculation_check): Remove set but not used
6301         variable twin.
6302         (try_transformation_cache): Remove set but not used variable ds.
6303         (calculate_privileged_insns): Remove set but not used variables
6304         cur_insn and min_spec_insn.
6305         (find_best_expr): Remove set but not used variable avail_n.
6306         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
6307         variable e.
6308         * cgraphunit.c (assemble_thunk): Remove set but not used variable
6309         false_label.
6310         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
6311         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
6312         new_scop_exit_edge.
6313
6314 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
6315
6316         PR bootstrap/42786
6317         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
6318         cpu types.  Add support for *-sse3 cpu types.
6319         (x86_64-*-*): Ditto.
6320
6321 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
6322
6323         PR middle-end/42803
6324         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
6325         argument, call initializer_constant_valid_p_1 instead of
6326         initializer_constant_valid_p, pass CACHE to it, return NULL
6327         immediately if first call returns NULL.
6328         (initializer_constant_valid_p_1): New function.
6329         (initializer_constant_valid_p): Use it.
6330
6331 2010-01-20  Thomas Quinot  <quinot@adacore.com>
6332
6333         * tree.def (PLACEHOLDER_EXPR): Fix comment.
6334
6335 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
6336
6337         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
6338         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
6339         (loc_list_from_tree): Don't handle unsigned division.  Handle
6340         signed modulo using DW_OP_{over,over,div,mul,minus}.
6341         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
6342         modulo instead of signed.
6343
6344 2010-01-20  DJ Delorie  <dj@redhat.com>
6345
6346         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
6347         (Fpa): Pass it
6348         (h8300_emit_stack_adjustment): Propogate it.
6349         (push): Pass it.
6350         (h8300_expand_prologue): Likewise.
6351         (h8300_expand_epilogue): Likewise.
6352
6353 2010-01-19  Michael Matz  <matz@suse.de>
6354
6355         PR tree-optimization/41783
6356         * tree-data-ref.c (toplevel): Include flags.h.
6357         (dump_data_dependence_relation):  Also dump the inputs if the
6358         result will be unknown.
6359         (split_constant_offset_1): Look through some conversions.
6360         * tree-predcom.c (determine_roots_comp): Restart a new chain if
6361         the offset from last element is too large.
6362         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
6363         (reassociate_to_the_same_stmt): Handle vector registers.
6364         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
6365         (e.g. conversions).
6366         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
6367         wide_prolog_niters argument, emit widening instructions.
6368         (vect_do_peeling_for_alignment): Adjust caller, use widened
6369         variant of the iteration cound.
6370         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
6371
6372 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6373
6374         PR target/38697
6375         * config/arm/neon-testgen.m (emit_automatics): New parameter
6376         features. Adjust for Fixed_return_reg feature.
6377         (test_intrinsic): Call emit_automatics with new feature.
6378         * config/arm/neon.ml: Update copyright years.
6379         (features): New Fixed_return_reg feature.
6380         (ops): Update feature for Vget_low.
6381
6382 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
6383
6384         PR tree-optimization/42719
6385         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
6386         stmt uses.
6387
6388         PR debug/42728
6389         * fwprop.c (all_uses_available_at): Return false if def_set dest
6390         is a REG that is used in def_insn.
6391
6392 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
6393
6394         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
6395
6396         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
6397         Add argument names.
6398
6399         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
6400
6401         * target.h (struct gcc_target) <secondary_reload>: Change type
6402         of last argument to secondary_reload_info *.
6403
6404 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
6405
6406         PR target/42774
6407         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
6408         memory references with unaligned offsets.  Remove CQImode handling.
6409         (unaligned_memory_operand): Return 1 for memory references with
6410         unaligned offsets.  Remove CQImode handling.
6411
6412 2010-01-18  Richard Guenther  <rguenther@suse.de>
6413
6414         PR middle-end/39954
6415         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
6416         builtin calls.
6417
6418 2010-01-18  Richard Guenther  <rguenther@suse.de>
6419
6420         PR tree-optimization/42781
6421         * tree-ssa-structalias.c (find_what_var_points_to): Skip
6422         restrict processing only if the original variable was artificial.
6423
6424 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
6425
6426         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
6427         find number of popped argument bytes.
6428
6429         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
6430         Fix the text that describes the return value for invalid insns.
6431
6432         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
6433
6434         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
6435         Clarify what 'cost of the -dependence' is.  Fix quoting.
6436
6437         * toplev.c (default_get_pch_validity): Rename argument to "sz".
6438         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
6439
6440 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
6441
6442         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
6443         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
6444
6445 2010-01-17  Richard Guenther  <rguenther@suse.de>
6446
6447         PR middle-end/42248
6448         * function.c (split_complex_args): Take a VEC to modify.
6449         (assign_parms_augmented_arg_list): Build a VEC instead of
6450         a chain of PARM_DECLs.
6451         (assign_parms_unsplit_complex): Take a VEC of arguments.
6452         Do not fixup unmodified parms.
6453         (assign_parms): Deal with the VEC.
6454         (gimplify_parameters): Likewise.
6455
6456 2010-01-17  Richard Guenther  <rguenther@suse.de>
6457
6458         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
6459         node existence check.
6460         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
6461         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6462         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
6463         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
6464         (gimple_execute_on_growing_pred): Likewise.
6465
6466 2010-01-17  Richard Guenther  <rguenther@suse.de>
6467
6468         PR tree-optimization/42773
6469         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
6470         (compute_antic_aux): Likewise.
6471         (compute_partial_antic_aux): Likewise.
6472
6473 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
6474
6475         PR debug/42767
6476         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
6477         and US_TRUNCATE.
6478
6479 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
6480
6481         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
6482         appearance.
6483
6484         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
6485         Fix markup for strict argument.
6486
6487         (TARGET_SCHED_REORDER2): Fix argument types.
6488
6489         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
6490         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
6491
6492         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
6493         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
6494
6495         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
6496         Add argument name.
6497
6498         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
6499         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
6500         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
6501         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
6502         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
6503
6504         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
6505
6506         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
6507
6508         (TARGET_ASM_RELOC_RW_MASK): Add return type.
6509         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
6510
6511         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
6512
6513         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
6514         Use prototype.
6515
6516         (TARGET_ASM_NAMED_SECTION): Fix argument list.
6517
6518         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
6519         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
6520
6521         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
6522
6523         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
6524
6525         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
6526         referring to it.  Fix language.
6527
6528         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
6529
6530         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
6531
6532         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
6533
6534         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
6535
6536         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
6537         '@var{stream}.  Remove stray 'and'.
6538
6539         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
6540
6541         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
6542
6543         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
6544
6545         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
6546         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
6547
6548         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
6549         Fix description of return value.
6550         Rename argument "sz" to "len."
6551
6552         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
6553         Clarify meaning of 'true' return value.
6554
6555         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
6556
6557         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
6558         rep_mode versus mode_rep.
6559
6560         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
6561
6562         (TARGET_BUILTIN_DECL): Fix name.
6563
6564         (TARGET_COMMUTATIVE_P): Fix type of first argument.
6565
6566         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
6567
6568         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
6569
6570         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
6571
6572         (TARGET_RELAXED_ORDERING): Use @deftypevr.
6573
6574         (TARGET_GET_DRAP_RTX): Note that this is a hook.
6575         Clarify language.
6576
6577         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
6578         Rename argument tm_fn to md_fn.
6579
6580         (TARGET_OPTION_PRINT): Fix argument list.
6581
6582 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
6583
6584         PR target/42664
6585         * config/i386/i386.c (ix86_fixup_binary_operands):
6586         Revert FMA4 fixup of operands.
6587
6588 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6589
6590         PR gcc/42525
6591         * Makefile.in (write_entries_to_file, install-plugin):
6592         Use \012 instead of \n with tr.
6593
6594 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
6595
6596         * configure.ac (HAVE_AS_REF): New C macro.
6597         * configure: Regenerate.
6598         * config.in: Likewise.
6599         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
6600         if HAVE_AS_REF.
6601         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
6602         if HAVE_AS_REF.
6603
6604 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
6605
6606         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
6607
6608         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
6609
6610         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
6611
6612         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
6613
6614         (TARGET_IN_SMALL_DATA_P): Fix argument type.
6615
6616         (TARGET_BINDS_LOCAL_P): Fix argument type.
6617
6618         (TARGET_ASM_FILE_END): Use prototype.
6619
6620         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
6621
6622         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
6623
6624         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
6625
6626         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
6627
6628         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
6629         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
6630
6631         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
6632         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
6633
6634         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
6635         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
6636         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
6637         (TARGET_ADDR_SPACE_CONVERT): Likewise.
6638
6639         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
6640
6641         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
6642
6643         (TARGET_INIT_BUILTINS): Use prototype.
6644
6645         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
6646         Put 'const char *' in braces.  Fix parameter types.
6647         (TARGET_INVALID_CONVERSION): Fix parameter types.
6648         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
6649         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
6650
6651         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
6652         Fix argument type.
6653
6654         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
6655
6656         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
6657
6658 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
6659
6660         * doc/tm.texi (TARGET_HELP): Fix return type.
6661
6662         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
6663         in braces.  Fix argument types.
6664
6665         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
6666
6667         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
6668
6669         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
6670
6671         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
6672         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
6673
6674         (TARGET_MANGLE_TYPE): Fix argument types.
6675
6676         (TARGET_IRA_COVER_CLASSES): Use prototype.
6677
6678         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
6679
6680         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
6681
6682         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
6683
6684         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
6685
6686         (TARGET_CALLEE_COPIES): Fix argument types.
6687
6688         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
6689
6690         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
6691
6692         (TARGET_FUNCTION_VALUE): Fix argument types.
6693
6694         (TARGET_RETURN_IN_MSB): Fix argument type.
6695
6696         (TARGET_RETURN_IN_MEMORY): Fix argument types.
6697
6698         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
6699
6700         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
6701
6702         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
6703         agree with return type.
6704
6705         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
6706
6707 2010-01-15  Jing Yu  <jingyu@google.com>
6708
6709         PR rtl-optimization/42691
6710         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
6711         a pseudo to a constant and are merged, and adjust comments.
6712
6713 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
6714
6715         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
6716
6717 2010-01-15  Richard Guenther  <rguenther@suse.de>
6718
6719         PR middle-end/42739
6720         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
6721         labels of computed or non-local gotos to the destination.
6722         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
6723         landing pad label is the first label.
6724
6725 2010-01-15  Richard Guenther  <rguenther@suse.de>
6726
6727         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
6728
6729 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6730
6731         PR target/42747
6732         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
6733         to allow generation of the xssqrtdp instruction on power7.
6734         (sqrtdf2_fpr): Ditto.
6735
6736 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
6737
6738         PR middle-end/42674
6739         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
6740         functions with noreturn attribute.
6741
6742         PR c++/42608
6743         * varasm.c (declare_weak): Add weak attribute to decl if it
6744         doesn't have one already.
6745         (assemble_external): Only add decls to weak_decls if they also
6746         have weak attribute.
6747
6748 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
6749
6750         * var-tracking.c (var_reg_delete): Don't delete the association
6751         between REGs and values or one-part variables if the register
6752         isn't clobbered.
6753
6754 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
6755
6756         PR debug/42657
6757         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
6758         because its first operand is a non-localized variable.
6759
6760 2010-01-14  Martin Jambor  <mjambor@suse.cz>
6761
6762         PR tree-optimization/42706
6763         * tree-sra.c (encountered_recursive_call): New variable.
6764         (encountered_unchangable_recursive_call): Likewise.
6765         (sra_initialize): Initialize both new variables.
6766         (callsite_has_enough_arguments_p): New function.
6767         (scan_function): Call decl and flags check only for IPA-SRA, check
6768         whether there is a recursive call and whether it has enough arguments.
6769         (all_callers_have_enough_arguments_p): New function.
6770         (convert_callers): Look for recursive calls only when
6771         encountered_recursive_call is set.
6772         (ipa_early_sra): Bail out either if
6773         !all_callers_have_enough_arguments_p or
6774         encountered_unchangable_recursive_call.
6775
6776 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
6777
6778         * sel-sched.c: Add 2010 to copyright years.
6779         * sel-sched-ir.c: Likewise.
6780         * sel-sched-ir.h: Likewise.
6781
6782 2010-01-14  Martin Jambor  <mjambor@suse.cz>
6783
6784         PR tree-optimization/42714
6785         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
6786         constructors specially.
6787
6788 2010-01-14  Andi Kleen  <ak@linux.intel.com>
6789
6790         * config/i386/drivers-i386.c (detect_caches_intel):
6791         Add l2sizekb parameter and fill in.
6792         (host_detect_local_cpu): Add l2sizekb, fill in.
6793         Add Atom small cache heuristic.
6794
6795 2010-01-14  Andi Kleen  <ak@linux.intel.com>
6796
6797         * config/i386/drivers-i386.c (detect_caches_cpuid4):
6798         Add level3 parameter and fill in.
6799         (detect_caches_intel): Handle level3 cache.
6800
6801 2010-01-14  Andi Kleen  <ak@linux.intel.com>
6802
6803         * config/i386/drivers-i386.c (host_detect_local_cpu):
6804         Fix core duo detection.
6805
6806 2010-01-14  Andi Kleen  <ak@linux.intel.com>
6807
6808         * config/i386/drivers-i386.c (host_detect_local_cpu):
6809         Fix Atom detection.
6810
6811 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
6812
6813         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
6814         (rs6000_variable_issue_1): this.  Use...
6815         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
6816
6817 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
6818
6819         * sel-sched-ir.c (sel_restore_other_notes): Rename to
6820         sel_restore_notes.  Update all callers.  Call reemit_notes
6821         for all insns.
6822
6823 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
6824
6825         PR rtl-optimization/42246
6826         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
6827         loops.
6828
6829 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
6830
6831         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
6832         all successors is the same as number of successors in current region.
6833
6834 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
6835
6836         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
6837         to rename is not separable.  Otherwise check that its LHS is not NULL.
6838
6839 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
6840
6841         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
6842
6843 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
6844
6845         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
6846         available registers when failed to discover LHS register class.
6847         Fix indentation.  Update comment.
6848
6849 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
6850             Alexander Monakov  <amonakov@ispras.ru>
6851
6852         PR rtl-optimization/42389
6853         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
6854         to can_issue_more.
6855         (advance_state_on_fence): Likewise.
6856         (sel_target_adjust_priority): Print debug output only when
6857         sched_verbose >= 4, not 2.
6858         (get_expr_cost): Do not issue all unique insns on the next cycle.
6859         (fill_insns): Initialize can_issue_more from the value saved
6860         with the fence.
6861         * sel-sched-ir.c (flist_add): New parameter issue_more.
6862         Init FENCE_ISSUE_MORE with it.
6863         (merge_fences): Likewise.
6864         (init_fences): Update call to flist_add.
6865         (add_to_fences, add_clean_fence_to_fences)
6866         (add_dirty_fence_to_fences): Likewise.
6867         (move_fence_to_fences): Update call to merge_fences.
6868         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
6869         sched groups.
6870         * sel-sched-ir.h (struct _fence): New field issue_more.
6871         (FENCE_ISSUE_MORE): New accessor macro.
6872
6873 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
6874
6875         PR rtl-optimization/42388
6876         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
6877         that have no predecessors nor successors.  Do not call move_bb_info
6878         for empty blocks outside of current region.
6879
6880 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
6881
6882         PR rtl-optimization/42294
6883         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
6884         * sel-sched.c (move_exprs_to_boundary): Transitively add all
6885         originators' originators.
6886
6887 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
6888
6889         PR rtl-optimization/39453
6890         PR rtl-optimization/42246
6891         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
6892         for pipelining_p.
6893         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
6894
6895 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
6896             Alexander Monakov  <amonakov@ispras.ru>
6897
6898         PR middle-end/42245
6899         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
6900         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
6901         argument.  Update all callers.
6902         (tidy_control_flow): ... and here.  Recompute topological order
6903         of basic blocks in region if necessary.
6904         (sel_redirect_edge_and_branch): Change return type.  Return true
6905         if topological order might have been invalidated.
6906         (purge_empty_blocks): Export and move from...
6907         * sel-sched.c (purge_empty_blocks): ... here.
6908         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
6909         (maybe_tidy_empty_bb): Delete prototype.
6910         (purge_empty_blocks): Declare.
6911
6912 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
6913
6914         PR rtl-optimization/42249
6915         * sel-sched.c (try_replace_dest_reg): When chosen register
6916         and original register is the same, do not bail out early, but
6917         still check all original insns for validity of replacing destination
6918         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
6919         in this case.
6920
6921 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
6922
6923         PR c/42721
6924         Port from no-undefined-overflow branch:
6925         2009-03-09  Richard Guenther  <rguenther@suse.de>
6926
6927         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
6928
6929 2010-01-14  Richard Guenther  <rguenther@suse.de>
6930
6931         PR lto/42665
6932         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
6933
6934 2010-01-14  Ira Rosen  <irar@il.ibm.com>
6935
6936         PR tree-optimization/42709
6937         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
6938         as scalar type in creation of constant vector operand.
6939
6940 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6941
6942         PR testsuite/42414
6943         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
6944         (check-parallel-%): Match `testsuite' directory component only
6945         at the end.
6946
6947 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
6948
6949         PR translation/39521
6950         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
6951         strings with _().
6952
6953 2010-01-13  Richard Guenther  <rguenther@suse.de>
6954
6955         PR tree-optimization/42730
6956         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
6957         offset zero.
6958
6959 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
6960
6961         PR target/pr42542
6962         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
6963         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
6964         them signed.
6965
6966 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
6967
6968         * config/bfin/libgcc-bfin.ver: Regenerate based on current
6969         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
6970         ___umulsi3_highpart.
6971
6972         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
6973         rather than schedule_insns if the pass is enabled.
6974
6975 2010-01-13  Martin Jambor  <mjambor@suse.cz>
6976
6977         PR tree-optimization/42704
6978         * tree-sra.c (sra_modify_assign): Do not delete assignments to
6979         SSA_NAMEs.
6980
6981 2010-01-13  Martin Jambor  <mjambor@suse.cz>
6982
6983         PR tree-optimization/42703
6984         * tree-sra.c (analyze_access_subtree): Check that we can build a
6985         reference to the original data within the aggregate.
6986
6987 2010-01-13  Richard Guenther  <rguenther@suse.de>
6988
6989         PR tree-optimization/42705
6990         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
6991
6992 2010-01-13  Richard Guenther  <rguenther@suse.de>
6993
6994         PR middle-end/42716
6995         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
6996
6997 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
6998
6999         PR debug/41371
7000         * var-tracking.c (values_to_unmark): New variable.
7001         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
7002         values_to_unmark vector.  Moved body to...
7003         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
7004         instead queue it into values_to_unmark vector.
7005         (vt_find_locations): Free values_to_unmark vector.
7006
7007 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
7008
7009         * config/s390/s390.c (override_options): Set
7010         default of max-pending-list-length to 256
7011
7012 2010-01-13  Richard Guenther  <rguenther@suse.de>
7013
7014         PR lto/42678
7015         * tree-pass.h (PROP_gimple_lcx): New.
7016         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
7017         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
7018         before the final cleanup_eh.
7019         (dump_properties): Dump PROP_gimple_lcx.
7020         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
7021         (tree_lower_complex_O0): Remove.
7022         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
7023         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
7024         tree_lower_complex, schedule TODO_update_ssa.
7025         * lto-streamer-out.c (output_function): Stream the functions
7026         properties.
7027         * lto-streamer-in.c (input_function): Likewise.
7028         (lto_read_body): Do not override them here.
7029
7030 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
7031
7032         PR c/42708
7033         * c-typeck.c (build_c_cast): Fold value cast to union type before
7034         wrapping it in a CONSTRUCTOR.
7035
7036 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
7037
7038         PR rtl-optimization/42699
7039         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
7040         involved.
7041
7042 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7043
7044         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
7045         SUBTARGET_WARN_UNUSED_SPEC): Move ...
7046         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
7047         SUBTARGET_WARN_UNUSED_SPEC): ... here
7048         * config/mips/iris5.h (LIBGCC_SPEC): Define.
7049
7050 2010-01-12  Julian Brown  <julian@codesourcery.com>
7051
7052         * config/arm/neon-schedgen.ml (Utils): Don't try to
7053         open missing module.
7054         (find_with_result): New.
7055
7056 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
7057
7058         PR debug/42662
7059         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
7060         sharing when canonicalizing ({lt,ge}u (plus a b) b).
7061
7062         PR tree-optimization/42645
7063         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
7064         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
7065         decl_map, set processing_debug_stmt to -1 and return name without
7066         any remapping.
7067
7068 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
7069
7070         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
7071         binutils version, and reword target configuration description.
7072
7073 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
7074
7075         * config/avr/avr.h (LINKER_NAME): Remove.
7076
7077 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
7078
7079         PR target/42416
7080         * config/rs6000/rs6000.c (rs6000_override_options): On targets
7081         that support VSX, warn for -mno-altivec if vsx is not disabled,
7082         and disable vsx.
7083
7084 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
7085             Shujing Zhao  <pearly.zhao@oracle.com>
7086
7087         PR translation/42469
7088         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
7089         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
7090         character between option name and help text.
7091         * c.opt (imultilib): Likewise.
7092
7093 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
7094
7095         * lto-streamer-out.c (output_unreferenced_globals): Output static
7096         variables.
7097
7098 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
7099
7100         PR rtl-optimization/42621
7101         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
7102         optimizing for size.
7103         (duplicate_computed_gotos): Remove now-redundant check.
7104
7105 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
7106
7107         PR target/37454
7108         * configure.ac: Save and restore LDFLAGS and LIBS
7109         * configure: Regenerate.
7110
7111 2010-01-10  Richard Guenther  <rguenther@suse.de>
7112
7113         PR middle-end/42667
7114         * builtins.c (fold_builtin_strlen): Add type argument and
7115         convert the resulting length to it.
7116         (fold_builtin_1): Adjust.
7117
7118 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
7119
7120         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
7121         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
7122         1 insn.
7123         (num_insns_constant_wide): Adjust for that change.
7124
7125 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7126
7127         PR debug/42631
7128         * web.c (union_defs): Add used argument, to combine uses of
7129         uninitialized regs.
7130         (entry_register): Adjust type and tests of used argument.
7131         (web_main): Widen used for new use.  Pass it to union_defs.
7132         * df.h (union_defs): Adjust prototype.
7133
7134 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7135
7136         PR debug/42630
7137         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
7138         uses in new incoming argument.  Free body.
7139         (reset_debug_uses_in_loop): New.
7140         (analyze_insn_to_expand_var): Call the latter if the former found
7141         anything.  Fix whitespace.  Reject invalid dest overlaps before
7142         going through all insns in the loop.
7143
7144 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7145
7146         PR debug/42629
7147         * haifa-sched.c (dying_use_p): Debug insns don't count.
7148
7149 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7150
7151         PR middle-end/42363
7152         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
7153         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
7154         (verify_gimple_call): Reject LHS in noreturn calls.
7155
7156 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7157
7158         PR debug/42604
7159         PR debug/42395
7160         * tree-vect-loop-manip.c (adjust_info): New type.
7161         (adjust_vec): New pointer to vector.
7162         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
7163         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
7164         (slpeel_update_phis_for_duplicate_loop): Use them.
7165         (slpeel_update_phi_nodes_for_guard1): Likewise.
7166         (slpeel_update_phi_nodes_for_guard2): Likewise.
7167         (slpeel_tree_peel_loop_to_edge): Likewise.
7168         (vect_update_ivs_after_vectorizer): Likewise.
7169
7170 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7171
7172         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
7173         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
7174
7175 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7176
7177         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
7178         bogus uninitialized warning.
7179
7180 2010-01-09  Richard Guenther  <rguenther@suse.de>
7181
7182         PR middle-end/42512
7183         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
7184         the evolution is compatible with the initial condition.
7185
7186 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
7187
7188         * gcc.c (process_command): Update copyright notice dates.
7189         * gcov.c (print_version): Likewise.
7190         * gcov-dump.c (print_version): Likewise.
7191         * mips-tfile.c (main): Likewise.
7192         * mips-tdump.c (main): Likewise.
7193
7194 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
7195
7196         PR target/41885
7197         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
7198         (rotlhi3): Delete.
7199         (rotlhi3_8): Delete.
7200         (rotlsi3): Delete.
7201         (rotlsi3_8): Delete.
7202         (rotlsi3_16): Delete.
7203         (rotlsi3_24): Delete.
7204         (rotl<mode>3): New.
7205         (*rotw<mode>3): New.
7206         (*rotb<mode>3): New.
7207         * config/avr/avr.c (avr_rotate_bytes): New function.
7208         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
7209
7210 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
7211
7212         PR target/37454
7213         * configure.ac: Modify -rdynamic check.
7214         * configure: Regenerate.
7215
7216 2010-01-08  DJ Delorie  <dj@redhat.com>
7217
7218         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
7219         register popping order.
7220
7221 2010-01-08  Richard Guenther  <rguenther@suse.de>
7222
7223         PR lto/42528
7224         * c.opt (fsigned-char): Also let LTO handle this option.
7225         (funsigned-char): Likewise.
7226
7227 2010-01-07  Richard Guenther  <rguenther@suse.de>
7228
7229         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
7230         (gimple_op): Likewise.
7231         (gimple_op_ptr): Likewise.
7232         (gimple_assign_set_lhs): Remove gcc_assert.
7233         (gimple_assign_set_rhs1): Likewise.
7234         (gimple_assign_set_rhs2): Likewise.
7235         (gimple_call_set_lhs): Likewise.
7236         (gimple_call_set_fn): Likewise.
7237         (gimple_call_set_fndecl): Likewise.
7238         (gimple_call_fndecl): Likewise.
7239         (gimple_call_return_type): Likewise.
7240         (gimple_call_set_chain): Likewise.
7241         (gimple_call_num_args): Likewise.
7242         (gimple_call_set_arg): Likewise.
7243         (gimple_cond_set_code): Likewise.
7244         (gimple_cond_set_lhs): Likewise.
7245         (gimple_cond_set_rhs): Likewise.
7246         (gimple_cond_set_true_label): Likewise.
7247         (gimple_cond_set_false_label): Likewise.
7248         (gimple_label_set_label): Likewise.
7249         (gimple_goto_set_dest): Likewise.
7250         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
7251         (gimple_debug_bind_get_value): Likewise.
7252         (gimple_debug_bind_get_value_ptr): Likewise.
7253         (gimple_debug_bind_set_var): Likewise.
7254         (gimple_debug_bind_set_value): Likewise.
7255         (gimple_debug_bind_reset_value): Likewise.
7256         (gimple_debug_bind_has_value_p): Likewise.
7257         (gimple_return_retval_ptr): Remove gcc_assert.
7258         (gimple_return_retval): Likewise.
7259         (gimple_return_set_retval): Likewise.
7260         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
7261         (safe_referenced_var_iterator): Remove.
7262         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
7263         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
7264         (fill_referenced_var_vec): Remove.
7265         (first_readonly_imm_use): Remove redundant gcc_assert.
7266         (phi_arg_index_from_use): Combine gcc_asserts.
7267         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
7268         (first_imm_use_stmt): Remove redundant gcc_assert.
7269         * tree-cfg.c (verify_gimple_call): Verify function and chain
7270         operands.  Verify arguments.
7271         (verify_types_in_gimple_stmt): Verify condition code and labels.
7272
7273 2010-01-07  Richard Guenther  <rguenther@suse.de>
7274
7275         PR tree-optimization/42641
7276         * sese.c (rename_map_elt_info): Use the SSA name version, do
7277         not hash pointers.
7278
7279 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
7280
7281         PR tree-optimization/42625
7282         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
7283         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
7284
7285 2010-01-07  Duncan Sands  <baldrick@free.fr>
7286
7287         * Makefile.in (PLUGIN_HEADERS): Add version.h.
7288
7289 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
7290
7291         PR target/42511
7292         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
7293         note itself is not function_invariant_p.
7294
7295 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
7296
7297         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
7298         Do not add the DF_NOTE problem.
7299         * store-motion.c (execute_rtl_store_motion): Likewise.
7300
7301 2010-01-07  Martin Jambor  <mjambor@suse.cz>
7302
7303         PR tree-optimization/42157
7304         * tree-sra.c (compare_access_positions): Stabilize sort if both
7305         accesses have integer types, return zero immediately if they are the
7306         same.
7307
7308 2010-01-06  Richard Henderson  <rth@redhat.com>
7309
7310         PR middle-end/41883
7311         * haifa-sched.c (add_to_note_list): Merge into ...
7312         (concat_note_lists): ... here, and ...
7313         (unlink_other_notes, rm_other_notes): Merge into...
7314         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
7315         NOTE_INSN_EPILOGUE_BEG.
7316
7317 2010-01-06  Richard Guenther  <rguenther@suse.de>
7318
7319         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
7320         not inline regular functions into always-inline functions.
7321
7322 2010-01-06  Nick Clifton  <nickc@redhat.com>
7323
7324         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
7325         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
7326         used together.
7327         (OVERRIDE_OPTIONS): Delete.
7328         (OPTIMIZATION_OPTIONS): Define.
7329         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
7330         * config/rx/rx.c (rx_handle_option): Issue an error message if
7331         -mcpu=rx200 and -fpu are used together.
7332         (rx_set_optimization_options): New function.  Issue an error
7333         message if an optimization attribute attempts to reset the FPU/
7334         math optimization pairing.
7335         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
7336         * config/rx/rx.opt: Set the default to 32-bit doubles.
7337         * config/rx/t-rx: Add multilibs for -nofpu option.
7338         * doc/invoke.texi: Update documentation of RX options.
7339
7340 2010-01-06  Richard Guenther  <rguenther@suse.de>
7341
7342         * tree-ssa-pre.c (name_to_id): New global.
7343         (alloc_expression_id): Simplify SSA name handling.
7344         (lookup_expression_id): Likewise.
7345         (init_pre): Zero name_to_id.
7346         (fini_pre): Free it.
7347
7348 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
7349
7350         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
7351
7352 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
7353
7354         PR target/42542
7355         * config/i386/sse.md (smaxv2di3): New.
7356         (umaxv2di3): Likewise.
7357         (sminv2di3): Likewise.
7358         (uminv2di3): Likewise.
7359
7360 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7361
7362         PR target/42564
7363         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
7364         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
7365         (legitimize_tls_address): Likewise.
7366         (sparc_tls_referenced_p): Likewise.
7367         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
7368         and adjust calls to legitimize_pic_address.
7369         (legitimate_constant_p) Use sparc_tls_referenced_p.
7370         (legitimate_pic_operand_p): Likewise.
7371         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
7372         (sparc_tls_symbol_ref_1): Delete.
7373         (sparc_tls_referenced_p): Make static, recognize specific patterns.
7374         (legitimize_tls_address): Make static, handle CONST patterns.
7375         (legitimize_pic_address): Make static, remove unused parameter and
7376         adjust recursive calls.
7377         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
7378         and adjust call to legitimize_pic_address.
7379         (sparc_output_mi_thunk): Likewise.
7380
7381 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
7382             H.J. Lu  <hongjiu.lu@intel.com>
7383
7384         PR target/42542
7385         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
7386         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
7387         operands to make them signed.
7388
7389         Revert:
7390         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
7391
7392         PR target/42542
7393         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
7394         GTU to GT for V4SI and V2DI.
7395
7396         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
7397         (umin<mode>3): Removed.
7398         (uminv8hi3): New.
7399         (uminv4si3): Likewise.
7400
7401 2010-01-05  Martin Jambor  <mjambor@suse.cz>
7402
7403         PR tree-optimization/42462
7404         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
7405         current_function_decl to helper functions and macros.
7406
7407 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7408
7409         PR bootstrap/41771
7410         * flags.h: Don't include real.h.
7411         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
7412         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
7413         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
7414         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
7415         * dominance.c: Update copyright.
7416         * gimple.c (walk_gimple_op): Remove inline.
7417         * tree-ssa-reassoc.c: Include real.h.
7418         * Makefile.in (FLAGS_H): Remove $(REAL_H).
7419         (tree-ssa-reassoc.o): Depend on $(REAL_H).
7420
7421 2010-01-05  Nick Clifton  <nickc@redhat.com>
7422
7423         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
7424         register to push into the stack frame when the accumulator has to
7425         be saved during interrupts.
7426
7427 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
7428
7429         * doc/invoke.texi: Remove the documentation about option
7430         -Wunreachable-code.
7431         * common.opt (Wunreachable-code):  Preserved for backward
7432         compatibility.
7433         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
7434         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
7435         the backward compatibility flag section.
7436
7437 2010-01-05  Richard Guenther  <rguenther@suse.de>
7438
7439         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
7440
7441 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
7442
7443         PR other/42611
7444         * cfgexpand.c (expand_one_var): Diagnose too large variables.
7445
7446         PR tree-optimization/42508
7447         * tree-sra.c (convert_callers): Check for recursive call
7448         by comparing cgraph nodes instead of decls.
7449         (modify_function): Call ipa_modify_formal_parameters also
7450         on all same_body aliases.
7451
7452         * cgraphunit.c (cgraph_materialize_all_clones): Compare
7453         cgraph nodes when checking for same_body aliases.
7454
7455 2010-01-05  Richard Guenther  <rguenther@suse.de>
7456
7457         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
7458         allocation and lookup.
7459         (get_or_alloc_expr_for_constant): Likewise.
7460         (phi_translate): Sink allocation.
7461
7462 2010-01-04  Richard Guenther  <rguenther@suse.de>
7463
7464         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
7465         a new entry only if needed.
7466         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
7467         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
7468         hashtable lookup.
7469         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
7470         the result array.
7471         (phi_translate): Handle CONSTANTs early.
7472
7473 2010-01-04  Martin Jambor  <mjambor@suse.cz>
7474
7475         PR tree-optimization/42398
7476         * tree-sra.c (struct access): Removed flag grp_different_types.
7477         (dump_access): Do not dump the removed flag.
7478         (sort_and_splice_var_accesses): Do not set the removed flag.
7479         (sra_modify_expr): Check for type compatibility directly.
7480
7481 2010-01-04  Martin Jambor  <mjambor@suse.cz>
7482
7483         PR tree-optimization/42366
7484         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
7485         edges with variable number of parameters.
7486         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
7487         flag instead of asserting it.
7488         (ipa_read_node_info): Read uses_analysis_done flag.
7489
7490 2010-01-04  Richard Guenther  <rguenther@suse.de>
7491
7492         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
7493         iterative_hash_* as intended.
7494         (vn_reference_compute_hash): Likewise.  Simplify hashing
7495         SSA names.
7496         (vn_reference_lookup_2): Likewise.
7497         (vn_nary_op_compute_hash): Likewise.
7498         (vn_phi_compute_hash): Likewise.
7499         (expressions_equal_p): Remove strange code.
7500         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
7501         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
7502         (bitmap_insert_into_set_1): Take value-id as parameter.
7503         (add_to_value): Pass it.
7504         (bitmap_insert_into_set): Likewise.
7505         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
7506
7507 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
7508
7509         PR driver/42442
7510         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
7511         (do_self_spec): For switches with SWITCH_IGNORE set set also
7512         SWITCH_IGNORE_PERMANENTLY.
7513         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
7514         of SWITCH_IGNORE.
7515
7516 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
7517
7518         * lto-streamer-out.c (output_unreferenced_globals): Output the full
7519         tree of an unreferenced global var.
7520
7521 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
7522
7523         PR target/42542
7524         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
7525         GTU to GT for V4SI and V2DI.
7526
7527         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
7528         (umin<mode>3): Removed.
7529         (uminv8hi3): New.
7530         (uminv4si3): Likewise.
7531
7532 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
7533
7534         PR lto/42581
7535         * collect2.c (main): Turn on trace in collect2 if -v is passed
7536         to gcc with LTO.
7537
7538 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
7539
7540         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
7541         description of expression operand.
7542
7543 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
7544
7545         * configure.ac: Add install-html to target_list for Make-hooks.
7546         * configure: Regenerate.
7547         * fortran/Make-lang.in (F95_HTMLFILES): New.
7548         (fortran.html): Use it.
7549         (fortran.install-html): New.
7550         * Makefile.in (install-html): Add lang.install-html.
7551         * java/Make-lang.in (JAVA_HTMLFILES): New.
7552         (java.html): Use it.
7553         (java.install-html): New.
7554         * objc/Make-lang.in (objc.install-html): New.
7555         * objcp/Make-lang.in (obj-c++.install-html): New.
7556         * cp/Make-lang.in (c++.install-html): New.
7557         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
7558         * lto/Make-lang.in (lto.install-html): New.
7559
7560 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
7561
7562         PR lto/42520
7563         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
7564
7565 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
7566
7567         PR rtl-optimization/41862
7568         * store-motion.c (store_killed_in_insn, compute_store_table,
7569         remove_reachable_equiv_notes, replace_store_insn,
7570         build_store_vectors): Ignore all DEBUG_INSNs.
7571
7572 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
7573
7574         PR lto/41564
7575         * common.opt: Add dumpdir.
7576
7577         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
7578         isn't specified.
7579         (option_map): Add --dumpdir.
7580
7581         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
7582
7583         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
7584
7585         * opts.c (decode_options): Try dump_dir_name first if
7586         dump_base_name isn't an absolute path.
7587         (common_handle_option): Handle OPT_dumpdir.
7588
7589         * toplev.c (dump_dir_name): New.
7590         (print_switch_values): Also ignore -dumpdir.
7591
7592         * toplev.h (dump_dir_name): New.
7593
7594 2010-01-03  Richard Guenther  <rguenther@suse.de>
7595
7596         PR tree-optimization/42589
7597         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
7598         double-word expansion of bswap32.
7599
7600 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
7601
7602         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
7603         with BLOCK_FOR_INSN.
7604         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
7605         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
7606         noce_process_if_block): Likewise.
7607         * gcse.c (compute_local_properties, insert_expr_in_table,
7608         insert_set_in_table, canon_list_insert, find_avail_set,
7609         pre_insert_copy_insn): Likewise.
7610
7611         * basic-block.h (BLOCK_NUM): Move from here...
7612         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
7613
7614 2010-01-03  Richard Guenther  <rguenther@suse.de>
7615
7616         PR tree-optimization/42438
7617         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
7618         contains_may_not_return_call flag.
7619         (BB_MAY_NOTRETURN): New.
7620         (valid_in_sets): Trapping nary operations are not valid
7621         in blocks that may not return.
7622         (insert_into_preds_of_block): Remove check for trapping expressions.
7623         (compute_avail): Compute also BB_MAY_NOTRETURN.
7624
7625 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
7626
7627         * doc/invoke.texi: Add 2010 to copyright years.
7628
7629 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
7630
7631         * config/sparc/sparc.c: Fix formatting nits.
7632
7633 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
7634             Alexander Monakov  <amonakov@ispras.ru>
7635
7636         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
7637
7638 2010-01-02  Richard Guenther  <rguenther@suse.de>
7639
7640         PR middle-end/42577
7641         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
7642         (simplify_switch_using_ranges): Mark to be removed edges
7643         as non-executable.
7644
7645 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7646
7647         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
7648
7649         * collect2.c (scan_libraries): Add missing argument in call to
7650         scan_prog_file.
7651
7652 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
7653
7654         PR target/42448
7655         * config/alpha/predicates.md (aligned_memory_operand): Return false
7656         for CQImode.
7657         (unaligned_memory_operand): Return true for CQImode.
7658         * config/alpha/alpha.c (get_aligned_mem): Assert that location
7659         doesn not cross aligned SImode word boundary.
7660
7661 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
7662
7663         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
7664         Remove.
7665         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
7666         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
7667
7668 2010-01-02  Richard Guenther  <rguenther@suse.de>
7669
7670         PR lto/41597
7671         * toplev.c (compile_file): Emit LTO marker properly.  Change
7672         it to __gnu_lto_v1.
7673         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
7674
7675 2010-01-01  Richard Guenther  <rguenther@suse.de>
7676
7677         PR debug/42455
7678         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
7679
7680 2010-01-01  Richard Guenther  <rguenther@suse.de>
7681
7682         PR c/42570
7683         * c-decl.c (grokdeclarator): For zero-size arrays force
7684         structural equality checks as layout_type does.
7685
7686 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
7687
7688         * builtins.c: Update copyright to 2010.
7689
7690 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
7691
7692         PR lto/42531
7693         * lto-streamer-out.c (produce_asm): Revert the last change.
7694         (copy_function): Likewise.
7695
7696         * lto-streamer.c (lto_get_section_name): Skip any leading
7697         asterisk in name.
7698
7699 2010-01-01  Richard Guenther  <rguenther@suse.de>
7700
7701         PR middle-end/42559
7702         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
7703         for LABEL_DECLs.
7704
7705 \f
7706 Copyright (C) 2010 Free Software Foundation, Inc.
7707
7708 Copying and distribution of this file, with or without modification,
7709 are permitted in any medium without royalty provided the copyright
7710 notice and this notice are preserved.