OSDN Git Service

44924d80994f944676b25370084243ec03a3658c
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
2             Nathan Froyd  <froydnj@codesourcery.com>
3
4         * coverage.c (build_fn_info_value): Call build_constructor instead of
5         build_constructor_from_list.
6         (build_ctr_info_value): Likewise.
7         (build_gcov_info): Likewise.
8
9 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
10
11         * tree.c (build_constructor): Compute TREE_CONSTANT for the
12         resultant constructor.
13         (build_constructor_single): Don't set TREE_CONSTANT.
14         (build_constructor_from_list): Don't compute TREE_CONSTANT.
15
16 2010-05-12  Jan Hubicka  <jh@suse.cz>
17
18         * cgraph.h (struct varpool_node): Add aux.
19         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
20         * varpool.c (varpool_remove_node): Do not remove initializer.
21         (varpool_reset_queue): Export.
22         (varpool_finalize_decl): Volatile vars are forced to be output.
23         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
24         replaced decl.
25         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
26         process_references, varpool_can_remove_if_no_refs): New functions.
27         (cgraph_remove_unreachable_nodes): Handle variables too.
28
29 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
30
31         PR target/44088
32         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
33
34 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
35
36         PR middle-end/44085
37         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
38         change value of ORT_TASK.
39         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
40         (omp_notice_threadprivate_variable): New function.
41         (omp_notice_variable): Call it for threadprivate variables.
42         If enclosing ctx is a task, print enclosing task rather than
43         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
44         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
45         if task has untied clause.
46
47         PR debug/42278
48         * dwarf2out.c (base_type_die): Don't add name attribute here.
49         (modified_type_die): Instead of sizetype use
50         its underlying original type.  If a DW_TAG_base_type doesn't
51         have name added, add __unknown__.
52         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
53         always call force_type_die instead.
54
55 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
56
57         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
58         for __stack_chk_guard.
59
60 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
61
62         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
63         don't call start_source_file debug hook here...
64         (finish_options): ... but here, after outputting predefined and
65         command line defines and undefs.
66
67         PR middle-end/44071
68         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
69         no fallthru edge.
70         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
71         optimizing away empty bb with no successors, move over its
72         footer chain to fallthru predecessor.
73         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
74         (rtl_split_edge): For asm goto call patch_jump_insn even if
75         splitting fallthru edge.
76
77         PR c++/44059
78         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
79         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
80         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
81         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
82         on DW.ref.* decls.
83
84         PR c++/44062
85         * c-parser.c (c_parser_expression): Mark LHS of a comma
86         expression as read if it is a decl, handled component or
87         COMPOUND_EXPR with that on the RHS.
88         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
89         if it is a decl or handled component.
90
91 2010-05-11  Jan Hubicka  <jh@suse.cz>
92
93         * lto-symtab.c (lto_symtab_free): New function.
94         * lto-streamer.h (lto_symtab_free): Declare.
95
96 2010-05-11  Jan Hubicka  <jh@suse.cz>
97
98         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
99         that if function is needed it is reachable.
100         (lto_output_node): See if it the function is reachable or referenced.
101         (output_cgraph): Update call of lto_output_node.
102         * lto-streamer.h (reachable_from_other_partition_p): Declare.
103
104 2010-05-11  Jan Hubicka  <jh@suse.cz>
105
106         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
107         Mark as used.
108
109 2010-05-11  Jan Hubicka  <jh@suse.cz>
110
111         PR tree-optimize/44063
112         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of queue.
113         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
114         limits.
115         (estimate_function_body_sizes): Compute sizes even when disregarding.
116
117 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
118
119         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
120
121 2010-05-11  Jan Hubicka  <jh@suse.cz>
122
123         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
124         into every boundary.
125
126 2010-05-11  Jan Hubicka  <jh@suse.cz>
127
128         * matrix-reorg.c (matrix_reorg): Rebuild edges.
129
130 2010-05-11  Jan Hubicka  <jh@suse.cz>
131
132         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
133         lto_streamer_cache_delete): Put nodes into heap.
134         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
135         heap.
136
137 2010-05-11  Jan Hubicka  <jh@suse.cz>
138
139         * cgraphbuild.c (cgraph_rebuild_references): New.
140         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
141         out extern inlines.
142         * cgraph.h (cgraph_rebuild_references): Declare.
143         * tree-inline.c (tree_function_versioning): Use it.
144         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
145
146 2010-05-11  Jan Hubicka  <jh@suse.cz>
147
148         * cgraph.c: Include ipa-utils.h
149         (cgraph_create_virtual_clone): Update references.
150         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
151
152 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
153
154         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
155         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
156         cache size.
157
158 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
159
160         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
161
162 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
163
164         * gcc.c (execute): For -### don't quote arguments that
165         contain just alphanumerics and _/-. characters.
166         * doc/invoke.texi: Document that change for -###.
167
168         PR debug/44023
169         * df-problems.c (struct dead_debug): Add to_rescan field.
170         (dead_debug_init): Clear to_rescan field.
171         (dead_debug_finish): Rescan all debug insns in to_rescan
172         bitmap and free the bitmap.
173         (dead_debug_insert_before): Instead of rescanning debug insns
174         immediately queue their rescanning until dead_debug_finish.
175         (df_note_bb_compute): After dead_debug_add do continue instead
176         of break.
177
178 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
179
180         PR debug/44028
181         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
182         clear also INSN_REG_USE_LIST.
183
184 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
185
186         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
187
188 2010-05-10  Jan Hubicka  <jh@suse.cz>
189
190         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally commited change.
191
192 2010-05-10  Jan Hubicka  <jh@suse.cz>
193
194         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries): Allocate
195         encoders.
196         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
197         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
198         (lto_streamer_cache_create): Init alloc pool.
199         (lto_streamer_cache_delete): Free alloc pool.
200         * lto-streamer.h: Include alloc pool.
201         (lto_streamer_cache_d): Use alloc pool.
202         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
203
204 2010-05-10  Jan Hubicka  <jh@suse.cz>
205
206         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
207         * cgraphbuild.c: Include except.h
208         (record_type_list, record_eh_tables): New function.
209         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
210
211 2010-05-10  Jan Hubicka  <jh@suse.cz>
212
213         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
214         __frame_dummy_init_array_entry, force_to_data): Attribute as used
215         rather than unused.
216
217 2010-05-10  Michael Matz  <matz@suse.de>
218
219         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
220         (can_reassociate_p): Use FLOAT_TYPE_P.
221         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
222         (vect_force_simple_reduction): ... this.
223         * tree-parloops.c (gather_scalar_reductions): Use
224         vect_force_simple_reduction.
225         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
226         vect_is_simple_reduction, add modify argument, if true rewrite
227         "a-b" into "a+(-b)".
228         (vect_is_simple_reduction, vect_force_simple_reduction): New
229         functions.
230         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
231
232 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
233             Vladimir Makarov  <vmakarov@redhat.com>
234
235         PR rtl-optimization/44012
236         * ira-build.c (remove_unnecessary_allocnos): Nullify
237         regno_allocno_map of the removed allocno.
238
239 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
240
241         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
242         to /dev/null.
243         * configure: Regenerate.
244
245 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
246
247         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
248         unused.
249         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
250         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
251         support in Sun ld.
252         * configure: Regenerate.
253
254 2010-05-10  Richard Guenther  <rguenther@suse.de>
255
256         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
257         marked if the entry identifier is marked.
258
259 2010-05-10  Richard Guenther  <rguenther@suse.de>
260
261         * c-common.c (struct c_common_attributes): Add fnspec attribute.
262         (handle_fnspec_attribute): New function.
263         * gimple.h (gimple_call_return_flags): Declare.
264         (gimple_call_arg_flags): Likewise.
265         * gimple.c (gimple_call_arg_flags): New function.
266         (gimple_call_return_flags): Likewise.
267         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
268         New argument flags.
269         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
270         return value flags.
271         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
272         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
273         main work to ...
274         (make_heapvar_for): ... this new function.
275         (handle_rhs_call): Handle fnspec attribute argument specifiers.
276         (handle_lhs_call): Likewise.
277         (find_func_aliases): Adjust.
278
279 2010-05-10  Richard Guenther  <rguenther@suse.de>
280
281         PR tree-optimization/44050
282         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
283
284 2010-05-10  Wei Guozhi  <carrot@google.com>
285
286         PR target/42879
287         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
288
289 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
290
291         PR c/10676
292         * c-typeck.c (lookup_field): Take a type directly.  Update
293         recursive calls.
294         (build_component_ref): Update call to lookup_field.
295         (set_init_label): Use lookup_field to find initialized field.
296         Handle returned list of fields like a sequence of designators.
297
298 2010-05-09  Richard Guenther  <rguenther@suse.de>
299
300         PR middle-end/44024
301         * fold-const.c (tree_single_nonzero_warnv_p): Properly
302         handle &FUNCTION_DECL.
303
304 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
305
306         PR c/4784
307         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
308         structures and unions recursively.
309         (detect_field_duplicates): Move duplicate detection with a hash to
310         detect_field_duplicates_hash.  Always use a hash if anonymous
311         structures or unions are present.
312         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
313         give errors.
314
315 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
316
317         PR target/44046
318         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
319         detect Atom, Core 2 and Core i7.
320
321 2010-05-09  Richard Guenther  <rguenther@suse.de>
322
323         * gcc.c (store_arg): Handle temporary file deletion for
324         joined arguments.
325
326 2010-05-09  Richard Guenther  <rguenther@suse.de>
327
328         PR middle-end/44043
329         * ipa-inline.c (estimate_function_body_sizes): Return after
330         disregarding inline limits.
331
332 2010-05-09  Richard Guenther  <rguenther@suse.de>
333
334         * gcc.c (store_arg): Revert last change.
335
336 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
337
338         PR middle-end/28685
339         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
340         (optimize_ops_list): Call it.
341
342 2010-05-08  Richard Guenther  <rguenther@suse.de>
343
344         PR tree-optimization/44030
345         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
346         NECESSARY flag if we propagate from a inserted expression.
347
348 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
349
350         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
351         domain types as equal if they are both PLACEHOLDER_EXPRs.
352
353 2010-05-08  Richard Guenther  <rguenther@suse.de>
354
355         * lto-wrapper.c (run_gcc): Remove linker output from
356         command line for LTRANS invocation.
357
358 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
359
360         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
361         lto-macho as lto_binary_reader.
362         * target.h (struct gcc_target): New hooks lto_start and lto_end.
363         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
364         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
365         in lto_start and lto_end calls.
366         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
367         magic numbers.
368         (scan_prog_file): Update is_elf_or_coff call.
369         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
370
371         * collect2.c (main): Fix enum comparison.
372
373         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
374         Add prototypes.
375         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
376         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
377         and TARGET_ASM_LTO_END.
378         * darwin.c: Include obstack.h and lto-streamer.h.
379         (lto_section_names_offset, lto_section_names_obstack,
380         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
381         global variables.
382         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
383         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
384         to a temporary file.
385         (darwin_asm_lto_end): New function.  Restore asm_out_file.
386         (darwin_asm_named_section): For LTO sections, replace the name with
387         the offset of the section name in a string table, and build this
388         table.
389         (darwin_file_start): Initialize global vars for LTO support.
390         (darwin_file_end): If output to asm_out_file was redirected, append it
391         to the proper asm_out_file here.  Add the section names section.
392
393 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
394
395         * c-pragma.c (pending_weak_d, pending_weak): New.
396         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
397         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
398         handle_pragma_weak): Update the uses of pending_weaks.
399
400 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
401
402         PR documentation/44016
403         * doc/standards.texi (Standards): Link to unversioned
404         cxx0x_status.html page.
405
406 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
407
408         PR target/43708
409         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
410         in addition to TREE_USED, to avoid "set but unused" warnings.
411
412 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
413
414         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
415         (is_loop_prefetching_profitable): Do not insert prefetches
416         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
417         times the prefetch ahead distance.
418
419 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
420
421         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
422         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
423         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
424         the unroll_factor.
425
426 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
427
428         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
429         a diagnostic info when the insn-to-mem ratio is too small.
430
431 2010-05-07  Richard Guenther <rguenther@suse.de>
432
433         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
434         the linker plugin.
435         (store_arg): Queue temp_filename for deletion instead of
436         the whole argument.
437
438 2010-05-07  Richard Guenther  <rguenther@suse.de>
439
440         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
441         (run_gcc): Handle LTRANS phase invocation.
442         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
443
444 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
445
446         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
447         this is also meaningful on PARM_DECLs and RESULT_DECLs.
448
449 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
450
451         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
452
453 2010-05-07  Richard Guenther  <rguenther@suse.de>
454
455         PR tree-optimization/44020
456         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
457         code when PRE is not yet initialized.
458
459 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
460
461         * config/mips/dbxmdebug.h: Remove.
462         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
463
464 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
465
466         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
467         with null pointer and also warn about ordered comparison of zero with
468         pointer if -Wextra.
469
470 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
471
472         * graphite-blocking.c
473         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
474         * graphite-clast-to-gimple.c
475         (clast_to_gcc_expression): Same.
476         (precision_for_value): Same.
477         (precision_for_interval): Same.
478         (gcc_type_for_interval): Same.
479         (graphite_create_new_guard): Same.
480         (compute_bounds_for_level): Same.
481         (graphite_create_new_loop_guard): Same.
482         * graphite-interchange.c
483         (build_linearized_memory_access): Same.
484         (pdr_stride_in_loop): Same.
485         (memory_strides_in_loop_1): Same.
486         (memory_strides_in_loop): Same.
487         (extend_scattering): Same.
488         (psct_scattering_dim_for_loop_depth): Same.
489         (pbb_number_of_iterations): Same.
490         * graphite-poly.h
491         (debug_iteration_domains): Same.
492         * graphite-ppl.c
493         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
494         (ppl_set_inhomogeneous_gmp): Same.
495         (ppl_strip_loop): Same.
496         (ppl_lexico_compare_linear_expressions): Same.
497         (ppl_read_polyhedron_matrix): Same.
498         (ppl_max_for_le_pointset): Same.
499         * graphite-ppl.h
500         (ppl_read_polyhedron_matrix): Same.
501         (tree_int_to_gmp): Same.
502         (gmp_cst_to_tree): Same.
503         (ppl_set_inhomogeneous): Same.
504         (ppl_set_inhomogeneous_tree): Same.
505         (ppl_set_coef): Same.
506         (ppl_set_coef_tree): Same.
507         * graphite-sese-to-poly.c
508         (build_pbb_scattering_polyhedrons): Same.
509         (build_scop_scattering): Same.
510         (scan_tree_for_params_right_scev): Same.
511         (scan_tree_for_params): Same.
512         (find_params_in_bb): Same.
513         (find_scop_parameters): Same.
514         (add_upper_bounds_from_estimated_nit): Same.
515         (build_loop_iteration_domains): Same.
516         (add_condition_to_domain): Same.
517         (pdr_add_memory_accesses): Same.
518
519 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
520
521         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
522         CLooG's value_* macros to their respective mpz_* counterparts.
523         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
524         (graphite_create_new_loop_guard): Same.
525         * graphite-interchange.c (build_linearized_memory_access): Same.
526         (pdr_stride_in_loop): Same.
527         (memory_strides_in_loop_1): Same.
528         (1st_interchange_profitable_p): Same.
529         * graphite-poly.c (extend_scattering): Same.
530         (psct_scattering_dim_for_loop_depth): Same.
531         (pbb_number_of_iterations): Same.
532         (pbb_number_of_iterations_at_time): Same.
533         * graphite-poly.h (new_1st_loop): Same.
534         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
535         (oppose_constraint): Same.
536         (insert_constraint_into_matrix): Same.
537         (ppl_set_inhomogeneous_gmp): Same.
538         (ppl_set_coef_gmp): Same.
539         (ppl_strip_loop): Same.
540         (ppl_lexico_compare_linear_expressions): Same.
541         (ppl_max_for_le_pointset): Same.
542         (ppl_min_for_le_pointset): Same.
543         (ppl_build_realtion): Same.
544         * graphite-ppl.h (gmp_cst_to_tree): Same.
545         (ppl_set_inhomogeneous): Same.
546         (ppl_set_inhomogeneous_tree): Same.
547         (ppl_set_coef): Same.
548         (ppl_set_coef_tree): Same.
549         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
550         (build_scop_scattering): Same.
551         (add_value_to_dim): Same.
552         (scan_tree_for_params_right_scev): Same.
553         (scan_tree_for_params_int): Same.
554         (scan_tree_for_params): Same.
555         (find_params_in_bb): Same.
556         (find_scop_parameters): Same.
557         (add_upper_bounds_from_estimated_nit): Same.
558         (build_loop_iteration_domains): Same.
559         (create_linear_expr_from_tree): Same.
560         (add_condition_to_domain): Same.
561         (pdr_add_memory_accesses): Same.
562
563 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
564             Jason Merrill  <jason@redhat.com>
565
566         * c-common.c (c_common_reswords): Add nullptr.
567         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
568         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
569         (gen_type_die_with_usage): Likewise.
570         * dbxout.c (dbxout_type): Likewise.
571         * sdbout.c (plain_type_1): Likewise.
572
573 2010-05-06  Jason Merrill  <jason@redhat.com>
574
575         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
576         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
577         ret appropriately.
578         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
579
580         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
581         stripping WITH_SIZE_EXPR.
582         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
583         change.
584
585 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
586
587         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
588         list of obsolete configurations.
589         Disabled check for obsolete configurations.
590         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
591         Removed support for previous versions.
592         * config/mips/iris.h: Removed.
593         * config/mips/iris5.h: Removed.
594         * config/mips/iris6.h: Merged old iris.h contents.
595         (TARGET_IRIX): Removed.
596         (DRIVER_SELF_SPECS): Removed mabi=32.
597         (IDENT_ASM_OP): Removed undef.
598         (STARTFILE_SPEC): Removed mabi=32.
599         (ENDFILE_SPEC): Likewise.
600         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
601         (MACHINE_TYPE): Update for IRIX 6.5.
602         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
603         TARGET_IRIX by TARGET_IRIX6.
604         (mips_file_start): Likewise.
605         (mips_output_external): Remove IRIX 5/6 O32 support.
606         (mips_output_function_prologue): Likewise.
607         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
608         TARGET_IRIX6.
609         (TARGET_CPU_CPP_BUILTINS): Likewise.
610         (TARGET_IRIX): Removed.
611         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
612         (MULTILIB_DIRNAMES): Removed 32.
613         (MULTILIB_OSDIRNAMES): Removed ../lib.
614         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
615         (Specific, mips-sgi-irix5): Document removal.
616         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
617         Remove references to older IRIX 6 releases and the O32 ABI.
618
619 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
620
621         PR bootstrap/43994
622         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
623         instead of DF_REF_REAL_REG.
624
625 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
626
627         PR target/43888
628         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
629         handling to still return true for x64 targets.
630
631 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
632
633         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
634
635 2010-05-06  Jan Hubicka  <jh@suse.cz>
636
637         PR tree-optimization/43791
638         * ipa-inline.c (update_caller_keys): Remove bogus
639         disregard_inline_limits check.
640
641 2010-05-06  Michael Matz  <matz@suse.de>
642
643         PR tree-optimization/43984
644         * tree-ssa-pre.c (inserted_phi_names): Remove.
645         (inserted_exprs): Change to bitmap.
646         (create_expression_by_pieces): Set bits, don't append to vector.
647         (insert_into_preds_of_block): Don't handle inserted_phi_names.
648         (eliminate): Don't look at inserted_phi_names, remove deleted
649         insns from inserted_exprs.
650         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
651         (init_pre, fini_pre): Allocate and free bitmaps.
652         (execute_pre): Insert insns on edges before elimination.
653
654 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
655
656         * tree.c (initializer_zerop): Handle STRING_CST.
657
658 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
659
660         PR 40989
661         * doc/invoke.texi (Wimplicit): Document as C only.
662         * opts.c (common_handle_option): Add argument kind.
663         (handle_option): Rename as read_cmdline_option. Factor out code to...
664         (handle_option): ... here. New.
665         (handle_options): Rename as read_cmdline_options.
666         (decode_options): Update call.
667         (set_option): Use option index instead of option pointer. Classify
668         diagnostics correctly.
669         (enable_warning_as_error): Call handle_option.
670         * opts.h (set_option): Update declaration.
671         (handle_option): Declare.
672         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
673         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
674         * c-opts.c (set_Wimplicit): Delete.
675         (c_family_lang_mask): New static constant.
676         (c_common_handle_option): Add argument kind. Use handle_option
677         instead of set_Wimplicit.
678         (c_common_post_options): warn_implicit and warn_implicit_int
679         are disabled by default.
680         * c-common.c (warn_implicit): Do not define here.
681         * c-common.h (warn_implicit): Do not declare here.
682         (c_common_handle_option): Update declaration.
683         * lto-opts.c (lto_reissue_options): Update call to set_option.
684
685 2010-05-06  Richard Guenther  <rguenther@suse.de>
686
687         PR tree-optimization/43571
688         * domwalk.c (walk_dominator_tree): Walk the dominator
689         sons in more optimal order.
690
691 2010-05-06  Richard Guenther  <rguenther@suse.de>
692
693         PR tree-optimization/43934
694         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
695         (stmt_cost): Likewise.
696         (extract_true_false_args_from_phi): New helper.
697         (determine_max_movement): For PHI nodes verify we can hoist them
698         and compute their cost.
699         (determine_invariantness_stmt): Handle PHI nodes.
700         (move_computations_stmt): Likewise.  Hoist PHI nodes in
701         if-converted form using COND_EXPRs.
702         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
703         (tree_ssa_lim): Likewise.
704         * tree-flow.h (tree_ssa_lim): Adjust prototype.
705         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
706
707 2010-05-06  Richard Guenther  <rguenther@suse.de>
708
709         PR tree-optimization/43987
710         * tree-ssa-structalias.c (could_have_pointers): For possibly
711         address-taken variables force pointers to be recorded.
712         (create_variable_info_for_1): Likewise.
713         (push_fields_onto_fieldstack): Pass in wheter all fields
714         must have pointers.
715         (find_func_aliases): Query types instead of vars whether
716         they contain pointers where appropriate.
717
718 2010-05-06  Jan Hubicka  <jh@suse.cz>
719
720         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
721         (record_reference, mark_address, mark_load, mark_store): Record
722         references.
723         (record_references_in_initializer): Update call of record_references.
724         (rebuild_cgraph_edges): Remove all references before rebuiding.
725         * cgraph.c (cgraph_create_node): Clear ref list.
726         (cgraph_remove_node): Remove references.
727         (dump_cgraph_node): Dump references.
728         (cgraph_clone_node): Clone references.
729         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
730         (struct cgraph_node, varpool_node): Add ref_lst.
731         * ipa-ref.c: New file.
732         * ipa-ref.h: New file.
733         * ipa-ref-inline.h: New file.
734         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
735         (referenced_from_other_partition_p): New function.
736         (lto_output_varpool_node): Take set arugment; call
737         referenced_from_other_partition.
738         (lto_output_ref): New.
739         (add_references): New.
740         (output_refs): New.
741         (output_cgraph): Compute boundary based on references; output refs.
742         (output_varpool): Accept cgraph_node_set argument.
743         (input_ref): New.
744         (input_refs): New.
745         (input_cgraph): Call input_refs.
746         * lto-section-in.c (lto_section_name): Add refs.
747         * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
748         (ipa-ref.o): New file.
749         * varpool.c (varpool_node): Clear ipa ref list.
750         (varpool_remove_node): Remove references.
751         (dump_varpool_node): Dump references.
752         (varpool_assemble_decl): Only compile finalized ones.
753         (varpool_extra_name_alias): Initialize ref list.
754         * lto-streamer.c (lto-get_section_name): Add .refs section.
755         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
756         (referenced_from_other_partition_p): Declared.
757
758 2010-05-06  Ira Rosen  <irar@il.ibm.com>
759
760         PR tree-optimization/43901
761         * tree-vect-stmts.c (vectorizable_call): Assert that vector
762         type is not NULL if it's transformation phase, and return
763         FALSE if it's analysis.
764         (vectorizable_conversion, vectorizable_operation,
765         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
766
767 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
768
769         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
770         Delete.
771         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
772         New define.
773         * config/mips/mips-protos.h
774         (mips_small_register_classes_for_mode_p): Delete prototype.
775
776 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
777
778         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
779         * config/arm/arm.c (multiple_operation_profitable_p,
780         compute_offset_order): New static functions.
781         (load_multiple_sequence, store_multiple_sequence): Use them.
782         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
783         memory offsets, not register numbers.
784         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
785
786 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
787
788         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
789         (get_pending_sizes, put_pending_size, put_pending_sizes):
790         Update the uses of pending_sizes.
791         * c-decl.c (store_parm_decls): Likewise.
792         * c-tree.h (struct c_arg_info): Likewise.
793         * tree.h: Update the prototype for get_pending_sizes and
794         put_pending_sizes.
795
796 2010-05-05  Jason Merrill  <jason@redhat.com>
797
798         PR debug/43370
799         * c-common.c (handle_aligned_attribute): Respect
800         ATTR_FLAG_TYPE_IN_PLACE.
801
802         PR testsuite/43758
803         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
804         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
805         (TARGET_INITIALIZER): Use it.
806         * c-common.c (attribute_takes_identifier_p): Call it.
807         * c-common.h: Update prototype.
808         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
809         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
810
811 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
812
813         PR debug/43950
814         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
815         DW_ID_down_case for Fortran compilation units.
816
817 2010-05-05  Jan Hubicka  <jh@suse.cz>
818
819         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
820         handle aliases.
821
822 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
823
824         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
825         a variable-sized RESULT_DECL.
826
827 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
828
829         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
830
831 2010-05-05  Jason Merrill  <jason@redhat.com>
832
833         PR c++/43787
834         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
835         returns GS_OK.
836         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
837
838 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
839             Jakub Jelinek  <jakub@redhat.com>
840
841         PR debug/43478
842         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
843         (dead_debug_init, dead_debug_finish): New functions.
844         (dead_debug_add, dead_debug_insert_before): Likewise.
845         (df_note_bb_compute): Initialize a dead_debug object, add dead
846         debug uses to it, insert debug bind insns before death insns,
847         reset debug insns that refer to pending uses at the end.
848         * rtl.h (make_debug_expr_from_rtl): New prototype.
849         * varasm.c (make_debug_expr_from_rtl): New function.
850
851 2010-05-05  Jan Hubicka  <jh@suse.cz>
852
853         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
854         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
855         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
856         lto_varpool_encoder_deref, lto_varpool_encoder_size,
857         lto_varpool_encoder_encode_initializer_p,
858         lto_set_varpool_encoder_encode_initializer): New functions.
859         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
860         call output_varpool.
861         (input_varpool_node): Do not always set analyzed.
862         (input_cgraph_1): Return vector of cgraph nodes.
863         (input_varpool_1): Return vector of varpools.
864         (input_cgraph): Free the vectors.
865         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
866         output only initializers needed.
867         (lto_output): Only call output_cgraph.
868         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
869         * lto-section-out.c (lto_new_out_decl_state): Initialize
870         state->varpool_node_encoder.
871         * lto-streamer.h (lto_varpool_encoder_d): New.
872         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
873         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
874         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
875         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
876         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
877         Declare.
878         (output_varpool, input_varpool): Remove declarations.
879
880 2010-05-05  Jan Hubicka  <jh@suse.cz>
881
882         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
883         with body can prevail.
884
885 2010-05-05  Jan Hubicka  <jh@suse.cz>
886
887         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
888         size.
889
890 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
891
892         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
893
894         * gengtype.h (erro_at_line): Constify pos argument.
895
896         * gengtype.c: Include hashtab.h.
897         (enum gc_used): Document GC_MAYBE_POINTED_TO.
898         (error_at_line): Constify pos argument.
899         (do_typedef): Initialize p->opt field.
900         (get_file_gtfilename): Fix comment typo.
901         (struct walk_type_data): Constify line field.
902         (get_output_file_for_structure): New function.
903         (write_local_func_for_structure): Constify orig_s argument.
904         Use get_output_file_for_structure.
905         (write_func_for_structure): Use get_output_file_for_structure.
906         (INDENT): New define.
907         (dump_pair, dump_type, dump_type_list, dump_typekind)
908         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
909         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
910         functions.
911         (seen_types): New variable.
912         (main): New variable do_dump.  Process "-d" command line option.
913         Call dump_everything if dump requested.
914
915 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
916
917         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
918         in a temporary instead of invoking the macro multiple times.
919         (track_expr_p): Likewise.
920
921 2010-05-04  Neil Vachharajani <nvachhar@google.com>
922
923         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
924         per new semantics.
925         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
926         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
927         conditions for printing notes.
928         * common.opt (-Wcoverage-mismatch): Allow negative, default to
929         true, update documentation.
930         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
931
932 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
933
934         PR c/43981
935         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
936         on dimen.
937
938 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
939
940         PR target/43799
941         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
942         (*sse_prologue_save_insn1): Likewise.
943         (SSE prologue save splitter): Likewise.
944
945 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
946
947         * tree.c (free_lang_data_in_one_sizepos): New inline function.
948         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
949         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
950         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
951         all decls.  Call it on DECL_FIELD_OFFSET of fields.
952         (find_decls_types_r): Follow DECL_VALUE_EXPR.
953         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
954
955 2010-05-04  Martin Jambor  <mjambor@suse.cz>
956
957         * tree-sra.c (build_access_from_expr_1): The first parameter type
958         changed to simple tree.
959         (build_access_from_expr): Likewise, gsi parameter was eliminated.
960         (scan_assign_result): Renamed to assignment_mod_result, enum elements
961         renamed as well.
962         (build_accesses_from_assign): Removed all parameters except for a
963         simple gimple statement.  Now returns a simple bool.
964         (scan_function): All non-analysis parts moved to separate functions
965         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
966         parameters and updated both callers.
967         (sra_modify_expr): Removed parameter data.
968         (sra_modify_function_body): New function.
969         (perform_intra_sra): Call sra_modify_function_body to modify the
970         function body.
971         (replace_removed_params_ssa_names): Parameter data changed into
972         adjustments vector.
973         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
974         changed the parameter dont_convert to convert with the opposite
975         meaning.
976         (sra_ipa_modify_assign): Parameter data changed into adjustments
977         vector, return value changed to bool.
978         (ipa_sra_modify_function_body): New function.
979         (sra_ipa_reset_debug_stmts): Updated a comment.
980         (modify_function): Use ipa_sra_modify_function_body to modify function
981         body.
982
983 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
984
985         PR middle-end/43671
986         * alias.c (true_dependence): Handle the same VALUE in x and mem.
987         (canon_true_dependence): Likewise.
988         (write_dependence_p): Likewise.
989
990 2010-05-04  Jan Hubicka  <jh@suse.cz>
991
992         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
993         * cgraphbuild.c: Include ipa-utils.h
994         (record_reference_ctx): New struct.
995         (record_reference): Simplify to work on initializers; not statements.
996         (mark_address, mark_load, mark_store): New.
997         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
998         walk PHI nodes too.
999         (record_references_in_initializer): Update use of record_reference.
1000         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
1001         walk PHI nodes too.
1002
1003 2010-05-04  Jan Hubicka  <jh@suse.cz>
1004
1005         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
1006         node will be removed anyway.
1007         (lto_varpool_replace_node): Allow also unanalyzed nodes;
1008         relink aliases of node into prevailing node.
1009         * varpool.c (varpool_remove_node): Remove aliases properly;
1010         when removing node, remove all its aliases too; remove DECL_INITIAL
1011         of removed node; ggc_free the varpool node.
1012
1013 2010-05-04  Richard Guenther  <rguenther@suse.de>
1014
1015         PR tree-optimization/43879
1016         * tree-ssa-structalias.c (alias_get_name): Use
1017         DECL_ASSEMBLER_NAME if available.
1018         (create_function_info_for): Return the varinfo node.
1019         (ipa_pta_execute): Associate same-body aliases and extra names
1020         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
1021
1022 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1023
1024         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
1025
1026 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
1027
1028         PR bootstrap/43964
1029         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
1030         only if HONOR_REG_ALLOC_ORDER is not defined.
1031
1032 2010-05-04  Richard Guenther  <rguenther@suse.de>
1033
1034         PR tree-optimization/43949
1035         * tree-vrp.c (extract_range_from_binary_expr): Only handle
1036         TRUNC_MOD_EXPR.
1037
1038 2010-04-26  Jason Merrill  <jason@redhat.com>
1039
1040         * c.opt (-fstrict-enums): New.
1041         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
1042
1043 2010-05-03  David Ung <davidu@mips.com>
1044             James E. Wilson  <wilson@codesourcery.com>
1045
1046         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
1047         emit the trap instruction before the divide for TUNE_74K.
1048
1049 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
1050
1051         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
1052         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
1053         based on the above, for new target hook.
1054
1055         * hooks.c (hook_bool_mode_true): New generic hook.
1056         * hooks.h (hook_bool_mode_true): Add prototype.
1057
1058         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
1059         target hook.
1060         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
1061         target hook, set to hook_bool_mode_false.
1062         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
1063         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
1064         with targetm.small_register_classes_for_mode_p.
1065         (find_reusable_reload): Likewise.
1066         (combine_reloads): Likewise.
1067         * reload1.c (reload_as_needed): Likewise.
1068         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
1069         * ifcvt.c (noce_process_if_block, check_cond_move_block,
1070         dead_or_predicable): Likewise.
1071         * regmove.c (optimize_reg_copy_1): Likewise.
1072         * calls.c (prepare_call_address): Likewise.
1073         (precompute_register_parameters): Likewise.
1074
1075         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
1076         hook definition.
1077         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
1078         implementation of the hook that considers all register classes
1079         small except for SH64.
1080         (sh_override_options): Use the new hook.
1081         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
1082         Add prototype.
1083
1084         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
1085         hook definition.
1086         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
1087         implementation of the hook that considers all register classes
1088         small for THUMB1.
1089         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
1090         Add prototype.
1091
1092         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
1093         hook definition.
1094         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
1095         implementation of the hook that considers all register classes
1096         small for MIPS16.
1097         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
1098         Add prototype.
1099
1100         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
1101         hook definition.
1102         * config/m32c/m32c.h: Likewise.
1103         * config/pdp11/pdp11.h: Likewise.
1104         * config/avr/avr.h: Likewise.
1105         * config/xtensa/xtensa.h: Likewise.
1106         * config/m68hc11/m68hc11.h: Likewise.
1107         * config/mn10300/mn10300.h: Likewise.
1108         * config/mcore/mcore.h: Likewise.
1109         * config/h8300/h8300.h: Likewise.
1110         * config/bfin/bfin.h: Likewise.
1111
1112         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
1113         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
1114
1115 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
1116
1117         * double-int.h (tree_to_double_int): Remove macro.
1118         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
1119         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
1120         (tree_to_double_int): New function.
1121         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
1122         Move ...
1123         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
1124
1125 2010-05-03  Richard Guenther  <rguenther@suse.de>
1126
1127         PR tree-optimization/43971
1128         * tree-ssa-structalias.c (get_constraint_for_1): Fix
1129         constraints in the !flag_delete_null_pointer_checks case.
1130
1131 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
1132
1133         PR debug/43972
1134         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
1135         result mode matches original rtl mode.
1136
1137 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1138
1139         PR target/43888
1140         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
1141
1142 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
1143
1144         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
1145         when processing flag options.
1146
1147 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
1148
1149         * gcov-iov.c (main): Change format string placeholder
1150         from %#08x to 0x%08x.
1151         * genchecksum.c (dosum): Change format string placeholder
1152         from %#02x to 0x%02x.
1153
1154 2010-05-02  Richard Guenther  <rguenther@suse.de>
1155
1156         PR tree-optimization/43879
1157         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
1158
1159 2010-05-02  Bruno Haible  <bruno@clisp.org>
1160
1161         * doc/extend.texi (Function Attributes): Fix a typo.
1162
1163 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
1164
1165         Revert:
1166         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
1167         placeholder from 0x%x to %#x.
1168         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
1169         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
1170         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
1171         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
1172         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
1173         * config/i386/i386.c (ix86_target_string): Ditto.
1174         * config/i386/i386.c (output_pic_addr_const): Ditto.
1175         (print_operand): Ditto.
1176
1177 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
1178
1179         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
1180         placeholder from 0x%x to %#x.
1181         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
1182         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
1183         (ASM_OUTPUT_DEBUG_DATA): Ditto.
1184         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
1185         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
1186         * optc-gen.awk: Ditto.
1187         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
1188         (HOST_WIDE_INT_PRINT_HEX): Ditto.
1189         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
1190         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
1191
1192 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
1193
1194         * target.h (struct calls): Add function_value_regno_p field.
1195         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1196         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
1197         * targhooks.c (default_function_value_regno_p): New function.
1198         * targhooks.h (default_function_value_regno_p): Declare function.
1199         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
1200         * builtins.c. (apply_result_size): (Ditto.).
1201         * combine.c. (likely_spilled_retval_p): (Ditto.).
1202         * mode-switching.c. Include 'target.h'.
1203         (create_pre_exit): Use function_value_regno_p hook.
1204         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
1205         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
1206         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
1207
1208         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
1209         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
1210         (ix86_function_value_regno_p): Declare as static, change argument
1211         type to const unsigned int.
1212         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
1213
1214 2010-05-01  Richard Guenther  <rguenther@suse.de>
1215
1216         PR tree-optimization/43949
1217         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
1218         types.
1219         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
1220
1221 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
1222
1223         * rtl.h (CONST_DOUBLE_P): Define.
1224         (rtx_to_double_int): Declare.
1225         * emit-rtl.c (rtx_to_double_int): New function.
1226         * dwarf2out.c (insert_double): New function.
1227         (loc_descriptor, add_const_value_attribute): Clean up, use
1228         rtx_to_double_int and insert_double functions.
1229
1230 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
1231
1232         * doc/extend.texi (Inline): Add missing return keyword to examples.
1233         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
1234         "command-line".
1235
1236 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
1237
1238         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
1239         the variable part of the offset as well.  Use highest_pow2_factor for
1240         all alignment checks.
1241
1242 2010-04-30  Richard Guenther  <rguenther@suse.de>
1243
1244         PR tree-optimization/43879
1245         * tree-ssa-structalias.c (type_could_have_pointers): Functions
1246         can have pointers.
1247
1248 2010-04-30  Jan Hubicka  <jh@suse.cz>
1249
1250         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
1251         varpool.
1252         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
1253
1254 2010-04-30  Jan Hubicka  <jh@suse.cz>
1255
1256         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
1257         New.
1258         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
1259         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
1260         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
1261         cgraph_node_set_needs_ltrans_p): Remove.
1262
1263 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
1264
1265         * sdbout.c: Include vec.h, do not include varray.h.
1266         (deferred_global_decls, sdbout_global_decl,
1267         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
1268         * toplev.c: Do not include varray.h.
1269         (dump_memory_report): Do not dump VARRAY statistics.
1270         * gengtype.c (open_base_file): Ignore varray.h.
1271         * Makefile.in: Update for abovementioned changes.
1272         Remove all traces of varray.c and varray.h.
1273         * varray.c: Remove file.
1274         * varray.h: Remove file.
1275
1276 2010-04-30  Jan Hubicka  <jh@suse.cz>
1277
1278         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
1279         references.
1280
1281 2010-04-30  Jan Hubicka  <jh@suse.cz>
1282
1283         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
1284         needed.
1285
1286 2010-04-30  Richard Guenther  <rguenther@suse.de>
1287
1288         * tree-ssa-structalias.c (get_constraint_for_1): Generate
1289         constraints for CONSTRUCTOR.
1290
1291 2010-04-30  Richard Guenther  <rguenther@suse.de>
1292
1293         PR lto/43946
1294         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
1295         first after all lowering passes.
1296
1297 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
1298
1299         * toplev.c: Include varray.h for statistics dumping.
1300         * tree.h: Do not declare varray_head_tag.
1301         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
1302         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
1303         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
1304         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
1305         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
1306         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
1307         c-common.c, c-common.h, reg-stack.c, basic-block.h,
1308         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
1309         include varray.h.
1310         * Makefile.in: Update for abovementioned changes.
1311
1312 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
1313
1314         PR debug/43942
1315         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
1316
1317 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
1318
1319         * config/picochip/picochip.c (picochip_legitimize_address): Define.
1320         Use this function to do machine-specific conversion.
1321         (picochip_legitimize_reload_address): Likewise.
1322         (picochip_legitimate_address_p): Check valid base register only if
1323         strict.
1324         (picochip_check_conditional_copy): Check for modw only if opnd is
1325         register.
1326         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
1327         to call the function in c.
1328         * config/picochip/picochip-protos.h
1329         (picochip_legitimize_reload_address): Define.
1330         * config/picochip/picochip.md (supported_compare1): Define.
1331
1332 2010-04-30  Jan Hubicka  <jh@suse.cz>
1333
1334         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
1335         (cgraph_global_info): Remove inlined.
1336         (LTO_cgraph_tag_names): Remove.
1337         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
1338         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
1339         simplify cgraph tags and document.
1340         (lto_output_node): Use only LTO_cgraph_unavail_node and
1341         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
1342         for_functions_valid, global info, process and output flags.
1343         (input_overwrite_node): Initialize estimated stack size and
1344         estimated growth.  Do not read flags we no longer store.
1345         (input_node): Likewise do not read info no longer stored.
1346         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
1347         flag.
1348
1349 2010-04-30  Richard Guenther  <rguenther@suse.de>
1350
1351         PR tree-optimization/43879
1352         * tree-ssa-structalias.c (get_constraint_for_1): Properly
1353         handle non-zero initializers.
1354
1355 2010-04-30  Richard Guenther  <rguenther@suse.de>
1356
1357         * builtins.c (fold_builtin_1): Delete free (0).
1358
1359 2010-04-29  Jan Hubicka  <jh@suse.cz>
1360
1361         * gengtype.c (open_base_files): Add lto-streamer.h
1362         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
1363         (pass_ipa_cp): GGC collect.
1364         * toplev. (compile_file): Do not output symbols.
1365         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
1366         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
1367         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
1368         * lto-section-in.c: Include ggc.h
1369         (lto_new_in_decl_state): Alloc in GGC.
1370         (lto_delete_in_decl_state): Likewise.
1371         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
1372         Collect.
1373
1374 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
1375
1376         PR target/42895
1377         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
1378         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
1379         (HONOR_REG_ALLOC_ORDER): Describe new macro.
1380         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
1381         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
1382         account only if HONOR_REG_ALLOC_ORDER is not defined.
1383         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
1384         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
1385
1386 2010-04-29  Jon Grant  <04@jguk.org>
1387
1388         * collect2.c (vflag): Change type from int to bool.
1389         (debug): Likewise.
1390         (helpflag): New global bool.
1391         (main): Set vflag and debug with boolean, not integer truth values.
1392         Accept new "--help" option and output usage text if found.
1393         * collect2.h (vflag): Update prototype.
1394         (debug): Likewise.
1395
1396 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
1397
1398         PR bootstrap/43936
1399         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
1400
1401 2010-04-29  Richard Guenther  <rguenther@suse.de>
1402
1403         PR bootstrap/43935
1404         * plugin.h (invoke_plugin_callbacks): Annotate arguments
1405         with ATTRIBUTE_UNUSED.
1406
1407 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
1408
1409         PR target/43921
1410         * config/i386/i386.c (get_some_local_dynamic_name): Replace
1411         INSN_P with NONDEBUG_INSN_P.
1412         (distance_non_agu_define): Likewise.
1413         (distance_agu_use): Likewise.
1414
1415 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
1416
1417         From Dominique d'Humieres <dominiq@lps.ens.fr>
1418         PR bootstrap/43858
1419         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
1420         test_set.
1421
1422 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
1423
1424         * plugin.h (invoke_plugin_callbacks): New inline function.
1425         * plugin.c (flag_plugin_added): New global flag.
1426         (add_new_plugin): Initialize above flag.
1427         (invoke_plugin_callbacks): Rename to ...
1428         (invoke_plugin_callbacks_full): ... this.
1429
1430 2010-04-28  Jan Hubicka  <jh@suse.cz>
1431
1432         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
1433         (lto_varpool_replace_node): New.
1434         (lto_symtab_resolve_symbols): Resolve varpool nodes.
1435         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
1436         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
1437         * cgraph.h (varpool_node_ptr): New type.
1438         (varpool_node_ptr): New vector.
1439         (varpool_node_set_def): New structure.
1440         (varpool_node_set): New type.
1441         (varpool_node_set): New vector.
1442         (varpool_node_set_element_def): New structure.
1443         (varpool_node_set_element, const_varpool_node_set_element): New types.
1444         (varpool_node_set_iterator): New type.
1445         (varpool_node): Add prev pointers, add used_from_other_partition,
1446         in_other_partition.
1447         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
1448         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
1449         varpool_get_node, varpool_remove_node): Declare.
1450         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
1451         varpool_node_set_size): New inlines.
1452         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
1453         * tree-pass.h (varpool_node_set_def): Forward declare.
1454         (ipa_opt_pass_d): Summary writting takes vnode sets too.
1455         (ipa_write_optimization_summaries): Update prototype.
1456         * ipa-cp.c (ipcp_write_summary): Update.
1457         * ipa-reference.c (ipa_reference_write_summary): Update.
1458         * lto-cgraph.c (lto_output_varpool_node): New static function.
1459         (output_varpool): New function.
1460         (input_varpool_node): New static function.
1461         (input_varpool_1): New function.
1462         (input_cgraph): Input varpool.
1463         * ipa-pure-const.c (pure_const_write_summary): Update.
1464         * lto-streamer-out.c (lto_output): Update, output varpool too.
1465         (write_global_stream): Kill WPA hack.
1466         (produce_asm_for_decls): Update.
1467         (output_alias_pair_p): Handle variables.
1468         (output_unreferenced_globals): Output only needed partition of varpool.
1469         * ipa-inline.c (inline_write_summary): Update.
1470         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
1471         cgraph.
1472         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
1473         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
1474         varpool_node_set_new, varpool_node_set_add,
1475         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
1476         debug_varpool_node_set): New functions.
1477         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
1478         (execute_one_pass): Process new decls too.
1479         (ipa_write_summaries_2): Pass around vsets.
1480         (ipa_write_summaries_1): Likewise.
1481         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
1482         to add.
1483         (ipa_write_optimization_summaries_1): Pass around vsets.
1484         (ipa_write_optimization_summaries): Likewise.
1485         * varpool.c (varpool_get_node): New.
1486         (varpool_node): Update doubly linked lists.
1487         (varpool_remove_node): New.
1488         (dump_varpool_node): More dumping.
1489         (varpool_enqueue_needed_node): Update doubly linked lists.
1490         (decide_is_variable_needed): Kill ltrans hack.
1491         (varpool_finalize_decl): Kill lto hack.
1492         (varpool_assemble_decl): Skip decls in other partitions.
1493         (varpool_assemble_pending_decls): Update doubly linkes lists.
1494         (varpool_empty_needed_queue): Likewise.
1495         (varpool_extra_name_alias): Likewise.
1496         * lto-streamer.c (lto_get_section_name): Add vars section.
1497         * lto-streamer.h (lto_section_type): Update.
1498         (output_varpool, input_varpool): Declare.
1499
1500 2010-04-28  Mike Stump  <mikestump@comcast.net>
1501
1502         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
1503
1504 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1505
1506         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
1507         record or union type with RECORD_OR_UNION_TYPE_P predicate.
1508         (lto_input_ts_type_tree_pointers): Likewise.
1509         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
1510         (lto_output_ts_type_tree_pointers): Likewise.
1511
1512 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1513
1514         Uniquization of constants at the Tree level
1515         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
1516         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
1517         bit to the end.
1518         (tree_output_constant_def): Declare.
1519         * gimplify.c (gimplify_init_constructor): When using block copy, first
1520         uniquize the constant constructor on the RHS.
1521         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
1522         DECL_IN_CONSTANT_POOL flag.
1523         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
1524         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
1525         constant pool.
1526         (assemble_variable): Deal with symbols belonging to the tree constant
1527         pool.
1528         (get_constant_section): Add ALIGN parameter and simplify.
1529         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
1530         (assemble_constant_contents): Use the expression of the VAR_DECL.
1531         (output_constant_def_contents): Use the alignment of the VAR_DECL.
1532         (tree_output_constant_def): New global function.
1533         (mark_constant): Use the expression of the VAR_DECL.
1534         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
1535         its expression.
1536         (output_object_block): Likewise and assemble the expression.
1537
1538 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1539
1540         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
1541         hash_tree, eq_tree): New tree hash table.
1542         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
1543         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
1544         lto_orig_address_remove): Reimplement.
1545
1546 2010-04-28  Xinliang David Li  <davidxl@google.com>
1547
1548         PR c/42643
1549         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
1550         (compute_uninit_opnds_pos): New function.
1551         (is_non_loop_exit_postdominating): New function.
1552         (compute_control_dep_chain): New function.
1553         (find_pdom): New function.
1554         (convert_control_dep_chain_into_preds): New function.
1555         (find_predicates): New function.
1556         (find_control_equiv_block): New function.
1557         (collect_phi_def_edges): New function.
1558         (find_def_preds): New function.
1559         (find_dom): New function.
1560         (dump_predicates): New function.
1561         (get_cmp_code): New function.
1562         (is_value_included_in): New function.
1563         (find_matching_predicate_in_rest_chains): New function.
1564         (use_pred_not_overlap_with_undef_path_pred): New function.
1565         (is_use_properly_guarded): New function.
1566         (normalize_cond_1): New function.
1567         (is_and_or_or): New function.
1568         (normalize_cond): New function.
1569         (is_gcond_subset_of): New function.
1570         (is_subset_of_any): New function.
1571         (is_or_set_subset_of): New function.
1572         (is_and_set_subset_of): New function.
1573         (is_norm_cond_subset_of): New function.
1574         (is_pred_expr_subset_of): New function.
1575         (is_pred_chain_subset_of): New function.
1576         (is_included_in): New function.
1577         (is_superset_of): New function.
1578         (find_uninit_use): New function.
1579         (warn_uninitialized_phi): New function.
1580         (compute_possibly_undefined_names): New function.
1581         (ssa_undefined_value_p): New function.
1582         (execute_late_warn_uninitialized): New function.
1583         * tree-ssa.c (ssa_undefined_value_p): Removed.
1584         (warn_uninit): Changed to extern.
1585         (warn_uninitialized_phi): Removed.
1586         (warn_uninitialized_vars): Changed to extern.
1587         (execute_late_warn_uninitialized): Removed
1588         * tree-flow.h: Add new prototypes.
1589         * timevar.def: Add new time variable.
1590         * Makefile.in: Add new build file.
1591
1592 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
1593
1594         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
1595         type if available.
1596
1597 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1598
1599         PR target/22224
1600         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
1601
1602 2010-04-28  Martin Jambor  <mjambor@suse.cz>
1603
1604         * cgraph.h (struct cgraph_node): New field indirect_calls.
1605         (struct cgraph_indirect_call_info): New type.
1606         (struct cgraph_edge): Removed field indirect_call. New fields
1607         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
1608         (cgraph_create_indirect_edge): Declare.
1609         (cgraph_make_edge_direct): Likewise.
1610         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
1611         * ipa-prop.h (struct ipa_param_call_note): Removed.
1612         (struct ipa_node_params): Removed field param_calls.
1613         (ipa_create_all_structures_for_iinln): Declare.
1614         * cgraph.c: Described indirect edges and uids in initial comment.
1615         (cgraph_add_edge_to_call_site_hash): New function.
1616         (cgraph_edge): Search also among the indirect edges, use
1617         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
1618         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
1619         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
1620         site hash.
1621         (initialize_inline_failed): Assign a reason to indirect edges.
1622         (cgraph_create_edge_1): New function.
1623         (cgraph_create_edge): Moved some functionality to
1624         cgraph_create_edge_1.
1625         (cgraph_create_indirect_edge): New function.
1626         (cgraph_edge_remove_callee): Add an assert checking for
1627         non-indirectness.
1628         (cgraph_edge_remove_caller): Special-case indirect edges.
1629         (cgraph_remove_edge): Likewise.
1630         (cgraph_set_edge_callee): New function.
1631         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
1632         (cgraph_make_edge_direct): New function.
1633         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
1634         the declaration of the call statement matches.
1635         (cgraph_node_remove_callees): Special-case indirect edges.
1636         (cgraph_clone_edge): Likewise.
1637         (cgraph_clone_node): Clone also the indirect edges.
1638         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
1639         indirect_call, dump count of indirect_calls edges.
1640         * ipa-prop.c (iinlining_processed_edges): New variable.
1641         (ipa_note_param_call): Create indirect edges instead of
1642         creating notes.  New parameter node.
1643         (ipa_analyze_call_uses): New parameter node, pass it on to
1644         ipa_note_param_call.
1645         (ipa_analyze_stmt_uses): Likewise.
1646         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
1647         (print_edge_addition_message): Work on edges rather than on notes.
1648         (update_call_notes_after_inlining): Likewise, renamed to
1649         update_indirect_edges_after_inlining.
1650         (ipa_create_all_structures_for_iinln): New function.
1651         (ipa_free_node_params_substructures): Do not free notes.
1652         (ipa_edge_duplication_hook): Propagate bits within
1653         iinlining_processed_edges bitmap.
1654         (ipa_node_duplication_hook): Do not duplicate notes.
1655         (free_all_ipa_structures_after_ipa_cp): Renamed to
1656         ipa_free_all_structures_after_ipa_cp.
1657         (free_all_ipa_structures_after_iinln): Renamed to
1658         ipa_free_all_structures_after_iinln.
1659         (ipa_write_param_call_note): Removed.
1660         (ipa_read_param_call_note): Removed.
1661         (ipa_write_indirect_edge_info): New function.
1662         (ipa_read_indirect_edge_info): Likewise.
1663         (ipa_write_node_info): Do not stream notes, do stream information
1664         in indirect edges.
1665         (ipa_read_node_info): Likewise.
1666         (lto_ipa_fixup_call_notes): Removed.
1667         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
1668         * ipa-inline.c (pass_ipa_inline): Likewise.
1669         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
1670         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
1671         * tree-inline.c (copy_bb): Removed an unnecessary double check for
1672         is_gimple_call.
1673         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
1674         edges.
1675         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
1676         (output_cgraph): Stream also indirect edges.
1677         (lto_output_edge): Added capability to stream indirect edges.
1678         (input_edge): Likewise.
1679         (input_cgraph_1): Likewise.
1680         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
1681         of indirect edges.
1682
1683 2010-04-28  Richard Guenther  <rguenther@suse.de>
1684
1685         PR tree-optimization/43879
1686         PR tree-optimization/43909
1687         * tree-ssa-structalias.c (struct variable_info): Add
1688         only_restrict_pointers flag.
1689         (new_var_info): Initialize it.  Increment stats.total_vars here.
1690         (create_function_info_for): Do not increment stats.total_vars here.
1691         (get_function_part_constraint): Fix build with C++.
1692         (insert_into_field_list): Remove.
1693         (push_fields_onto_fieldstack): Properly merge fields.
1694         (create_variable_info_for): Split and simplify.
1695         (create_variable_info_for_1): New piece.
1696         (intra_create_variable_infos): Properly make restrict constraints
1697         from parameters.
1698
1699 2010-04-28  Richard Guenther  <rguenther@suse.de>
1700
1701         PR c++/43880
1702         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
1703
1704 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1705             Jan Hubicka <hubicka@ucw.cz>
1706
1707         * doc/invoke.texi (-Wsuggest-attribute=const,
1708         -Wsuggest-attribute=pure): Document.
1709         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
1710         (function_always_visible_to_compiler_p,
1711         suggest_attribute, warn_function_pure, warn_function_const):
1712         New functions.
1713         (check_call): Improve debug info.
1714         (analyze_function): Do not check availability.
1715         (add_new_function): Check availability.
1716         (propagate): Output warnings.
1717         (skip_function_for_local_pure_const): New function.
1718         (local_pure_const): Use it; output warnings.
1719         * common.opt (Wsuggest-attribute=const,
1720         Wsuggest-attribute=pure): New.
1721
1722 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
1723
1724         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
1725         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
1726         or DW_CFA_def_cfa_offset{,_sf}.
1727
1728 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
1729
1730         * tree.h: Fix truncated long macros.
1731
1732 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
1733
1734         * collect2.c (TARGET_64BIT): Redefine to target's default.
1735         * tlink.c: Likewise.
1736         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
1737         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
1738         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
1739         for underscoring __USER_LABEL_PREFIX__.
1740         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
1741         (SUB_LINK_ENTRY32): New.
1742         (SUB_LINK_ENTRY64): New.
1743         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
1744         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
1745         (SUB_LINK_ENTRY64): New.
1746         (SUB_LINK_ENTRY): New.
1747         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
1748         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
1749         x64 target is choosen.
1750         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
1751         * configure: Regenerated.
1752         * configure.ac (leading-mingw64-underscores): Option added.
1753
1754 2010-04-27  Jan Hubicka  <jh@suse.cz>
1755
1756         * doc/invoke.texi (-fipa-profile): Document.
1757         * opts.c (decode_options): Enable ipa-profile at -O1.
1758         * timevar.def (TV_IPA_PROFILE): Define.
1759         * common.opt (fipa-profile): Add.
1760         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
1761         flag for clones.
1762         (cgraph_propagate_frequency): Handle only local ones.
1763         * tree-pass.h (pass_ipa_profile): Declare.
1764         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
1765         (pass_ipa_profile): Use TV_IPA_PROFILE.
1766         * ipa.c (ipa_profile): New function.
1767         (gate_ipa_profile): Likewise.
1768         (pass_ipa_profile): New global variable.
1769         * passes.c (pass_ipa_profile): New.
1770
1771 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
1772
1773         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
1774
1775 2010-04-27  Martin Jambor  <mjambor@suse.cz>
1776
1777         PR middle-end/43812
1778         * ipa.c (dissolve_same_comdat_group_list): New function.
1779         (function_and_variable_visibility): Call
1780         dissolve_same_comdat_group_list when comdat group contains external or
1781         newly local nodes.
1782         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
1783         lists are circular and that they contain only DECL_ONE_ONLY nodes.
1784
1785 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
1786
1787         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
1788         (const_hash_1) <VECTOR_CST>: New case.
1789         (compare_constant) <VECTOR_CST>: Likewise.
1790         <ADDR_EXPR>: Deal with LABEL_REFs.
1791         (copy_constant) <VECTOR_CST>: New case.
1792
1793 2010-04-27  Jan Hubicka  <jh@suse.cz>
1794
1795         * cgraph.c (cgraph_propagate_frequency): New function.
1796         * cgraph.h (cgraph_propagate_frequency): Declare.
1797         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
1798         cgraph_propagate_frequency.
1799
1800 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
1801
1802         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
1803
1804 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
1805
1806         PR target/40657
1807         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
1808         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
1809         here to determine which regs to push and how much stack to reserve.
1810
1811 2010-04-27  Jie Zhang  <jie@codesourcery.com>
1812
1813         * doc/gimple.texi (gimple_statement_with_ops): Remove
1814         addresses_taken field.
1815         (gimple_statement_with_memory_ops): Likewise.
1816
1817 2010-04-27  Jan Hubicka  <jh@suse.cz>
1818
1819         * tree-inline.c (eni_inlining_weights): Remove.
1820         (estimate_num_insns): Special case more builtins.
1821
1822 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
1823
1824         PR c/32207
1825         * c-typeck.c (build_binary_op): Move forward check for comparison
1826         pointer with null pointer constant and adjust the diagnostic message.
1827
1828 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
1829
1830         PR lto/42776
1831         * configure.ac (gcc_cv_as_section_has_align): Set if installed
1832         binutils supports extended .section directive needed by LTO, or
1833         warn if older binutils found.
1834         (LTO_BINARY_READER): New AC_SUBST'd variable.
1835         (LTO_USE_LIBELF): Likewise.
1836         * gcc/config.gcc (lto_binary_reader): New target-specific configure
1837         variable.
1838         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
1839         (LTO_USE_LIBELF): Likewise.
1840         * configure: Regenerate.
1841
1842         * collect2.c (is_elf): Rename from this ...
1843         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
1844          object files in addition to ELF-formatted ones.
1845         (scan_prog_file): Caller updated.  Also allow for LTO info marker
1846         symbol to be prefixed or not by an extra underscore.
1847
1848         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
1849         * config/i386/winnt.c: Also #include lto-streamer.h
1850         (i386_pe_asm_named_section): Specify 1-byte section alignment for
1851         LTO named sections.
1852         (i386_pe_asm_output_aligned_decl_common): Add comment.
1853         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
1854
1855 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
1856
1857         PR target/43889
1858         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
1859         Add missing earlyclobber for second alternative.
1860
1861 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
1862
1863         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
1864         bits for artificial defs at the top of the block.
1865         * fwprop.c (single_def_use_enter_block): Don't call it.
1866
1867 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
1868
1869         PR 43715
1870         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
1871         instead of "$gcc_cv_objdump -T".
1872         Use "-undefined dynamic_lookup" on darwin.
1873         * gcc/configure: Regenerate.
1874
1875 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1876
1877         PR c/43893
1878         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
1879
1880 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
1881
1882         * c-parser.c (struct c_token): Move location field up.
1883         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
1884         (struct c_declspecs): Convert typespec_word, storage_class, and
1885         default_int_p into bitfields.
1886         (struct c_declarator): Move loc field up.
1887
1888 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
1889
1890         * cfgloop.h (struct loop): Move can_be_parallel field up.
1891         * ipa-prop.h (struct ip_node_params): Move bitfields up.
1892         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
1893         down.
1894         (struct iv_cand): Convert pos field into a bitfield.
1895         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
1896         field up.
1897         (struct _stmt_vec_info): Shuffle fields for better packing.
1898
1899 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
1900
1901         * varasm.c (IN_NAMED_SECTION): Remove guard.
1902         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
1903         (IN_NAMED_SECTION_P): ...this.
1904         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
1905         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1906
1907 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
1908
1909         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
1910         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
1911         of shadowing it.  Fix comments.
1912
1913 2010-04-26  Jan Hubicka  <jh@suse.cz>
1914
1915         * cgraph.c (cgraph_create_node): Set node frequency to normal.
1916         (cgraph_clone_node): Copy function frequency.
1917         * cgraph.h (node_frequency): New enum
1918         (struct cgraph_node): Add.
1919         * final.c (rest_of_clean_state): Update.
1920         * lto-cgraph.c (lto_output_node): Output node frequency.
1921         (input_overwrite_node): Input node frequency.
1922         * tre-ssa-loop-ivopts (computation_cost): Update.
1923         * lto-streamer-out.c (output_function): Do not output function
1924         frequency.
1925         * predict.c (maybe_hot_frequency_p): Update and handle functions
1926         executed once.
1927         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
1928         attribute lookup.
1929         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
1930         (compute_function_frequency): Set noreturn functions to be executed
1931         once.
1932         (choose_function_section): Update.
1933         * lto-streamer-in.c (input_function): Do not input function frequency.
1934         * function.c (allocate_struct_function): Do not initialize function
1935         frequency.
1936         * function.h (function_frequency): Remove.
1937         (struct function): Remove function frequency.
1938         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
1939         (try_update): Update.
1940         * tree-inline.c (initialize_cfun): Do not update function frequency.
1941         * passes.c (pass_init_dump_file): Update.
1942         * i386.c (ix86_compute_frame_layout): Update.
1943         (ix86_pad_returns): Update.
1944
1945 2010-04-26  Jie Zhang  <jie@codesourcery.com>
1946
1947         PR tree-optimization/43833
1948         * tree-vrp.c (range_int_cst_p): New.
1949         (range_int_cst_singleton_p): New.
1950         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
1951         when both operands are constants.  Use range_int_cst_p in
1952         BIT_IOR_EXPR case.
1953
1954 2010-04-26  Jan Hubicka  <jh@suse.cz>
1955
1956         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
1957
1958 2010-04-26  Richard Guenther  <rguenther@suse.de>
1959
1960         PR lto/43080
1961         * gimple.c (gimple_decl_printable_name): Deal gracefully
1962         with a NULL DECL_NAME.
1963
1964 2010-04-26  Richard Guenther  <rguenther@suse.de>
1965
1966         PR lto/42425
1967         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
1968         if emitting debug information and it is either a function
1969         or a namespace decl.
1970
1971 2010-04-26  Ira Rosen  <irar@il.ibm.com>
1972
1973         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
1974         determine if the statement is vectorizable, and a macro to access it.
1975         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1976         Skip statements that can't be vectorized. If the analysis fails,
1977         mark the statement as unvectorizable if vectorizing basic block.
1978         (vect_compute_data_refs_alignment): Likewise.
1979         (vect_verify_datarefs_alignment): Skip statements marked as
1980         unvectorizable. Add print.
1981         (vect_analyze_group_access): Skip statements that can't be
1982         vectorized. If the analysis fails, mark the statement as
1983         unvectorizable if vectorizing basic block.
1984         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
1985         * tree-vect-stmts.c (vectorizable_store): Fix the number of
1986         generated stmts for SLP.
1987         (new_stmt_vec_info): Initialize the new field.
1988         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
1989         statements marked as unvectorizable.
1990
1991 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
1992
1993         * c-common.c (flag_isoc1x): New.
1994         (flag_isoc99): Update comment.
1995         * c-common.h (flag_isoc1x): New.
1996         (flag_isoc99): Update comment.
1997         * c-cppbuiltin.c (builtin_define_float_constants): Also define
1998         __<type>_DECIMAL_DIG__.
1999         * c-opts.c (set_std_c1x): New.
2000         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
2001         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
2002         * c.opt (-std=c1x, -std=gnu1x): New options.
2003         * doc/cpp.texi: Mention -std=c1x.
2004         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
2005         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
2006         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
2007         * doc/standards.texi: Mention C1X.
2008         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
2009         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
2010         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2011         Define for C1X.
2012
2013 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
2014
2015         * config/i386/gmon-sol2.c (_mcleanup): Change format string
2016         placeholder from 0x%x to %#x.
2017         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2018         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2019         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2020         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2021         * config/i386/i386.c (ix86_target_string): Ditto.
2022         (output_pic_addr_const): Ditto.
2023         (print_operand): Ditto.
2024
2025 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
2026
2027         * combine.c (find_split_point): Add third argument.  Use it
2028         to find nested multiply-accumulate instructions.  Adjust calls.
2029         (try_combine): Adjust call to find_split_point.
2030
2031 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2032
2033         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
2034
2035 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
2036
2037         PR tree-optimization/41442
2038         * fold-const.c (merge_truthop_with_opposite_arm): New function.
2039         (fold_binary_loc): Call it.
2040
2041 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2042
2043         * toplev.c (general_init): Set default for fdiagnostics-show-option.
2044         * opts.c (common_handle_option): Allow disabling it.
2045         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
2046
2047 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
2048
2049         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
2050         between modes if both types are integral.
2051
2052 2010-04-23  Richard Guenther  <rguenther@suse.de>
2053
2054         PR tree-optimization/43572
2055         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
2056
2057 2010-04-23  Richard Guenther  <rguenther@suse.de>
2058
2059         PR lto/43455
2060         * tree-inline.c (tree_can_inline_p): Also check compatibility
2061         of return types.
2062
2063 2010-04-23  Martin Jambor  <mjambor@suse.cz>
2064
2065         PR tree-optimization/43846
2066         * tree-sra.c (struct access): New flag grp_assignment_read.
2067         (build_accesses_from_assign): Set grp_assignment_read.
2068         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
2069         (enum mark_read_status): New type.
2070         (analyze_access_subtree): Propagate grp_assignment_read, create
2071         accesses also if both direct_read and root->grp_assignment_read.
2072
2073 2010-04-23  Martin Jambor  <mjambor@suse.cz>
2074
2075         PR middle-end/43835
2076         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
2077         function does not have type attributes.
2078
2079 2010-04-23  Richard Guenther  <rguenther@suse.de>
2080
2081         PR lto/42653
2082         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
2083         of FUNCTION_DECLs.
2084
2085 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2086
2087         * sese.h (create_if_region_on_edge): Remove.
2088
2089         * sese.c (create_if_region_on_edge): Make static.
2090
2091         * tree-inline.c: Do not include ggc.h.
2092
2093         * expr.c: Do not include ggc.h.
2094
2095         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
2096         dependencies.
2097
2098 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
2099
2100         PR target/43744
2101         * config/sh/sh.c (find_barrier): Don't emit a constant pool
2102         in the middle of insns for casesi_worker_2.
2103
2104 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
2105
2106         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
2107
2108 2010-04-22  Ira Rosen  <irar@il.ibm.com>
2109
2110         PR tree-optimization/43842
2111         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
2112         loop unrolling in update of exit phis. Fix comment.
2113         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
2114         least two reduction statements in the loop before starting SLP
2115         analysis.
2116
2117 2010-04-22  Nick Clifton  <nickc@redhat.com>
2118
2119         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
2120
2121 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
2122
2123         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
2124         to simplify a + ~a.
2125
2126 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2127
2128         * tree-parloops.c (loop_parallel_p): New argument
2129         parloop_obstack.  Pass it down.
2130         (parallelize_loops): New variable parloop_obstack.  Initialize it,
2131         pass it down, free it.
2132
2133         * tree-loop-linear.c (linear_transform_loops): Pass down
2134         lambda_obstack.
2135
2136         * tree-data-ref.h (lambda_compute_access_matrices): New argument
2137         of type struct obstack *.
2138
2139         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
2140         scratch_obstack.  Initialize it, pass down, free it.
2141
2142         * lambda.h (lambda_loop_new): Remove.
2143         (lambda_matrix_new, lambda_matrix_inverse)
2144         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
2145         argument of type struct obstack *.
2146
2147         * lambda-trans.c (lambda_trans_matrix_new): New argument
2148         lambda_obstack.  Pass it down, use obstack allocation for ret.
2149         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
2150         it down.
2151
2152         * lambda-mat.c (lambda_matrix_get_column)
2153         (lambda_matrix_project_to_null): Remove.
2154         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
2155         allocation for mat.
2156         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
2157         lambda_obstack.
2158
2159         * lambda-code.c (lambda_loop_new): New function.
2160         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
2161         (lambda_compute_auxillary_space, lambda_compute_target_space)
2162         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
2163         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
2164         (build_access_matrix): New argument lambda_obstack.  Use obstack
2165         allocation for am.
2166         (lambda_compute_step_signs, lambda_compute_access_matrices): New
2167         argument lambda_obstack.  Pass it down.
2168
2169 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
2170
2171         * optabs.h (expand_widening_mult): Declare.
2172
2173 2010-04-22  Richard Guenther  <rguenther@suse.de>
2174
2175         PR tree-optimization/43845
2176         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
2177         lookup the CALL_EXPR function and arguments.
2178
2179 2010-04-22  Nick Clifton  <nickc@redhat.com>
2180
2181         * config/stormy16/stormy16.c
2182         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
2183         * config/stormy16/stormy16.h: Tidy up formatting.
2184         (DONT_USE_BUILTIN_SETJMP): Remove definition.
2185         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
2186         (ineqbranchsi): Delete pattern.
2187         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
2188         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
2189         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
2190         stormy16-lib2-ucmpsi2.c.
2191
2192 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
2193
2194         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
2195         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
2196         extra set merge_set_noclobber, and use it to relax the final test
2197         slightly.
2198         * df.h (df_simulate_find_noclobber_defs): Declare.
2199         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
2200         conditional defs.
2201         (df_simulate_find_noclobber_defs): New function.
2202
2203 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
2204
2205         * config/i386/i386.md: Use {} around multi-line preparation statements.
2206
2207 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2208
2209         * c-tree.h (push_init_level, pop_init_level, set_init_index)
2210         (process_init_element): New argument of type struct obstack *.
2211
2212         * c-typeck.c (push_init_level, pop_init_level, set_designator)
2213         (set_init_index, set_init_label, set_nonincremental_init)
2214         (set_nonincremental_init_from_string, find_init_member)
2215         (output_init_element, output_pending_init_elements)
2216         (process_init_element): New argument braced_init_obstack.  Pass it
2217         down.
2218         (push_range_stack, add_pending_init): New argument
2219         braced_init_obstack.  Use obstack allocation.
2220
2221         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
2222         braced_init_obstack.  Pass it down.
2223         (c_parser_braced_init): New variables ret, braced_init_obstack.
2224         Initialize obstack, pass it down and finally free it.
2225
2226 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
2227
2228         PR middle-end/29274
2229         * tree-pass.h (pass_optimize_widening_mul): Declare.
2230         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
2231         gate_optimize_widening_mul): New static functions.
2232         (pass_optimize_widening_mul): New.
2233         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
2234         <case MULT_EXPR>: Remove support for widening multiplies.
2235         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
2236         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
2237         simplify_gen_unary rather than directly building extensions.
2238         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
2239         WIDEN_MULT_EXPR.
2240         * expmed.c (expand_widening_mult): New function.
2241         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
2242
2243 2010-04-21  Jan Hubicka  <jh@suse.cz>
2244
2245         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
2246         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
2247         * lto-wpa-fixup.c: Remove.
2248         * Makefile.in (lto-wpa-fixup.o): Remove.
2249         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
2250         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
2251         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
2252
2253 2010-04-21  Jan Hubicka  <jh@suse.cz>
2254
2255         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
2256         add write_optimization_summary, read_optimization_summary.
2257         (ipa_write_summaries_of_cgraph_node_set): Remove.
2258         (ipa_write_optimization_summaries): Declare.
2259         (ipa_read_optimization_summaries): Declare.
2260         * ipa-cp.c (pass_ipa_cp): Update.
2261         * ipa-reference.c (pass_ipa_reference): Update.
2262         * ipa-pure-const.c (pass_ipa_pure_const): Update.
2263         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
2264         Update.
2265         * ipa-inline.c (pass_ipa_inline): Update.
2266         * ipa.c (pass_ipa_whole_program): Update.
2267         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
2268         * passes.c (ipa_write_summaries_1): Do not test wpa.
2269         (ipa_write_optimization_summaries_1): New.
2270         (ipa_write_optimization_summaries): New.
2271         (ipa_read_summaries): Do not test ltrans.
2272         (ipa_read_optimization_summaries_1): New.
2273         (ipa_read_optimization_summaries): New.
2274
2275 2010-04-21  Jan Hubicka  <jh@suse.cz>
2276
2277         * lto-cgraph.c (lto_output_node): Do not output comdat groups
2278         for boundary nodes.
2279         (output_cgraph): Do not arrange comdat groups for boundary nodes.
2280
2281 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
2282
2283         PR debug/40040
2284         * dwarf2out.c (add_name_and_src_coords_attributes): Add
2285         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
2286
2287 2010-04-21  Jan Hubicka  <jh@suse.cz>
2288
2289         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
2290
2291 2010-04-21  Jan Hubicka  <jh@suse.cz>
2292
2293         * varpool.c (decide_is_variable_needed): Variable is always needed
2294         during ltrans.
2295
2296 2010-04-21  Jan Hubicka  <jh@suse.cz>
2297
2298         * opts.c (decode_options): Enable pure-const pass for whopr.
2299
2300 2010-04-21  Jan Hubicka  <jh@suse.cz>
2301
2302         * cgraph.c (dump_cgraph_node): Dump also assembler name.
2303         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
2304         at WPA dumping.
2305         (cgraph_decide_inlining): Do not expect callee to be removed in all
2306         cases.
2307
2308 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
2309
2310         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
2311
2312 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
2313
2314         * config/i386/i386.md (x86_shrd): Add athlon_decode and
2315         amdfam10_decode attributes.
2316
2317 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
2318
2319         PR middle-end/43570
2320         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
2321         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
2322         (lower_copyprivate_clauses): Use private var in outer
2323         context instead of original var.  Make sure the types
2324         are correct for VLAs.
2325
2326 2010-04-21  Richard Guenther  <rguenther@suse.de>
2327
2328         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
2329         to non-pointer objects.
2330
2331 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
2332
2333         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
2334         last chain entry if it starts with the still current label.
2335         (add_location_or_const_value_attribute): Check that
2336         loc_list->first->next is NULL instead of comparing ->first with ->last.
2337         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
2338         to add_var_loc_to_decl.
2339
2340         * dwarf2out.c (output_call_frame_info): For dw_cie_version
2341         >= 4 add also address size and segment size fields into CIE header.
2342
2343         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
2344         long as address size is the same as sizeof (void *) and
2345         segment size is 0.
2346         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
2347         address size or segment size is unexpected, return DW_EH_PE_omit.
2348         (classify_object_over_fdes): If get_cie_encoding returned
2349         DW_EH_PE_omit, return -1.
2350         (init_object): If classify_object_over_fdes returned -1,
2351         pretend there were no FDEs at all.
2352
2353 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
2354
2355         * config/i386/i386.md (bswap<mode>2): Macroize expander from
2356         bswap{si,di}2 using SWI48 mode iterator.
2357         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
2358         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
2359         set modrm attribute of bswap insn to 0 and remove length attribute.
2360         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
2361         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
2362         set mode attribute to <MODE> and remove length attribute.
2363
2364 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
2365
2366         PR rtl-optimization/43520
2367         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
2368         zero available registers.
2369
2370 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2371
2372         * builtins.c (fold_builtin_cproj): Fold more cases.
2373
2374 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2375
2376         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
2377         (fold_builtin_1): Fold builtin cproj.
2378         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
2379         Use ATTR_CONST_NOTHROW_LIST.
2380
2381 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
2382
2383         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
2384         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
2385         ffsi2_no_cmove for !TARGET_CMOVE.
2386         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
2387         (ffssi2): Remove expander.
2388         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
2389         mode iterator.
2390         (ctz<mode>2): Ditto from ctz{si,di}2.
2391         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
2392         mode iterator.
2393         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
2394         mode iterator.
2395
2396 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
2397
2398         * dwarf2out.c (AT_linkage_name): Define.
2399         (clone_as_declaration): Handle DW_AT_linkage_name.
2400         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
2401         of DW_AT_MIPS_linkage_name.
2402         (move_linkage_attr): Likewise.
2403         (dwarf2out_finish): Likewise.
2404
2405 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
2406
2407         PR middle-end/41952
2408         * fold-const.c (fold_comparison): New folding rule.
2409
2410 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
2411
2412         * double-int.h (double_int_setbit): Declare.
2413         * double-int.c (double_int_setbit): New function.
2414         * rtl.h (immed_double_int_const): Declare.
2415         * emit-rtl.c (immed_double_int_const): New function.
2416         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
2417         and immed_double_int_const functions.
2418         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
2419         expand_copysign_bit):  (Ditto.).
2420         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
2421         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
2422         * dojump.c (prefer_and_bit_test): (Ditto.).
2423         * expr.c (convert_modes, reduce_to_bit_field_precision,
2424         const_vector_from_tree): (Ditto.).
2425         * expmed.c (mask_rtx, lshift_value): (Ditto.).
2426
2427 2010-04-20  Jan Hubicka  <jh@suse.cz>
2428
2429         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
2430         (dump_cgraph_node): Dump new flags.
2431         * cgraph.h (struct cgraph_node): Add flags
2432         reachable_from_other_partition and in_other_partition.
2433         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
2434         other partition can not be removed.
2435         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
2436         the other partition must be output; silence sanity checking on
2437         leaking functions bodies from other paritition.
2438         * lto-cgraph.c (reachable_from_other_partition_p): New function.
2439         (lto_output_node): Output new flags; do not sanity check that inline
2440         clones are output; drop lto_forced_extern_inline_p code; do not mock
2441         visibility flags at partition boundaries.
2442         (add_node_to): New function.
2443         (output_cgraph): Use it to sort functions so masters appear before
2444         clones.
2445         (input_overwrite_node): Input new flags.
2446         * passes.c (ipa_write_summaries): Do not call
2447         lto_new_extern_inline_states.
2448         * lto-section-out.c (forced_extern_inline,
2449         lto_new_extern_inline_states lto_delete_extern_inline_states,
2450         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
2451         * lto-streamer.h (lto_new_extern_inline_states,
2452         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
2453         lto_forced_extern_inline_p): Kill.
2454
2455 2010-04-20  Richard Guenther  <rguenther@suse.de>
2456
2457         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
2458         from vars that can have pointers.
2459         (process_constraint): Dump useless constraints.
2460
2461 2010-04-20  Richard Guenther  <rguenther@suse.de>
2462
2463         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
2464         (dump_sa_points_to_info): Remove asserts.
2465         (init_base_vars): nothing_id isn't an escape point nor does it
2466         have pointers.
2467
2468 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
2469
2470         * tree.h (TYPE_REF_IS_RVALUE): Define.
2471         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
2472         should_move_die_to_comdat, prune_unused_types_walk): Handle
2473         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
2474         (modified_type_die, gen_reference_type_die): Emit
2475         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
2476         if TYPE_REF_IS_RVALUE and -gdwarf-4.
2477
2478 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2479
2480         PR target/43635
2481         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
2482         calls for -fpic -m31 if they have been sibcall optimized.
2483
2484 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
2485
2486         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
2487         ar.lc fixed and call-used.
2488
2489         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
2490
2491 2010-04-19  Jan Hubicka  <jh@suse.cz>
2492
2493         * opts.c (decode_options): Disable whpr incompatible passes.
2494         * lto/lto.c (lto_1_to_1_map): Skip clones.
2495         (read_cgraph_and_symbols): Do not mark everything as needed.
2496         (do_whole_program_analysis): Do map only after optimizing;
2497         set proper cgraph_state; use passmanager.
2498
2499 2010-04-19  DJ Delorie  <dj@redhat.com>
2500
2501         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
2502         POINTER_PLUS_EXPR and fix them.
2503
2504 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
2505
2506         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
2507         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
2508         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
2509         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
2510         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
2511         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
2512         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
2513         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
2514         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
2515         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
2516         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
2517
2518 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2519
2520         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
2521         (check_cond_move_block): Likewise.
2522         (cond_move_process_if_block): Likewise.
2523         (noce_find_if_block): Improve formatting.
2524         (find_if_header): Pass 0 to memset and tweak conditions.
2525         (cond_exec_find_if_block): Fix long lines and tweak conditions.
2526
2527 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
2528
2529         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
2530         for -gdwarf-4.
2531
2532         PR middle-end/43337
2533         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
2534         with non-local decl doesn't need chain.
2535
2536 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
2537
2538         * ira-color.c (allocno_reload_assign): Avoid accumulating
2539         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
2540
2541 2010-04-19  Martin Jambor  <mjambor@suse.cz>
2542
2543         * gimple.h (create_tmp_reg): Declare.
2544         * gimplify.c (create_tmp_reg): New function.
2545         (gimplify_return_expr): Use create_tmp_reg.
2546         (gimplify_omp_atomic): Likewise.
2547         (gimple_regimplify_operands): Likewise.
2548         * tree-dfa.c (make_rename_temp): Likewise.
2549         * tree-predcom.c (predcom_tmp_var): Likewise.
2550         (reassociate_to_the_same_stmt): Likewise.
2551         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
2552         (get_replaced_param_substitute): Likewise.
2553         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2554         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
2555         * tree-ssa-pre.c (get_representative_for): Likewise.
2556         (create_expression_by_pieces): Likewise.
2557         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
2558         (create_tailcall_accumulator): Likewise.
2559
2560 2010-04-19  Martin Jambor  <mjambor@suse.cz>
2561
2562         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
2563         new_stmt.
2564         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
2565
2566 2010-04-19  Richard Guenther  <rguenther@suse.de>
2567
2568         PR tree-optimization/43796
2569         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
2570         from SCEV in the lattice.
2571         (vrp_visit_phi_node): Dump change.
2572
2573 2010-04-19  Richard Guenther  <rguenther@suse.de>
2574
2575         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
2576         * configure: Re-generated.
2577
2578 2010-04-19  Richard Guenther  <rguenther@suse.de>
2579
2580         PR tree-optimization/43783
2581         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
2582         constant ARRAY_REF operands two and three if possible.
2583
2584 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
2585
2586         PR target/43766
2587         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
2588
2589 2010-04-19  Jie Zhang  <jie@codesourcery.com>
2590
2591         PR target/43662
2592         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
2593
2594 2010-04-19  Ira Rosen  <irar@il.ibm.com>
2595
2596         PR tree-optimization/37027
2597         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
2598         and macro to access it.
2599         (vectorizable_reduction): Add argument.
2600         (vect_get_slp_defs): Likewise.
2601         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
2602         statements for possible use in SLP.
2603         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
2604         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
2605         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
2606         add new argument.
2607         (vectorizable_reduction): Likewise.
2608         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
2609         vect_get_slp_defs.
2610         (vectorizable_type_demotion, vectorizable_type_promotion,
2611         vectorizable_store): Likewise.
2612         (vect_analyze_stmt): Update call to vectorizable_reduction.
2613         (vect_transform_stmt): Likewise.
2614         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
2615         (vect_build_slp_tree): Fix indentation. Check that there are no loads
2616         from different interleaving chains in same node.
2617         (vect_slp_rearrange_stmts): New function.
2618         (vect_supported_load_permutation_p): Allow load permutations for
2619         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
2620         inside SLP nodes if necessary.
2621         (vect_analyze_slp_instance): Handle reductions.
2622         (vect_analyze_slp): Try to build SLP instances originating from groups
2623         of reductions.
2624         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
2625         (vect_get_constant_vectors): Create initial vectors for reductions
2626         according to reduction code. Add new argument.
2627         (vect_get_slp_defs): Add new argument, pass it to
2628         vect_get_constant_vectors.
2629         (vect_schedule_slp_instance): Remove SLP tree root statements.
2630
2631 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
2632
2633         * tree.h (ENUM_IS_SCOPED): Define.
2634         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
2635         for ENUM_IS_SCOPED enums.
2636
2637 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2638
2639         * fold-const.c (fold_comparison): Use ssizetype.
2640         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2641         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
2642         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
2643         * tree-object-size.c (compute_object_sizes): Use size_type_node.
2644
2645         * tree.h (initialize_sizetypes): Remove parameter.
2646         (build_common_tree_nodes): Remove second parameter.
2647         * stor-layout.c (initialize_sizetypes): Remove parameter.
2648         Always create an unsigned type.
2649         (set_sizetype): Assert that the passed type is unsigned and simplify.
2650         * tree.c (build_common_tree_nodes): Remove second parameter.
2651         Adjust call to initialize_sizetypes.
2652         * c-decl.c (c_init_decl_processing): Remove second argument in call to
2653         build_common_tree_nodes.
2654
2655 2010-04-18  Matthias Klose  <doko@ubuntu.com>
2656
2657         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
2658
2659 2010-04-18  Ira Rosen  <irar@il.ibm.com>
2660
2661         PR tree-optimization/43771
2662         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
2663         load permutation doesn't have gaps.
2664
2665 2010-04-18  Jan Hubicka  <jh@suse.cz>
2666
2667         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
2668         (sse_prologue_save_insn expander): Use new pattern.
2669         (sse_prologue_save_insn1): New pattern and splitter.
2670         (sse_prologue_save_insn): Update to deal also with 64bit aligned
2671         blocks.
2672         * i386.c (setup_incoming_varargs_64): Do not compute jump
2673         destination here.
2674         (ix86_gimplify_va_arg): Update alignment needed.
2675         (ix86_local_alignment): Do not align all local arrays to 128bit.
2676
2677 2010-04-17  Jan Hubicka  <jh@suse.cz>
2678
2679         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
2680
2681 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
2682
2683         * arm.md (negdi2): Remove redundant code to force values into a
2684         register.
2685
2686 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
2687
2688         * arm/bpabi.S: Add EABI alignment attributes to objects.
2689         * arm/bpabi-v6m.S: Likewise.
2690         * arm/crti.asm: Likewise.
2691         * arm/crtn.asm: Likewise.
2692         * arm/lib1funcs.asm: Likewise.
2693         * arm/libunwind.S: Likewise.
2694
2695 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
2696
2697         * arm-protos.h (tune_params): New structure.
2698         * arm.c (current_tune): New variable.
2699         (arm_constant_limit): Delete.
2700         (struct processors): Add pointer to the tune parameters.
2701         (arm_slowmul_tune): New tuning option.
2702         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
2703         (all_cores): Adjust to pick up the tuning model.
2704         (arm_constant_limit): New function.
2705         (arm_override_options): Select the appropriate tuning model.  Delete
2706         initialization of arm_const_limit.
2707         (arm_split_constant): Use the new constant-limit model.
2708         (arm_rtx_costs): Pick up the current tuning model.
2709         * arm.md (is_strongarm, is_xscale): Delete.
2710         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
2711         for Xscale variant architectures.
2712         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
2713
2714 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2715
2716         * config/arm/arm.c (arm_gen_constant): Remove unused variable
2717         can_shift.
2718         (arm_rtx_costs_1): Remove unused variable extra_cost.
2719         (arm_unwind_emit_set): Use variable offset.
2720         (thumb1_output_casesi): Remove unused variable flags.
2721
2722 2010-04-16  Jeff Law  <law@redhat.com>
2723
2724         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
2725         needing assignment rather than doing a two-phase assignment.  Remove
2726         unused variable 'm'.
2727
2728 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
2729
2730         PR bootstrap/43767
2731         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
2732
2733 2010-04-16  Doug Kwan  <dougkwan@google.com>
2734
2735         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
2736         (next_operand_entry_id): New static variable.
2737         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
2738         (add_to_ops_vec): Assigned unique ID to operand entry.
2739         (struct oecount_s): New field ID.
2740         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
2741         (undistribute_ops_list): Assign unique IDs to oecounts.
2742         (init_reassoc): reset next_operand_entry_id.
2743
2744 2010-04-16  Doug Kwan  <dougkwan@google.com>
2745
2746         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
2747         missing left parenthesis.
2748
2749 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
2750
2751         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
2752         *btdi_rex64 using SWI48 mode iterator.
2753         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
2754         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
2755         *jcc_btdi_mask_rex64.
2756
2757 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
2758
2759         * double-int.h (tree_to_double_int): Convert to macro.
2760         * double-int.c (tree_to_double_int): Remove.
2761
2762 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
2763
2764         PR debug/43762
2765         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
2766         with want_address 2 and in case a single element list might be
2767         possible, call it again with want_address 0.
2768
2769 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2770
2771         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
2772         case 'W' print operands for HI mode.
2773         * config/h8300/h8300.h (Y0, Y2) : New constraints.
2774         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
2775         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
2776         * config/h8300/predicate.md (bit_register_indirect_operand): New.
2777
2778         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
2779
2780         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
2781         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
2782         #xx:3 and #xx:4 mode.
2783
2784         * config/h8300/h8300.md (inverted load with HImode dest): Add
2785         support for H8300SX.
2786
2787         * config/h8300/predicate.md (bit_operand): Allow immediate values that
2788         satisfy 'U' constraint.
2789
2790 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2791
2792         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
2793         * configure: Regenerate.
2794         * config.in: Regenerate.
2795         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
2796         works.
2797
2798 2010-04-16  Richard Guenther  <rguenther@suse.de>
2799
2800         * tree.h (struct tree_decl_minimal): Move pt_uid ...
2801         (struct tree_decl_common): ... here.
2802         (DECL_PT_UID): Adjust.
2803         (SET_DECL_PT_UID): Likewise.
2804         (DECL_PT_UID_SET_P): Likewise.
2805
2806 2010-04-16  Richard Guenther  <rguenther@suse.de>
2807
2808         PR tree-optimization/43572
2809         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
2810         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
2811         * tree-flow.h (is_call_clobbered): Remove.
2812         * tree-flow-inline.h (is_call_clobbered): Likewise.
2813         * tree-dfa.c (dump_variable): Do not dump call clobber state.
2814         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
2815         (execute_return_slot_opt): Adjust.
2816         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
2817         check for call clobbered vars here.
2818         (find_tail_calls): Move tailcall verification to the
2819         proper place.
2820
2821 2010-04-16  Diego Novillo  <dnovillo@google.com>
2822
2823         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
2824
2825 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
2826
2827         PR target/40603
2828         * config/arm/arm.md (cbranchqi4): New pattern.
2829         * config/arm/predicates.md (const0_operand,
2830         cbranchqi4_comparison_operator): New predicates.
2831
2832 2010-04-16  Richard Guenther  <rguenther@suse.de>
2833
2834         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
2835         (dump_gimple_stmt): Likewise.
2836
2837 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
2838
2839         * recog.h (struct recog_data): New field is_operator.
2840         (struct insn_operand_data): New field is_operator.
2841         * recog.c (extract_insn): Set recog_data.is_operator.
2842         * genoutput.c (output_operand_data): Emit code to set the
2843         is_operator field.
2844         * reload.c (find_reloads): Use it rather than testing for an
2845         empty constraint string.
2846
2847         PR target/41514
2848         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
2849         If the previous insn is a cbranchsi4_insn with the same arguments,
2850         omit the compare instruction.
2851
2852         * config/arm/arm.md (addsi3_cbranch): If destination is a high
2853         register, inputs must be low registers and we need a low register
2854         scratch.  Handle alternative 2 like alternative 3.
2855
2856 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
2857
2858         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
2859         don't call get_addr on both.  If one expression is a VALUE and
2860         the other a REG, check VALUE's locs if the REG isn't among them.
2861
2862 2010-04-16  Christian Bruel  <christian.bruel@st.com>
2863
2864         * config/sh/sh.h (sh_frame_pointer_required): New function.
2865         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
2866         (flag_omit_frame_pointer) Set.
2867         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
2868         (rounded_frame_size): Adjust size with outgoing_args_size.
2869         (sh_set_return_address): Must return from stack pointer.
2870         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
2871         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
2872         (ACCUMULATE_OUTGOING_ARGS): Define.
2873         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
2874         * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
2875
2876 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2877
2878         PR target/43471
2879         * config/sh/sh.c (sh_legitimize_reload_address): Use
2880         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
2881         Remove a unneeded check for offset_base.
2882
2883 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
2884
2885         * configure: Regenerated.
2886
2887 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2888
2889         * config/s390/s390.c (s390_call_save_register_used): Switch back
2890         to HARD_REGNO_NREGS.
2891
2892 2010-04-15  Richard Guenther  <rguenther@suse.de>
2893
2894         * alias.c (alias_set_subset_of): Handle alias-set zero
2895         child properly.
2896
2897 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
2898             Julian Brown  <julian@codesourcery.com>
2899
2900         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
2901         alternatives according to use of high and low regs.
2902         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2903         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
2904         optimizing for size on Thumb-2.
2905
2906 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
2907
2908         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
2909
2910 2010-04-15  Richard Guenther  <rguenther@suse.de>
2911
2912         * tree-ssa-structalias.c (struct variable_info): Add
2913         is_fn_info flag.
2914         (new_var_info): Initialize it.
2915         (dump_constraints): Support printing last added constraints.
2916         (debug_constraints): Adjust.
2917         (dump_constraint_graph): Likewise.
2918         (make_heapvar_for): Check for NULL cfun.
2919         (get_function_part_constraint): New function.
2920         (get_fi_for_callee): Likewise.
2921         (find_func_aliases): Properly implement IPA PTA constraints.
2922         (process_ipa_clobber): New function.
2923         (find_func_clobbers): Likewise.
2924         (insert_into_field_list_sorted): Remove.
2925         (create_function_info_for): Properly allocate vars for IPA mode.
2926         Do not use insert_into_field_list_sorted.
2927         (create_variable_info_for): Properly generate constraints for
2928         global vars in IPA mode.
2929         (dump_solution_for_var): Always dump the solution.
2930         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
2931         (find_what_var_points_to): Adjust.
2932         (pt_solution_set): Change.
2933         (pt_solution_ior_into): New function.
2934         (pt_solution_empty_p): Export.
2935         (pt_solution_includes_global): Adjust.
2936         (pt_solution_includes_1): Likewise.
2937         (pt_solutions_intersect_1): Likewise.
2938         (dump_sa_points_to_info): Check some invariants.
2939         (solve_constraints): Move constraint dumping ...
2940         (compute_points_to_sets): ... here.
2941         (ipa_pta_execute): ... and here.
2942         (compute_may_aliases): Do not re-compute points-to info
2943         locally if IPA info is available.
2944         (ipa_escaped_pt): New global var.
2945         (ipa_pta_execute): Properly implement IPA PTA.
2946         * tree-into-ssa.c (dump_decl_set): Support dumping
2947         decls not in referenced-vars.
2948         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
2949         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
2950         (dump_points_to_solution): Likewise.
2951         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
2952         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
2953         (remap_gimple_stmt): Reset call clobber/use information if necessary.
2954         (copy_decl_to_var): Copy DECL_PT_UID.
2955         (copy_result_decl_to_var): Likewise.
2956         * tree.c (make_node_stat): Initialize DECL_PT_UID.
2957         (copy_node_stat): Copy it.
2958         * tree.h (DECL_PT_UID): New macro.
2959         (SET_DECL_PT_UID): Likewise.
2960         (DECL_PT_UID_SET_P): Likewise.
2961         (struct tree_decl_minimal): Add pt_uid member.
2962         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
2963         (pt_solution_empty_p): Declare.
2964         (pt_solution_set): Adjust.
2965         (ipa_escaped_pt): Declare.
2966         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
2967         * gimple-pretty-print.c (pp_points_to_solution): New function.
2968         (dump_gimple_call): Dump call clobber/use information.
2969         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
2970         * tree-pass.h (TDF_ALIAS): New dump option.
2971         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
2972         * doc/invoke.texi (-fipa-pta): Update documentation.
2973
2974 2010-04-15  Richard Guenther  <rguenther@suse.de>
2975
2976         * Makefile.in (OBJS-common): Add gimple-fold.o.
2977         (gimple-fold.o): New rule.
2978         * tree.h (maybe_fold_offset_to_reference,
2979         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
2980         prototypes ...
2981         * gimple.h: ... here.
2982         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
2983         may_propagate_address_into_dereference): Move prototypes ...
2984         * gimple.h: ... here.
2985         * tree-ssa-ccp.c (get_symbol_constant_value,
2986         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
2987         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
2988         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
2989         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
2990         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
2991         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
2992         gimplify_and_update_call_from_tree): Move ...
2993         * gimple-fold.c: ... here.  New file.
2994         (ccp_fold_builtin): Rename to ...
2995         (gimple_fold_builtin): ... this.
2996         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
2997
2998 2010-04-15  Richard Guenther  <rguenther@suse.de>
2999
3000         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
3001         fit_double_type, force_fit_type_double, add_double_with_sign,
3002         neg_double, mul_double_with_sign, lshift_double, rshift_double,
3003         lrotate_double, rrotate_double, div_and_round_double): Move ...
3004         * double-int.c: ... here.
3005         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
3006         add_double, neg_double, mul_double_with_sign, mul_double,
3007         lshift_double, rshift_double, lrotate_double, rrotate_double,
3008         div_and_round_double): Move prototypes ...
3009         * double-int.h: ... here.
3010
3011 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
3012
3013         PR target/43742
3014         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
3015         matching constraints to ensure inputs match the output.
3016
3017 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3018
3019         PR target/43742
3020         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
3021         in an input-only operand.
3022
3023 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
3024
3025         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
3026         (double_int_not, double_int_lshift, double_int_rshift): Declare.
3027         (double_int_negative_p): Convert to static inline function.
3028         * double-int.c (double_int_lshift, double_int_lshift): New functions.
3029         (double_int_negative_p): Remove.
3030         * tree.h (lshift_double, rshift_double):
3031         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
3032         * fold-const.c (fold_convert_const_int_from_real,
3033         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
3034         (lshift_double): Change type of arith argument to bool.
3035         (rshift_double): Change type of arith argument to bool. Correct
3036         comment.
3037         * expmed.c (mask_rtx, lshift_value): (Ditto.).
3038
3039 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
3040
3041         PR target/21803
3042         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
3043         at the start and end of the then/else blocks, and omit them from the
3044         conversion.
3045         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
3046         argument; all callers changed.  Pass zero to old_insns_match_p instead.
3047         (flow_find_head_matching_sequence): New function.
3048         (old_insns_match_p): Check REG_EH_REGION notes for calls.
3049         * basic-block.h (flow_find_cross_jump,
3050         flow_find_head_matching_sequence): Declare functions.
3051
3052 2010-04-14  Jason Merrill  <jason@redhat.com>
3053
3054         PR c++/36625
3055         * c-common.c (attribute_takes_identifier_p): New fn.
3056         * c-common.h: Declare it.
3057
3058 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
3059
3060         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
3061         splitter condition.
3062         (*udivmod<mode>4): Ditto.
3063
3064 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
3065
3066         * config/i386/i386.md (maxmin_int): Rename code attribute from
3067         maxminiprefix and update all users.
3068         (maxmin_float): Ditto from maxminfprefix.
3069         (logic): Ditto from logicprefix.
3070         (absneg_mnemonic): Ditto from absnegprefix.
3071         * config/i386/mmx.md: Update all users of maxminiprefix,
3072         maxminfprefix and logicprefix for rename.
3073         * config/i386/sse.md: Ditto.
3074         * config/i386/sync.md (sync_<code><mode>): Update for
3075         logicprefix rename.
3076
3077 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3078
3079         PR 42966
3080         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
3081         warnings converted to errors.
3082
3083 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
3084
3085         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
3086         used insn_type variable.
3087         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
3088         to avoid set-but-not-used warning.
3089
3090 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
3091
3092         * df-core.c (df_ref_debug): Change format string placeholder
3093         from 0x%x to %#x.
3094         * dwarf2asm.c (dw2_asm_output_data_raw,
3095         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
3096         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
3097         * dwarf2out.c (output_cfi, output_cfi_directive,
3098         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
3099         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
3100         Ditto.
3101         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
3102         * print-rtl.c (print_rtx): Ditto.
3103
3104 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3105
3106         PR middle-end/42694
3107         * builtins.c (expand_builtin_pow_root): New function to expand pow
3108         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
3109         series of sqrt and cbrt calls under -ffast-math.
3110         (expand_builtin_pow): Call it.
3111
3112 2010-04-14  Michael Matz  <matz@suse.de>
3113
3114         PR tree-optimization/42963
3115         * tree-cfg.c (touched_switch_bbs): New static variable.
3116         (group_case_labels_stmt): New function broken out from ...
3117         (group_case_labels): ... here, use the above.
3118         (start_recording_case_labels): Allocate touched_switch_bbs.
3119         (end_recording_case_labels): Deallocate it, call
3120         group_case_labels_stmt.
3121         (gimple_redirect_edge_and_branch): Remember index of affected BB.
3122
3123 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
3124
3125         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
3126         from insn template.
3127
3128 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
3129
3130         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
3131
3132 2010-04-13  Jan Hubicka  <jh@suse.cz>
3133
3134         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
3135         of optimized out static functions.
3136         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
3137         cost computation.  Also sanity check for overflows.
3138         (update_caller_keys): Update cgraph_edge_badness call; properly
3139         update fibheap and sanity check that it is up to date.
3140         (add_new_edges_to_heap): Update cgraph_edge_badness.
3141         (cgraph_decide_inlining_of_small_function): Likewise;
3142         add sanity checking that badness in heap is up to date;
3143         improve dumping of reason; Update badness of calls to the
3144         offline copy of function currently inlined; dump badness
3145         of functions not inlined because of unit growth limits.
3146
3147 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
3148
3149         PR middle-end/32628
3150         * c-common.c (pointer_int_sum): Disregard overflow that occured only
3151         because of sign-extension change when converting to sizetype here...
3152         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
3153
3154         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
3155         the folding to constants.  Remove redundant final conversion.
3156         (fold_binary) <associate>: Do not associate if the re-association of
3157         constants alone overflows.
3158         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
3159         to the end of the list.
3160         (multiple_of_p) <COND_EXPR>: New case.
3161
3162 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3163
3164         * opt-functions.awk (opt_sanitized_name): New.
3165         (opt_enum): New.
3166         * optc-gen.awk: Use it
3167         * opth-gen.awk: Use it.
3168
3169 2010-04-13  Martin Jambor  <mjambor@suse.cz>
3170
3171         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
3172         (sra_modify_assign): Delete stmts loading dead data even if racc has no
3173         children.  Call replace_uses_with_default_def_ssa_name to handle
3174         SSA_NAES on lhs.
3175
3176 2010-04-13  Michael Matz  <matz@suse.de>
3177
3178         PR middle-end/43730
3179         * builtins.c (expand_builtin_interclass_mathfn): Also create
3180         a register if the predicate doesn't match.
3181
3182 2010-04-13  Diego Novillo  <dnovillo@google.com>
3183
3184         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
3185         * c-pch.c: Include timevar.h.
3186         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
3187         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
3188         * ggc-common.c: Include timevar.h.
3189         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
3190         * timevar.def (TV_PCH_SAVE): Define.
3191         (TV_PCH_CPP_SAVE): Define.
3192         (TV_PCH_PTR_REALLOC): Define.
3193         (TV_PCH_PTR_SORT): Define.
3194         (TV_PCH_RESTORE): Define.
3195         (TV_PCH_CPP_RESTORE): Define.
3196
3197 2010-04-13  Michael Matz  <matz@suse.de>
3198
3199         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
3200         into MINUS_EXPRs.
3201         (can_reassociate_p): New function.
3202         (break_up_subtract_bb, reassociate_bb): Use it.
3203
3204 2010-04-13  Richard Guenther  <rguenther@suse.de>
3205
3206         PR bootstrap/43737
3207         * builtins.c (c_readstr): Fix assert.
3208
3209 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
3210
3211         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
3212         when generating cltd insn.
3213
3214         (*ashl<mode>3_1): Remove special handling for register operand 2.
3215         (*ashlsi3_1_zext): Ditto.
3216         (*ashlhi3_1): Ditto.
3217         (*ashlhi3_1_lea): Ditto.
3218         (*ashlqi3_1): Ditto.
3219         (*ashlqi3_1_lea): Ditto.
3220         (*<shiftrt_insn><mode>3_1): Ditto.
3221         (*<shiftrt_insn>si3_1_zext): Ditto.
3222         (*<shiftrt_insn>qi3_1_slp): Ditto.
3223         (*<rotate_insn><mode>3_1): Ditto.
3224         (*<rotate_insn>si3_1_zext): Ditto.
3225         (*<rotate_insn>qi3_1_slp): Ditto.
3226
3227 2010-04-13  Richard Guenther  <rguenther@suse.de>
3228
3229         * tree-ssa-structalias.c (callused_id): Remove.
3230         (call_stmt_vars): New.
3231         (get_call_vi): Likewise.
3232         (lookup_call_use_vi): Likewise.
3233         (lookup_call_clobber_vi): Likewise.
3234         (get_call_use_vi): Likewise.
3235         (get_call_clobber_vi): Likewise.
3236         (make_transitive_closure_constraints): Likewise.
3237         (handle_const_call): Adjust to do per-call call-used handling.
3238         (handle_pure_call): Likewise.
3239         (find_what_var_points_to): Remove general callused handling.
3240         (init_base_vars): Likewise.
3241         (init_alias_vars): Initialize call_stmt_vars.
3242         (compute_points_to_sets): Process call-used and call-clobbered
3243         vars for call statements.
3244         (delete_points_to_sets): Free call_stmt_vars.
3245
3246 2010-04-13  Richard Guenther  <rguenther@suse.de>
3247
3248         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3249         Only add RW dependence for dependence distance zero.
3250         Adjust maximal vectorization factor according to dependences.
3251         Move alignment handling ...
3252         (vect_find_same_alignment_drs): ... here.  New function.
3253         (vect_analyze_data_ref_dependences): Adjust.
3254         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
3255         (vect_analyze_data_refs): Adjust minimal vectorization factor
3256         according to data references.
3257         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
3258         dependences before determining the vectorization factor.
3259         Analyze alignment after determining the vectorization factor.
3260         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
3261         dependences before alignment.
3262         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
3263         Adjust prototype.
3264         (vect_analyze_data_refs): Likewise.
3265         (MAX_VECTORIZATION_FACTOR): New define.
3266
3267 2010-04-13  Duncan Sands  <baldrick@free.fr>
3268
3269         * except.h (lang_eh_type_covers): Remove.
3270         * except.c (lang_eh_type_covers): Likewise.
3271
3272 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3273             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3274
3275         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
3276         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
3277         UNITS_PER_LONG where it is ABI relevant.
3278         (s390_return_addr_rtx): Likewise.
3279         (s390_back_chain_rtx): Likewise.
3280         (s390_frame_area): Likewise.
3281         (s390_frame_info): Likewise.
3282         (s390_initial_elimination_offset): Likewise.
3283         (save_gprs): Likewise.
3284         (s390_emit_prologue): Likewise.
3285         (s390_emit_epilogue): Likewise.
3286         (s390_function_arg_advance): Likewise.
3287         (s390_function_arg): Likewise.
3288         (s390_va_start): Likewise.
3289         (s390_gimplify_va_arg): Likewise.
3290         (s390_function_profiler): Likewise.
3291         (s390_optimize_prologue): Likewise.
3292         (s390_rtx_costs): Likewise.
3293         (s390_secondary_reload): Likewise.
3294         (s390_promote_function_mode): Likewise.
3295         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
3296         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
3297         registers available.
3298         (s390_unwind_word_mode): New function.
3299         (s390_function_value): Split 64 bit values into register pair if
3300         used as return value.
3301         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
3302         function call parameters.  Handle parallels.
3303         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
3304         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
3305         (DWARF_CIE_DATA_ALIGNMENT): New macro.
3306         (s390_expand_setmem): Remove unused variable src_addr.
3307         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
3308         deal with 64 bit registers.
3309         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
3310         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
3311         (UNITS_PER_LONG): New macro.
3312         * libjava/include/s390-signal.h: Define extended ucontext
3313         structure containing the upper halfs of the 64 bit registers.
3314
3315 2010-04-13  Simon Baldwin  <simonb@google.com>
3316
3317         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
3318
3319 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
3320
3321         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
3322         rvalue on the RHS if the LHS is of a non-renamable type.
3323         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
3324
3325 2010-04-13  Matthias Klose  <doko@ubuntu.com>
3326
3327         * gcc.c (cc1_options): Handle -iplugindir before processing
3328         the cc1 spec. Only add -iplugindir once.
3329         (cpp_unique_options): Add -iplugindir option if -fplugin* options
3330         found.
3331         * common.opt (iplugindir): Remove `Separate' property, initialize.
3332         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
3333         option.
3334         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
3335         (distclean): Remove plugin dir.
3336         * doc/invoke.texi: Document -iplugindir.
3337
3338 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
3339
3340         * doc/plugins.texi (Loading Plugins): Document short
3341         -fplugin=foo option.
3342         (Plugin API): Mention default_plugin_dir_name function.
3343
3344         * gcc.c (find_file_spec_function): Add new declaration.
3345         (static_spec_func): Use it for "find-file".
3346         (find_file_spec_function): Add new function.
3347         (cc1_options): Add -iplugindir option if -fplugin* options found.
3348
3349         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
3350
3351         * plugin.c (add_new_plugin): Updated comment, and handle short
3352         plugin name.
3353         (default_plugin_dir_name): Added new function.
3354
3355         * common.opt (iplugindir): New option to set the plugin directory.
3356
3357 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
3358
3359         * config/i386/i386.md (any_rotate): New code iterator.
3360         (rotate_insn): New code attribute.
3361         (rotate): Ditto.
3362         (SWIM124): New mode iterator.
3363         (<rotate_insn>ti3): New expander.
3364         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
3365         any_rotate code iterator.
3366         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
3367         using any_rotate code iterator and SWIM124 mode iterator.
3368         (ix86_rotlti3): New insn_and_split pattern.
3369         (ix86_rotrti3): Ditto.
3370         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
3371         ix86_rotl{di,ti}3 patterns.
3372         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
3373         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
3374         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
3375         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
3376         code iterator and SWI mode iterator.
3377         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
3378         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
3379         code iterator.
3380         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
3381         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
3382         (bswap rotatert splitter): Add splitter.
3383         (bswap splitter): Macroize splitter using any_rotate code iterator.
3384         Add insn predicate to split only for TARGET_USE_XCHGB or when
3385         optimizing function for size.
3386
3387 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
3388
3389         * config/pa/pa.c (emit_move_sequence): Remove use of
3390         deleted variable flag_argument_noalias.
3391
3392 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3393
3394         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
3395         configurations.
3396         Add to unsupported targets list.
3397         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
3398         sparc*-sun-solaris2.[567]* from target lists.
3399         * configure: Regenerate.
3400         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
3401         removal.
3402         Remove Solaris 7 patch references.
3403         (Specific, sparc-sun-solaris2.7): Removed.
3404         (sparc-sun-solaris2*): Update Solaris 7 example.
3405         (sparc64-*-solaris2*): Likewise.
3406
3407 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3408
3409         * config.build (alpha*-dec-osf4*): Remove.
3410         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
3411         of obsolete configurations.
3412         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
3413         support.
3414         * config/alpha/t-osf4: Renamed to ...
3415         * config/alpha/t-osf5: ... this.
3416         * config/alpha/osf.h: Renamed to ...
3417         * config/alpha/osf5.h: ... this.
3418         Merged old osf5.h contents.
3419         Update comments.
3420         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
3421         (EXTRA_SPECS): Removed.
3422         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
3423         reflect removal of Tru64 UNIX V4.0/V5.0 support.
3424         Document that.
3425
3426 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3427
3428         * doc/contrib.texi (Contributors, Rainer Orth): Update.
3429
3430 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
3431
3432         PR/43702
3433         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
3434         __thiscall convention.
3435
3436 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
3437
3438         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
3439         orig_base.
3440         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
3441
3442 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
3443
3444         * function.c (assign_parms_initialize_all): Add unused attribute
3445         to fntype.
3446
3447 2010-04-12  Richard Guenther  <rguenther@suse.de>
3448
3449         * gsstruct.def (GSS_CALL): New.
3450         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
3451         * gimple.h: Include tree-ssa-alias.h.
3452         (struct gimple_statement_call): New.
3453         (union gimple_statement_struct_d): Add gimple_call member.
3454         (gimple_call_reset_alias_info): Declare.
3455         (gimple_call_use_set): New function.
3456         (gimple_call_clobber_set): Likewise.
3457         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
3458         * gimple.c (gimple_call_reset_alias_info): New function.
3459         (gimple_build_call_1): Call it.
3460         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3461         * tree-inline.c (remap_gimple_stmt): Likewise.
3462         (expand_call_inline): Remove callused handling.
3463         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
3464         * tree-dfa.c (dump_variable): Likewise.
3465         * tree-parloops.c (parallelize_loops): Likewise.
3466         * tree-ssa.c (init_tree_ssa): Likewise.
3467         (delete_tree_ssa): Likewise.
3468         * tree-flow-inline.h (is_call_used): Remove.
3469         * tree-flow.h (struct gimple_df): Remove callused member.
3470         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
3471         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
3472         (ref_maybe_used_by_call_p_1): Simplify.
3473         (call_may_clobber_ref_p_1): Likewise.
3474         * tree-ssa-structalias.c (compute_points_to_sets): Set
3475         the call stmt used and clobbered sets.
3476         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
3477         (find_tail_calls): Verify the tail call.
3478
3479 2010-04-12  Richard Guenther  <rguenther@suse.de>
3480
3481         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
3482         single-iteration always-inline inlining.
3483         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
3484         (cgraph_decide_inlining): Do not handle always-inline specially.
3485         (try_inline): Remove always-inline cycle detection special case.
3486         Do not recurse on always-inlines.
3487         (cgraph_early_inlining): Do not iterate if not optimizing.
3488         (cgraph_gate_early_inlining): remove.
3489         (pass_early_inline): Run unconditionally.
3490         (gate_cgraph_decide_inlining): New function.
3491         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
3492         not inlining or optimizing.
3493         (cgraph_decide_inlining_of_small_functions): Also consider
3494         always-inline functions.
3495         (cgraph_default_inline_p): Return true for nodes which should
3496         disregard inline limits.
3497         (estimate_function_body_sizes): Assume zero size and time for
3498         nodes which are marked as disregarding inline limits.
3499         (cgraph_decide_recursive_inlining): Do not perform recursive
3500         inlining on always-inline nodes.
3501
3502 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
3503
3504         PR bootstrap/43699
3505         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
3506         for exprs satisfying handled_component_p.
3507
3508 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
3509
3510         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
3511         non-constant aggregate elements.
3512
3513         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
3514         is a real initialization.
3515
3516 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
3517
3518         PR c/36774
3519         * c-decl.c (start_function): Move forward check for nested function.
3520
3521 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3522
3523         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
3524         * config/sh/sh.c: Include reload.h.
3525         (sh_legitimize_reload_address): New.
3526         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
3527         sh_legitimize_reload_address.
3528
3529 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3530
3531         * config/sh/sh.md (*movqi_pop): New insn pattern.
3532         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
3533
3534 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
3535
3536         * config/i386/i386.md (any_shiftrt): New code iterator.
3537         (shiftrt_insn): New code attribute.
3538         (shiftrt): Ditto.
3539         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
3540         using any_shiftrt code iterator.
3541         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
3542         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
3543         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
3544         pattern from corresponding peephole2 patterns.
3545         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
3546         using any_shiftrt code iterator.
3547         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
3548         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
3549         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
3550         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
3551         *{ashr,lshr}<mode>3_cmp_zext.
3552         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
3553
3554 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
3555
3556         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
3557         scratch register.
3558         (*lshr<mode>3_cconly): Ditto.
3559
3560 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
3561
3562         * config/i386/i386.md (lshr<mode>3): Macroize expander from
3563         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
3564         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
3565         pattern from *lshr{di,ti}3_1 and corresponding splitters using
3566         DWI mode iterator.
3567         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
3568         from corresponding peephole2 patterns.
3569         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
3570         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
3571         and *lshrdi3_1_rex64 using SWI mode iterator.
3572         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
3573         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
3574         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
3575         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
3576         and *lshrdi3_cmp_rex64 using SWI mode iterator.
3577         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
3578         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
3579         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
3580         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
3581         SWI mode iterator.
3582
3583 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
3584
3585         * config/i386/i386.md (ashr<mode>3): Macroize expander from
3586         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
3587         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
3588         pattern from *ashr{di,ti}3_1 and corresponding splitters using
3589         DWI mode iterator.
3590         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
3591         from corresponding peephole2 patterns.
3592         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
3593         (ashrsi3_cvt): Rename from ashrsi3_31.
3594         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
3595         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
3596         and x86_64_shift_adj_3 using SWI48 mode iterator.
3597         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
3598         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
3599         and *ashrdi3_1_rex64 using SWI mode iterator.
3600         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
3601         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
3602         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
3603         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
3604         and *ashrdi3_cmp_rex64 using SWI mode iterator.
3605         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
3606         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
3607         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
3608         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
3609         SWI mode iterator.
3610         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
3611         * config/i386/i386.c (ix86_split_ashr): Update for renamed
3612         x86_shift<mode>_adj_3 expanders.
3613
3614 2010-04-10  Wei Guozhi  <carrot@google.com>
3615
3616         PR target/42601
3617         * config/arm/arm.c (arm_pic_static_addr): New function.
3618         (legitimize_pic_address): Call arm_pic_static_addr when it detects
3619         a static symbol.
3620         (arm_output_addr_const_extra): Output expression for new pattern.
3621         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
3622
3623 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
3624
3625         * ira-costs.c (record_reg_classes): Ignore alternatives that are
3626         not enabled.
3627
3628         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
3629         * web.c: Include "insn-config.h" and "recog.h".
3630         (union_match_dups): New function.
3631         (web_main): Call it.
3632         (union_defs): Don't try to recognize match_dups.
3633
3634         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
3635         if doing so would replace the entire pattern.
3636
3637 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
3638
3639         PR target/43707
3640         PR target/43709
3641         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
3642         and splitter pattern.  Change splitter operand 1 predicate to
3643         nonmemory_operand.
3644
3645 2010-04-09  Martin Jambor  <mjambor@suse.cz>
3646
3647         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
3648         lattices are addresses of CONST_DECLs with the same initial value.
3649         (ipcp_print_all_lattices): Print values of CONST_DECLs.
3650         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
3651
3652 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
3653             Bernd Schmidt  <bernds@codesourcery.com>
3654
3655         * loop-invariant.c (replace_uses): New static function.
3656         (move_invariant_reg): Use it to ensure we can replace the uses.
3657
3658 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
3659
3660         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
3661         function template.
3662         (picochip_override_options): Enable section anchors only above -O1.
3663         (picochip_reorg): Fixed a couple of build warnings.
3664
3665 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3666
3667         * configure.ac (plugin -rdynamic test): Log result.
3668         * configure: Regenerate.
3669         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
3670         (RDYNAMIC_SPEC): Define.
3671         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
3672
3673 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3674
3675         * configure.ac: Determine Sun ld version numbers.
3676         (comdat_group): Restrict GNU ld version checks to gld.
3677         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
3678         (enable_comdat): Support --enable-comdat.
3679         * configure: Regenerate.
3680         * doc/install.texi (Configuration): Document --enable-comdat.
3681
3682 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3683
3684         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
3685         * config/sol2-gld.h: ... here.
3686         * config.gcc (sparc*-*-solaris2*): Reflect this.
3687         (i[34567]86-*-solaris2*): Use it.
3688
3689 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
3690
3691         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
3692         setup_clocks_p.
3693         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
3694
3695 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3696
3697         PR 42965
3698         * diagnostic.c (diagnostic_initialize): Initialize
3699         some_warnings_are_errors.
3700         (diagnostic_finish): New.
3701         (diagnostic_action_after_output): Call it before exiting.
3702         (diagnostic_report_diagnostic): Do not print message here. Set
3703         some_warnings_are_errors.
3704         * diagnostic.h (diagnostic_context): Delete
3705         issue_warnings_are_errors_message. Add some_warnings_are_errors.
3706         (diagnostic_finish): Declare.
3707         * toplev.c (toplev_main): Call it before exit.
3708
3709 2010-04-09  Jason Merrill  <jason@redhat.com>
3710
3711         PR c++/42623
3712         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
3713         for incomplete type.
3714
3715         PR c++/41788
3716         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
3717         based on a warning flag.
3718
3719 2010-04-09  Richard Guenther  <rguenther@suse.de>
3720
3721         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
3722
3723 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
3724
3725         PR bootstrap/43684
3726         * varasm.c (default_assemble_visibility): Wrap vars that are
3727         set, but unused, by targets without GAS.
3728         * config/rs6000/rs6000.c: (paired_emit_vector_compare):
3729         Remove set, but unused, vars.
3730         (rs6000_legitimize_tls_address): Likewise.
3731         (altivec_expand_dst_builtin): Likewise.
3732         * config/darwin.c (machopic_classify_symbol): Likewise.
3733         (machopic_indirection_name): Likewise.
3734
3735 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
3736
3737         * config/i386/i386.md (DWI): New mode iterator.
3738         (S): New mode attribute.
3739         (shift_operand): Ditto.
3740         (shift_immediate_operand): Ditto.
3741         (ashl_input_operand): Ditto.
3742         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
3743         using SDWIM mode iterator.
3744         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
3745         pattern from *ashl{di,ti}3_1 and corresponding splitters using
3746         DWI mode iterator.
3747         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
3748         from corresponding peephole2 patterns.
3749         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
3750         and x86_64_shift_adj_1 using SWI48 mode iterator.
3751         (x86_shift<mode>_adj_2): Ditto.
3752         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
3753         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
3754         using SWI48 mode iterator.
3755         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
3756         *ashldi3_cmp_rex64 using SWI mode iterator.
3757         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
3758         *ashldi3_cconly_rex64 using SWI mode iterator.
3759         * config/i386/i386.c (ix86_split_ashl): Update for renamed
3760         x86_shift<mode>_adj_{1,2}.
3761         (ix86_split_ashr): Ditto.
3762         (ix86_split_lshr): Ditto.
3763
3764 2010-04-09  Richard Guenther  <rguenther@suse.de>
3765
3766         * target.h (builtin_conversion): Pass in input and output types.
3767         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
3768         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
3769         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
3770         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
3771
3772         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
3773         Handle AVX modes.
3774         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
3775
3776 2010-04-09  Richard Guenther  <rguenther@suse.de>
3777
3778         PR target/43152
3779         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
3780
3781 2010-04-09  Richard Guenther  <rguenther@suse.de>
3782
3783         * tree-vectorizer.h (struct _stmt_vec_info): Document
3784         that vectype is the type of the LHS.
3785         (supportable_widening_operation, supportable_narrowing_operation):
3786         Get both input and output vector types as arguments.
3787         (vect_is_simple_use_1): Declare.
3788         (get_same_sized_vectype): Likewise.
3789         * tree-vect-loop.c (vect_determine_vectorization_factor):
3790         Set STMT_VINFO_VECTYPE to the vector type of the def.
3791         (vectorizable_reduction): Adjust.
3792         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
3793         Adjust.  Specify the output vector type.
3794         (vect_pattern_recog_1): Adjust.
3795         * tree-vect-stmts.c (get_same_sized_vectype): New function.
3796         (vectorizable_call): Adjust.
3797         (vectorizable_conversion): Likewise.
3798         (vectorizable_operation): Likewise.
3799         (vectorizable_type_demotion): Likewise.
3800         (vectorizable_type_promotion): Likewise.
3801         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
3802         the def.
3803         (vect_is_simple_use_1): New function.
3804         (supportable_widening_operation): Get both input and output
3805         vector types.
3806         (supportable_narrowing_operation): Likewise.
3807         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
3808
3809 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
3810
3811         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
3812         __thiscall and _thiscall as predefined macros.
3813         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
3814         thiscall attribute handling.
3815         (ix86_comp_type_attributes): Likewise.
3816         (ix86_function_regparm): Likewise.
3817         (ix86_return_pops_args): Likewise.
3818         (init_cumulative_args): Likewise.
3819         (find_drap_reg): Likewise.
3820         (ix86_static_chain): Likewise.
3821         (x86_this_parameter): Likewise.
3822         (x86_output_mi_thunk): Likewise.
3823         (ix86_attribute_table): Add description for thiscall attribute.
3824         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
3825         * doc/extend.texi: Add documentation for thiscall.
3826
3827 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3828
3829         PR c++/28584
3830         * c.opt (Wint-to-pointer-cast): Available in C++.
3831         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
3832
3833 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3834
3835         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
3836         * calls.c (expand_call): Pass the function type to aggregate_value_p.
3837         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
3838         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
3839         function type instead.  Reorder and simplify checks.
3840
3841         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
3842
3843 2010-04-08  Jing Yu  <jingyu@google.com>
3844             Zdenek Dvorak  <ook@ucw.cz>
3845
3846         PR tree-optimization/42720
3847         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
3848         loop unswitch conditions here from ...
3849         (tree_unswitch_single_loop): ... here.
3850
3851 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
3852
3853         * tree-if-conv.c: Fix comments and simplify logic.
3854
3855 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
3856
3857         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
3858         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
3859         (main_tree_if_conversion): Update call to tree_if_conversion.
3860
3861 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3862
3863         PR 42485
3864         * doc/invoke.texi (-b,-V): Delete.
3865         * doc/tm.texi: Do not mention -b.
3866         * gcc.c (display_help): Delete -b and -V.
3867         (process_command): Delete -b and -V.
3868         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
3869
3870 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
3871             Wolfgang Gellerich  <gellerich@de.ibm.com>
3872
3873         Implement target hook for loop unrolling
3874         * target.h (loop_unroll_adjust): Add a new target hook function.
3875         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
3876         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
3877         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
3878         (s390_loop_unroll_adjust): Implement the new target hook for s390.
3879         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
3880         target hook.
3881         (decide_unroll_stupid): Likewise.
3882
3883 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3884
3885         PR target/43643
3886         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
3887
3888 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3889
3890         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
3891         (Specific, *-*-solaris2*): Likewise.
3892         Don't prefer Sun as over GNU as.
3893
3894 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
3895
3896         * config/s390/s390.c (override_options): Adjust the z10
3897           defaults for max-unroll-times, max-completely-peeled-insns
3898           and max-completely-peel-times.
3899
3900 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3901
3902         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
3903         instructions for z10.
3904         (s390_expand_setmem): Likewise.
3905         (s390_expand_cmpmem): Likewise.
3906
3907 2010-04-08  Richard Guenther  <rguenther@suse.de>
3908
3909         PR tree-optimization/43679
3910         * tree-ssa-pre.c (eliminate): Only propagate copies.
3911
3912 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
3913
3914         PR bootstrap/43681
3915         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
3916         set but not used variable warning.
3917
3918 2010-04-08  Wei Guozhi  <carrot@google.com>
3919
3920         PR target/41653
3921         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
3922         (arm_size_rtx_costs): Call the new function when optimized for size.
3923
3924 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
3925
3926         PR debug/43670
3927         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
3928         op0 is not a MEM, just return NULL instead of assertion
3929         failure.
3930         (discover_nonconstant_array_refs): Don't walk debug stmts.
3931
3932 2010-04-08  Doug Kwan  <dougkwan@google.com>
3933
3934         * configure.ac: Recognize gold and do not use its version number
3935         to test ld features.
3936         * configure: Regenerate.
3937
3938 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
3939
3940         PR middle-end/40815
3941         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
3942         (negate_value): Move code to push elements to broken_up_substracts ...
3943         (eliminate_plus_minus_pair): ... here.  Push operands that have no
3944         negative pair to plus_negates.
3945         (repropagate_negates, init_reassoc, fini_reassoc): Update.
3946
3947 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3948
3949         * doc/install.texi (Configuration): Move description of
3950         --enable-lto, --with-libelf*, --enable-gold from Java section to
3951         general section.
3952
3953         * doc/generic.texi (Working with declarations)
3954         (Function Properties, C and C++ Trees): Fix typos.
3955         * doc/sourcebuild.texi (Top Level): Likewise.
3956
3957 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
3958
3959         PR c/18624
3960         * tree.h (DECL_READ_P): Define.
3961         (struct tree_decl_common): Add decl_read_flag.
3962         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
3963         a set but not used warning.
3964         (merge_decls): Merge DECL_READ_P flag.
3965         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
3966         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
3967         * c-common.c (handle_used_attribute, handle_unused_attribute):
3968         Likewise.
3969         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
3970         New prototypes.
3971         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
3972         New functions.
3973         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
3974         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
3975         c_parser_binary_expression, c_parser_cast_expression,
3976         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
3977         Call default_function_array_read_conversion instead of
3978         default_function_array_conversion where needed.
3979         (c_parser_unary_expression, c_parser_conditional_expression,
3980         c_parser_postfix_expression_after_primary, c_parser_initelt):
3981         Likewise.  Call mark_exp_read where needed.
3982         (c_parser_statement_after_labels, c_parser_asm_operands,
3983         c_parser_typeof_specifier, c_parser_sizeof_expression,
3984         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
3985         where needed.
3986         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
3987         New.
3988         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
3989         (warn_unused_but_set_parameter): Default to warn_unused
3990         && extra_warnings.
3991         * doc/invoke.texi: Document -Wunused-but-set-variable and
3992         -Wunused-but-set-parameter.
3993
3994         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
3995         used count variable.
3996         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
3997         when operandN variables aren't used in the body of the expander
3998         or splitter.
3999         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
4000         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
4001         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
4002         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
4003         FOR_EACH_IMM_USE_ON_STMT): Likewise.
4004         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
4005         * tree.c (PROCESS_ARG): Likewise.
4006
4007 2010-04-07  Simon Baldwin  <simonb@google.com>
4008
4009         * diagnostic.h (diagnostic_override_option_index): New macro to
4010         set a diagnostic's option_index.
4011         * c-tree.h (c_cpp_error): Add warning reason argument.
4012         * opts.c (_warning_as_error_callback): New.
4013         (register_warning_as_error_callback): Store callback for
4014         warnings enabled via enable_warning_as_error.
4015         (enable_warning_as_error): Call callback, minor code tidy.
4016         * opts.h (register_warning_as_error_callback): Declare.
4017         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
4018         response to -Werror=.
4019         (c_common_init_options): Register warning_as_error_callback in opts.c.
4020         * common.opt: Add -Wno-cpp option.
4021         * c-common.c (struct reason_option_codes_t): Map cpp warning
4022         reason codes to gcc option indexes.
4023         * (c_option_controlling_cpp_error): New function, lookup the gcc
4024         option index for a cpp warning reason code.
4025         * (c_cpp_error): Add warning reason argument, call
4026         c_option_controlling_cpp_error for diagnostic_override_option_index.
4027         * doc/invoke.texi: Document -Wno-cpp.
4028
4029 2010-04-07  Richard Guenther  <rguenther@suse.de>
4030
4031         * ipa-reference.c (mark_load): Use get_base_address.
4032         (mark_store): Likewise.
4033
4034         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
4035         inserting GIMPLE_NOPs into the IL.
4036         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4037         Explicitly strip handled components and indirect references.
4038
4039         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
4040         folding address expressions.
4041         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
4042         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
4043         operand_equal_p to compare decls.
4044         (ptr_deref_may_alias_decl_p): Likewise.
4045         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
4046         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4047         Handle reversed comparison ops.
4048         * tree-sra.c (asm_visit_addr): Use get_base_address.
4049         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
4050         * ipa-reference.c (mark_address): Use get_base_address.
4051
4052 2010-04-07  Richard Guenther  <rguenther@suse.de>
4053
4054         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
4055         Propagate constants everywhere.
4056
4057 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
4058
4059         PR debug/43516
4060         * tree.c (MAX_INT_CACHED_PREC): Define.
4061         (nonstandard_integer_type_cache): New array.
4062         (build_nonstandard_integer_type): Cache results for precision
4063         <= MAX_INT_CACHED_PREC.
4064
4065 2010-04-07  Richard Guenther  <rguenther@suse.de>
4066
4067         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
4068         -fargument-noalias-global, -fargument-noalias-anything): Remove.
4069         * common.opt: Likewise.
4070         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
4071         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
4072         (nonoverlapping_memrefs_p): Likewise.
4073         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4074         * opts.c (common_handle_option): Handle OPT_fargument_alias,
4075         OPT_fargument_noalias, OPT_fargument_noalias_anything and
4076         OPT_fargument_noalias_global for backward compatibility.
4077
4078 2010-04-07  Richard Guenther  <rguenther@suse.de>
4079
4080         PR tree-optimization/43270
4081         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
4082         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
4083         * tree-ssa-pre.c (phi_translate_1): Adjust.
4084         (fully_constant_expression): Split out vn_reference handling to ...
4085         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
4086         Fold reads from constant strings.
4087         (vn_reference_lookup): Handle fully constant references.
4088         (vn_reference_lookup_pieces): Likewise.
4089         * Makefile.in (expmed.o-warn): Add -Wno-error.
4090
4091 2010-04-07  Martin Jambor  <mjambor@suse.cz>
4092
4093         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
4094
4095 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
4096
4097         PR driver/41594
4098         * gcc.c: Add -static-libstdc++ to list of recognized options.
4099
4100 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4101
4102         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
4103
4104 2010-04-07  Richard Guenther  <rguenther@suse.de>
4105
4106         PR middle-end/42617
4107         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
4108         bases build simple mem attributes to retain points-to information.
4109
4110 2010-04-07  Richard Guenther  <rguenther@suse.de>
4111
4112         PR middle-end/42617
4113         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
4114         preserve points-to related information.
4115
4116 2010-04-07  Richard Guenther  <rguenther@suse.de>
4117
4118         PR middle-end/42617
4119         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
4120         discard plain indirect references.
4121         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
4122         * tree.c (tree_nop_conversion): Likewise.
4123
4124 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
4125
4126         PR debug/43628
4127         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
4128
4129 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
4130
4131         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
4132         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
4133
4134 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
4135
4136         * tree-if-conv.c: Fix indentation and comments.
4137
4138 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
4139
4140         * tree-if-conv.c: Sort static functions in topological order.
4141
4142 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
4143
4144         * tree-if-conv.c: Fix indentation and comments.
4145
4146 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
4147
4148         PR middle-end/43519
4149         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
4150         lang_hooks.types.type_for_size instead of
4151         build_nonstandard_integer_type.
4152         When converting an unsigned type to signed, double its precision.
4153         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
4154         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
4155         (graphite_create_new_loop_guard): When ub + 1 wraps around,
4156         use lb <= ub.
4157
4158 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
4159
4160         PR middle-end/43519
4161         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4162         POINTER_PLUS_EXPR for pointer types.
4163
4164 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
4165
4166         PR middle-end/43519
4167         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
4168         * graphite-clast-to-gimple.c: Include langhooks.h.
4169         (max_signed_precision_type): New.
4170         (max_precision_type): Takes two types as arguments.
4171         (precision_for_value): New.
4172         (precision_for_interval): New.
4173         (gcc_type_for_interval): New.
4174         (gcc_type_for_value): New.
4175         (gcc_type_for_clast_term): New.
4176         (gcc_type_for_clast_red): New.
4177         (gcc_type_for_clast_bin): New.
4178         (gcc_type_for_clast_expr): Split up into several functions.
4179         (gcc_type_for_clast_eq): Rewritten.
4180         (compute_bounds_for_level): New.
4181         (compute_type_for_level_1): New.
4182         (compute_type_for_level): New.
4183         (gcc_type_for_cloog_iv): Removed.
4184         (gcc_type_for_iv_of_clast_loop): Rewritten.
4185         (graphite_create_new_loop): Compute the lower and upper bound types
4186         with gcc_type_for_clast_expr.
4187         (graphite_create_new_loop_guard): Same.
4188         (find_cloog_iv_in_expr): Removed.
4189         (compute_cloog_iv_types_1): Removed.
4190         (compute_cloog_iv_types): Removed.
4191         (gloog): Do not call compute_cloog_iv_types.
4192         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
4193         GBB_CLOOG_IV_TYPES.
4194         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
4195         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
4196         (GBB_CLOOG_IV_TYPES): Removed.
4197
4198 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
4199
4200         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
4201         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
4202         (detect_commutative_reduction): Same.
4203
4204 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
4205
4206         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
4207         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
4208         argument.
4209         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
4210         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
4211         (rewrite_commutative_reductions_out_of_ssa): Same.
4212         * passes.c (execute_function_todo): Call verify_ssa for every pass
4213         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
4214         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
4215         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
4216         with an extra argument.
4217         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
4218         verify_ssa only when the extra argument is true.
4219         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
4220         with an extra argument.
4221         (tree_transform_and_unroll_loop): Same.
4222
4223 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
4224
4225         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
4226         for all the passes of the LNO having LOOP_CLOSED_SSA.
4227         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
4228         * tree-loop-distribution.c (pass_loop_distribution): Same.
4229         * tree-pass.h (TODO_verify_loops): Removed.
4230         * tree-ssa-loop.c (pass_tree_loop_init): Same.
4231         (pass_lim): Same.
4232         (pass_tree_unswitch): Same.
4233         (pass_predcom): Same.
4234         (pass_vectorize): Same.
4235         (pass_linear_transform): Same.
4236         (pass_graphite_transforms): Same.
4237         (pass_iv_canon): Same.
4238         (pass_complete_unroll): Same.
4239         (pass_complete_unrolli): Same.
4240         (pass_parallelize_loops): Same.
4241         (pass_loop_prefetch): Same.
4242         (pass_iv_optimize): Same.
4243
4244 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
4245
4246         PR middle-end/32824
4247         * passes.c (init_optimization_passes): Move pass_lim before
4248         pass_copy_prop and pass_dce_loop.
4249
4250 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
4251
4252         PR target/43667
4253         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
4254         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
4255         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
4256         MULTI_* defines for 4 argument vpermil2p* builtins.
4257
4258 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
4259
4260         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
4261         * config/i386/i386.c (x86_maybe_negate_const_int): New.
4262         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
4263         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
4264         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
4265         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
4266         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
4267         Use x86_maybe_negate_const_int to output insn mnemonic.
4268         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
4269         check from instruction predicate.  Update comments.
4270         * config/i386/sync.md (sync_add<mode>): Use
4271         x86_maybe_negate_const_int to output insn mnemonic.
4272
4273 2010-04-06  Jan Hubicka  <jh@suse.cz>
4274
4275         PR tree-optimization/42906
4276         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
4277         IGNORE_SELF argument.  Set visited_control_parents for fully
4278         processed BBs.
4279         (find_obviously_necessary_stmts): Update call of
4280         mark_control_dependent_edges_necessary.
4281         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
4282
4283 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
4284
4285         * config/i386/i386.md: Remove comment about 'e' and 'E'
4286         operand modifier.
4287
4288 2010-04-06  Richard Guenther  <rguenther@suse.de>
4289
4290         PR tree-optimization/43627
4291         * tree-vrp.c (extract_range_from_unary_expr): Widenings
4292         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
4293         not varying.
4294
4295 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
4296
4297         * BASE-VER: Change to 4.6.0.
4298
4299         PR target/43638
4300         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
4301         handling.
4302
4303 2010-04-06  Richard Guenther  <rguenther@suse.de>
4304
4305         PR middle-end/43661
4306         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
4307
4308 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4309
4310         * doc/invoke.texi (Optimize Options): Document that LTO
4311         won't remove object access purely due to incompatible
4312         declarations.
4313
4314 2010-04-04  Matthias Klose  <doko@ubuntu.com>
4315
4316         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
4317         Initialize variable.
4318
4319 2010-04-03  Richard Guenther  <rguenther@suse.de>
4320
4321         PR middle-end/42509
4322         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
4323         require a non-NULL MEM_OFFSET.
4324
4325 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
4326
4327         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
4328         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
4329         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
4330         config/alpha/predicates.md, config/arm/arm.md,
4331         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
4332         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
4333         config/darwin9.h, config/darwin.c, config/darwin.h,
4334         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
4335         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
4336         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
4337         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
4338         config/mips/mips.md, config/mn10300/mn10300.c,
4339         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
4340         config/rs6000/aix.h, config/rs6000/dfp.md,
4341         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
4342         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
4343         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
4344         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
4345         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
4346         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
4347         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
4348         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
4349         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
4350         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
4351         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
4352         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
4353         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
4354         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
4355         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
4356         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
4357         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
4358         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
4359         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
4360         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
4361         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
4362         opt-functions.awk, opth-gen.awk, params.def, passes.c,
4363         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
4364         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
4365         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
4366         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
4367         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
4368         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4369         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
4370         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
4371         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
4372         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
4373         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4374         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
4375         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
4376         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
4377
4378 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4379
4380         PR other/43620
4381         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
4382         * aclocal.m4: Regenerate.
4383
4384 2010-04-02  Richard Guenther  <rguenther@suse.de>
4385
4386         PR tree-optimization/43629
4387         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
4388         if we have seen a constant value.
4389
4390 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
4391
4392         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
4393
4394 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
4395
4396         PR target/43469
4397         * arm.c (legitimize_tls_address): Adjust call to
4398         gen_tls_load_dot_plus_four.
4399         (arm_note_pic_base): New function.
4400         (arm_cannot_copy_insn_p): Use it.
4401         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
4402         constraint.
4403
4404 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4405
4406         PR bootstrap/43531
4407
4408         Revert:
4409         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4410
4411         * Makefile.in ($(out_object_file)): Depend on
4412         gt-$(basename $(notdir $(out_file))).h.
4413
4414 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
4415
4416         * config.gcc (lm32-*-rtems*): Add t-lm32.
4417
4418 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
4419
4420         * config.gcc: Add lm32-*-rtems*.
4421         * config/lm32/rtems.h: New file.
4422
4423 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
4424
4425         PR target/42609
4426         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
4427
4428 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
4429
4430         * dwarf2out.c (output_compilation_unit_header): For
4431         -gdwarf-4 use version 4 instead of version 3.
4432         (output_line_info): For version 4 and above emit additional
4433         maximum ops per insn header field.
4434         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
4435
4436         * dwarf2out.c (is_c_family, is_java): Remove.
4437         (lower_bound_default): New function.
4438         (add_bound_info, gen_descr_array_type_die): Use it.
4439
4440 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
4441
4442         PR debug/43325
4443         * dwarf2out.c (gen_variable_die): Allow debug info for variable
4444         re-declaration when it happens in a function.
4445
4446 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
4447
4448         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
4449         (cgraph_remove_function_insertion_hook): Same.
4450         (cgraph_call_function_insertion_hooks): Same.
4451
4452 2010-04-01  Richard Guenther  <rguenther@suse.de>
4453
4454         PR middle-end/43614
4455         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
4456         and TREE_THIS_VOLATILE.
4457         (copy_ref_info): Likewise.
4458         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
4459         * tree.c (build6_stat): Ignore side-effects of all but arg5
4460         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
4461         TARGET_MEM_REF.
4462
4463 2010-04-01  Richard Guenther  <rguenther@suse.de>
4464
4465         PR tree-optimization/43607
4466         * ipa-type-escape.c (check_call): Do not access non-existing
4467         arguments.
4468
4469 2010-04-01  Richard Guenther  <rguenther@suse.de>
4470
4471         PR middle-end/43602
4472         Revert
4473         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
4474                     Jack Howarth <howarth@bromo.med.uc.edu>
4475
4476         * tree-profile.c (tree_init_ic_make_global_vars): Make static
4477         variables TLS.
4478
4479 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4480
4481         * doc/install.texi (Prerequisites): Document libelf usability on
4482         IRIX 5/6 and Solaris 2.
4483         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
4484         Update GNU as, GNU ld requirements.
4485         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
4486         Document Sun Studio compiler download.
4487         Update and simplify as, ld recommendations.
4488         (Specific, *-*-solaris2.7): Note obsoletion, removal.
4489
4490 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4491
4492         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
4493         with_tune_32 to pentium4.
4494
4495 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
4496
4497         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
4498
4499 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4500
4501         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
4502         obsoletion, removal.
4503         Update IDO URL.
4504         Document GNU as requirement.
4505         Update configure requirements.
4506         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
4507         Recomment IRIX 6.5.18+.
4508         Document IDF/IDL requirement.
4509         Document GNU as requirement.
4510         Document GNU ld bootstrap failure.
4511         Remove freeware.sgi.com reference.
4512
4513 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4514
4515         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
4516         UNIX V4.0, V5.0 obsoletion, removal.
4517         Remove --with-gc=simple reference.
4518         Update VM requirements during bootstrap.
4519         Remove -oldas bootstrap description.
4520         Update binutils reference.
4521         Remove comparison failure note.
4522
4523 2010-03-31  Richard Guenther  <rguenther@suse.de>
4524             Zdenek Dvorak  <ook@ucw.cz>
4525             Sebastian Pop  <sebastian.pop@amd.com>
4526
4527         PR middle-end/43464
4528         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
4529         with multiple arguments.
4530         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
4531
4532 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
4533
4534         * graphite-dependences.c (print_pddr): Call print_pdr with an
4535         extra argument.
4536         * graphite-poly.c (debug_pdr): Add an extra argument for the
4537         verbosity level.
4538         (print_pdr): Same.
4539         (print_pbb_domain): Same.
4540         (print_pbb): Same.
4541         (print_scop_context): Same.
4542         (print_scop): Same.
4543         (print_cloog): Same.
4544         (debug_pbb_domain): Same.
4545         (debug_pbb): Same.
4546         (print_pdrs): Same.
4547         (debug_pdrs): Same.
4548         (debug_scop_context): Same.
4549         (debug_scop): Same.
4550         (debug_cloog): Same.
4551         (print_scop_params): Same.
4552         (debug_scop_params): Same.
4553         (print_iteration_domain): Same.
4554         (print_iteration_domains): Same.
4555         (debug_iteration_domain): Same.
4556         (debug_iteration_domains): Same.
4557         (print_scattering_function): Same.
4558         (print_scattering_functions): Same.
4559         (debug_scattering_function): Same.
4560         (debug_scattering_functions): Same.
4561         * graphite-poly.h (debug_pdr): Update declaration.
4562         (print_pdr): Same.
4563         (print_pbb_domain): Same.
4564         (print_pbb): Same.
4565         (print_scop_context): Same.
4566         (print_scop): Same.
4567         (print_cloog): Same.
4568         (debug_pbb_domain): Same.
4569         (debug_pbb): Same.
4570         (print_pdrs): Same.
4571         (debug_pdrs): Same.
4572         (debug_scop_context): Same.
4573         (debug_scop): Same.
4574         (debug_cloog): Same.
4575         (print_scop_params): Same.
4576         (debug_scop_params): Same.
4577         (print_iteration_domain): Same.
4578         (print_iteration_domains): Same.
4579         (debug_iteration_domain): Same.
4580         (debug_iteration_domains): Same.
4581         (print_scattering_function): Same.
4582         (print_scattering_functions): Same.
4583         (debug_scattering_function): Same.
4584         (debug_scattering_functions): Same.
4585
4586 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
4587
4588         * graphite-poly.c (print_scattering_function_1): New.
4589         (print_scattering_function): Call it.
4590         (print_scop_params): Remove spaces at the end of lines.
4591         (print_cloog): New.
4592         (debug_cloog): New.
4593         * graphite-poly.h (print_cloog): Declared.
4594         (debug_cloog): Declared.
4595
4596 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
4597
4598         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
4599         in loop->header.
4600         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
4601         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
4602         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
4603         to switch between adding the IV bump in loop->latch or in loop->header.
4604
4605 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
4606
4607         * graphite-poly.c (print_scattering_function): Pretty print following
4608         the scoplib format.
4609         (print_pdr): Same.
4610         (print_pbb_domain): Same.
4611         (dump_gbb_cases): Same.
4612         (dump_gbb_conditions): Same.
4613         (print_pdrs): Same.
4614         (print_pbb): Same.
4615         (print_scop_params): Same.
4616         (print_scop_context): Same.
4617         (print_scop): Same.
4618         (print_pbb_body): New.
4619         (lst_indent_to): New.
4620         (print_lst): Start new lines with a #.
4621         * graphite-poly.h (pbb_bb): New.
4622         (pbb_index): Use pbb_bb.
4623         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
4624         disjuncts.
4625         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
4626
4627 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
4628
4629         * dwarf2out.c (size_of_die): For -gdwarf-4 use
4630         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
4631         and 0 instead of 1 for dw_val_class_flag.
4632         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
4633         dw_val_class_range_list, dw_val_class_loc_list,
4634         dw_val_class_lineptr and dw_val_class_macptr, use
4635         DW_FORM_flag_present for dw_val_class_flag and
4636         DW_FORM_exprloc for dw_val_class_loc.
4637         (output_die): For -gdwarf-4 print dw_val_class_loc
4638         size as uleb128 instead of 1 or 2 bytes and don't print
4639         anything for dw_val_class_flag.
4640
4641         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
4642         instead of cselib_lookup following by tweaking locs->setting_insn.
4643
4644         PR bootstrap/43596
4645         * cselib.c (cselib_process_insn): Clear cselib_current_insn
4646         even before returning from label, setjmp call or volatile asm
4647         handling.
4648
4649 2010-03-31  Richard Guenther  <rguenther@suse.de>
4650
4651         PR middle-end/43600
4652         * cgraphunit.c (cgraph_output_in_order): Do not allocate
4653         temporary data on stack.
4654
4655 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4656
4657         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
4658         (PUSHSECTION_ASM_OP): Remove.
4659         (POPSECTION_ASM_OP): Remove.
4660         (PUSHSECTION_FORMAT): Remove.
4661         * config/sol2.h (PUSHSECTION_FORMAT): Define.
4662         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
4663         * config/sol2.c (solaris_output_init_fini): Use it.
4664
4665 2010-03-31  Jie Zhang  <jie@codesourcery.com>
4666
4667         PR 43574
4668         * opt-functions.awk (var_type_struct): Use signed char type
4669         for simple variables.
4670
4671 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4672
4673         * config/sol2.c: Include output.h.
4674         (solaris_assemble_visibility): New function.
4675         * config/t-sol2 (sol2.o): Add output.h dependency.
4676         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
4677         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
4678         Redefine.
4679
4680 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
4681
4682         PR target/43580
4683         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
4684         V2SImode or XFmode on PRE_DEC.
4685
4686         PR debug/43557
4687         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
4688         BLKmode.
4689
4690 2010-03-31  Jie Zhang  <jie@codesourcery.com>
4691
4692         PR 43562
4693         * reload.h (caller_save_initialized_p): Declare.
4694         * toplev.c (backend_init_target): Don't call
4695         init_caller_save but set caller_save_initialized_p to false.
4696         * caller-save.c (caller_save_initialized_p): Define.
4697         (init_caller_save): Check caller_save_initialized_p.
4698         * ira.c (ira): Call init_caller_save if flag_caller_saves.
4699
4700 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4701
4702         PR target/39048
4703         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
4704         and soft-fp/t-softfp to tmake_file.
4705         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
4706         (LIBGCC2_TF_CEXT): Define.
4707         (TF_SIZE): Define.
4708
4709 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
4710
4711         PR debug/42977
4712         * cselib.c (n_useless_values): Document handling of debug locs.
4713         (n_useless_debug_values, n_debug_values): New variables.
4714         (new_elt_loc_list): Don't add to debug values, keep count.
4715         (promote_debug_loc): New.
4716         (cselib_reset_table): Zero new variables.
4717         (entry_and_rtx_equal_p): Promote debug locs.
4718         (discard_useless_locs): Increment n_useless_debug_values for
4719         debug values.
4720         (remove_useless_values): Adjust n_useless_values and n_debug_values
4721         with n_useless_debug_values.
4722         (add_mem_for_addr): Promote debug locs.
4723         (cselib_lookup_mem): Likewise.
4724         (cselib_lookup_addr): Renamed to...
4725         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
4726         (cselib_log_lookup): ... this.  Turn into...
4727         (cselib_lookup_addr): ... new wrapper.
4728         (cselib_lookup_from_insn): New.
4729         (cselib_invalidate_regno): Increment n_useless_debug_values for
4730         debug values.
4731         (cselib_invalidate_mem): Likewise.
4732         (cselib_process_insn): Take n_deleted and n_debug_values into
4733         account to guard remove_useless_value call.
4734         (cselib_finish): Zero n_useless_debug_values.
4735         * cselib.h (cselib_lookup_from_insn): Declare.
4736         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
4737         (sched_analyze_2): Likewise.
4738
4739 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
4740
4741         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
4742         functions.
4743         (adjust_mems): Replace narrowing SUBREG of expression containing
4744         just PLUS, MINUS, MULT and ASHIFT of registers and constants
4745         with operations in the narrower mode.
4746
4747         PR debug/43593
4748         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
4749         regs_invalidated_by_call instead all call_used_reg_set registers.
4750
4751 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
4752
4753         PR middle-end/43430
4754         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
4755         pointer comparisons with types_compatible_p.
4756         * tree-vect-stmts.c (vectorizable_call): Same.
4757         (vectorizable_condition): Same.
4758
4759 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4760
4761         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
4762         stack check if the mask would be zero.
4763
4764 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
4765             Jack Howarth <howarth@bromo.med.uc.edu>
4766
4767         * tree-profile.c (tree_init_ic_make_global_vars): Make static
4768         variables TLS.
4769
4770 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
4771
4772         PR other/25232
4773         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
4774         and __unordtf2.
4775         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
4776         Include ___unordxf2 and ___unordtf2.
4777         * config/i386/libgcc-glibc.ver: Do not define inheritance from
4778         GCC_4.4.0 here.
4779
4780 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
4781
4782         * config/lm32/t-lm32: New file.
4783         * config.gcc: Use the above file when targetting lm32.
4784
4785 2010-03-28  Duncan Sands  <baldrick@free.fr>
4786
4787         * Makefile.in (PLUGIN_HEADERS): Add except.h.
4788
4789 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
4790
4791         PR middle-end/43431
4792         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
4793         Improve vectorization cost model diagnostic.
4794
4795 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
4796
4797         PR middle-end/43436
4798         * tree-vect-data-refs.c (vect_analyze_data_refs): When
4799         compute_data_dependences_for_loop returns false, early exit
4800         and output an extra diagnostic for the failed data reference
4801         analysis.
4802
4803 2010-03-29  Richard Guenther  <rguenther@suse.de>
4804
4805         PR tree-optimization/43560
4806         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
4807         (can_sm_ref_p): Treat stores to readonly locations as trapping.
4808
4809 2010-03-29  Jie Zhang  <jie@codesourcery.com>
4810
4811         PR 43564
4812         * toplev.c (process_options): Set optimization_default_node
4813         and optimization_current_node.
4814         * opts.c (decode_options): Don't set optimization_default_node
4815         and optimization_current_node.
4816
4817 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
4818
4819         * config/rtems.h: Abandon -qrtems_debug.
4820
4821 2010-03-28  Jan Hubicka  <jh@suse.cz>
4822
4823         PR tree-optimization/43505
4824         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
4825         map should not be copied.
4826
4827 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4828
4829         PR middle-end/41674
4830         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
4831         cdtors, set DECL_PRESERVE_P.
4832         * ipa.c (cgraph_externally_visible_p): Return true if declaration
4833         should be preseved.
4834
4835 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
4836
4837         PR tree-optimization/43528
4838         * stor-layout.c (place_field): Check that constant fits into
4839         unsigned HWI when skipping calculation of MS bitfield layout.
4840
4841 2010-03-27  Jan Hubicka  <jh@suse.cz>
4842
4843         PR middle-end/43391
4844         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
4845         notice_global_symbol work.
4846
4847 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
4848
4849         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
4850         instead of dwarf2out_decl.
4851         (struct var_loc_node): Remove section_label field.
4852         (dwarf2out_function_decl): New function.
4853         (dwarf2out_var_location): Don't set section_label field.
4854         (dwarf2out_begin_function): Don't empty decl_loc_table here.
4855
4856 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4857
4858         PR tree-optimization/43544
4859         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
4860         First argument for builtin vectorized function hook is now a
4861         tree to be able to distinguish between machine specific and
4862         standard builtins.
4863         * targhooks.c (default_builtin_vectorized_function): Ditto.
4864         * targhooks.h (default_builtin_vectorized_function): Ditto.
4865         * target.h (struct gcc_target): Ditto.
4866         * tree-vect-stmts.c (vectorizable_function): Ditto.
4867         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
4868         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
4869         Ditto.
4870
4871 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
4872
4873         PR c/43381
4874         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
4875         nested binding iff it is a FUNCTION_DECL.
4876         (store_parm_decls_newstyle): Pass nested=true to bind for
4877         FUNCTION_DECLs amongst parameters.
4878
4879 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
4880
4881         * var-tracking.c (vt_expand_loc_callback): Don't run
4882         cselib_expand_value_rtx_cb in dummy mode if
4883         cselib_dummy_expand_value_rtx_cb returned false.
4884
4885         * var-tracking.c (emit_note_insn_var_location): For one part
4886         notes with offset 0, don't add EXPR_LIST around the location.
4887         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
4888         add_location_or_const_value_attribute): Adjust for that change.
4889
4890         PR debug/43540
4891         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
4892         into first operand and location into second.
4893         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
4894         dw_cfi_oprnd_loc for DW_CFA_expression.
4895         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
4896         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
4897         assume first argument is regnum and second argument is location.
4898
4899 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
4900
4901         PR target/42113
4902         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
4903         of scratch register to DImode.  Split to DImode comparison operator.
4904         Use SImode subreg of scratch register in the multiplication.
4905         (*cmp_sadd_sidi): Ditto.
4906         (*cmp_ssub_si): Ditto.
4907         (*cmp_ssub_sidi): Ditto.
4908
4909 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
4910
4911         PR target/43524
4912         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
4913         Remove invalid assert and wrong comment.
4914
4915 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
4916
4917         PR debug/43516
4918         * flags.h (final_insns_dump_p): New extern.
4919         * final.c (final_insns_dump_p): New variable.
4920         (rest_of_clean_state): Set it before -fdump-final-insns=
4921         dumping, clear afterwards.
4922         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
4923         MEM_ALIAS_SET on MEMs.
4924
4925 2010-03-26  David S. Miller  <davem@davemloft.net>
4926
4927         * configure.ac: Fix sparc GOTDATA_OP bug check.
4928         * configure: Rebuild.
4929
4930 2010-03-26  Alan Modra  <amodra@gmail.com>
4931
4932         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
4933
4934 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4935
4936         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
4937         TLS_SECTION_ASM_FLAG.
4938
4939 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
4940
4941         PR bootstrap/43511
4942         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
4943         Clear first_function_block_is_cold.
4944
4945         PR c/43385
4946         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
4947         argument if the argument is truth_value_p.
4948
4949 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4950
4951         * config/rs6000/constraints.md: Update copyright year for my changes.
4952
4953         PR target/43484
4954         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
4955         used in reg+reg addressing, swap registers.
4956
4957 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
4958
4959         PR debug/43293
4960         * target.h (struct gcc_target): Add code_end hook.
4961         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
4962         if not yet defined.
4963         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
4964         * toplev.c (compile_file): Call targetm.asm_out.code_end
4965         hook before unwind info/debug info output.
4966         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
4967         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
4968         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
4969         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
4970         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
4971         * config/i386/i386.c (ix86_file_end): Renamed to...
4972         (ix86_code_end): ... this.  Make static.  Don't call
4973         file_end_indicate_exec_stack.  Emit unwind info using
4974         final_start_function/final_end_function.
4975         (darwin_x86_file_end): Remove.
4976         (TARGET_ASM_CODE_END): Define.
4977         * config/i386/i386.h (TARGET_ASM_FILE_END,
4978         NEED_INDICATE_EXEC_STACK): Don't define.
4979         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
4980         (TARGET_ASM_FILE_END): Define to darwin_file_end.
4981         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
4982         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
4983
4984         PR target/43498
4985         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
4986         at the beginning and final_end_function at the end.
4987         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
4988
4989 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4990
4991         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
4992         and Sun as TLS syntax.
4993         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
4994         * configure: Regenerate.
4995         * config.in: Regenerate.
4996         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
4997         (default_elf_asm_named_section): Use it.
4998         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
4999         (i386_output_dwarf_dtprel): Likewise.
5000         (output_addr_const_extra): Likewise.
5001         (output_pic_addr_const): Lowercase @GOTTPOFF.
5002         (output_addr_const_extra): Likewise.
5003         (output_pic_addr_const): Lowercase @GOTNTPOFF.
5004         (output_addr_const_extra): Likewise.
5005         (output_pic_addr_const): Lowercase @INDNTPOFF.
5006         (output_addr_const_extra): Likewise.
5007         (output_pic_addr_const): Lowercase @NTPOFF.
5008         (output_addr_const_extra): Likewise.
5009         (output_pic_addr_const): Lowercase @TPOFF.
5010         (output_addr_const_extra): Likewise.
5011         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
5012         (*tls_global_dynamic_64): Likewise.
5013         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
5014         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
5015
5016         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
5017         (ASM_OUTPUT_TLS_COMMON): Use it.
5018         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
5019
5020         PR target/38118
5021         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
5022         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
5023         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
5024         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
5025         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
5026         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
5027
5028 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5029
5030         * config/i386/i386.c (override_options): Don't accept
5031         -mtls-dialect=sun any longer.
5032         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
5033         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
5034         (*tls_local_dynamic_base_32_sun): Likewise.
5035         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
5036
5037 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
5038
5039         PR debug/43508
5040         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
5041         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
5042
5043         PR debug/43479
5044         * ira.c (adjust_cleared_regs): New function.
5045         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
5046
5047         PR debug/19192
5048         PR debug/43479
5049         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
5050         from gimple_block.
5051         * expr.c (expand_expr_real): Restore previous
5052         curr_insn_source_location and curr_insn_block after
5053         expand_expr_real_1 call.
5054         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
5055         instead of expand_expr_real_1.
5056
5057 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
5058
5059         PR rtl-optimization/43413
5060         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
5061         hard regs too.
5062
5063 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
5064
5065         PR target/43348
5066         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
5067         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
5068
5069 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5070
5071         * config/i386/i386.c (ix86_target_string): Add -mfma.
5072         Fix a typo in comment.
5073
5074 2010-03-22  Mike Stump  <mikestump@comcast.net>
5075
5076         PR target/23071
5077         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
5078         Don't overly align based upon packed packed fields.
5079
5080 2010-03-22  Jason Merrill  <jason@redhat.com>
5081
5082         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
5083         Use () rather than [], and move before the element type.
5084
5085 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5086
5087         * doc/configfiles.texi (Configuration Files): Removed
5088         fixinc/Makefile*, intl/Makefile.*.
5089         * doc/makefile.texi: Fixed markup. Abstract from version
5090         control system used.
5091         (Makefile): Removed obsolete gcc/java/parse.y example.
5092         * doc/sourcebuild.texi: Likewise.
5093         (Top Level): Added config, gnattools, libdecnumber, libgcc,
5094         libgomp, libssp.  Removed fastjar.
5095         (Miscellaneous Docs): Clarify location.
5096         Added COPYING3, COPYING3.LIB.
5097         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
5098
5099 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5100
5101         PR target/38085
5102         * config/i386/i386.c (x86_function_profiler)
5103         [!NO_PROFILE_COUNTERS]: Fix typo.
5104         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
5105         instead of callq.
5106
5107 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
5108             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5109
5110         * doc/sourcebuild.texi (Test Directives): Split into six
5111         subsections, with most of the current text in new subsections
5112         Directives, Selectors, and Final Actions.
5113         (Directives): Split list of test directives into multiple
5114         subsubsections.
5115         (Selectors): Describe use and syntax of selectors.
5116         (Effective-Target Keywords): Describe all existing keywords.
5117         (Add Options): Describe features for dg-add-options.
5118         (Require Support): Describe variants of dg-require-support.
5119         (Final Actions): Describe commands to use in dg-final.
5120
5121 2010-03-22  Michael Matz  <matz@suse.de>
5122
5123         PR middle-end/43475
5124         * recog.c (validate_replace_rtx_group): Replace also in
5125         REG_EQUAL and REG_EQUIV notes.
5126
5127 2010-03-22  Richard Guenther  <rguenther@suse.de>
5128
5129         PR tree-optimization/43390
5130         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
5131         sure vector extracts are type correct.
5132
5133 2010-03-22  Richard Guenther  <rguenther@suse.de>
5134
5135         PR middle-end/40106
5136         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
5137         x * sqrt (x) even when optimizing for size if the target
5138         has native support for sqrt.
5139
5140 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
5141
5142         * varasm.c (make_decl_rtl_for_debug): Also clear
5143         flag_mudflap for the duration of make_decl_rtl call.
5144
5145         PR debug/43443
5146         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
5147         locs from preserved VALUEs.
5148
5149 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5150
5151         PR middle-end/42718
5152         * pa.md (movmemsi): Set align to one if zero.
5153         (movmemdi): Likewise.
5154
5155 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
5156
5157         PR target/42321
5158         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
5159         with their corresponding prologue pushes.
5160
5161 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
5162
5163         PR target/43156
5164         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
5165         at the begining or end.
5166         (spu_expand_epilogue): Likewise.
5167
5168 2010-03-20  Richard Guenther  <rguenther@suse.de>
5169
5170         PR rtl-optimization/43438
5171         * combine.c (make_extraction): Properly zero-/sign-extend an
5172         extraction of the low part of a CONST_INT.  Also handle
5173         CONST_DOUBLE.
5174
5175 2010-03-19  Mike Stump  <mikestump@comcast.net>
5176
5177         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
5178         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
5179         (override_options): Use SUBTARGET32_DEFAULT_CPU.
5180
5181 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
5182
5183         PR c/43211
5184         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
5185         an error.
5186
5187 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
5188
5189         PR rtl-optimization/42258
5190         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
5191         use that may match DEF.
5192
5193         PR target/40697
5194         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
5195         the cost of loading the constant rather than assuming
5196         COSTS_N_INSNS (1).
5197         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
5198         outer code is AND, do the same tests as the andsi3 expander and
5199         return COSTS_N_INSNS (1) if and is cheap.
5200
5201         * optabs.c (avoid_expensive_constant): Fix formatting.
5202
5203 2010-03-19  Michael Matz  <matz@suse.de>
5204
5205         PR c++/43116
5206         * attribs.c (decl_attributes): When rebuilding a function pointer
5207         type use the same qualifiers as the original pointer type.
5208
5209 2010-03-19  Martin Jambor  <mjambor@suse.cz>
5210
5211         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
5212         and is_gimple_ip_invariant_address.
5213
5214 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5215
5216         Revert
5217         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5218
5219         * config/arm/arm.c (arm_override_options): Turn off
5220         flag_dwarf2_cfi_asm for AAPCS variants.
5221
5222 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5223
5224         PR target/43399
5225         * config/arm/arm.c (emit_multi_reg_push): Update comments.
5226         Use PRE_MODIFY instead of PRE_DEC.
5227         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
5228         (vfp_emit_fstmd): Likewise.
5229
5230 2010-03-19  Michael Matz  <matz@suse.de>
5231
5232         PR target/43305
5233         * builtins.c (expand_builtin_interclass_mathfn,
5234         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
5235         if that fails.
5236
5237 2010-03-19  Richard Guenther  <rguenther@suse.de>
5238
5239         PR tree-optimization/43415
5240         * tree-ssa-pre.c (phi_translate): Split out worker to ...
5241         (phi_translate_1): ... this.
5242         (phi_translate): Move all caching here.  Cache all NARY
5243         and REFERENCE translations.
5244
5245 2010-03-19  David S. Miller  <davem@davemloft.net>
5246
5247         With help from Eric Botcazou.
5248         * config/sparc/sparc.c: Include dwarf2out.h.
5249         (emit_pic_helper): Delete.
5250         (pic_helper_symbol_name): Delete.
5251         (pic_helper_emitted_p): Delete.
5252         (pic_helper_needed): New.
5253         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
5254         (get_pc_thunk_name): New.
5255         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
5256         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
5257         Set pic_helper_needed to true.  Don't call emit_pic_helper.
5258         (sparc_expand_prologue): Update load_pic_register call.
5259         (sparc_output_mi_thunk): Likewise.
5260         (sparc_file_end): Emit a hidden comdat symbol for the PIC
5261         thunk if possible.  Output CFI information as needed.
5262
5263 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5264             Jack Howarth <howarth@bromo.med.uc.edu>
5265
5266         PR target/36399
5267         * config/i386/i386.h: Fix ABI on darwin x86-32.
5268
5269 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
5270
5271         * tree.h: Declare make_decl_rtl_for_debug.
5272         * varasm.c (make_decl_rtl_for_debug): New.
5273         * dwarf2out.c (rtl_for_decl_location): Call it.
5274         * cfgexpand.c (expand_debug_expr): Call it.
5275
5276 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
5277
5278         PR bootstrap/43399
5279         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
5280         mem_mode.
5281
5282         PR bootstrap/43403
5283         * var-tracking.c (vt_init_cfa_base): Do nothing if
5284         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
5285
5286 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
5287
5288         PR debug/42873
5289         * var-tracking.c (canonicalize_vars_star): New.
5290         (dataflow_post_merge_adjust): Use it.
5291
5292 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
5293
5294         PR debug/43058
5295         * var-tracking.c (non_suitable_const): New function.
5296         (add_uses): For DEBUG_INSNs with constants, don't record any
5297         value, instead just the constant value itself.
5298         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
5299         is not VAR_LOC_UNKNOWN_P, set var to the constant.
5300         (emit_notes_in_bb): Likewise.
5301         (emit_note_insn_var_location): For onepart variables if
5302         cur_loc is a VOIDmode constant, use DECL_MODE.
5303
5304 2010-03-18  Martin Jambor  <mjambor@suse.cz>
5305
5306         PR middle-end/42450
5307         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
5308         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
5309         all non-clones.  Moved call redirection...
5310         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
5311         (cgraph_materialize_all_clones): Dispose of all
5312         combined_args_to_skip bitmaps.
5313         (verify_cgraph_node): Do not check for edges pointing to wrong
5314         nodes in inline clones.
5315         * tree-inline.c (copy_bb): Call
5316         cgraph_redirect_edge_call_stmt_to_callee.
5317         * ipa.c (cgraph_remove_unreachable_nodes): Call
5318         cgraph_node_remove_callees even when there are used clones.
5319
5320 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
5321
5322         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
5323
5324 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
5325
5326         PR target/43383
5327         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
5328         for 32bit.
5329
5330 2010-03-18  Michael Matz  <matz@suse.de>
5331
5332         PR middle-end/43419
5333         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
5334         into sqrt(x) if we need to preserve signed zeros.
5335
5336 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
5337             Eric Botcazou  <ebotcazou@adacore.com>
5338
5339         PR rtl-optimization/43360
5340         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
5341         note if we don't know its invariant status.
5342
5343 2010-03-18  Michael Matz  <matz@suse.de>
5344
5345         PR tree-optimization/43402
5346         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
5347         PHI chains of ssa names registered for update.
5348
5349 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
5350
5351         PR target/42427
5352         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
5353         non-offsettable and pre_modify update addressing.
5354         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
5355         and "2" alternatives "#".
5356         (*movdd_softfloat32): Make all alternatives "#";
5357         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
5358         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
5359         (*movdf_softfloat32): Make all alternatives "#";
5360         (movdi): Use the new DIFD mode iterator to create a common splitter
5361         for movdi, movdf and movdd patterns.
5362
5363 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
5364
5365         * common.opt (dumpdir): Remove redundant tab.
5366
5367 2010-03-17  Martin Jambor  <mjambor@suse.cz>
5368
5369         PR tree-optimization/43347
5370         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
5371         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
5372
5373 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
5374
5375         PR rtl-optimization/42216
5376         * regrename.c (create_new_chain): New function, broken out from...
5377         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
5378         appending a use to an empty chain.
5379         (build_def_use): Remove previous changes that convert OP_INOUT to
5380         OP_OUT operands; instead detect the case where an OP_INOUT operand
5381         uses a previously untracked register and create an empty chain for it.
5382
5383 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5384
5385         * doc/extend.texi (Function Attributes): Rewrite unfinished
5386         sentence in ms_abi documentation.
5387
5388 2010-03-17  Alan Modra  <amodra@gmail.com>
5389
5390         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
5391         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
5392         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
5393         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
5394
5395 2010-03-16  Richard Henderson  <rth@redhat.com>
5396
5397         PR middle-end/43365
5398         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
5399         (lower_try_finally): Save and restore eh_seq around the expansion
5400         of the try-finally.
5401
5402 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
5403
5404         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
5405         statements before splitting block.
5406
5407 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5408
5409         * doc/sourcebuild.texi (Testsuites): Fix markup.
5410         Use pathnames relative to gcc/testsuite.
5411         (Test Directives): Move description of how timeout is determined.
5412         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
5413         (C Tests): Correct gcc.misc-tests directory.
5414         Framework tests now live in gcc.test-framework.
5415
5416 2010-03-16  Richard Guenther  <rguenther@suse.de>
5417
5418         PR middle-end/43379
5419         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
5420         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
5421
5422 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
5423             Alexandre Oliva  <aoliva@redhat.com>
5424
5425         PR tree-optimization/42917
5426         * lambda-code.c (remove_iv): Skip debug statements.
5427         (lambda_loopnest_to_gcc_loopnest): Likewise.
5428         (not_interesting_stmt): Debug statements are not interesting.
5429
5430 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
5431
5432         PR debug/43051
5433         PR debug/43092
5434         * cselib.c (cselib_preserve_constants,
5435         cfa_base_preserved_val): New static variables.
5436         (preserve_only_constants): New function.
5437         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
5438         clear its REG_VALUES.  If cselib_preserve_constants, don't
5439         empty the whole hash table, but preserve there VALUEs with constants,
5440         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
5441         (cselib_preserve_cfa_base_value): New function.
5442         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
5443         (cselib_init): Change argument to int bitfield.  Set
5444         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
5445         is in it.
5446         (cselib_finish): Clear cselib_preserve_constants and
5447         cfa_base_preserved_val.
5448         * cselib.h (enum cselib_record_what): New enum.
5449         (cselib_init): Change argument to int.
5450         (cselib_preserve_cfa_base_value): New prototype.
5451         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
5452         * dse.c (dse_step1): Likewise.
5453         * cfgcleanup.c (thread_jump): Likewise.
5454         * sched-deps.c (sched_analyze): Likewise.
5455         * gcse.c (local_cprop_pass): Likewise.
5456         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
5457         If FN is non-NULL, call the callback always and whenever it returns
5458         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
5459         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
5460         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
5461         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
5462         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
5463         * var-tracking.c: Include recog.h.
5464         (bb_stack_adjust_offset): Remove.
5465         (vt_stack_adjustments): Don't call it, instead just gather the
5466         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
5467         (adjust_stack_reference): Remove.
5468         (compute_cfa_pointer): New function.
5469         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
5470         (struct adjust_mem_data): New type.
5471         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
5472         functions.
5473         (get_address_mode): New function.
5474         (replace_expr_with_values): Use it.
5475         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
5476         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
5477         (adjust_sets): Remove.
5478         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
5479         Use get_address_mode.
5480         (get_adjusted_src): Remove.
5481         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
5482         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
5483         (add_with_sets): Don't call adjust_sets.
5484         (fp_setter, vt_init_cfa_base): New functions.
5485         (vt_initialize): Change return type to bool.  Move most of pool etc.
5486         initialization to the beginning of the function from end.  Pass
5487         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
5488         If !frame_pointer_needed, call vt_stack_adjustment before mos
5489         vector is filled, call vt_init_cfa_base if argp/framep has been
5490         eliminated to sp.  If frame_pointer_needed and argp/framep has
5491         been eliminated to hard frame pointer, set
5492         hard_frame_pointer_adjustment and call vt_init_cfa_base after
5493         encountering fp setter in the prologue.  For MO_ADJUST, call
5494         log_op_type before pusing the op into mos vector, not afterwards.
5495         Call adjust_insn before cselib_process_insn/add_with_sets,
5496         call cancel_changes (0) afterwards.
5497         (variable_tracking_main_1): Adjust for vt_initialize calling
5498         vt_stack_adjustments and returning whether it succeeded or not.
5499
5500 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
5501
5502         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
5503         debug statements.
5504
5505 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
5506
5507         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
5508         has been set.
5509         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
5510         drap_reg has not been set.
5511
5512 2010-03-15  Michael Matz  <matz@suse.de>
5513
5514         PR middle-end/43300
5515         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
5516         use it to expand block copies.
5517         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
5518         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
5519         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
5520
5521 2010-03-15  Richard Guenther  <rguenther@suse.de>
5522
5523         PR tree-optimization/43367
5524         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
5525         elimination check.
5526
5527 2010-03-15  Richard Guenther  <rguenther@suse.de>
5528
5529         PR tree-optimization/43317
5530         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
5531
5532 2010-03-15  Martin Jambor  <mjambor@suse.cz>
5533
5534         PR tree-optimization/43141
5535         * tree-sra.c (create_abstract_origin): New function.
5536         (modify_function): Call create_abstract_origin.
5537
5538 2010-03-15  Chris Demetriou  <cgd@google.com>
5539
5540         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
5541         wasn't copied.
5542
5543 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
5544
5545         PR middle-end/43354
5546         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
5547         call insert_out_of_ssa_copy for default definitions.
5548
5549 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
5550
5551         * graphite-clast-to-gimple.c (my_long_long): Defined.
5552         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
5553         * graphite-sese-to-poly.c (my_long_long): Defined.
5554         (scop_ivs_can_be_represented): Use it.
5555
5556 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
5557
5558         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
5559         graphite-max-bbs-per-function, and loop-block-tile-size.
5560         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
5561         with "maximum".
5562         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
5563
5564 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
5565
5566         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
5567         forward declaration.
5568         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
5569         (add_upper_bounds_from_estimated_nit): New.
5570         (build_loop_iteration_domains): Use it.
5571
5572 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
5573
5574         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
5575
5576 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
5577
5578         PR middle-end/43306
5579         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
5580         should be an INTEGER_CST.  Also handle CASE_CONVERT.
5581
5582 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
5583
5584         * graphite.c (graphite_initialize): To bound the number of bbs per
5585         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
5586         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
5587         * doc/invoke.texi: Document it.
5588
5589 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
5590
5591         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
5592         * graphite-sese-to-poly.h (build_poly_scop): Same.
5593
5594 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
5595
5596         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
5597         the number of parameters in the scop.  Use as an upper bound
5598         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
5599         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
5600         * doc/invoke.texi: Document it.
5601
5602 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
5603
5604         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
5605         * doc/c-tree.texi: Remove.
5606         * doc/generic.texi: Merge c-tree.texi here.
5607         * doc/gccint.texi (Trees): Remove menu entry.
5608         (c-tree.texi): Remove @include.
5609         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
5610         * doc/languages.texi (Reading RTL): Ditto.
5611
5612 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
5613
5614         PR target/42869
5615         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
5616
5617 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5618
5619         PR middle-end/42431
5620         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
5621         code added to work around reload clobbering CONST insns.
5622
5623 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
5624
5625         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
5626         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
5627         (cselib_preserve_only_values): Remove retain argument, don't
5628         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
5629         * cselib.h (cselib_preserve_only_values): Remove retain argument.
5630         * var-tracking.c (micro_operation): Move insn field before union.
5631         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
5632         (struct variable_tracking_info_def): Remove n_mos field, change
5633         mos into a vector of micro_operations.
5634         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
5635         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
5636         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
5637         changing into a vector.
5638         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
5639         come before all other uops generated by add_stores.
5640         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
5641         argument removal.
5642         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
5643         a vector.  Run just one pass over the bbs instead of separate counting
5644         and computation phase.
5645         (vt_finalize): Free VTI (bb)->mos vector instead of array.
5646
5647         PR debug/43329
5648         * tree-inline.c (remap_decls): Put old_var rather than origin_var
5649         into *nonlocalized_list vector.
5650         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
5651         even if origin is non-NULL.
5652         (gen_variable_die): Likewise.
5653         (process_scope_var): Don't change origin.
5654         (gen_decl_die): Likewise.
5655         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
5656         before adding new edges instead of after it, fix moving over
5657         debug stmts.
5658
5659 2010-03-11  David S. Miller  <davem@davemloft.net>
5660
5661         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
5662         of four.
5663         * configure: Rebuild.
5664
5665 2010-03-11  Martin Jambor  <mjambor@suse.cz>
5666
5667         PR tree-optimization/43257
5668         * tree.c (assign_assembler_name_if_neeeded): New function.
5669         (free_lang_data_in_cgraph): Assembler name assignment moved to the
5670         above new function.
5671         * tree.h (assign_assembler_name_if_neeeded): Declare.
5672         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
5673         the function if needed.
5674
5675 2010-03-11  Chris Demetriou  <cgd@google.com>
5676
5677         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
5678         include/stdint-gcc.h, and include/stdint.h world-readable.
5679
5680 2010-03-11  Richard Guenther  <rguenther@suse.de>
5681
5682         PR tree-optimization/43255
5683         * tree-vrp.c (process_assert_insertions_for): Do not insert
5684         asserts for trivial conditions.
5685
5686 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5687
5688         PR tree-optimization/43280
5689         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
5690         generation.  Move calculation of size out of the if branch.
5691         (find_bswap): Modify compare number generation.
5692
5693 2010-03-11  Richard Guenther  <rguenther@suse.de>
5694
5695         PR lto/43200
5696         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
5697         (input_gimple_stmt): Fixup handled component types during
5698         operand read.  Also fix up decls in ADDR_EXPRs.
5699
5700 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
5701
5702         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
5703         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
5704
5705 2010-03-10  Jan Hubicka  <jh@suse.cz>
5706
5707         PR c/43288
5708         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
5709         * varasm.c (get_variable_section): Don't do that here...
5710         (make_decl_rtl): ... and here.
5711         (do_assemble_alias): Produce decl RTL.
5712         (assemble_alias): Likewise.
5713
5714 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
5715
5716         PR debug/43290
5717         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
5718         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
5719         of fde->vdrap_reg.
5720         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
5721         (based_loc_descr): Only express drap or vdrap regno based expressions
5722         using DW_OP_fbreg when not optimizing.
5723         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
5724         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
5725         REG_CFA_SET_VDRAP note.
5726
5727 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
5728
5729         PR tree-optimization/43236
5730         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
5731         error in calculation of base address in reverse iteration case.
5732         (generate_builtin): Take number of latch executions if the statement
5733         is in the latch.
5734
5735 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
5736
5737         PR middle-end/42859
5738         * tree-eh.c: Include pointer-set.h.
5739         (lower_eh_dispatch): Filter out duplicate case labels and
5740         remove the unneeded edge when the label is unused.  Return
5741         true when some edges are removed.
5742         (execute_lower_eh_dispatch): When any lowering resulted in
5743         removing an edge, also delete unreachable blocks.
5744
5745 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
5746
5747         PR bootstrap/43287
5748         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5749         UNSPEC_MACHOPIC_OFFSET.
5750
5751 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
5752
5753         PR target/43294
5754         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
5755         (m68k_delegitimize_address): New function.
5756
5757 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
5758
5759         PR debug/43299
5760         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
5761
5762         PR debug/43299
5763         * var-tracking.c (adjust_sets): New function.
5764         (count_with_sets, add_with_sets): Use it.
5765         (get_adjusted_src): New inline function.
5766         (add_stores): Use it.
5767
5768         PR debug/43304
5769         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
5770         call cselib_dummy_expand_value_rtx_cb instead of
5771         cselib_expand_value_rtx_cb.
5772
5773         PR debug/43293
5774         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
5775         * config/i386/i386.c: Include debug.h and dwarf2out.h.
5776         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
5777         and .cfi_endproc around the pic thunks.
5778         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
5779         all queued unwind info register saves are saved before the call.
5780         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
5781         considered as sp-=4 for unwind info and the pop as sp+=4 which
5782         also clobbers dest, but doesn't actually restore it.
5783
5784         PR debug/43290
5785         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
5786         RTX_FRAME_RELATED_P.
5787
5788 2010-03-09  Jie Zhang  <jie@codesourcery.com>
5789
5790         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
5791         whitespaces in output template.
5792
5793 2010-03-09  Jie Zhang  <jie@codesourcery.com>
5794
5795         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
5796         out array boundary.
5797
5798 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
5799
5800         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
5801         builtins.exp in a separate job.
5802
5803 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5804
5805         * graphite-sese-to-poly.c (add_param_constraints): Use
5806         lower_bound_in_type and upper_bound_in_type.
5807
5808 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5809
5810         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
5811         instead of unsigned_type_node.
5812
5813 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5814             Reza Yazdani  <reza.yazdani@amd.com>
5815
5816         PR middle-end/43065
5817         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
5818         on pointer type parameters.
5819
5820 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
5821
5822         PR middle-end/42644
5823         PR middle-end/42130
5824         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
5825         handle conversions from pointer to integers.
5826         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
5827         induction variable, to be able to work with code generated by CLooG.
5828         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
5829         (build_poly_scop): Bail out if we cannot codegen a loop.
5830
5831 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
5832
5833         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
5834         code generation with gloog_error.
5835
5836 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5837
5838         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
5839         Call fold_convert on all the returned values.
5840         (expand_scalar_variables_expr): Pass to
5841         expand_scalar_variables_ssa_name the type of the resulting expression.
5842
5843 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5844
5845         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
5846         ppl_min_for_le_pointset.
5847         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
5848         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
5849
5850 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5851
5852         * graphite-dependences.c (map_into_dep_poly): Removed.
5853         (dependence_polyhedron_1): Use combine_context_id_scat.
5854
5855 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5856
5857         * graphite-poly.h (struct poly_scattering): Add layout documentation.
5858         (struct poly_bb): Same.
5859         (combine_context_id_scat): New.
5860
5861 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5862
5863         PR middle-end/42326
5864         * sese.c (name_defined_in_loop_p): Return false for default
5865         definitions.
5866
5867 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5868
5869         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
5870         and clean up the logic.
5871
5872 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
5873
5874         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
5875         early return.
5876
5877 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
5878
5879         * var-tracking.c (remove_cselib_value_chains): Define only for
5880         ENABLE_CHECKING.
5881         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
5882         delete_slot_part, emit_notes_for_differences_1): Don't call
5883         remove_cselib_value_chains here.
5884         (set_slot_part, emit_notes_for_differences_2): Don't call
5885         add_cselib_value_chains here.
5886         (preserved_values): New vector.
5887         (preserve_value): New function.
5888         (add_uses, add_stores, vt_add_function_parameters): Use it
5889         instead of cselib_preserve_value.
5890         (changed_values_stack): New vector.
5891         (check_changed_vars_0): New function.
5892         (check_changed_vars_1, check_changed_vars_2): Use it.
5893         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
5894         changed_values_stack VALUEs.
5895         (vt_emit_notes): For all preserved_values call
5896         add_cselib_value_chains.  If ENABLE_CHECKING call
5897         remove_cselib_value_chains before verifying value_chains is empty.
5898         Initialize and free changed_values_stack.
5899         (vt_initialize): Initialize preserved_values.
5900         (vt_finalize): Free preserved_values.
5901
5902 2010-03-08  Richard Guenther  <rguenther@suse.de>
5903
5904         PR tree-optimization/43269
5905         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
5906         region detection.
5907
5908 2010-03-08  Martin Jambor  <mjambor@suse.cz>
5909
5910         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
5911         (ipa_is_param_called): Removed.
5912         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
5913         (ipa_print_node_params): Do not print the called flag.
5914         (ipa_write_node_info): Do not stream the called flag.
5915         (ipa_read_node_info): Likewise.
5916
5917 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
5918
5919         PR debug/43176
5920         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
5921         * cselib.c (struct expand_value_data): Add dummy field.
5922         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
5923         dummy to false.
5924         (cselib_dummy_expand_value_rtx_cb): New function.
5925         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
5926         any rtl.
5927         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
5928         * var-tracking.c: Include pointer-set.h.
5929         (variable): Change n_var_parts to char from int.  Add
5930         cur_loc_changed and in_changed_variables fields.
5931         (variable_canonicalize): Remove.
5932         (shared_var_p): New inline function.
5933         (unshare_variable): Maintain cur_loc_changed and
5934         in_changed_variables fields.  If var was in changed_variables,
5935         replace it there with new_var.  Just copy cur_loc instead of
5936         resetting it to something else.
5937         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
5938         (dataflow_set_union): Don't call variable_canonicalize.
5939         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
5940         of their DEBUG_EXPR_TREE_DECLs.
5941         (canonicalize_loc_order_check): Verify that cur_loc is NULL
5942         and in_changed_variables and cur_loc_changed is false.
5943         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
5944         and cur_loc_changed.  Don't update cur_loc here.
5945         (variable_merge_over_src): Don't call variable_canonicalize.
5946         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
5947         removing loc that is equal to cur_loc, clear cur_loc,
5948         set cur_loc_changed and ensure variable_was_changed is called.
5949         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
5950         compare pointers in cur_loc check, if it is equal to loc,
5951         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
5952         (variable_different_p): Remove compare_current_location argument,
5953         don't compare cur_loc.
5954         (dataflow_set_different_1): Adjust variable_different_p caller.
5955         (variable_was_changed): If dv had some var in changed_variables
5956         already, reset in_changed_variables flag for it and propagate
5957         cur_loc_changed over to the new variable.  On empty var
5958         always set cur_loc_changed.  Set in_changed_variables on whatever
5959         var is added to changed_variables.
5960         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
5961         Use shared_var_p.  When removing loc that is equal to cur_loc,
5962         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
5963         end, don't set it to something else, just call variable_was_changed.
5964         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
5965         loc being removed, clear cur_loc and set cur_loc_changed.
5966         Set cur_loc_changed if all locations have been removed.
5967         (struct expand_loc_callback_data): New type.
5968         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
5969         allocated.  Always create SUBREGs if simplify_subreg failed.
5970         Prefer to use cur_loc, when that fails and still in
5971         changed_variables (and seen first time) recompute it.  Set
5972         cur_loc_changed of variables which had to change cur_loc and
5973         compute elcd->cur_loc_changed if any of the subexpressions used
5974         had to change cur_loc.
5975         (vt_expand_loc): Adjust to pass arguments in
5976         expand_loc_callback_data structure.
5977         (vt_expand_loc_dummy): New function.
5978         (emitted_notes): New variable.
5979         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
5980         that weren't used for any other decl in current
5981         emit_notes_for_changes call call vt_expand_loc_dummy to update
5982         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
5983         first loc_chain location if NULL before.  Always use just
5984         cur_loc instead of first loc_chain location.  When cur_loc_changed
5985         is false, when not --enable-checking=rtl just don't emit any note.
5986         When rtl checking, compute the note and assert it is the same
5987         as previous note.  Clear cur_loc_changed and in_changed_variables
5988         at the end before removing from changed_variables.
5989         (check_changed_vars_3): New function.
5990         (emit_notes_for_changes): Traverse changed_vars to call
5991         check_changed_vars_3 on each changed var.
5992         (emit_notes_for_differences_1): Clear cur_loc_changed and
5993         in_changed_variables.  Recompute cur_loc of new_var.
5994         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
5995         (vt_emit_notes): Initialize and destroy emitted_notes.
5996
5997 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
5998
5999         PR rtl-optimization/42220
6000         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
6001         Use verify_reg_tracked to determine if we should use OP_OUT rather
6002         than OP_INOUT.
6003         (build_def_use): If we see an in-out operand for a register that we
6004         know nothing about, treat is an output if possible, fail the block if
6005         not.
6006
6007 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
6008
6009         PR debug/42897
6010         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
6011         permanently.
6012
6013 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
6014
6015         PR debug/42897
6016         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
6017         uses of relevant DEFs that are dead outside the loop too.
6018
6019 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
6020
6021         * var-tracking.c (dataflow_set_merge): Swap src and src2.
6022         Reverted:
6023         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
6024         PR debug/41371
6025         * var-tracking.c (values_to_unmark): New variable.
6026         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
6027         values_to_unmark vector.  Moved body to...
6028         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
6029         instead queue it into values_to_unmark vector.
6030         (vt_find_locations): Free values_to_unmark vector.
6031
6032 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6033
6034         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
6035         (site.exp): Export them when plugins are enabled.
6036
6037 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
6038
6039         PR middle-end/42326
6040         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
6041         that contain scevs.
6042         (chrec_fold_multiply): Same.
6043
6044 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
6045
6046         PR c/43248
6047         * c-decl.c (build_compound_literal): Return early if init is
6048         an error_mark_node.
6049
6050 2010-03-04  Martin Jambor  <mjambor@suse.cz>
6051
6052         PR tree-optimization/43164
6053         PR tree-optimization/43191
6054         * tree-sra.c (type_consists_of_records_p): Reject records with
6055         zero-size bit-fields at the end.
6056
6057 2010-03-04  Mike Stump  <mikestump@comcast.net>
6058
6059         * Makefile.in (TAGS): Remove *.y.
6060
6061 2010-03-04  Richard Guenther  <rguenther@suse.de>
6062
6063         PR tree-optimization/40761
6064         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
6065         in reverse order.
6066         (my_rev_post_order_compute): New function.
6067         (init_pre): Call it.
6068
6069 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
6070
6071         PR middle-end/43209
6072         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
6073         decrease the cost of an IV candidate when the cost is infinite.
6074
6075 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6076
6077         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
6078         Use '3DNow!' for the extension of that name, ensure normal space
6079         after the string.
6080         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
6081
6082 2010-03-03  Jeff Law  <law@redhat.com>
6083
6084         * PR middle-end/32693
6085         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
6086         than gen_rtx_SUBREG.
6087         (extract_bit_field_1): Likewise.
6088
6089 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
6090
6091         * doc/sourcebuild.texi (Test directives): Document that arguments
6092         include-opts and exclude-opts are now optional for dg-skip-if,
6093         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
6094
6095 2010-03-03  Jason Merrill  <jason@redhat.com>
6096
6097         PR c++/12909
6098         * cgraph.h (varpool_node): Add extra_name field.
6099         * varpool.c (varpool_extra_name_alias): New.
6100         (varpool_assemble_decl): Emit extra name aliases.
6101         (varpool_mark_needed_node): Look past an extra name alias.
6102         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
6103         * lto-streamer-in.c (lto_input_tree): Read it.
6104         * lto-streamer-out.c (output_unreferenced_globals): Write it.
6105
6106 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
6107
6108         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
6109         (sparc*-*-solaris2*): ...this.
6110
6111 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
6112
6113         PR debug/43229
6114         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
6115         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
6116         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
6117         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
6118
6119         PR debug/43237
6120         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
6121         fallthrough to default handling, just with want_address 0 instead of 2.
6122         For single element lists, add_AT_loc directly, otherwise create an
6123         artificial variable DIE and stick location list to it.
6124
6125         PR debug/43177
6126         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
6127         (VAL_EXPR_HAS_REVERSE): Define.
6128         (reverse_op): New function.
6129         (add_stores): For reversible operations add an extra MO_VAL_USE.
6130
6131 2010-03-02  Jason Merrill  <jason@redhat.com>
6132
6133         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
6134
6135 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
6136
6137         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
6138         (sparc64-*-linux*): Likewise.
6139         (sparc64-*-solaris2*): Include assembler files before linker ones.
6140         (sparc-*-solaris2*): Simplify and reorder to match previous case.
6141         * config/sparc/gas.h: Delete.
6142         * config/sparc/sol2-64.h: Add copyright notice.
6143         * config/sparc/sol2-gas-bi.h: Likewise.
6144         * config/sparc/sol2-gld.h: Likewise.
6145         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
6146         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
6147         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
6148         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
6149         (sparc_elf_asm_named_section): Rename into...
6150         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
6151
6152 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
6153
6154         * config/alpha/alpha.c (override_options): Fix -mtune error message.
6155
6156 2010-03-02  Jeff Law  <law@redhat.com>
6157
6158         PR middle-end/42431
6159         * reload1.c (rtx_p, substitute_stack): Declare.
6160         (substitute): Record addresses of changed rtxs.
6161         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
6162         Restore the original rtx when complete.
6163         (reload): Free subsitute_stack when complete.
6164
6165 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
6166
6167         * doc/gccint.texi (menu): Add Testsuites as a chapter.
6168         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
6169         new chapter.
6170         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
6171         LTO Testing, gcov Testing, profopt Testing, compat Testing,
6172         Torture Tests): Change from subsection to section.
6173
6174 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
6175             Steven Bosscher  <steven@gcc.gnu.org>
6176
6177         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
6178         instead of bb.
6179
6180 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
6181
6182         PR middle-end/42640
6183         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
6184         the assignment from the new induction variable to the assignment
6185         of the value from the original loop PHI function.
6186
6187 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
6188             Daniel Jacobowitz  <dan@codesourcery.com>
6189
6190         * doc/sourcebuild.texi (Test directives): Clarify options to
6191         dg-skip-if.
6192
6193 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6194
6195         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
6196         Disable cfi directives unless GCC and gas agree on using read-only
6197         .eh_frame sections for 64-bit.
6198         * configure: Regenerate.
6199
6200 2010-03-01  Richard Guenther  <rguenther@suse.de>
6201
6202         PR tree-optimization/43220
6203         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
6204         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
6205
6206 2010-03-01  Richard Guenther  <rguenther@suse.de>
6207             Martin Jambor  <mjambor@suse.cz>
6208
6209         PR middle-end/41250
6210         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
6211         gimplified parameters.
6212
6213 2010-03-01  Christian Bruel  <christian.bruel@st.com>
6214
6215         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
6216
6217 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
6218
6219         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
6220
6221 2010-03-01  Richard Guenther  <rguenther@suse.de>
6222
6223         PR middle-end/43213
6224         * expr.c (expand_assignment): Use the alias-oracle to tell
6225         if the rhs aliases the result decl.
6226
6227 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6228
6229         PR pch/14940
6230         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
6231         to sol_gt_pch_get_address.
6232         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
6233         64-bit, SPARC and x86.
6234         (sol_gt_pch_get_address): New function.
6235
6236 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
6237
6238         * toplev.h (inform_n, error_n): Declare.
6239         * diagnostic.c (inform_n, error_n): New function.
6240
6241 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
6242
6243         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
6244         has no rtl yet when processing local_decls, queue it and recheck
6245         if deferred stack allocation hasn't assigned it rtl.
6246
6247 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
6248
6249         * config/sh/sh.c (unspec_bbr_uid): New.
6250         (gen_block_redirect): Use it instead of INSN_UID.
6251         (gen_far_branch): Likewise.
6252
6253 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
6254
6255         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
6256         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
6257
6258 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6259
6260         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
6261         (Warning Options): -Wno-conversion-null is valid for
6262         Objective-C++ as well.
6263         * doc/tm.texi (Named Address Spaces): Likewise.
6264         * doc/plugins.texi (Plugins): Replace TABs with spaces.
6265         * doc/tree-ssa.texi (Tree SSA): Likewise.
6266
6267 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
6268
6269         PR bootstrap/43202
6270         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
6271         by default.  Don't set the default arch for
6272         i[34567]86-*-darwin*|x86_64-*-darwin*.
6273
6274 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
6275
6276         PR bootstrap/43202
6277         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
6278         default.  Set the default 32bit/64bit archs with $with_arch
6279         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
6280
6281 2010-02-27  Richard Guenther  <rguenther@suse.de>
6282
6283         PR tree-optimization/43186
6284         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
6285         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
6286         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
6287         unroller iterations.
6288
6289 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
6290
6291         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
6292         required and i[34567]86-*-* targets don't support 64bit ISA.
6293
6294 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
6295
6296         PR ada/43096
6297         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
6298         the same alias set.
6299
6300 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
6301
6302         * config.gcc: Set the default arch at least to Prescott for
6303         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
6304         if SSE math is enabled.
6305
6306 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6307
6308         * diagnostic.c (diagnostic_initialize): Update.
6309         (diagnostic_report_diagnostic): Test inhibit_notes_p for
6310         informative notes.
6311         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
6312         (diagnostic_inhibit_notes): New.
6313         * toplev.c (process_options): inhibit notes with -fcompare-debug.
6314
6315 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6316
6317         PR c/20631
6318         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
6319         * doc/standards.texi: Likewise.
6320         * doc/extend.texi: Likewise.
6321         * doc/trouble.texi: Likewise.
6322         * doc/cppopts.texi: Likewise.
6323         * doc/install.texi: Likewise.
6324         * c.opt (std=c90,std=gnu90): New options.
6325         * c-opts.c (c_common_handle_option): Handle them.
6326
6327 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6328
6329         PR c/24577
6330         * c-decl.c (undeclared_variable): Use an informative note.
6331
6332 2010-02-26  Richard Guenther  <rguenther@suse.de>
6333
6334         PR tree-optimization/43186
6335         * gimple.h (gimple_fold): Remove.
6336         * gimple.c (gimple_fold): Remove.  Inline into single user ...
6337         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
6338         Try harder for conditions.
6339
6340 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
6341
6342         PR debug/43190
6343         * function.c (used_types_insert): Don't skip through named pointer
6344         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
6345         and it is different from the main variant's type.
6346
6347 2010-02-26  Nick Clifton  <nickc@redhat.com>
6348
6349         * config/rx/rx.md (sminsi3): Remove bogus alternative.
6350
6351 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
6352
6353         * config.gcc: Support --with-fpmath=sse for x86.
6354
6355         * config/i386/ssemath.h: New.
6356
6357         * doc/install.texi (--with-fpmath=sse): Documented.
6358
6359 2010-02-26  Richard Guenther  <rguenther@suse.de>
6360
6361         PR tree-optimization/43188
6362         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
6363         vector types of over-aligned element type.
6364
6365 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
6366
6367         PR target/43175
6368         * config/i386/i386.c (expand_vec_perm_blend): Use correct
6369         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
6370
6371 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6372
6373         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
6374
6375 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
6376
6377         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
6378         * var-tracking.c: Include diagnostic.h.
6379         (debug_dv): New function.
6380         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
6381
6382         PR debug/43160
6383         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
6384         (add_value_chain, add_value_chains, remove_value_chain,
6385         remove_value_chains): Handle DEBUG_EXPRs.
6386         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
6387
6388         PR debug/43161
6389         * regcprop.c (struct queued_debug_insn_change): New type.
6390         (struct value_data_entry): Add debug_insn_changes field.
6391         (struct value_data): Add n_debug_insn_changes field.
6392         (debug_insn_changes_pool): New variable.
6393         (free_debug_insn_changes, apply_debug_insn_changes,
6394         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
6395         (kill_value_one_regno): Call free_debug_insn_changes if needed.
6396         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
6397         fields.
6398         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
6399         changes for them.
6400         (copyprop_hardreg_forward_1): Don't call apply_change_group for
6401         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
6402         changes, call cprop_find_used_regs via note_stores.
6403         (copyprop_hardreg_forward): When copying vd from predecessor
6404         which has any queued DEBUG_INSN changes, make sure the pointers are
6405         cleared.  At the end call df_analyze and then if there are any
6406         DEBUG_INSN changes queued at the end of some basic block for still
6407         live registers, apply them.
6408         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
6409
6410 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
6411
6412         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
6413         (arm*-*-*): Ditto.
6414
6415 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
6416
6417         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
6418         targets.  Set the default with_cpu/with_arch from arch/cpu.
6419         Allow x86-64 and native for with_cpu/with_arch.
6420
6421 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
6422
6423         * ebitmap.c: Change calls to verify_popcount with calls to
6424         sbitmap_verify_popcount.
6425         (ebitmap_clear_bit): Fixed map->cacheindex test and
6426         map>cache update when bit clearing results in an empty
6427         element.
6428
6429 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
6430
6431         PR target/43154
6432         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
6433         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
6434         and support both V2DF and V2DI modes.
6435         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
6436         support both V2DF and V2DI modes.
6437         (general): Delete trailing whitespace from a few patterns.
6438
6439         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6440         V2DF/V2DI interleave high/low builtins.
6441
6442         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
6443         new VSX builtins.
6444
6445         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
6446         interleave high/low functions.
6447
6448 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
6449
6450         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
6451         #pragma extern_prefix.
6452
6453 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
6454
6455         PR debug/43166
6456         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
6457         BLKmode, assert op0 is a MEM and just adjust its mode.
6458
6459         PR debug/43165
6460         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
6461         if bitpos isn't multiple of mode's bitsize.
6462
6463 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6464
6465         * c.opt (-ftemplate-depth=): New.
6466         (-ftemplate-depth-): Deprecate.
6467         * optc-gen.awk: Handle -ftemplate-depth=.
6468         * opth-gen.awk: Likewise.
6469         * c-opts.c (c_common_handle_option): Likewise.
6470         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
6471
6472 2010-02-24  Jason Merrill  <jason@redhat.com>
6473
6474         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
6475
6476 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6477
6478         * cfg.c (alloc_aux_for_block): Remove inline.
6479         (alloc_aux_for_edge): Likewise.
6480
6481 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6482
6483         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
6484
6485 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6486
6487         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
6488         * config/i386/sol2-gas.h: New file.
6489         * config.gcc (i[34567]86-*-solaris2*): Use it.
6490
6491 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6492
6493         PR c/43128
6494         * c-typeck.c (ep_convert_and_check): New.
6495         (build_conditional_expr): Use it.
6496         (build_binary_op): Likewise.
6497
6498 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
6499
6500         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
6501
6502         PR debug/43150
6503         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
6504         bounds even for -O+.
6505         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
6506         expr needs to have DECL_NAME set.
6507
6508 2010-02-24  Nick Clifton  <nickc@redhat.com>
6509
6510         * config/mep/mep.c: Include gimple.h.
6511         (mep_function_uses_sp): Delete unused function.
6512         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
6513         parameters.  Use unsigned integers to count args.  Return a
6514         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
6515
6516 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
6517
6518         PR target/43107
6519         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
6520         greater or equal to nelt instead of 2 * nelt.
6521         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
6522         with nelt - 1.
6523
6524 2010-02-23  Jason Merrill  <jason@redhat.com>
6525
6526         PR debug/42800
6527         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
6528         in cfun->local_decls even if they have register types.
6529
6530         PR c++/42837
6531         * stor-layout.c (place_field): Don't warn about unnecessary
6532         DECL_PACKED if the type is packed.
6533
6534 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
6535
6536         PR target/43139
6537         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
6538         GOTOFF relocs, even when the base reg isn't pic pointer.
6539
6540 2010-02-23  Michael Matz  <matz@suse.de>
6541
6542         PR debug/43077
6543         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
6544         (expand_gimple_basic_block): Generate and use debug temps if there
6545         are debug uses left after the last real use of TERed ssa names.
6546         Unlink debug immediate uses when they are expanded.
6547
6548 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6549
6550         PR 43123
6551         * config/i386/i386.c (override_options): Reorganise to provide
6552         better error messages.
6553
6554 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6555
6556         PR middle-end/43083
6557         * graphite-scop-detection.c (create_single_exit_edge): Move
6558         the call to find_single_exit_edge to....
6559         (create_sese_edges): ...here.  Don't handle multiple edges
6560         exiting the function.
6561         (build_graphite_scops): Don't handle multiple edges
6562         exiting the function.
6563
6564 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6565
6566         PR middle-end/43097
6567         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
6568         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
6569
6570 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6571
6572         PR middle-end/43026
6573         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
6574
6575 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6576
6577         PR c++/43126
6578         * c-typeck.c (convert_arguments): Print declaration location.
6579         * c-common.c (validate_nargs): Rename as
6580         builtin_function_validate_nargs.
6581         (check_builtin_function_arguments): Update.
6582
6583 2010-02-22  Richard Guenther  <rguenther@suse.de>
6584
6585         PR lto/43045
6586         * tree-inline.c (declare_return_variable): Use the type of
6587         the call stmt lhs if available.
6588
6589 2010-02-22  Duncan Sands  <baldrick@free.fr>
6590
6591         * passes.c (register_pass): Always consider all pass lists when
6592         ref_pass_instance_number is zero.
6593
6594 2010-02-22  Richard Guenther  <rguenther@suse.de>
6595
6596         PR tree-optimization/42749
6597         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
6598         parameter.  Do arithmetic in the original type.
6599         (update_accumulator_with_ops): Likewise.
6600         (adjust_accumulator_values): Adjust.
6601
6602 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6603
6604         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
6605         (QI to BLKmode splitter): New splitter.
6606
6607 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
6608
6609         * config/i386/i386.c (initial_ix86_tune_features): Turn on
6610         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
6611
6612 2010-02-22  Richard Guenther  <rguenther@suse.de>
6613
6614         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
6615
6616 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
6617
6618         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
6619         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
6620         ($(T)crti.o, $(T)crtn.o): Remove rules.
6621
6622 2010-02-21  Tobias Burnus  <burnus@net-b.de>
6623
6624         PR fortran/35259
6625         * doc/invoke.texi (-fassociative-math): Document that this
6626         option is automatically enabled for Fortran.
6627
6628 2010-02-20  David S. Miller  <davem@davemloft.net>
6629
6630         * configure.ac: Test if linker and assembler properly support
6631         GOTDATA_OP relocations.
6632         * configure: Rebuild.
6633         * config.in: Likewise.
6634         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
6635         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
6636         (movsi_high_pic): Likewise.
6637         (movdi_lo_sum_pic): Likewise.
6638         (movdi_high_pic): Likewise.
6639         (movsi_pic_gotdata_op): New pattern.
6640         (movdi_pic_gotdata_op): Likewise.
6641         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
6642         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
6643
6644 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
6645
6646         PR target/43067
6647         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
6648         attribute to ssemul.
6649         (xop_mulv2div2di3_high): Ditto.
6650
6651 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6652
6653         PR c++/35669
6654         * c.opt (Wconversion-null): New option.
6655         * doc/invoke.texi (Wconversion-null): Document.
6656
6657 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6658
6659         * common.opt (Wlarger-than-): Add Undocumented.
6660
6661 2010-02-19  Mike Stump  <mikestump@comcast.net>
6662
6663         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
6664
6665 2010-02-19  Jason Merrill  <jason@redhat.com>
6666
6667         PR target/40332
6668         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
6669         * configure: Likewise.
6670
6671 2010-02-20  Alan Modra  <amodra@gmail.com>
6672
6673         PR middle-end/42344
6674         * cgraph.h (cgraph_make_decl_local): Declare.
6675         * cgraph.c (cgraph_make_decl_local): New function.
6676         (cgraph_make_node_local): Use it.
6677         * cgraphunit.c (cgraph_function_versioning): Likewise.
6678         * ipa.c (function_and_variable_visibility): Likewise.
6679
6680 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
6681
6682         PR bootstrap/43121
6683         * except.c (sjlj_emit_function_enter): Don't call
6684         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
6685         directly.
6686         * rtl.h (add_reg_br_prob_note): Remove prototype.
6687
6688 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6689
6690         PR 41779
6691         * c-common.c (conversion_warning): Remove widening conversions
6692         before checking the conversion of integers to reals.
6693
6694 2010-02-19  Mike Stump  <mikestump@comcast.net>
6695
6696         PR middle-end/43125
6697         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
6698
6699         PR objc/43061
6700         * cgraphunit.c (process_function_and_variable_attributes): Check
6701         DECL_PRESERVE_P instead of looking up attribute "used".
6702         * ipa-pure-const.c (check_decl): Likewise.
6703         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
6704         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
6705         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
6706         instead of attribute "used".
6707         * config/sol2-c.c (solaris_pragma_init): Likewise.
6708         (solaris_pragma_fini): Likewise.
6709
6710 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
6711
6712         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
6713         Use XCNEW instead of xcalloc.
6714         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
6715         XNEW instead of xmalloc.
6716         (get_fields): Use XNEWVEC instead of xmalloc.
6717
6718         PR debug/43084
6719         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
6720         populate vars array.
6721         (create_new_general_access): For debug stmts just reset value.
6722         (get_stmt_accesses): For accesses within debug stmts just record them
6723         using add_access_to_acc_sites instead of preventing the peeling or
6724         counting them as accesses.
6725
6726         PR middle-end/42233
6727         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
6728
6729 2010-02-19  Richard Guenther  <rguenther@suse.de>
6730
6731         PR tree-optimization/42916
6732         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
6733         instructions.
6734
6735 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
6736
6737         * configure.ac: Replace all uses of changequote in macro arguments
6738         with proper quoting.
6739
6740 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
6741
6742         PR middle-end/42233
6743         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
6744
6745 2010-02-19  Richard Guenther  <rguenther@suse.de>
6746
6747         PR tree-optimization/42944
6748         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
6749         test for aliasing with errno.
6750
6751 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
6752
6753         PR middle-end/42233
6754         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
6755         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
6756         * dojump.c: Include output.h.
6757         (inv): New inline function.
6758         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
6759         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
6760         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
6761         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
6762         argument, pass it down to other calls.
6763         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
6764         add REG_BR_PROB note to the conditional jump.
6765         * cfgexpand.c (add_reg_br_prob_note): Removed.
6766         (expand_gimple_cond): Don't call it, add the probability
6767         as last argument to jumpif_1/jumpifnot_1.
6768         * Makefile.in (dojump.o): Depend on output.h.
6769         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
6770         callers.
6771         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
6772         * stmt.c (do_jump_if_equal): Likewise.
6773         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
6774         * loop-unswitch.c (compare_and_jump_seq): Likewise.
6775         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
6776         Likewise.
6777         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
6778         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
6779         jumpifnot_1 callers.
6780         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
6781         callers.
6782         (store_expr): Adjust jumpifnot caller.
6783         (store_constructor): Adjust jumpif caller.
6784
6785         PR middle-end/42233
6786         * gimplify.c (gimple_boolify): For __builtin_expect call
6787         gimple_boolify also on its first argument.
6788
6789 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
6790
6791         * configure.ac (gnu-unique-object): Wrap regexps using [] in
6792         changequote block.
6793         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
6794         * configure: Regenerated.
6795
6796 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6797
6798         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
6799         lang_hooks.types_compatible_p instead of comptypes.
6800
6801 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
6802
6803         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
6804         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
6805         if __prefer_thumb__ is defined.
6806
6807 2010-02-18  Martin Jambor  <mjambor@suse.cz>
6808
6809         PR tree-optimization/43066
6810         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
6811         array with zero-sized element type.
6812
6813 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
6814
6815         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
6816         rtx, allocate struct var_loc_node here and return it to the
6817         caller, and only if it is actually needed.
6818         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
6819         move it earlier and return immediately if it returns NULL.
6820
6821 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
6822
6823         * config/sparc/gas.h: New file.  Restore
6824         TARGET_ASM_NAMED_SECTION to its ELF default.
6825         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
6826         check !HAVE_GNU_AS.
6827         * config/sparc/sparc.c (sparc_elf_asm_named_section):
6828         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
6829         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
6830         after sparc/sysv4.h.
6831
6832 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
6833
6834         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
6835
6836 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
6837
6838         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
6839         patterns from predicated pattern.
6840
6841 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
6842
6843         PR target/43103
6844         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
6845         for insn mnemonic suffix.
6846
6847 2010-02-17  Richard Guenther  <rguenther@suse.de>
6848
6849         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
6850         to loop PHI nodes.
6851
6852 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
6853
6854         PR debug/42918
6855         * caller-save.c (save_call_clobbered_regs): If BB ends with
6856         a DEBUG_INSN, move any notes in between last real insn and the last
6857         DEBUG_INSN after the last DEBUG_INSN.
6858
6859 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
6860
6861         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
6862         Fix return type.  Fix argument type.  Explain meaning of return value.
6863
6864 2010-02-16  Richard Guenther  <rguenther@suse.de>
6865
6866         PR tree-optimization/41043
6867         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
6868         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
6869         statements ...
6870         (vrp_visit_phi_node): ... but only for loop PHI nodes.
6871
6872 2010-02-16  Ira Rosen  <irar@il.ibm.com>
6873
6874         PR tree-optimization/43074
6875         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
6876         * tree-vect-loop.c (vect_analyze_loop_operations): Add
6877         vectorizable cycles in hybrid SLP check.
6878         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
6879
6880 2010-02-16  Richard Guenther  <rguenther@suse.de>
6881
6882         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
6883         (true_dependence): If memrefs_conflict_p computes must-alias
6884         trust it.  Move TBAA check after offset-based disambiguation.
6885         (canon_true_dependence): Likewise.
6886
6887 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
6888
6889         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
6890         * doc/invoke.texi: Document it.
6891         * var-tracking.c: Include toplev.h and params.h.
6892         (vt_find_locations): Return bool indicating success.  Compute
6893         hash sizes unconditionally.  Check new parameter, report.
6894         (variable_tracking_main_1): Check vt_find_locations results and
6895         retry.  Renamed from...
6896         (variable_tracking_main): ... this.  New wrapper to preserve
6897         flag_var_tracking_assignments.
6898         * Makefile.in (var-tracking.o): Adjust dependencies.
6899
6900 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
6901             Jakub Jelinek <jakub@redhat.com>
6902
6903         PR target/42854
6904         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
6905         if weak_import attribute is present.
6906         * config/darwin.c (machopic_select_section): Likewise.
6907
6908 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
6909
6910         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
6911         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
6912         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
6913         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
6914
6915         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
6916         types.
6917
6918         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
6919         Fix argument types.
6920
6921         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
6922         Rewrite text to refer to the names.
6923
6924 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
6925
6926         * config/i386/i386-builtin-types.def
6927         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
6928         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
6929         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
6930         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
6931         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
6932         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
6933         IX86_BUILTIN_VPERMIL2PS256.
6934         (MULTI_ARG_4_DF2_DI_I): Defined.
6935         (MULTI_ARG_4_DF2_DI_I1): Defined.
6936         (MULTI_ARG_4_SF2_SI_I): Defined.
6937         (MULTI_ARG_4_SF2_SI_I1): Defined.
6938         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
6939         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
6940         __builtin_ia32_vpermil2ps256.
6941         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
6942         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
6943         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
6944         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
6945         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
6946         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
6947         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
6948         CODE_FOR_xop_vpermil2v8sf3.
6949         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
6950         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
6951         * config/i386/xopintrin.h (_mm_permute2_pd): New.
6952         (_mm256_permute2_pd): New.
6953         (_mm_permute2_ps): New.
6954         (_mm256_permute2_ps): New.
6955
6956 2010-02-15  Nick Clifton  <nickc@redhat.com>
6957
6958         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
6959         boolean parameters.  Use emit_jump_insn when emitting a pop
6960         instruction containing a return insn.
6961         (push): Use 'true' rather than '1' as second parameter to F.
6962         (h8300_expand_prologue): Likewise.
6963         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
6964         (h8300_expand_epilogue): Likewise.
6965
6966 2010-02-15  Richard Guenther  <rguenther@suse.de>
6967
6968         PR middle-end/43068
6969         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
6970         if that is zero.
6971
6972 2010-02-15  Nick Clifton  <nickc@redhat.com>
6973
6974         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
6975         delta.
6976
6977 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
6978
6979         * intl.c (fake_ngettext): New function.
6980         * intl.h (fake_ngettext): Declare.
6981         (ngettext): Define macro.
6982         * collect2.c (notice_translated): New function.
6983         (main): Use notice_translated and ngettext.
6984         * collect2.h (notice_translated): Declare.
6985
6986 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
6987
6988         * reorg.c (delete_computation): Comment fixes.
6989         * caller-save.c (setup_save_areas): Idem.
6990         * sel-sched-dump.c (dump_lv_set): Idem.
6991         * rtl.def: Idem.
6992
6993 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6994
6995         * config/s390/s390.c (s390_sched_init): New function.
6996         (TARGET_SCHED_INIT): Target hook defined.
6997
6998 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
6999             Jack Howarth  <howarth@bromo.med.uc.edu>
7000             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7001
7002         PR target/42982
7003         Partial revert of unintended change in fix for PR41605.
7004         * config/darwin.h: Fix typo.
7005         * config/darwin9.h: Same.
7006
7007 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
7008
7009         * c-pch.c (pch_init): Clear v.
7010
7011 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
7012
7013         PR middle-end/42930
7014         * graphite-scop-detection.c (graphite_can_represent_scev): Call
7015         graphite_can_represent_init for MULT_EXPR.
7016
7017 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
7018
7019         PR middle-end/42914
7020         PR middle-end/42530
7021         * graphite-sese-to-poly.c (remove_phi): New.
7022         (translate_scalar_reduction_to_array): Call remove_phi.
7023
7024 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
7025
7026         PR middle-end/42771
7027         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
7028         * graphite-clast-to-gimple.h (gloog): Update declaration.
7029         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
7030         * graphite-poly.h (struct poly_bb): Add missing comments.
7031         (struct scop): Add poly_scop_p field.
7032         (POLY_SCOP_P): New.
7033         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
7034         * graphite.c (graphite_transform_loops): Build the polyhedral
7035         representation for each scop before code generation.
7036         * sese.c (rename_variables_in_operand): Removed.
7037         (rename_variables_in_expr): Return the renamed expression.
7038         (rename_sese_parameters): New.
7039         * sese.h (rename_sese_parameters): Declared.
7040
7041 2010-02-11  Richard Guenther  <rguenther@suse.de>
7042
7043         PR tree-optimization/42998
7044         * tree-ssa-pre.c (create_expression_by_pieces): Treat
7045         POINTER_PLUS_EXPR properly.
7046
7047 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
7048             Changpeng Fang  <changpeng.fang@amd.com>
7049
7050         PR middle-end/40886
7051         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
7052         the cost of an IV candidate when the IV is used in a test against zero.
7053
7054         * gcc.dg/tree-ssa/ivopts-3.c: New.
7055
7056 2010-02-11  Richard Guenther  <rguenther@suse.de>
7057
7058         PR lto/41664
7059         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
7060         pointer-vs-decl case by swapping refs.  Handle some cases
7061         of pointer-vs-decl disambiguations more conservatively.
7062         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
7063         to false after expanding.
7064
7065 2010-02-11  Richard Guenther  <rguenther@suse.de>
7066
7067         PR driver/43021
7068         * gcc.c (process_command): Handle LTO file@offset case more
7069         appropriately.
7070
7071 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
7072
7073         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
7074         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
7075         of DEBUG_INSNs.
7076         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
7077
7078         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
7079         if MEM's mode size isn't DWARF2_ADDR_SIZE.
7080         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
7081         Optimize eq/ne comparisons when both arguments are known to be
7082         zero-extended.
7083         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
7084         Don't mask operands unnecessarily if they are known to be already
7085         zero-extended.
7086
7087 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
7088
7089         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
7090         instead of loop.
7091
7092 2010-02-10  Richard Guenther  <rguenther@suse.de>
7093
7094         PR tree-optimization/43017
7095         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
7096         for wrapping signed arithmetic.
7097
7098 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
7099
7100         PR debug/43010
7101         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
7102         if no debug info should be emitted for it.
7103
7104 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
7105
7106         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
7107         note when flag_exceptions is set.
7108
7109 2010-02-10  Duncan Sands  <baldrick@free.fr>
7110
7111         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
7112
7113 2010-02-10  Richard Guenther  <rguenther@suse.de>
7114
7115         PR c/43007
7116         * tree.c (get_unwidened): Handle constants.
7117         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
7118
7119 2010-02-10  Martin Jambor  <mjambor@suse.cz>
7120
7121         PR lto/42985
7122         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
7123         check for variable argument counts independently.
7124
7125 2010-02-10  Christian Bruel  <christian.bruel@st.com>
7126
7127         PR target/42841
7128         * config/sh/sh.c (find_barrier): Increase length for non delayed
7129         conditional branches.
7130
7131 2010-02-10  Christian Bruel  <christian.bruel@st.com>
7132
7133         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
7134
7135 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
7136
7137         * builtins.c (set_builtin_user_assembler_name): Also handle
7138         ffs if int is smaller than word.
7139
7140 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
7141
7142         PR middle-end/42973
7143         * ira-conflicts.c (get_dup): Remove.
7144         (process_reg_shuffles): Add new parameter.  Use it as an
7145         additional guard for copy generation.
7146         (add_insn_allocno_copies): Rewrite.
7147
7148 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
7149
7150         * common.opt (fsched2-use-traces): Preserved for backward
7151         compatibility.
7152         * doc/invoke.texi: Remove the documentation about option
7153         -fsched2-use-traces.
7154         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
7155         flag_sched2_use_traces.
7156         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
7157         the backward compatibility flag section.
7158
7159 2010-02-09  Richard Guenther  <rguenther@suse.de>
7160
7161         PR tree-optimization/43008
7162         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
7163         make HEAP variables initialized from global memory if they
7164         are not known builtin functions.
7165         (find_func_aliases): Adjust.
7166
7167 2010-02-09  Richard Guenther  <rguenther@suse.de>
7168
7169         PR tree-optimization/43000
7170         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
7171         arithmetic manually.
7172
7173 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
7174
7175         PR tree-optimization/42931
7176         * tree-loop-linear.c (try_interchange_loops): Don't call
7177         double_int_mul if estimated_loop_iterations failed.
7178
7179 2010-02-08  Martin Jambor  <mjambor@suse.cz>
7180
7181         PR middle-end/42898
7182         * tree-sra.c (build_accesses_from_assign): Do not mark in
7183         should_scalarize_away_bitmap if stmt has volatile ops.
7184         (sra_modify_assign): Do not process assigns piecemeal if if stmt
7185         has volatile ops.
7186
7187 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
7188
7189         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
7190
7191 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
7192
7193         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
7194         before the pattern.
7195
7196 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
7197
7198         PR middle-end/42946
7199         * df-core.c (df_finish_pass): Change type of saved_flags to int.
7200
7201 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
7202
7203         PR middle-end/42988
7204         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
7205         to unknown_dependence.
7206         (graphite_legal_transform_dr): Handle the unknown_dependence.
7207         (graphite_carried_dependence_level_k): Same.
7208
7209 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
7210
7211         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
7212
7213 2010-02-07  Richard Guenther  <rguenther@suse.de>
7214
7215         PR middle-end/42991
7216         * expr.c (get_inner_reference): Always initialize *pbitsize.
7217
7218 2010-02-07  Richard Guenther  <rguenther@suse.de>
7219
7220         PR middle-end/42956
7221         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
7222         new ARRAY_REFs on variable size element or minimal index arrays.
7223         Complete.
7224         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
7225         gimple_fold_indirect_ref.
7226
7227 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
7228
7229         PR target/42957
7230         * arm.c (arm_override_options): Just return if the user has specified
7231         an invalid fpu name.
7232
7233 2010-02-03  Jason Merrill  <jason@redhat.com>
7234
7235         PR c++/42870
7236         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
7237         i386_pe_maybe_record_exported_symbol.
7238
7239 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
7240
7241         PR target/42924
7242         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
7243         (pa_delegitimize_address): New function.
7244
7245 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
7246
7247         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
7248         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
7249
7250 2010-02-05  Richard Guenther  <rguenther@suse.de>
7251
7252         PR lto/42762
7253         * lto-streamer-in.c (get_resolution): Deal with references
7254         to undefined functions.
7255
7256 2010-02-05  Richard Guenther  <rguenther@suse.de>
7257
7258         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
7259         (fold_const_aggregate_ref): Likewise.
7260         (ccp_fold_stmt): Substitute loads.
7261         (maybe_fold_reference): Verify types before substituting.
7262         Unshare properly.
7263         (fold_gimple_assign): Unshare properly.
7264         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
7265
7266 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
7267
7268         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
7269         for rs6000_gen_cell_microcode.
7270
7271 2010-02-04  Richard Guenther  <rguenther@suse.de>
7272
7273         PR rtl-optimization/42952
7274         * dse.c (const_or_frame_p): Remove MEM handling.
7275
7276 2010-02-04  Nick Clifton  <nickc@redhat.com>
7277
7278         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7279         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
7280         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
7281         (mn10300_asm_output_mi_thunk): New function.
7282         (mn10300_can_output_mu_thunk): New function.
7283         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
7284         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
7285         (FUNCTION_ARG): Delete incorrect comment.
7286
7287 2010-02-03  Jason Merrill  <jason@redhat.com>
7288
7289         PR c++/40138
7290         * fold-const.c (operand_equal_p): Handle erroneous types.
7291
7292 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
7293
7294         * config/h8300/h8300.md (can_delay): Fix attibute condition.
7295
7296 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
7297
7298         PR rtl-optimization/42941
7299         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
7300         of xmalloc.
7301
7302 2010-02-03  Jason Merrill  <jason@redhat.com>
7303
7304         PR c++/35652
7305         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
7306
7307 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
7308
7309         PR debug/42896
7310         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
7311         (cselib_reset_table): Renamed from...
7312         (cselib_reset_table_with_next_value): ... this.
7313         (cselib_get_next_uid): Renamed from...
7314         (cselib_get_next_unknown_value): ... this.
7315         * cselib.c (next_uid): Renamed from...
7316         (next_unknown_value): ... this.
7317         (cselib_clear_table): Adjust.
7318         (cselib_reset_table): Adjust.  Renamed from...
7319         (cselib_reset_table_with_next_value): ... this.
7320         (cselib_get_next_uid): Adjust.  Renamed from...
7321         (cselib_get_next_unknown_value): ... this.
7322         (get_value_hash): Use hash.
7323         (cselib_hash_rtx): Likewise.
7324         (new_cselib_val): Adjust.  Set and dump uid.
7325         (cselib_lookup_mem): Pass next_uid as hash.
7326         (cselib_subst_to_values): Likewise.
7327         (cselib_log_lookup): Dump uid.
7328         (cselib_lookup): Pass next_uid as hash.  Adjust.
7329         (cselib_process_insn): Adjust.
7330         (cselib_init): Initialize next_uid.
7331         (cselib_finish): Adjust.
7332         (dump_cselib_table): Likewise.
7333         * dse.c (canon_address): Dump value uid.
7334         * print-rtl.c (print_rtx): Print value uid.
7335         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
7336         (dvuid): New type.
7337         (dv_uid): New function, sort of renamed from...
7338         (dv_htab_hash): ... this, reimplemented in terms of it and...
7339         (dv_uid2hash): ... this.  New.
7340         (variable_htab_eq): Drop excess assertions.
7341         (tie_break_pointers): Removed.
7342         (canon_value_cmp): Compare uids.
7343         (variable_post_merge_New_vals): Print uids.
7344         (vt_add_function_parameters): Adjust.
7345         (vt_initialize): Reset table.  Adjust.
7346
7347 2010-02-03  Richard Guenther  <rguenther@suse.de>
7348
7349         PR tree-optimization/42944
7350         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
7351         (call_may_clobber_ref_p_1): Likewise.  Properly handle
7352         malloc and calloc clobbering errno.
7353
7354 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
7355
7356         * doc/invoke.texi: Fix name of sched1 dump.
7357
7358         * opts.c (decode_options): Set flag_tree_switch_conversion
7359         only conditionally on optimize >= 2.
7360
7361         * gcse.c: Assorted comment fixes in pass description.
7362
7363 2010-02-03  Anthony Green  <green@moxielogic.com>
7364
7365         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
7366         nop padding in order to maintain alignment of storage location of
7367         target function address.
7368         (moxie_trampoline_init): Store target function address at newly
7369         aligned location.
7370         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
7371         to 32.
7372         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
7373
7374 2010-02-03  Richard Guenther  <rguenther@suse.de>
7375
7376         PR middle-end/42927
7377         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
7378
7379 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7380
7381         * config.gcc: Reenable check for obsolete targets.
7382         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
7383         mips-sgi-irix6.[0-4]*.
7384
7385 2010-02-02  Nick Clifton  <nickc@redhat.com>
7386
7387         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
7388         constant size of 4 as being the same as 0.
7389         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
7390         can take values in the range 0..4.
7391
7392 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
7393
7394         PR java/41991
7395         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
7396         as _darwin10_Unwind_FindEnclosingFunction().
7397         * libgcc-libsystem.ver: New.
7398
7399 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
7400
7401         PR target/41399
7402         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
7403         implicitly set registers.
7404
7405 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
7406
7407         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
7408         (arm_override_options): Allow automatic selection of the thread
7409         pointer register if thumb2.
7410         (legitimize_pic_address): Improve code sequences for Thumb2.
7411         (arm_call_tls_get_addr): Likewise.
7412         (legitimize_tls_address): Likewise.
7413         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
7414         (pic_load_addr_32bit): ... this.  New named pattern.
7415         * thumb2.md (pic_load_addr_thumb2): Delete.
7416         (pic_load_dot_plus_four): Delete.
7417         (tls_load_dot_plus_four): New named pattern.
7418
7419 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7420
7421         PR libgomp/29986
7422         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
7423         Document fix for TLS bug.
7424
7425 2010-01-31  Richard Guenther  <rguenther@suse.de>
7426
7427         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
7428         conservatively correct.
7429
7430 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7431
7432         PR target/42850
7433         Revert:
7434         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7435
7436         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
7437
7438 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7439
7440         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
7441
7442 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
7443
7444         * config.gcc: Adjust order of makefile fragments for mingw targets.
7445
7446 2010-01-31  Richard Guenther  <rguenther@suse.de>
7447
7448         PR middle-end/42898
7449         * gimplify.c (gimplify_init_constructor): For volatile LHS
7450         initialize a temporary.
7451
7452 2010-01-31  Matthias Klose  <doko@ubuntu.com>
7453
7454         * configure.ac: Fix __stack_chk_fail check for cross builds configured
7455         --with-headers
7456         * configure: Regenerate.
7457
7458 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
7459
7460         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
7461         the same alias set and their sizes different constantness.
7462         (aliasing_component_refs_p): Revert 2009-10-24 change.
7463
7464 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7465
7466         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
7467         unused.
7468
7469 2010-01-29  Richard Guenther  <rguenther@suse.de>
7470
7471         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
7472         Assert we successfully updated the call.
7473
7474 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
7475
7476         PR rtl-optimization/42889
7477         * df.h (df_set_bb_dirty_nonlr): New prototype.
7478         * df-core.c (df_set_bb_dirty_nonlr): New function.
7479         * df-scan.c (df_insn_rescan): Call it instead of
7480         df_set_bb_dirty for DEBUG_INSNs.
7481
7482 2010-01-29  Richard Guenther  <rguenther@suse.de>
7483
7484         PR middle-end/37448
7485         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
7486         quadratic behavior in most cases.
7487
7488 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
7489
7490         PR target/42891
7491         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
7492         in the call to gen_x86_movsicc_0_m1.
7493
7494 2010-01-28  Richard Guenther  <rguenther@suse.de>
7495
7496         PR tree-optimization/42871
7497         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
7498
7499 2010-01-28  Richard Guenther  <rguenther@suse.de>
7500
7501         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
7502         into call arguments.
7503
7504 2010-01-28  Richard Guenther  <rguenther@suse.de>
7505
7506         PR middle-end/42883
7507         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
7508         the forwarder if the destination is an EH landing pad.
7509
7510 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
7511
7512         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
7513         block list passed to gimple_duplicate_sese_tail.
7514         (parallelize_loops): Avoid parallelization when the function
7515         has_nonlocal_label.
7516         Avoid parallelization when the preheader is IRREDUCIBLE.
7517         Try to optimize when estimated_loop_iterations_int is unresolved.
7518         Add the loop's location to the dump file.
7519         * tree-cfg.c (add_phi_args_after_redirect): Remove.
7520         (gimple_duplicate_sese_tail): Remove the check for the latch.
7521         Redirect nexits to the exit block.
7522         Remove handling of the incoming edges to the latch.
7523         Redirect the backedge from the copied latch to the exit bb.
7524
7525 2010-01-28  Michael Matz  <matz@suse.de>
7526
7527         PR target/42881
7528         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
7529         Wrap force_reg into a sequence, emit it before user.
7530
7531 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
7532
7533         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
7534         (arm_rev): New.
7535         (arm_legacy_rev): Likewise.
7536         (thumb_legacy_rev): Likewise.
7537
7538 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
7539
7540         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
7541         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
7542         on MEM's address failed, try avoid_constant_pool_reference and
7543         recurse if it returned something different.
7544         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
7545         address, try avoid_constant_pool_reference and recurse if it
7546         returned something different.
7547         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
7548         address and avoid_constant_pool_reference returned something
7549         different, don't set have_address.
7550
7551 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
7552
7553         PR debug/42861
7554         * var-tracking.c (val_store): Add modified argument, obey it.
7555         Adjust callers.
7556         (count_uses): Move down logging of main.
7557         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
7558         don't need resolution.
7559         (emit_notes_in_bb): Likewise.
7560
7561 2010-01-27  Richard Guenther  <rguenther@suse.de>
7562
7563         PR middle-end/42878
7564         * tree-inline.c (remap_decl): Delay remapping of SSA name
7565         default definitions until we need them.
7566
7567 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
7568
7569         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
7570         (rs6000_delegitimize_address): New function.
7571
7572         * config/s390/s390.c (s390_delegitimize_address): Call
7573         delegitimize_mem_from_attrs.
7574
7575         PR middle-end/42874
7576         * tree-inline.c (cannot_copy_type_1): Removed.
7577         (copy_forbidden): Don't forbid copying of functions containing
7578         records/unions with variable length fields.
7579
7580 2010-01-27  Christian Bruel  <christian.bruel@st.com>
7581
7582         Revert:
7583         PR target/42841
7584         * config/sh/sh.c (find_barrier): Increase length for non delayed
7585         conditional branches.
7586
7587 2010-01-27  Matthias Klose  <doko@ubuntu.com>
7588
7589         * configure.ac (gnu-unique-object): Fix ldd version check.
7590         * configure: Regenerate.
7591
7592 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7593
7594         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
7595         HAVE_GNU_AS value.
7596         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
7597         Test for HAVE_GNU_AS value.
7598
7599 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7600
7601         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
7602         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
7603         INT64_TYPE): Define.
7604         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
7605         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
7606         INT_LEAST64_TYPE): Define.
7607         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
7608         UINT_LEAST64_TYPE): Define.
7609         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
7610         INT_FAST64_TYPE): Define.
7611         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
7612         UINT_FAST64_TYPE): Define.
7613         (INTMAX_TYPE, UINTMAX_TYPE): Define.
7614         (INTPTR_TYPE, UINTPTR_TYPE): Define.
7615         (SIG_ATOMIC_TYPE): Define.
7616
7617 2010-01-26  Richard Guenther  <rguenther@suse.de>
7618
7619         * df-scan.c (df_scan_set_bb_info): Remove assert.
7620         (df_insn_rescan_debug_internal): Merge asserts.
7621         (df_install_ref): Likewise.
7622         (df_mark_reg): Use bitmap_set_range.
7623         (df_hard_reg_used_p): Remove assert.
7624         (df_hard_reg_used_count): Likewise.
7625
7626 2010-01-26  Richard Guenther  <rguenther@suse.de>
7627
7628         PR rtl-optimization/42685
7629         * web.c (web_main): Ignore DEBUG_INSNs.
7630
7631 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
7632
7633         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
7634
7635         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
7636         Fix types of fndecl and arglist parameters.
7637
7638 2010-01-26  Richard Guenther  <rguenther@suse.de>
7639
7640         PR middle-end/42806
7641         * tree-eh.c (unsplit_eh): Skip debug insns.
7642
7643 2010-01-26  Richard Guenther  <rguenther@suse.de>
7644
7645         PR tree-optimization/42250
7646         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
7647
7648 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
7649
7650         PR fortran/42866
7651         * omp-low.c (expand_omp_sections): Only use single_pred if
7652         l2_bb is single_pred_p.
7653
7654 2010-01-25  Christian Bruel  <christian.bruel@st.com>
7655
7656         PR target/42841
7657         * config/sh/sh.c (find_barrier): Increase length for non delayed
7658         conditional branches.
7659         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
7660
7661 2010-01-24  David S. Miller  <davem@davemloft.net>
7662
7663         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
7664         define if not using GAS.
7665         * config/sparc/sparc.c (sparc_elf_asm_named_section):
7666         Likewise.  Delete SECTION_MERGE code, which is only applicable
7667         when using GAS.
7668
7669 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
7670
7671         PR c++/42748
7672         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
7673         mangling of va_list in system headers.
7674
7675 2010-01-23  Toon Moene  <toon@moene.org>
7676
7677         * tree-predcom.c (combine_chains): Return NULL, not false.
7678
7679 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
7680
7681         * tree-loop-distribution.c (distribute_loop): Fix declaration and
7682         initialization of variable res to agree with return type.
7683
7684 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
7685
7686         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
7687         * tree-sra.c: Add include of expr.h.
7688
7689 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
7690
7691         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
7692         insert the debug stmt on the single non-EH edge from the stmt.
7693
7694 2010-01-22  Richard Henderson  <rth@redhat.com>
7695
7696         PR tree-opt/42833
7697         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
7698         the RHS until after generate_subtree_copies has insertted its
7699         code before the current statement.
7700
7701 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
7702
7703         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
7704
7705         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
7706
7707 2010-01-21  Martin Jambor  <mjambor@suse.cz>
7708
7709         PR tree-optimization/42585
7710         * tree-sra.c (struct access): New field grp_total_scalarization.
7711         (dump_access): Dump the new field.
7712         (should_scalarize_away_bitmap): New variable.
7713         (cannot_scalarize_away_bitmap): Likewise.
7714         (sra_initialize): Allocate new bitmaps.
7715         (sra_deinitialize): Free new bitmaps.
7716         (create_access_1): New function.
7717         (create_access): Parts moved to create_access_1.
7718         (type_consists_of_records_p): New function.
7719         (completely_scalarize_record): Likewise.
7720         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
7721         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
7722         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
7723         access.
7724         (analyze_all_variable_accesses): Completely scalarize small eligible
7725         records.
7726
7727 2010-01-21  Martin Jambor  <mjambor@suse.cz>
7728
7729         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
7730
7731 2010-01-21  Andrew Haley  <aph@redhat.com>
7732
7733         * gcc.c (process_command): Move lang_specific_driver before
7734         setting cc_libexec_prefix.
7735
7736 2010-01-21  Richard Guenther  <rguenther@suse.de>
7737
7738         PR middle-end/19988
7739         * fold-const.c (negate_expr_p): Pretend only negative
7740         real constants are easily negatable.
7741
7742 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
7743             Jason Merrill  <jason@redhat.com>
7744
7745         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
7746         (TYPE_TRANSPARENT_AGGR): this, for union and record.
7747         * calls.c (initialize argument_information): Handle it.
7748         * c-common.c (handle_transparent_union_attribute): Use new name.
7749         * c-decl.c (finish_struct): Ditto.
7750         * c-typeck.c (type_lists_compatible_p): Ditto.
7751         (convert_for_assignment): Use new name and also handle record.
7752         * function.c (aggregate_value_p): Handle it.
7753         (pass_by_reference): Ditto.
7754         (assign_parm_data_types): Ditto.
7755         * print-tree.c (print_node): Ditto.
7756         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
7757         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
7758         * tree.c (first_field): New fn.
7759
7760 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
7761
7762         PR target/42818
7763         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
7764         even when linking statically, for now.
7765
7766 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
7767
7768         PR debug/42715
7769         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
7770         without a cselib val.
7771         (count_uses): Accept MO_VAL_SET with no val on stores.
7772         (add_stores): Likewise.
7773
7774 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
7775
7776         * var-tracking.c (check_value_val): Add a compile time assertion.
7777         (dv_is_decl_p): Simplify.
7778         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
7779         gcc_assert if ENABLE_CHECKING.
7780
7781 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
7782
7783         PR debug/42782
7784         * var-tracking.c: Include tree-flow.h.
7785         (mem_dies_at_call): New.
7786         (dataflow_set_preserve_mem_locs): Use it.
7787         (dataflow_set_remove_mem_locs): Likewise.
7788         (dump_var): Renamed from dump_variable.  Adjust all callers.
7789         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
7790         * Makefile.in (var-tracking.o): Adjust deps.
7791
7792 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
7793
7794         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
7795
7796 2010-01-20  Richard Guenther  <rguenther@suse.de>
7797
7798         PR tree-optimization/42717
7799         * tree-ssa-dce.c (get_live_post_dom): Remove.
7800         (forward_edge_to_pdom): Take an arbitrary edge to copy
7801         degenerate PHI args from.
7802         (remove_dead_stmt): Use the first post-dominator even if it
7803         does not contain live statements as redirection destination.
7804
7805 2010-01-20  Richard Guenther  <rguenther@suse.de>
7806
7807         * tree-inline.c (estimate_num_insns): Handle EH builtins.
7808
7809 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
7810
7811         * sel-sched.c (create_speculation_check): Remove set but not used
7812         variable twin.
7813         (try_transformation_cache): Remove set but not used variable ds.
7814         (calculate_privileged_insns): Remove set but not used variables
7815         cur_insn and min_spec_insn.
7816         (find_best_expr): Remove set but not used variable avail_n.
7817         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
7818         variable e.
7819         * cgraphunit.c (assemble_thunk): Remove set but not used variable
7820         false_label.
7821         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
7822         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
7823         new_scop_exit_edge.
7824
7825 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
7826
7827         PR bootstrap/42786
7828         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
7829         cpu types.  Add support for *-sse3 cpu types.
7830         (x86_64-*-*): Ditto.
7831
7832 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
7833
7834         PR middle-end/42803
7835         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
7836         argument, call initializer_constant_valid_p_1 instead of
7837         initializer_constant_valid_p, pass CACHE to it, return NULL
7838         immediately if first call returns NULL.
7839         (initializer_constant_valid_p_1): New function.
7840         (initializer_constant_valid_p): Use it.
7841
7842 2010-01-20  Thomas Quinot  <quinot@adacore.com>
7843
7844         * tree.def (PLACEHOLDER_EXPR): Fix comment.
7845
7846 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
7847
7848         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
7849         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
7850         (loc_list_from_tree): Don't handle unsigned division.  Handle
7851         signed modulo using DW_OP_{over,over,div,mul,minus}.
7852         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
7853         modulo instead of signed.
7854
7855 2010-01-20  DJ Delorie  <dj@redhat.com>
7856
7857         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
7858         (Fpa): Pass it
7859         (h8300_emit_stack_adjustment): Propogate it.
7860         (push): Pass it.
7861         (h8300_expand_prologue): Likewise.
7862         (h8300_expand_epilogue): Likewise.
7863
7864 2010-01-19  Michael Matz  <matz@suse.de>
7865
7866         PR tree-optimization/41783
7867         * tree-data-ref.c (toplevel): Include flags.h.
7868         (dump_data_dependence_relation):  Also dump the inputs if the
7869         result will be unknown.
7870         (split_constant_offset_1): Look through some conversions.
7871         * tree-predcom.c (determine_roots_comp): Restart a new chain if
7872         the offset from last element is too large.
7873         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
7874         (reassociate_to_the_same_stmt): Handle vector registers.
7875         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
7876         (e.g. conversions).
7877         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
7878         wide_prolog_niters argument, emit widening instructions.
7879         (vect_do_peeling_for_alignment): Adjust caller, use widened
7880         variant of the iteration cound.
7881         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
7882
7883 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7884
7885         PR target/38697
7886         * config/arm/neon-testgen.m (emit_automatics): New parameter
7887         features. Adjust for Fixed_return_reg feature.
7888         (test_intrinsic): Call emit_automatics with new feature.
7889         * config/arm/neon.ml: Update copyright years.
7890         (features): New Fixed_return_reg feature.
7891         (ops): Update feature for Vget_low.
7892
7893 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
7894
7895         PR tree-optimization/42719
7896         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
7897         stmt uses.
7898
7899         PR debug/42728
7900         * fwprop.c (all_uses_available_at): Return false if def_set dest
7901         is a REG that is used in def_insn.
7902
7903 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
7904
7905         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
7906
7907         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
7908         Add argument names.
7909
7910         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
7911
7912         * target.h (struct gcc_target) <secondary_reload>: Change type
7913         of last argument to secondary_reload_info *.
7914
7915 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
7916
7917         PR target/42774
7918         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
7919         memory references with unaligned offsets.  Remove CQImode handling.
7920         (unaligned_memory_operand): Return 1 for memory references with
7921         unaligned offsets.  Remove CQImode handling.
7922
7923 2010-01-18  Richard Guenther  <rguenther@suse.de>
7924
7925         PR middle-end/39954
7926         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
7927         builtin calls.
7928
7929 2010-01-18  Richard Guenther  <rguenther@suse.de>
7930
7931         PR tree-optimization/42781
7932         * tree-ssa-structalias.c (find_what_var_points_to): Skip
7933         restrict processing only if the original variable was artificial.
7934
7935 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
7936
7937         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
7938         find number of popped argument bytes.
7939
7940         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
7941         Fix the text that describes the return value for invalid insns.
7942
7943         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
7944
7945         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
7946         Clarify what 'cost of the -dependence' is.  Fix quoting.
7947
7948         * toplev.c (default_get_pch_validity): Rename argument to "sz".
7949         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
7950
7951 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
7952
7953         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
7954         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
7955
7956 2010-01-17  Richard Guenther  <rguenther@suse.de>
7957
7958         PR middle-end/42248
7959         * function.c (split_complex_args): Take a VEC to modify.
7960         (assign_parms_augmented_arg_list): Build a VEC instead of
7961         a chain of PARM_DECLs.
7962         (assign_parms_unsplit_complex): Take a VEC of arguments.
7963         Do not fixup unmodified parms.
7964         (assign_parms): Deal with the VEC.
7965         (gimplify_parameters): Likewise.
7966
7967 2010-01-17  Richard Guenther  <rguenther@suse.de>
7968
7969         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
7970         node existence check.
7971         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
7972         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
7973         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
7974         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
7975         (gimple_execute_on_growing_pred): Likewise.
7976
7977 2010-01-17  Richard Guenther  <rguenther@suse.de>
7978
7979         PR tree-optimization/42773
7980         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
7981         (compute_antic_aux): Likewise.
7982         (compute_partial_antic_aux): Likewise.
7983
7984 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
7985
7986         PR debug/42767
7987         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
7988         and US_TRUNCATE.
7989
7990 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
7991
7992         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
7993         appearance.
7994
7995         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
7996         Fix markup for strict argument.
7997
7998         (TARGET_SCHED_REORDER2): Fix argument types.
7999
8000         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
8001         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
8002
8003         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
8004         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
8005
8006         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
8007         Add argument name.
8008
8009         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
8010         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
8011         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
8012         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
8013         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
8014
8015         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
8016
8017         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
8018
8019         (TARGET_ASM_RELOC_RW_MASK): Add return type.
8020         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
8021
8022         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
8023
8024         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
8025         Use prototype.
8026
8027         (TARGET_ASM_NAMED_SECTION): Fix argument list.
8028
8029         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
8030         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
8031
8032         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
8033
8034         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
8035
8036         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
8037         referring to it.  Fix language.
8038
8039         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
8040
8041         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
8042
8043         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
8044
8045         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
8046
8047         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
8048         '@var{stream}.  Remove stray 'and'.
8049
8050         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
8051
8052         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
8053
8054         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
8055
8056         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
8057         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
8058
8059         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
8060         Fix description of return value.
8061         Rename argument "sz" to "len."
8062
8063         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
8064         Clarify meaning of 'true' return value.
8065
8066         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
8067
8068         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
8069         rep_mode versus mode_rep.
8070
8071         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
8072
8073         (TARGET_BUILTIN_DECL): Fix name.
8074
8075         (TARGET_COMMUTATIVE_P): Fix type of first argument.
8076
8077         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
8078
8079         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
8080
8081         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
8082
8083         (TARGET_RELAXED_ORDERING): Use @deftypevr.
8084
8085         (TARGET_GET_DRAP_RTX): Note that this is a hook.
8086         Clarify language.
8087
8088         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
8089         Rename argument tm_fn to md_fn.
8090
8091         (TARGET_OPTION_PRINT): Fix argument list.
8092
8093 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
8094
8095         PR target/42664
8096         * config/i386/i386.c (ix86_fixup_binary_operands):
8097         Revert FMA4 fixup of operands.
8098
8099 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8100
8101         PR gcc/42525
8102         * Makefile.in (write_entries_to_file, install-plugin):
8103         Use \012 instead of \n with tr.
8104
8105 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
8106
8107         * configure.ac (HAVE_AS_REF): New C macro.
8108         * configure: Regenerate.
8109         * config.in: Likewise.
8110         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
8111         if HAVE_AS_REF.
8112         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
8113         if HAVE_AS_REF.
8114
8115 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
8116
8117         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
8118
8119         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
8120
8121         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
8122
8123         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
8124
8125         (TARGET_IN_SMALL_DATA_P): Fix argument type.
8126
8127         (TARGET_BINDS_LOCAL_P): Fix argument type.
8128
8129         (TARGET_ASM_FILE_END): Use prototype.
8130
8131         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
8132
8133         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
8134
8135         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
8136
8137         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
8138
8139         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
8140         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
8141
8142         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
8143         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
8144
8145         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
8146         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
8147         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
8148         (TARGET_ADDR_SPACE_CONVERT): Likewise.
8149
8150         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
8151
8152         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
8153
8154         (TARGET_INIT_BUILTINS): Use prototype.
8155
8156         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
8157         Put 'const char *' in braces.  Fix parameter types.
8158         (TARGET_INVALID_CONVERSION): Fix parameter types.
8159         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
8160         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
8161
8162         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
8163         Fix argument type.
8164
8165         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
8166
8167         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
8168
8169 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
8170
8171         * doc/tm.texi (TARGET_HELP): Fix return type.
8172
8173         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
8174         in braces.  Fix argument types.
8175
8176         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
8177
8178         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
8179
8180         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
8181
8182         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
8183         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
8184
8185         (TARGET_MANGLE_TYPE): Fix argument types.
8186
8187         (TARGET_IRA_COVER_CLASSES): Use prototype.
8188
8189         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
8190
8191         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
8192
8193         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
8194
8195         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
8196
8197         (TARGET_CALLEE_COPIES): Fix argument types.
8198
8199         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
8200
8201         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
8202
8203         (TARGET_FUNCTION_VALUE): Fix argument types.
8204
8205         (TARGET_RETURN_IN_MSB): Fix argument type.
8206
8207         (TARGET_RETURN_IN_MEMORY): Fix argument types.
8208
8209         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
8210
8211         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
8212
8213         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
8214         agree with return type.
8215
8216         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
8217
8218 2010-01-15  Jing Yu  <jingyu@google.com>
8219
8220         PR rtl-optimization/42691
8221         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
8222         a pseudo to a constant and are merged, and adjust comments.
8223
8224 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
8225
8226         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
8227
8228 2010-01-15  Richard Guenther  <rguenther@suse.de>
8229
8230         PR middle-end/42739
8231         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
8232         labels of computed or non-local gotos to the destination.
8233         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
8234         landing pad label is the first label.
8235
8236 2010-01-15  Richard Guenther  <rguenther@suse.de>
8237
8238         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
8239
8240 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8241
8242         PR target/42747
8243         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
8244         to allow generation of the xssqrtdp instruction on power7.
8245         (sqrtdf2_fpr): Ditto.
8246
8247 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
8248
8249         PR middle-end/42674
8250         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
8251         functions with noreturn attribute.
8252
8253         PR c++/42608
8254         * varasm.c (declare_weak): Add weak attribute to decl if it
8255         doesn't have one already.
8256         (assemble_external): Only add decls to weak_decls if they also
8257         have weak attribute.
8258
8259 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
8260
8261         * var-tracking.c (var_reg_delete): Don't delete the association
8262         between REGs and values or one-part variables if the register
8263         isn't clobbered.
8264
8265 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
8266
8267         PR debug/42657
8268         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
8269         because its first operand is a non-localized variable.
8270
8271 2010-01-14  Martin Jambor  <mjambor@suse.cz>
8272
8273         PR tree-optimization/42706
8274         * tree-sra.c (encountered_recursive_call): New variable.
8275         (encountered_unchangable_recursive_call): Likewise.
8276         (sra_initialize): Initialize both new variables.
8277         (callsite_has_enough_arguments_p): New function.
8278         (scan_function): Call decl and flags check only for IPA-SRA, check
8279         whether there is a recursive call and whether it has enough arguments.
8280         (all_callers_have_enough_arguments_p): New function.
8281         (convert_callers): Look for recursive calls only when
8282         encountered_recursive_call is set.
8283         (ipa_early_sra): Bail out either if
8284         !all_callers_have_enough_arguments_p or
8285         encountered_unchangable_recursive_call.
8286
8287 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
8288
8289         * sel-sched.c: Add 2010 to copyright years.
8290         * sel-sched-ir.c: Likewise.
8291         * sel-sched-ir.h: Likewise.
8292
8293 2010-01-14  Martin Jambor  <mjambor@suse.cz>
8294
8295         PR tree-optimization/42714
8296         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
8297         constructors specially.
8298
8299 2010-01-14  Andi Kleen  <ak@linux.intel.com>
8300
8301         * config/i386/drivers-i386.c (detect_caches_intel):
8302         Add l2sizekb parameter and fill in.
8303         (host_detect_local_cpu): Add l2sizekb, fill in.
8304         Add Atom small cache heuristic.
8305
8306 2010-01-14  Andi Kleen  <ak@linux.intel.com>
8307
8308         * config/i386/drivers-i386.c (detect_caches_cpuid4):
8309         Add level3 parameter and fill in.
8310         (detect_caches_intel): Handle level3 cache.
8311
8312 2010-01-14  Andi Kleen  <ak@linux.intel.com>
8313
8314         * config/i386/drivers-i386.c (host_detect_local_cpu):
8315         Fix core duo detection.
8316
8317 2010-01-14  Andi Kleen  <ak@linux.intel.com>
8318
8319         * config/i386/drivers-i386.c (host_detect_local_cpu):
8320         Fix Atom detection.
8321
8322 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
8323
8324         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
8325         (rs6000_variable_issue_1): this.  Use...
8326         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
8327
8328 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
8329
8330         * sel-sched-ir.c (sel_restore_other_notes): Rename to
8331         sel_restore_notes.  Update all callers.  Call reemit_notes
8332         for all insns.
8333
8334 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
8335
8336         PR rtl-optimization/42246
8337         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
8338         loops.
8339
8340 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
8341
8342         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
8343         all successors is the same as number of successors in current region.
8344
8345 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
8346
8347         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
8348         to rename is not separable.  Otherwise check that its LHS is not NULL.
8349
8350 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
8351
8352         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
8353
8354 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
8355
8356         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
8357         available registers when failed to discover LHS register class.
8358         Fix indentation.  Update comment.
8359
8360 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
8361             Alexander Monakov  <amonakov@ispras.ru>
8362
8363         PR rtl-optimization/42389
8364         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
8365         to can_issue_more.
8366         (advance_state_on_fence): Likewise.
8367         (sel_target_adjust_priority): Print debug output only when
8368         sched_verbose >= 4, not 2.
8369         (get_expr_cost): Do not issue all unique insns on the next cycle.
8370         (fill_insns): Initialize can_issue_more from the value saved
8371         with the fence.
8372         * sel-sched-ir.c (flist_add): New parameter issue_more.
8373         Init FENCE_ISSUE_MORE with it.
8374         (merge_fences): Likewise.
8375         (init_fences): Update call to flist_add.
8376         (add_to_fences, add_clean_fence_to_fences)
8377         (add_dirty_fence_to_fences): Likewise.
8378         (move_fence_to_fences): Update call to merge_fences.
8379         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
8380         sched groups.
8381         * sel-sched-ir.h (struct _fence): New field issue_more.
8382         (FENCE_ISSUE_MORE): New accessor macro.
8383
8384 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
8385
8386         PR rtl-optimization/42388
8387         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
8388         that have no predecessors nor successors.  Do not call move_bb_info
8389         for empty blocks outside of current region.
8390
8391 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
8392
8393         PR rtl-optimization/42294
8394         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
8395         * sel-sched.c (move_exprs_to_boundary): Transitively add all
8396         originators' originators.
8397
8398 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
8399
8400         PR rtl-optimization/39453
8401         PR rtl-optimization/42246
8402         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
8403         for pipelining_p.
8404         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
8405
8406 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
8407             Alexander Monakov  <amonakov@ispras.ru>
8408
8409         PR middle-end/42245
8410         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
8411         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
8412         argument.  Update all callers.
8413         (tidy_control_flow): ... and here.  Recompute topological order
8414         of basic blocks in region if necessary.
8415         (sel_redirect_edge_and_branch): Change return type.  Return true
8416         if topological order might have been invalidated.
8417         (purge_empty_blocks): Export and move from...
8418         * sel-sched.c (purge_empty_blocks): ... here.
8419         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
8420         (maybe_tidy_empty_bb): Delete prototype.
8421         (purge_empty_blocks): Declare.
8422
8423 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
8424
8425         PR rtl-optimization/42249
8426         * sel-sched.c (try_replace_dest_reg): When chosen register
8427         and original register is the same, do not bail out early, but
8428         still check all original insns for validity of replacing destination
8429         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
8430         in this case.
8431
8432 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
8433
8434         PR c/42721
8435         Port from no-undefined-overflow branch:
8436         2009-03-09  Richard Guenther  <rguenther@suse.de>
8437
8438         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
8439
8440 2010-01-14  Richard Guenther  <rguenther@suse.de>
8441
8442         PR lto/42665
8443         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
8444
8445 2010-01-14  Ira Rosen  <irar@il.ibm.com>
8446
8447         PR tree-optimization/42709
8448         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
8449         as scalar type in creation of constant vector operand.
8450
8451 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8452
8453         PR testsuite/42414
8454         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
8455         (check-parallel-%): Match `testsuite' directory component only
8456         at the end.
8457
8458 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
8459
8460         PR translation/39521
8461         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
8462         strings with _().
8463
8464 2010-01-13  Richard Guenther  <rguenther@suse.de>
8465
8466         PR tree-optimization/42730
8467         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
8468         offset zero.
8469
8470 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
8471
8472         PR target/pr42542
8473         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
8474         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
8475         them signed.
8476
8477 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
8478
8479         * config/bfin/libgcc-bfin.ver: Regenerate based on current
8480         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
8481         ___umulsi3_highpart.
8482
8483         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
8484         rather than schedule_insns if the pass is enabled.
8485
8486 2010-01-13  Martin Jambor  <mjambor@suse.cz>
8487
8488         PR tree-optimization/42704
8489         * tree-sra.c (sra_modify_assign): Do not delete assignments to
8490         SSA_NAMEs.
8491
8492 2010-01-13  Martin Jambor  <mjambor@suse.cz>
8493
8494         PR tree-optimization/42703
8495         * tree-sra.c (analyze_access_subtree): Check that we can build a
8496         reference to the original data within the aggregate.
8497
8498 2010-01-13  Richard Guenther  <rguenther@suse.de>
8499
8500         PR tree-optimization/42705
8501         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
8502
8503 2010-01-13  Richard Guenther  <rguenther@suse.de>
8504
8505         PR middle-end/42716
8506         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
8507
8508 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
8509
8510         PR debug/41371
8511         * var-tracking.c (values_to_unmark): New variable.
8512         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
8513         values_to_unmark vector.  Moved body to...
8514         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
8515         instead queue it into values_to_unmark vector.
8516         (vt_find_locations): Free values_to_unmark vector.
8517
8518 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
8519
8520         * config/s390/s390.c (override_options): Set
8521         default of max-pending-list-length to 256
8522
8523 2010-01-13  Richard Guenther  <rguenther@suse.de>
8524
8525         PR lto/42678
8526         * tree-pass.h (PROP_gimple_lcx): New.
8527         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
8528         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
8529         before the final cleanup_eh.
8530         (dump_properties): Dump PROP_gimple_lcx.
8531         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
8532         (tree_lower_complex_O0): Remove.
8533         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
8534         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
8535         tree_lower_complex, schedule TODO_update_ssa.
8536         * lto-streamer-out.c (output_function): Stream the functions
8537         properties.
8538         * lto-streamer-in.c (input_function): Likewise.
8539         (lto_read_body): Do not override them here.
8540
8541 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
8542
8543         PR c/42708
8544         * c-typeck.c (build_c_cast): Fold value cast to union type before
8545         wrapping it in a CONSTRUCTOR.
8546
8547 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
8548
8549         PR rtl-optimization/42699
8550         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
8551         involved.
8552
8553 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8554
8555         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
8556         SUBTARGET_WARN_UNUSED_SPEC): Move ...
8557         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
8558         SUBTARGET_WARN_UNUSED_SPEC): ... here
8559         * config/mips/iris5.h (LIBGCC_SPEC): Define.
8560
8561 2010-01-12  Julian Brown  <julian@codesourcery.com>
8562
8563         * config/arm/neon-schedgen.ml (Utils): Don't try to
8564         open missing module.
8565         (find_with_result): New.
8566
8567 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
8568
8569         PR debug/42662
8570         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
8571         sharing when canonicalizing ({lt,ge}u (plus a b) b).
8572
8573         PR tree-optimization/42645
8574         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
8575         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
8576         decl_map, set processing_debug_stmt to -1 and return name without
8577         any remapping.
8578
8579 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
8580
8581         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
8582         binutils version, and reword target configuration description.
8583
8584 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
8585
8586         * config/avr/avr.h (LINKER_NAME): Remove.
8587
8588 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
8589
8590         PR target/42416
8591         * config/rs6000/rs6000.c (rs6000_override_options): On targets
8592         that support VSX, warn for -mno-altivec if vsx is not disabled,
8593         and disable vsx.
8594
8595 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
8596             Shujing Zhao  <pearly.zhao@oracle.com>
8597
8598         PR translation/42469
8599         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
8600         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
8601         character between option name and help text.
8602         * c.opt (imultilib): Likewise.
8603
8604 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
8605
8606         * lto-streamer-out.c (output_unreferenced_globals): Output static
8607         variables.
8608
8609 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
8610
8611         PR rtl-optimization/42621
8612         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
8613         optimizing for size.
8614         (duplicate_computed_gotos): Remove now-redundant check.
8615
8616 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
8617
8618         PR target/37454
8619         * configure.ac: Save and restore LDFLAGS and LIBS
8620         * configure: Regenerate.
8621
8622 2010-01-10  Richard Guenther  <rguenther@suse.de>
8623
8624         PR middle-end/42667
8625         * builtins.c (fold_builtin_strlen): Add type argument and
8626         convert the resulting length to it.
8627         (fold_builtin_1): Adjust.
8628
8629 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
8630
8631         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
8632         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
8633         1 insn.
8634         (num_insns_constant_wide): Adjust for that change.
8635
8636 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
8637
8638         PR debug/42631
8639         * web.c (union_defs): Add used argument, to combine uses of
8640         uninitialized regs.
8641         (entry_register): Adjust type and tests of used argument.
8642         (web_main): Widen used for new use.  Pass it to union_defs.
8643         * df.h (union_defs): Adjust prototype.
8644
8645 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
8646
8647         PR debug/42630
8648         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
8649         uses in new incoming argument.  Free body.
8650         (reset_debug_uses_in_loop): New.
8651         (analyze_insn_to_expand_var): Call the latter if the former found
8652         anything.  Fix whitespace.  Reject invalid dest overlaps before
8653         going through all insns in the loop.
8654
8655 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
8656
8657         PR debug/42629
8658         * haifa-sched.c (dying_use_p): Debug insns don't count.
8659
8660 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
8661
8662         PR middle-end/42363
8663         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
8664         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
8665         (verify_gimple_call): Reject LHS in noreturn calls.
8666
8667 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
8668
8669         PR debug/42604
8670         PR debug/42395
8671         * tree-vect-loop-manip.c (adjust_info): New type.
8672         (adjust_vec): New pointer to vector.
8673         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
8674         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
8675         (slpeel_update_phis_for_duplicate_loop): Use them.
8676         (slpeel_update_phi_nodes_for_guard1): Likewise.
8677         (slpeel_update_phi_nodes_for_guard2): Likewise.
8678         (slpeel_tree_peel_loop_to_edge): Likewise.
8679         (vect_update_ivs_after_vectorizer): Likewise.
8680
8681 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
8682
8683         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
8684         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
8685
8686 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
8687
8688         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
8689         bogus uninitialized warning.
8690
8691 2010-01-09  Richard Guenther  <rguenther@suse.de>
8692
8693         PR middle-end/42512
8694         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
8695         the evolution is compatible with the initial condition.
8696
8697 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
8698
8699         * gcc.c (process_command): Update copyright notice dates.
8700         * gcov.c (print_version): Likewise.
8701         * gcov-dump.c (print_version): Likewise.
8702         * mips-tfile.c (main): Likewise.
8703         * mips-tdump.c (main): Likewise.
8704
8705 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
8706
8707         PR target/41885
8708         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
8709         (rotlhi3): Delete.
8710         (rotlhi3_8): Delete.
8711         (rotlsi3): Delete.
8712         (rotlsi3_8): Delete.
8713         (rotlsi3_16): Delete.
8714         (rotlsi3_24): Delete.
8715         (rotl<mode>3): New.
8716         (*rotw<mode>3): New.
8717         (*rotb<mode>3): New.
8718         * config/avr/avr.c (avr_rotate_bytes): New function.
8719         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
8720
8721 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
8722
8723         PR target/37454
8724         * configure.ac: Modify -rdynamic check.
8725         * configure: Regenerate.
8726
8727 2010-01-08  DJ Delorie  <dj@redhat.com>
8728
8729         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
8730         register popping order.
8731
8732 2010-01-08  Richard Guenther  <rguenther@suse.de>
8733
8734         PR lto/42528
8735         * c.opt (fsigned-char): Also let LTO handle this option.
8736         (funsigned-char): Likewise.
8737
8738 2010-01-07  Richard Guenther  <rguenther@suse.de>
8739
8740         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
8741         (gimple_op): Likewise.
8742         (gimple_op_ptr): Likewise.
8743         (gimple_assign_set_lhs): Remove gcc_assert.
8744         (gimple_assign_set_rhs1): Likewise.
8745         (gimple_assign_set_rhs2): Likewise.
8746         (gimple_call_set_lhs): Likewise.
8747         (gimple_call_set_fn): Likewise.
8748         (gimple_call_set_fndecl): Likewise.
8749         (gimple_call_fndecl): Likewise.
8750         (gimple_call_return_type): Likewise.
8751         (gimple_call_set_chain): Likewise.
8752         (gimple_call_num_args): Likewise.
8753         (gimple_call_set_arg): Likewise.
8754         (gimple_cond_set_code): Likewise.
8755         (gimple_cond_set_lhs): Likewise.
8756         (gimple_cond_set_rhs): Likewise.
8757         (gimple_cond_set_true_label): Likewise.
8758         (gimple_cond_set_false_label): Likewise.
8759         (gimple_label_set_label): Likewise.
8760         (gimple_goto_set_dest): Likewise.
8761         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
8762         (gimple_debug_bind_get_value): Likewise.
8763         (gimple_debug_bind_get_value_ptr): Likewise.
8764         (gimple_debug_bind_set_var): Likewise.
8765         (gimple_debug_bind_set_value): Likewise.
8766         (gimple_debug_bind_reset_value): Likewise.
8767         (gimple_debug_bind_has_value_p): Likewise.
8768         (gimple_return_retval_ptr): Remove gcc_assert.
8769         (gimple_return_retval): Likewise.
8770         (gimple_return_set_retval): Likewise.
8771         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
8772         (safe_referenced_var_iterator): Remove.
8773         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
8774         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
8775         (fill_referenced_var_vec): Remove.
8776         (first_readonly_imm_use): Remove redundant gcc_assert.
8777         (phi_arg_index_from_use): Combine gcc_asserts.
8778         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
8779         (first_imm_use_stmt): Remove redundant gcc_assert.
8780         * tree-cfg.c (verify_gimple_call): Verify function and chain
8781         operands.  Verify arguments.
8782         (verify_types_in_gimple_stmt): Verify condition code and labels.
8783
8784 2010-01-07  Richard Guenther  <rguenther@suse.de>
8785
8786         PR tree-optimization/42641
8787         * sese.c (rename_map_elt_info): Use the SSA name version, do
8788         not hash pointers.
8789
8790 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
8791
8792         PR tree-optimization/42625
8793         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
8794         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
8795
8796 2010-01-07  Duncan Sands  <baldrick@free.fr>
8797
8798         * Makefile.in (PLUGIN_HEADERS): Add version.h.
8799
8800 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
8801
8802         PR target/42511
8803         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
8804         note itself is not function_invariant_p.
8805
8806 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
8807
8808         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
8809         Do not add the DF_NOTE problem.
8810         * store-motion.c (execute_rtl_store_motion): Likewise.
8811
8812 2010-01-07  Martin Jambor  <mjambor@suse.cz>
8813
8814         PR tree-optimization/42157
8815         * tree-sra.c (compare_access_positions): Stabilize sort if both
8816         accesses have integer types, return zero immediately if they are the
8817         same.
8818
8819 2010-01-06  Richard Henderson  <rth@redhat.com>
8820
8821         PR middle-end/41883
8822         * haifa-sched.c (add_to_note_list): Merge into ...
8823         (concat_note_lists): ... here, and ...
8824         (unlink_other_notes, rm_other_notes): Merge into...
8825         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
8826         NOTE_INSN_EPILOGUE_BEG.
8827
8828 2010-01-06  Richard Guenther  <rguenther@suse.de>
8829
8830         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
8831         not inline regular functions into always-inline functions.
8832
8833 2010-01-06  Nick Clifton  <nickc@redhat.com>
8834
8835         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
8836         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
8837         used together.
8838         (OVERRIDE_OPTIONS): Delete.
8839         (OPTIMIZATION_OPTIONS): Define.
8840         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
8841         * config/rx/rx.c (rx_handle_option): Issue an error message if
8842         -mcpu=rx200 and -fpu are used together.
8843         (rx_set_optimization_options): New function.  Issue an error
8844         message if an optimization attribute attempts to reset the FPU/
8845         math optimization pairing.
8846         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
8847         * config/rx/rx.opt: Set the default to 32-bit doubles.
8848         * config/rx/t-rx: Add multilibs for -nofpu option.
8849         * doc/invoke.texi: Update documentation of RX options.
8850
8851 2010-01-06  Richard Guenther  <rguenther@suse.de>
8852
8853         * tree-ssa-pre.c (name_to_id): New global.
8854         (alloc_expression_id): Simplify SSA name handling.
8855         (lookup_expression_id): Likewise.
8856         (init_pre): Zero name_to_id.
8857         (fini_pre): Free it.
8858
8859 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
8860
8861         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
8862
8863 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
8864
8865         PR target/42542
8866         * config/i386/sse.md (smaxv2di3): New.
8867         (umaxv2di3): Likewise.
8868         (sminv2di3): Likewise.
8869         (uminv2di3): Likewise.
8870
8871 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
8872
8873         PR target/42564
8874         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
8875         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
8876         (legitimize_tls_address): Likewise.
8877         (sparc_tls_referenced_p): Likewise.
8878         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
8879         and adjust calls to legitimize_pic_address.
8880         (legitimate_constant_p) Use sparc_tls_referenced_p.
8881         (legitimate_pic_operand_p): Likewise.
8882         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
8883         (sparc_tls_symbol_ref_1): Delete.
8884         (sparc_tls_referenced_p): Make static, recognize specific patterns.
8885         (legitimize_tls_address): Make static, handle CONST patterns.
8886         (legitimize_pic_address): Make static, remove unused parameter and
8887         adjust recursive calls.
8888         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
8889         and adjust call to legitimize_pic_address.
8890         (sparc_output_mi_thunk): Likewise.
8891
8892 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
8893             H.J. Lu  <hongjiu.lu@intel.com>
8894
8895         PR target/42542
8896         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
8897         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
8898         operands to make them signed.
8899
8900         Revert:
8901         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
8902
8903         PR target/42542
8904         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
8905         GTU to GT for V4SI and V2DI.
8906
8907         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
8908         (umin<mode>3): Removed.
8909         (uminv8hi3): New.
8910         (uminv4si3): Likewise.
8911
8912 2010-01-05  Martin Jambor  <mjambor@suse.cz>
8913
8914         PR tree-optimization/42462
8915         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
8916         current_function_decl to helper functions and macros.
8917
8918 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8919
8920         PR bootstrap/41771
8921         * flags.h: Don't include real.h.
8922         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
8923         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
8924         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
8925         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
8926         * dominance.c: Update copyright.
8927         * gimple.c (walk_gimple_op): Remove inline.
8928         * tree-ssa-reassoc.c: Include real.h.
8929         * Makefile.in (FLAGS_H): Remove $(REAL_H).
8930         (tree-ssa-reassoc.o): Depend on $(REAL_H).
8931
8932 2010-01-05  Nick Clifton  <nickc@redhat.com>
8933
8934         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
8935         register to push into the stack frame when the accumulator has to
8936         be saved during interrupts.
8937
8938 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
8939
8940         * doc/invoke.texi: Remove the documentation about option
8941         -Wunreachable-code.
8942         * common.opt (Wunreachable-code):  Preserved for backward
8943         compatibility.
8944         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
8945         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
8946         the backward compatibility flag section.
8947
8948 2010-01-05  Richard Guenther  <rguenther@suse.de>
8949
8950         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
8951
8952 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
8953
8954         PR other/42611
8955         * cfgexpand.c (expand_one_var): Diagnose too large variables.
8956
8957         PR tree-optimization/42508
8958         * tree-sra.c (convert_callers): Check for recursive call
8959         by comparing cgraph nodes instead of decls.
8960         (modify_function): Call ipa_modify_formal_parameters also
8961         on all same_body aliases.
8962
8963         * cgraphunit.c (cgraph_materialize_all_clones): Compare
8964         cgraph nodes when checking for same_body aliases.
8965
8966 2010-01-05  Richard Guenther  <rguenther@suse.de>
8967
8968         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
8969         allocation and lookup.
8970         (get_or_alloc_expr_for_constant): Likewise.
8971         (phi_translate): Sink allocation.
8972
8973 2010-01-04  Richard Guenther  <rguenther@suse.de>
8974
8975         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
8976         a new entry only if needed.
8977         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
8978         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
8979         hashtable lookup.
8980         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
8981         the result array.
8982         (phi_translate): Handle CONSTANTs early.
8983
8984 2010-01-04  Martin Jambor  <mjambor@suse.cz>
8985
8986         PR tree-optimization/42398
8987         * tree-sra.c (struct access): Removed flag grp_different_types.
8988         (dump_access): Do not dump the removed flag.
8989         (sort_and_splice_var_accesses): Do not set the removed flag.
8990         (sra_modify_expr): Check for type compatibility directly.
8991
8992 2010-01-04  Martin Jambor  <mjambor@suse.cz>
8993
8994         PR tree-optimization/42366
8995         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
8996         edges with variable number of parameters.
8997         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
8998         flag instead of asserting it.
8999         (ipa_read_node_info): Read uses_analysis_done flag.
9000
9001 2010-01-04  Richard Guenther  <rguenther@suse.de>
9002
9003         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
9004         iterative_hash_* as intended.
9005         (vn_reference_compute_hash): Likewise.  Simplify hashing
9006         SSA names.
9007         (vn_reference_lookup_2): Likewise.
9008         (vn_nary_op_compute_hash): Likewise.
9009         (vn_phi_compute_hash): Likewise.
9010         (expressions_equal_p): Remove strange code.
9011         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
9012         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
9013         (bitmap_insert_into_set_1): Take value-id as parameter.
9014         (add_to_value): Pass it.
9015         (bitmap_insert_into_set): Likewise.
9016         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
9017
9018 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
9019
9020         PR driver/42442
9021         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
9022         (do_self_spec): For switches with SWITCH_IGNORE set set also
9023         SWITCH_IGNORE_PERMANENTLY.
9024         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
9025         of SWITCH_IGNORE.
9026
9027 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
9028
9029         * lto-streamer-out.c (output_unreferenced_globals): Output the full
9030         tree of an unreferenced global var.
9031
9032 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
9033
9034         PR target/42542
9035         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
9036         GTU to GT for V4SI and V2DI.
9037
9038         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
9039         (umin<mode>3): Removed.
9040         (uminv8hi3): New.
9041         (uminv4si3): Likewise.
9042
9043 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
9044
9045         PR lto/42581
9046         * collect2.c (main): Turn on trace in collect2 if -v is passed
9047         to gcc with LTO.
9048
9049 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
9050
9051         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
9052         description of expression operand.
9053
9054 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
9055
9056         * configure.ac: Add install-html to target_list for Make-hooks.
9057         * configure: Regenerate.
9058         * fortran/Make-lang.in (F95_HTMLFILES): New.
9059         (fortran.html): Use it.
9060         (fortran.install-html): New.
9061         * Makefile.in (install-html): Add lang.install-html.
9062         * java/Make-lang.in (JAVA_HTMLFILES): New.
9063         (java.html): Use it.
9064         (java.install-html): New.
9065         * objc/Make-lang.in (objc.install-html): New.
9066         * objcp/Make-lang.in (obj-c++.install-html): New.
9067         * cp/Make-lang.in (c++.install-html): New.
9068         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
9069         * lto/Make-lang.in (lto.install-html): New.
9070
9071 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
9072
9073         PR lto/42520
9074         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
9075
9076 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
9077
9078         PR rtl-optimization/41862
9079         * store-motion.c (store_killed_in_insn, compute_store_table,
9080         remove_reachable_equiv_notes, replace_store_insn,
9081         build_store_vectors): Ignore all DEBUG_INSNs.
9082
9083 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
9084
9085         PR lto/41564
9086         * common.opt: Add dumpdir.
9087
9088         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
9089         isn't specified.
9090         (option_map): Add --dumpdir.
9091
9092         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
9093
9094         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
9095
9096         * opts.c (decode_options): Try dump_dir_name first if
9097         dump_base_name isn't an absolute path.
9098         (common_handle_option): Handle OPT_dumpdir.
9099
9100         * toplev.c (dump_dir_name): New.
9101         (print_switch_values): Also ignore -dumpdir.
9102
9103         * toplev.h (dump_dir_name): New.
9104
9105 2010-01-03  Richard Guenther  <rguenther@suse.de>
9106
9107         PR tree-optimization/42589
9108         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
9109         double-word expansion of bswap32.
9110
9111 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
9112
9113         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
9114         with BLOCK_FOR_INSN.
9115         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
9116         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
9117         noce_process_if_block): Likewise.
9118         * gcse.c (compute_local_properties, insert_expr_in_table,
9119         insert_set_in_table, canon_list_insert, find_avail_set,
9120         pre_insert_copy_insn): Likewise.
9121
9122         * basic-block.h (BLOCK_NUM): Move from here...
9123         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
9124
9125 2010-01-03  Richard Guenther  <rguenther@suse.de>
9126
9127         PR tree-optimization/42438
9128         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
9129         contains_may_not_return_call flag.
9130         (BB_MAY_NOTRETURN): New.
9131         (valid_in_sets): Trapping nary operations are not valid
9132         in blocks that may not return.
9133         (insert_into_preds_of_block): Remove check for trapping expressions.
9134         (compute_avail): Compute also BB_MAY_NOTRETURN.
9135
9136 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
9137
9138         * doc/invoke.texi: Add 2010 to copyright years.
9139
9140 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
9141
9142         * config/sparc/sparc.c: Fix formatting nits.
9143
9144 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
9145             Alexander Monakov  <amonakov@ispras.ru>
9146
9147         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
9148
9149 2010-01-02  Richard Guenther  <rguenther@suse.de>
9150
9151         PR middle-end/42577
9152         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
9153         (simplify_switch_using_ranges): Mark to be removed edges
9154         as non-executable.
9155
9156 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9157
9158         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
9159
9160         * collect2.c (scan_libraries): Add missing argument in call to
9161         scan_prog_file.
9162
9163 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
9164
9165         PR target/42448
9166         * config/alpha/predicates.md (aligned_memory_operand): Return false
9167         for CQImode.
9168         (unaligned_memory_operand): Return true for CQImode.
9169         * config/alpha/alpha.c (get_aligned_mem): Assert that location
9170         doesn not cross aligned SImode word boundary.
9171
9172 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
9173
9174         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
9175         Remove.
9176         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
9177         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
9178
9179 2010-01-02  Richard Guenther  <rguenther@suse.de>
9180
9181         PR lto/41597
9182         * toplev.c (compile_file): Emit LTO marker properly.  Change
9183         it to __gnu_lto_v1.
9184         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
9185
9186 2010-01-01  Richard Guenther  <rguenther@suse.de>
9187
9188         PR debug/42455
9189         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
9190
9191 2010-01-01  Richard Guenther  <rguenther@suse.de>
9192
9193         PR c/42570
9194         * c-decl.c (grokdeclarator): For zero-size arrays force
9195         structural equality checks as layout_type does.
9196
9197 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
9198
9199         * builtins.c: Update copyright to 2010.
9200
9201 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
9202
9203         PR lto/42531
9204         * lto-streamer-out.c (produce_asm): Revert the last change.
9205         (copy_function): Likewise.
9206
9207         * lto-streamer.c (lto_get_section_name): Skip any leading
9208         asterisk in name.
9209
9210 2010-01-01  Richard Guenther  <rguenther@suse.de>
9211
9212         PR middle-end/42559
9213         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
9214         for LABEL_DECLs.
9215
9216 \f
9217 Copyright (C) 2010 Free Software Foundation, Inc.
9218
9219 Copying and distribution of this file, with or without modification,
9220 are permitted in any medium without royalty provided the copyright
9221 notice and this notice are preserved.