OSDN Git Service

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