OSDN Git Service

* coverage.c (build_fn_info_value): Call build_constructor instead of
[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.