OSDN Git Service

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