OSDN Git Service

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