OSDN Git Service

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