OSDN Git Service

gcc/ChangeLog:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
2
3         * real: Do not include gmp.h, mpfr.h, and mpc.h.
4         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
5         (real_value_negate, real_value_abs): New prototypes.
6         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
7         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8         new include file for interface between MPFR and REAL_VALUE_TYPE.
9         * real.c: Include realmpfr.h.
10         (real_arithmetic2): Remove legacy function.
11         (real_value_negate): New.
12         (real_value_abs): New.
13         (mfpr_from_real, real_from_mpfr): Move from here...
14         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
15         * builtins.c: Include realmpfr.h.
16         * fold-const.c: Include realmpfr.h.
17         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
18         (fold_negate_const): Likewise.
19         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
20         * toplev.c: Include realmpfr.h.
21         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
22         and real_value_negate.
23         * fixed-value.c (check_real_for_fixed_mode): Likewise.
24         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
25         (vfp3_const_double_index): Likewise.
26         (arm_print_operand): Likewise.
27         * Makefile.in: Update dependencies.
28
29 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30
31         * config/s390/s390.c (override_options): Increase the default
32         of max-completely-peel-times.
33
34 2010-05-21  Julian Brown  <julian@codesourcery.com>
35             Mark Mitchell  <mark@codesourcery.com>
36
37         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
38         sibling calls for Thumb-1.
39         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
40         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
41         Thumb-2.
42         (*call_insn, *call_value_insn): Don't use for Thumb-2.
43         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
44         for Thumb-2.
45         (return): New expander.
46         (*arm_return): New name for ARM return insn.
47         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
48
49 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
50
51         * config.gcc (sparc64-*-rtems*): New target.
52
53 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
54
55         * tree.c (build_function_decl_skip_args): Fix grammar.
56         (build_function_type_list_1): Fix typos, adjust formatting.
57
58 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
59
60         * tree.h: Include real.h and fixed-value.h as basic datatypes.
61         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
62         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
63         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
64         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
65         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
66         tree-pretty-print.c, tree-loop-distribution.c,
67         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
68         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
69         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
70         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
71         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
72         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
73         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
74         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
75         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
76         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
77         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
78         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
79         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
80         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
81         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
82         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
83         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
84         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
85         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
86         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
87         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
88         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
89         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
90         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
91         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
92         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
93         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
94         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
95         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
96         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
97         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
98         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
99         config/score/score7.c, config/score/score.c, config/arm/arm.c,
100         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
101         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
102         config/bfin/bfin.c:
103         Clean up redundant includes.
104         * Makefile.in: Update accordingly.
105
106 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
107
108         PR middle-end/44204
109         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
110         statement has no arguments.
111
112 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
113
114         PR/44139
115         * varasm.c (emutls_decl): Merge attributes to new decl.
116
117 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
118
119         PR middle-end/44101
120         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
121         around the uniquized constructor if its type requires a conversion.
122
123 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
124
125         PR debug/44205
126         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
127         at -O0 goto_locus of any of the incoming edges differs from
128         goto_locus of outgoing edge, or gimple_location of any of the
129         labels differs.
130
131 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
132
133         * ira.c (ira_non_ordered_class_hard_regs): Define.
134         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
135         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
136         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
137         cost of unaligned hard regs when allocating multi-reg pseudos.
138
139 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
140
141         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
142         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
143         for TARGET_NO_FLOAT.
144         * config/mips/mips.c (mips_file_start): Expand conditional expression
145         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
146         (mips_override_options): Move -mno-float override -msoft-float and
147         -mhard-float.
148         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
149         Condition(TARGET_SUPPORTS_NO_FLOAT).
150         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
151         __mips_no_float here.
152         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
153         (TARGET_SUPPORTS_NO_FLOAT): Define.
154         * config/mips/sdemtk.opt: Delete.
155
156 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
157
158         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail
159         out if !cond.
160
161 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
162
163         PR target/43733
164         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
165         * configure: Regenerate.
166         * config.in: Regenerate.
167         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
168         instead of sahf only for 64bit targets.
169
170 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
171
172         PR debug/44178
173         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
174         setup_ref_regs for DEBUG_INSNs.
175
176 2010-05-20  Jan Hubicka  <jh@suse.cz>
177
178         PR middle-end/44197
179         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
180
181 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
182
183         PR bootstrap/43870
184         * df-scan.c (df_ref_compare): Stabilize sort.
185
186 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
187
188         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
189         argument.  Don't use DW_OP_piece if offset is non-zero,
190         put offset into second DW_OP_bit_piece argument.
191         (dw_sra_loc_expr): Adjust callers.  For memory expressions
192         compute offset.
193
194 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
195
196         PR target/44202
197         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
198         settings for 16-bit-constant "addo" alternative.
199
200 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
201
202         * config/mips/mips-dsp.md (add<DSPV:mode>3,
203         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
204
205         PR target/43764
206         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
207         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
208         Use it.
209
210 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
211
212         * diagnostic.c (FLOAT, FFS): Don't undefine.
213         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
214         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
215         include ordering.
216
217 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
218
219         * combine.c (propagate_for_debug): Call make_compound_operation
220         on the source value.
221         (try_combine): When implementing a split chosen by find_split_point,
222         either copy i2src or set it to null.  Assert that i2src is not null
223         before substituting into CALL_INSN_FUNCTION_USAGE.
224
225 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
226
227         * double-int.h (double_int_ior): New function.
228         * tree.h (build_int_cst_wide_type): Remove.
229         * tree.c (build_int_cst_wide_type): Remove.
230         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
231         of build_int_cst_wide_type.
232         * stor-layout.c (set_sizetype): (Ditto.).
233         * dojump.c (do_jump): Use build_int_cstu instead of
234         build_int_cst_wide_type.
235
236 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
237
238         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
239         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
240         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
241         * gimplify.c: (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
242         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
243         propagate the 'data' argument to copy_tree_r.
244         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
245         Propagate 'data' argument to walk_tree.
246         (copy_if_shared): New function.
247         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
248         (unmark_visited): New function.
249         (unshare_body): Call copy_if_shared instead of doing it manually.
250         (unvisit_body): Call unmark_visited instead of doing it manually.
251
252 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
253
254         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
255         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
256         * hooks.c: Likewise.
257         * target-def.h (TARGET_FOLD_BUILTIN): Define to
258         hook_tree_tree_int_treep_bool_null.
259         * target.h: (struct gcc_target): Update signature of fold_builtin
260         field.
261         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
262         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
263         instead of the call expression.
264         (fold_builtin_call_array): Pass n and argarray directly.
265         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
266         consing a list.
267         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
268         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
269         `i' and use it in place of `arity'.
270         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
271         Dereference `args' directly.
272         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
273
274 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
275
276         * doc/sourcebuild.texi (Effective-Target Keywords): Document
277         3dnow, sse3, sse2.
278         (Directives): Document optional dg-require-effective-target
279         selector.
280
281 2010-05-19  Richard Guenther  <rguenther@suse.de>
282
283         PR lto/44196
284         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
285
286 2010-05-19  Richard Guenther  <rguenther@suse.de>
287
288         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
289         * common.opt (fwhopr=): New.
290         * opts.c (common_handle_option): Handle OPT_fwhopr.
291         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
292         * collect2.c (main): Match -fwhopr*.
293         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
294         Execute ltrans stage in parallel when jobs is bigger than 1.
295
296 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
297
298         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
299         pentiumpro on Solaris 8/x86 with Sun as.
300         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
301         hidden alias bug.
302         (gcc_cv_as_ix86_quad): Check for .quad directive.
303         * configure: Regenerate.
304         * config.in: Regenerate.
305         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
306
307 2010-05-19  Martin Jambor  <mjambor@suse.cz>
308
309         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
310         also for indirect edges.  Actual printing moved...
311         (ipa_print_node_jump_functions_for_edge): ...here.
312         (ipa_compute_jump_functions): Renamed to
313         ipa_compute_jump_functions_for_edge and made static.
314         (ipa_compute_jump_functions): New function.
315         (make_edge_direct_to_target): Check if the number of arguments on
316         the newly direct edge is the same as the number of parametrs of
317         the callee.
318         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
319         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
320         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
321         analysis functions unconditionally, call the new
322         ipa_analyze_params_uses on the node instead of every edge.
323
324 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
325
326         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
327         to tree.
328         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
329         also checks for a constant int vs.  non-constant but
330         loop-invariant steps.
331         (find_or_create_group): Change the sort algorithm to only consider
332         steps that are constant ints.
333         (idx_analyze_ref): Adopt code to handle a tree instead of a
334         HOST_WIDE_INT for step.
335         (gather_memory_references_ref): Handle tree instead of int and be
336         prepared to see a NULL_TREE.
337         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
338         prefetches if the step cannot be calculated at compile time.
339         (issue_prefetch_ref): Issue prefetches for non-constant but
340         loop-invariant steps.
341
342 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
343
344         Revert:
345         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
346
347         * tree.h (build_call_list): Remove.
348         * tree.c (build_call_list): Remove.
349
350 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
351
352         * tree.h (build_call_list): Remove.
353         * tree.c (build_call_list): Remove.
354
355 2010-05-18  Jan Hubicka  <jh@suse.cz>
356
357         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
358
359 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
360
361         PR rtl-optimization/43332
362         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
363
364 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
365
366         * tree.h (build_int_cstu): Implement as static inline.
367         * tree.c (build_int_cstu): Remove function.
368         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
369         sign extended.
370
371 2010-05-18  Richard Guenther  <rguenther@suse.de>
372
373         PR lto/44143
374         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
375         (debug): Initialize from -save-temps.
376         (collect_execute): Print command-line when verbose.
377         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
378         for ltrans invocation.  Produce -dumpbase flag again.
379         (process_args): Remove.
380         (main): Simplify.
381         * collect2.c (maybe_run_lto_and_relink): Only pass object
382         files to lto-wrapper.
383         * gcc.c (LINK_COMMAND_SPEC): Likewise.
384
385 2010-05-18  Jan Hubicka  <jh@suse.cz>
386
387         * opts.c (decode_options): Do not disable whopr at ipa_cp.
388         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
389
390 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
391
392         PR lto/44184
393         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
394         in a GIMPLE_ASM.
395         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
396         in a GIMPLE_ASM.
397
398 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
399
400         PR debug/41371
401         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
402         rtx_equal_p inline.
403
404 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
405
406         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
407         lto-macho as lto_binary_reader.
408
409         * darwin.c (darwin_asm_named_section): Do not add assembler comment
410         after .section directive; just print it before the directive instead.
411
412 2010-05-17  Jan Hubicka  <jh@suse.cz>
413
414         * cgraph.c (cgraph_create_virtual_clone): Only check
415         versionable_function_p when not in wpa and checking is enabled.
416         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
417         there are no more functions to materialize.
418
419 2010-05-17  Jan Hubicka  <jh@suse.cz>
420
421         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
422         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
423         New functions.
424         (output_cgraph): Call output_cgraph_opt_summary.
425         (input_cgrpah): Call input_cgraph_opt_summary.
426         (output_cgraph_opt_summary_p, output_node_opt_summary,
427         input_node_opt_summary, input_cgraph_opt_section): New functions.
428         * lto-section-in.c (lto_section_name): Add cgraphopt.
429         * tree-inline.c (tree_function_versioning): Handle parm_num.
430         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
431         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
432
433 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
434
435         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
436         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
437         the insn to prefetch ratio heuristic to loops with known trip count.
438
439 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
440
441         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
442         (schedule_prefetches): Do not generate a prefetch if the unroll factor
443         is far from what is required by the prefetch.
444
445 2010-05-17  Jan Hubicka  <jh@suse.cz>
446
447         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
448         (ipcp_estimate_growth): Likewise.
449         (ipcp_const_param_count): Likewise.
450         (ipcp_insert_stage): Likewise.
451         * ipa-prop.c (visit_load_for_mod_analysis): New function.
452         (visit_store_addr_for_mod_analysis): Set used flag.
453         (ipa_detect_param_modifications): Set used flag for SSE params;
454         update use of walk_stmt_load_store_addr_ops.
455         (ipa_print_node_params): Print used flag.
456         (ipa_write_node_info): Stream used flag.
457         (ipa_read_node_info): Likewise.
458         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
459         (ipa_is_param_used): New function.
460         (lto_ipa_fixup_call_notes): Remove unused declaration.
461
462 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
463
464         PR target/44074
465         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
466         * configure: Regenerate.
467         * config.in: Regenerate.
468         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
469         !HAVE_AS_IX86_REP_LOCK_PREFIX.
470         Don't emit whitespace.
471         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
472         (*rep_movsi): Likewise.
473         (*rep_movsi_rex64): Likewise.
474         (*rep_movqi): Likewise.
475         (*rep_movqi_rex64): Likewise.
476         (*rep_stosdi_rex64): Likewise.
477         (*rep_stossi): Likewise.
478         (*rep_stossi_rex64): Likewise.
479         (*rep_stosqi): Likewise.
480         (*rep_stosqi_rex64): Likewise.
481         (*cmpstrnqi_nz_1): Use {%;} after repz.
482         (*cmpstrnqi_nz_rex_1): Likewise.
483         (*cmpstrnqi_1): Likewise.
484         (*cmpstrnqi_rex_1): Likewise.
485         (*strlenqi_1): Use {%;} after repnz.
486         (*strlenqi_rex_1): Likewise.
487         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
488         (*sync_compare_and_swap<mode>): Likewise.
489         (sync_double_compare_and_swap<mode>): Likewise.
490         (*sync_double_compare_and_swapdi_pic): Likewise.
491         (sync_old_add<mode>): Likewise.
492         (sync_add<mode>): Likewise.
493         (sync_sub<mode>): Likewise.
494         (sync_<code><mode>): Likewise.
495
496 2010-05-17  Martin Jambor  <mjambor@suse.cz>
497
498         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
499         otr_token and polymorphic.
500         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
501         (cgraph_clone_edge): Copy the above fields.
502         * tree.c (get_binfo_at_offset): New function.
503         * tree.h (get_binfo_at_offset): Declare.
504         * ipa-prop.h (enum jump_func_type): Added known_type jump function
505         type, reordered items, updated comments.
506         (union jump_func_value): Added base_type field, reordered fields.
507         (enum ipa_lattice_type): Moved down in the file.
508         (struct ipa_param_descriptor): New field polymorphic.
509         (ipa_is_param_polymorphic): New function.
510         * ipa-prop.c: Include gimple.h and gimple-fold.h.
511         (ipa_print_node_jump_functions): Print known type jump functions.
512         (compute_complex_pass_through): Renamed to...
513         (compute_complex_assign_jump_func): this.
514         (compute_complex_ancestor_jump_func): New function.
515         (compute_known_type_jump_func): Likewise.
516         (compute_scalar_jump_functions): Create known type and complex ancestor
517         jump functions.
518         (ipa_note_param_call): New parameter polymorphic, set the corresponding
519         flag in the call note accordingly.
520         (ipa_analyze_call_uses): Renamed to...
521         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
522         variable var only in the block where it is used.
523         (ipa_analyze_virtual_call_uses): New function.
524         (ipa_analyze_call_uses): Likewise.
525         (combine_known_type_and_ancestor_jfs): Likewise.
526         (update_jump_functions_after_inlining): Implemented handling of a
527         number of new jump function types combination.
528         (print_edge_addition_message): Removed.
529         (make_edge_direct_to_target): New function.
530         (try_make_edge_direct_simple_call): Likewise.
531         (try_make_edge_direct_virtual_call): Likewise.
532         (update_call_notes_after_inlining): Renamed to...
533         (update_indirect_edges_after_inlining): this.  Moved edge creation for
534         indirect calls to try_make_edge_direct_simple_call, also calls
535         try_make_edge_direct_virtual_call for virtual calls.
536         (ipa_print_node_params): Changed the header message.
537         (ipa_write_jump_function): Stream also known type jump functions.
538         (ipa_read_jump_function): Likewise.
539         (ipa_write_indirect_edge_info): Stream new fields in
540         cgraph_indirect_call_info.
541         (ipa_read_indirect_edge_info): Likewise.
542         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
543         GIMPLE_FOLD_H.
544
545 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
546
547         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
548
549 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
550
551         * tree.h (CALL_EXPR_ARGS): Delete.
552         (call_expr_arglist): Delete.
553         * tree.c (call_expr_arglist): Delete.
554         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
555         targetm.fold_builtin.
556         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
557         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
558         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
559         arglist parameter.  Use CALL_EXPR_ARG.
560         (picochip_expand_builtin_3op): Likewise.
561         (picochip_expand_builtin_2opvoid): Likewise.
562         (picochip_expand_array_get): Likewise.
563         (picochip_expand_array_put): Likewise.
564         (picochip_expand_array_testport): Likewise.
565         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
566         rather than arglist.
567         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
568         CALL_EXPR_ARGS.
569         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
570         than TREE_VALUE and TREE_CHAIN.
571         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
572         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
573         the arglist.
574
575 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
576
577         PR bootstrap/42347
578         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
579         to have no fallthru edge.
580
581         PR middle-end/44102
582         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
583         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
584         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
585         add BARRIER after previous bb if needed.
586
587 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
588
589         * tree.c (build_function_type_list_1): Remove bogus assert condition.
590
591 2010-05-17  Alan Modra  <amodra@gmail.com>
592
593         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
594         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
595         with copy_reg rtx param.
596         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
597         Correct cases where code for ABI_V4 did not initialise the reg
598         used to access frame.  Also leave frame_reg_rtx as sp for large
599         frames that save no regs.
600
601 2010-05-17  Martin Jambor  <mjambor@suse.cz>
602
603         PR middle-end/44133
604         * tree-sra.c (create_access_replacement): New parameter rename, mark
605         the replaement for renaming only when it is true.
606         (get_access_replacement): Pass true in the rename parameter of
607         create_access_replacement.
608         (get_unrenamed_access_replacement): New function.
609         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
610         replacement declaration from it.
611
612 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
613
614         * function.c (try_fit_stack_local, add_frame_space): New static
615         functions.
616         (assign_stack_local_1): Use them.  Look for opportunities to use
617         space previously wasted on alignment.
618         * function.h (struct frame_space): New.
619         (struct rtl_data): Add FRAME_SPACE_LIST member.
620         * reload1.c (something_was_spilled): New static variable.
621         (alter_reg): Set it.
622         (reload): Test it in addition to testing if the frame size changed.
623
624 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
625
626         * config/s390/s390.c: Define sane prefetch settings and activate
627         flag_prefetch_loop_arrays on -O3.
628         * config/s390/s390.h: Declare that read can use write prefetch.
629
630 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
631
632         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
633         build.
634
635 2010-05-16  Jan Hubicka  <jh@suse.cz>
636
637         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
638         function body; do not check stdarg field of struct function.
639
640 2010-05-16  Jan Hubicka  <jh@suse.cz>
641
642         * cgraph.c (dump_cgraph_node): Dump versionable flag.
643         * cgraph.h (cgraph_local_info): Add versionable flag.
644         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
645         (ipcp_versionable_function_p): Use it.
646         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
647         versionable flag.
648
649 2010-05-16  Jan Hubicka  <jh@suse.cz>
650
651         * cgraph.c (cgraph_clone_node): Take decl argument and insert
652         clone into hash when it is different from orig.
653         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
654         * cgraph.h (cgraph_clone_node): Update prototype.
655         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
656         (lto_cgraph_encoder_delete): Delete body map.
657         (lto_cgraph_encoder_size): Move to header.
658         (lto_cgraph_encoder_encode_body_p,
659         lto_set_cgraph_encoder_encode_body): New.
660         (lto_output_node): Do not take written_decls argument; output clone_of
661         pointer.
662         (add_node_to): Add include_body_argument; call
663         lto_set_cgraph_encoder_encode_body on master of the clone.
664         (add_references): Update use of add_node_to.
665         (compute_ltrans_boundary): Likewise.
666         (output_cgraph): Do not create written_decls bitmap.
667         (input_node): Take nodes argument; stream in clone_of correctly.
668         (input_cgraph_1): Update use of input_node.
669         * lto-streamer-out.c (lto_output): Use encoder info to decide
670         what bodies to output.
671         * ipa-inline.c (cgraph_clone_inlined_nodes,
672         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
673         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
674         (lto_cgraph_encoder_size): Define here.
675         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
676         Declare.
677
678 2010-05-16  Richard Guenther  <rguenther@suse.de>
679
680         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
681         -fipa-type-escape.
682         * ipa-type-escape.c (gate_type_escape_vars): Run when
683         -fipa-struct-reorg runs.
684         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
685         * common.opt (fipa-type-escape): Remove.
686
687 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
688
689         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
690         (decode_options): Likewise.
691         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
692
693 2010-05-16  Jan Hubicka  <jh@suse.cz>
694
695         * ipa.c (function_and_variable_visibility): Also bring local all
696         aliases.
697
698 2010-05-16  Richard Guenther  <rguenther@suse.de>
699
700         * alias.c (nonoverlapping_memrefs_p): Remove use of
701         IPA type-escape information.
702
703 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
704
705         * c-common.c (c_common_reswords): Add _Static_assert for C.
706         * c-parser.c (c_token_starts_declaration,
707         c_parser_next_token_starts_declaration,
708         c_parser_static_assert_declaration_no_semi,
709         c_parser_static_assert_declaration): New.
710         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
711         Handle static assertions if static_assert_ok.
712         (c_parser_external_declaration, c_parser_declaration_or_fndef,
713         c_parser_compound_statement_nostart, c_parser_label,
714         c_parser_for_statement, c_parser_objc_methodprotolist,
715         c_parser_omp_for_loop): All callers of
716         c_parser_declaration_or_fndef changed.
717         (c_parser_struct_declaration): Handle static assertions.
718         (c_parser_compound_statement_nostart): Use
719         c_parser_next_token_starts_declaration and
720         c_token_starts_declaration to detect start of declarations.
721         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
722         Likewise.
723
724 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
725
726         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
727         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
728         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
729         TARGET_FUNCTION_VALUE_REGNO_P): Define.
730         (mmix_function_outgoing_value): Rename to...
731         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
732         (mmix_function_value_regno_p): Make static.
733         (mmix_libcall_value): New function.
734         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
735         mmix_function_value_regno_p): Remove declaration.
736
737 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
738
739         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
740         BUILT_IN_ALLOCA if stack checking is enabled.
741
742 2010-05-16  Richard Guenther  <rguenther@suse.de>
743
744         * var-tracking.c (vars_copy_1): Inline ...
745         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
746         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
747         (variable_merge_over_cur): Adjust.  Merge asserts.
748         (variable_merge_over_src): Likewise.
749         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
750         (variable_post_merge_new_vals): Merge asserts.
751         (variable_post_merge_perm_vals): Likewise.
752         (find_mem_expr_in_1pdv): Likewise.
753         (dataflow_set_different_value): Remove.
754         (onepart_variable_different_p): Merge asserts.
755         (variable_different_p): Likewise.
756         (dataflow_set_different_1): Inline ...
757         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
758         (emit_notes_for_differences_1): Merge asserts.
759
760 2010-05-16  Richard Guenther  <rguenther@suse.de>
761
762         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
763         * optabs.c (libfunc_decl_hash): Likewise.
764         * varasm.c (emutls_decl): Likewise.
765
766 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
767
768         * c-decl.c: Don't include gimple.h.
769         (merge_decls): Do not copy gimple_body.
770
771 2010-05-15  Jason Merrill  <jason@redhat.com>
772
773         * c.opt: Add -fnothrow-opt.
774
775 2010-05-15  Jan Hubicka  <jh@suse.cz>
776
777         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
778         analyzed.
779         * passes.c (ipa_write_summaries): Write all analyzed nodes.
780
781 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
782
783         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
784         * Makefile.in: Add it.
785         Fix all other Makefile dependencies for changes below.
786         * tree.h: Include it instead of defining VEC primitives here.
787         * gimple.h: Likewise.
788         * rtl.h: Likewise.
789         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
790         * except.h: Include vecir.h, break dependence on tree.h.
791
792         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
793         Move from here...
794         * tree-iterator.c: ...to here.
795         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
796
797         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
798         tm_p.h.
799         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
800         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
801         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
802         tree-mudflap.h, and target.h.
803         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
804         predict.h, tree-inline.h, gimple.h, and langhooks.h.
805         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
806         Add FIXME for why gimple.h is still included (should be unnecessary
807         since GCC 4.5 gimplification unit-at-a-time).
808         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
809         * c-pragma.c: Add FIXME for why function.h needs to be included just
810         for cfun, at front-end level.
811         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
812         Do not include ggc.h, but include vecprim.h for VEC(char).
813         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
814         Explain why target.h is included.
815         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
816         Explain why gimple.h is included.
817         * c-ppoutput.c: Do not include tm.h.
818         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
819         * c-parses.c: Explain why rtl.h is included, and that this (and only
820         this) is also why tm.h must be included.
821         Do not include except.h.
822         * c-lang.c: Do not include ggc.h.
823
824 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
825
826         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
827
828 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
829
830         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
831         unions by default if those structs and unions have no tags.  Do
832         not condition anonymous struct and unions handling on flag_iso.
833         Allow anonymous structs and unions for C1X.
834         (finish_struct): Do not diagnose lack of named fields when
835         anonymous structs and unions present for C1X.  Accept flexible
836         array members in structure with anonymous structs or unions but no
837         directly named fields.
838         * doc/extend.texi (Unnamed Fields): Update.
839
840 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
841
842         * gimple.h (compare_field_offset): Rename into...
843         (gimple_compare_field_offset): ...this.
844         * gimple.c (compare_field_offset): Rename into...
845         (gimple_compare_field_offset): ...this.  Compare the full access if
846         the offset is self-referential.
847         (gimple_types_compatible_p): Adjust for above renaming.
848         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
849         DECL_NONADDRESSABLE_P flag of fields before merging them.
850
851 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
852
853         * tree.h (ctor_to_list): Delete.
854         * tree.c (ctor_to_list): Delete.
855
856 2010-05-15  Jan Hubicka  <jh@suse.cz>
857
858         * ipa-reference.c: Include toplev.h
859         (is_proper_for_analysis): Only add to all_module_statics
860         if it is allocated.
861         (write_node_summary_p, stream_out_bitmap,
862         ipa_reference_write_optimization_summary,
863         ipa_reference_read_optimization_summary): New.
864         (struct ipa_opt_pass_d pass_ipa_reference): Add
865         optimization summary streaming.
866         * lto-cgraph.c (referenced_from_this_partition_p,
867         reachable_from_this_partition_p): New functions.
868         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
869         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
870         * opts.c (decode_options): Enable ipa_reference.
871         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
872         * lto-streamer.h (referenced_from_this_partition_p,
873         reachable_from_this_partition_p): Declare.
874
875 2010-05-15  Richard Guenther  <rguenther@suse.de>
876
877         PR tree-optimization/44038
878         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
879         taking the address of a V_C_E of a constant.
880
881 2010-05-14  Jan Hubicka  <jh@suse.cz>
882
883         * tree.h (memory_identifier_string): Remove.
884         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
885         (ipa_reference_global_vars_info_d): Remove statics_not_read and
886         statics_not_written.
887         (ipa_reference_optimization_summary_d): New structure.
888         (ipa_reference_optimization_summary_t): New type and vector.
889         (ipa_reference_vars_info_d): Embedd structures instead of using
890         pointers.
891         (reference_vars_to_consider): Remove out of GGC space.
892         (module_statics_escape): Remove.
893         (global_info_obstack): Rename to ...
894         (optimization_summary_obstack): ... this one.
895         (initialization_status_t): Remove.
896         (memory_identifier_string): Remove.
897         (get_reference_vars_info): Fix indenting.
898         (set_reference_vars_info): Likewise.
899         (get_reference_optimization_summary): New.
900         (set_reference_optimization_summary): New.
901         (get_global_reference_vars_info): Remove.
902         (ipa_reference_get_read_global): Remove.
903         (ipa_reference_get_written_global): Remove.
904         (ipa_reference_get_not_read_global): Update.
905         (ipa_reference_get_not_written_global): Update.
906         (is_proper_for_analysis): Outlaw addressable.
907         (propagate_bits): Update for new datastructures.
908         (analyze_variable): Remove.
909         (init_function_info): Update for new datastructures.
910         (clean_function_local_data): Remove.
911         (clean_function): Remove.
912         (copy_global_bitmap): Use optimizations_summary_obstack.
913         (duplicate_node_data): Duplicate optimization summary only.
914         (remove_node_data): Remove optimization summary only.
915         (generate_summary): Do not analyze variables; do not compute
916         module_statics_escape; do not prune solutions by it.
917         (read_write_all_from_decl): Fix typos in comments.
918         (propagate): Doscover readonly and nonaddressable first;
919         update for new datastructures; share global bitmaps.
920         * ipa-reference.h (ipa_reference_get_read_global,
921         ipa_reference_get_written_global): Remove.
922         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
923         * Makefile.in: Remove ipa-refereference from GT files.
924
925 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
926
927         PR debug/44112
928         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
929         for all SYMBOL_REF_DECLs.
930
931 2010-05-14  Jan Hubicka  <jh@suse.cz>
932
933         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
934         (varpool_all_refs_explicit_p): New inline function.
935         * ipa-reference.c: Update comment.
936         (module_statics_written): Remove.
937         (get_static_decl): Remove.
938         (ipa_init): Do not initialize module_statics_written.
939         (analyze_function): Likewise.
940         (generate_summary): Likewise; do not compute module_statics_readonly
941         and do not update variable flags.
942         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
943         * ipa.c: Inlucde flags.h
944         (cgraph_local_node_p): New.
945         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
946         promote functions to local.
947         (ipa_discover_readonly_nonaddressable_vars): New function.
948         (function_and_variable_visibility): Use cgraph_local_node_p.
949         * varpool.c (varpool_finalize_decl): Set force_output for
950         DECL_PRESERVE_P vars.
951
952 2010-05-14  Jan Hubicka  <jh@suse.cz>
953
954         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
955
956 2010-05-14  Richard Guenther  <rguenther@suse.de>
957
958         PR tree-optimization/44119
959         * tree-ssa-pre.c (eliminate): Properly mark replacement of
960         a PHI node necessary.
961
962 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
963
964         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
965
966 2010-05-14  Jason Merrill  <jason@redhat.com>
967
968         PR c++/44127
969         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
970         (gimple_call_set_nothrow): New.
971         * gimple.c (gimple_build_call_from_tree): Call it.
972         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
973
974         PR c++/44127
975         * gimplify.c (gimplify_seq_add_stmt): No longer static.
976         * gimple.h: Declare it.
977         * gimple.c (gimple_build_eh_filter): No ops.
978
979 2010-05-14  Jan Hubicka  <jh@suse.cz>
980
981         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
982         nodes already in queue.
983         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
984         re-enqueueing node.
985
986 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
987
988         PR debug/44136
989         * cfgexpand.c (expand_debug_expr): If non-memory op0
990         has BLKmode, return NULL.
991
992 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
993
994         * config.gcc: Add support for --with-cpu option for bdver1.
995         * config/i386/i386.h (TARGET_BDVER1): New macro.
996         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
997         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
998         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
999         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
1000         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
1001         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
1002         (processor_type): Add PROCESSOR_BDVER1.
1003         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
1004         processor_type in config/i386/i386.h.
1005         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
1006         movaps <reg, reg> instead of movapd <reg, reg> when replacing
1007         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
1008         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
1009         to emit packed xor instead of packed double/packed integer
1010         xor for SSE and AVX when moving a zero value.
1011         * config/i386/sse.md: Add check for
1012         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
1013         movapd/movdqa for SSE and AVX.
1014         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
1015         single logical operations i.e and, or and xor instead of packed double
1016         logical operations for SSE and AVX.
1017         * config/i386/i386-c.c (ix86_target_macros_internal):
1018         Add PROCESSOR_BDVER1.
1019         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
1020         (has_fma4, has_xop): New.
1021         * config/i386/i386.c (bdver1_cost): New variable.
1022         (m_BDVER1): New macro.
1023         (m_AMD_MULTIPLE): Add m_BDVER1.
1024         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
1025         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
1026         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
1027         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
1028         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
1029         x86_tune_sse_partial_reg_dependency,
1030         x86_tune_sse_unaligned_load_optimal,
1031         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
1032         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
1033         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
1034         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
1035         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
1036         Enable/disable for bdver1.
1037         (processor_target_table): Add bdver1_cost.
1038         (cpu_names): Add bdver1.
1039         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
1040          processor_alias_table.
1041         (ix86_expand_vector_move_misalign): Change.
1042         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
1043         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
1044         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
1045         of movupd/movdqu for SSE and AVX.
1046         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
1047         (ix86_tune_adjust_cost): Add code for bdver1.
1048         (standard_sse_constant_opcode): Add check for
1049         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
1050         of packed double xor for SSE and AVX.
1051
1052 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
1053
1054         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
1055         result to unsigned.
1056
1057 2010-05-14  Tristan Gingold  <gingold@adacore.com>
1058
1059         * toplev.c (default_debug_hooks): Remove this variable.
1060         (process_options): Remove assignments to default_debug_hooks.
1061
1062 2010-05-14  Martin Jambor  <mjambor@suse.cz>
1063
1064         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
1065         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
1066         * langhooks.h (struct lang_hooks_for_decls): Removed field
1067         fold_obj_type_ref.
1068         * tree.c (free_lang_data): Remove assignment to
1069         lang_hooks.fold_obj_type_ref.
1070         * tree.def (OBJ_TYPE_REF): Update comment.
1071
1072 2010-05-14  Richard Guenther  <rguenther@suse.de>
1073
1074         PR tree-optimization/44124
1075         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
1076
1077 2010-05-14  Alan Modra  <amodra@gmail.com>
1078
1079         PR target/44075
1080         * config/rs6000/rs6000.c (struct machine_function): Reorder
1081         fields for better packing.  Add lr_save_state.
1082         (rs6000_ra_ever_killed): Return lr_save_state if set.
1083         (rs6000_emit_eh_reg_restore): Set lr_save_state.
1084
1085 2010-05-13  Jan Hubicka  <jh@suse.cz>
1086
1087         * varpool.c (decide_is_variable_needed): Drop code checking
1088         TREE_SYMBOL_REFERENCED.
1089
1090 2010-05-13  Jan Hubicka  <jh@suse.cz>
1091
1092         * final.c (output_addr_const): Do not call mark_decl_referenced.
1093         * cgraphunit.c (process_function_and_variable_attributes): Use
1094         mark_needed_node dirrectly.
1095         (assemble_thunk): Do not call mark_decl_referenced.
1096
1097 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
1098
1099         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
1100
1101 2010-05-13  Jeff Law  <law@redhat.com>
1102
1103         * ira-conflicts.c (print_allocno_conflicts): New function broken out
1104         from...
1105         (print_conflicts): Call print_allocno_conflicts.
1106
1107 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
1108
1109         PR debug/44104
1110         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
1111         if it is NULL.
1112
1113 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
1114
1115         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
1116         t-mingw-w64 or t-mingw-w32 for multilib configuration.
1117         * config/i386/t-mingw-w32: New.
1118         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
1119
1120 2010-05-13  Martin Jambor  <mjambor@suse.cz>
1121
1122         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
1123         gimple-fold.c).
1124         * gimple-fold.c (get_base_binfo_for_type): New function.
1125         (gimple_get_relevant_ref_binfo): Likewise.
1126         (gimple_fold_obj_type_ref_known_binfo): Likewise.
1127         (gimple_fold_obj_type_ref): Likewise.
1128         (fold_gimple_call): Simplify condition for folding virtual calls
1129         and call gimple_fold_obj_type_ref.
1130         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
1131         (gimple_fold_obj_type_ref_known_binfo): Likewise.
1132
1133 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
1134
1135         * config/rs6000/rs6000-protos.h
1136         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
1137         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
1138         (rs6000_debug_mode_dependent_address)
1139         (rs6000_mode_dependent_address_ptr): Likewise.
1140
1141 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
1142
1143         PR debug/43983
1144         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
1145         by SRA.
1146         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
1147         * tree-sra.c (create_access_replacement): Call unshare_expr before
1148         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
1149         * dwarf2out.c: Include tree-flow.h.
1150         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
1151         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
1152         Handle DW_OP_bit_piece.
1153         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
1154         construct_piece_list, adjust_piece_list): New functions.
1155         (add_var_loc_to_decl): Handle SRA optimized variables.
1156         Adjust for var_loc_note to loc field renaming.
1157         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
1158         in VAR_LOCATION note.
1159         (new_loc_descr_op_bit_piece): New function.
1160         (dw_sra_loc_expr): New function.
1161         (dw_loc_list): Use it.  Don't handle the last range after the
1162         loop, handle it inside of the loop.  Adjust for var_loc_note
1163         to loc field renaming.
1164         (add_location_or_const_value_attribute): Only special case
1165         single entry loc lists if loc is NOTE_P.  Adjust for
1166         var_loc_note to loc field renaming.
1167         (dwarf2out_var_location): Don't set newloc->var_loc_note
1168         and newloc->next here.
1169
1170 2010-05-12  Jan Hubicka  <jh@suse.cz>
1171
1172         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
1173         flag.
1174         * cgraph.h (cgraph_only_called_directly_p,
1175         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
1176         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
1177         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
1178         (assemble
1179         * ipa.c (cgraph_remove_unreachable_nodes): Use
1180         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
1181         flags.
1182         * tree-inline.c (copy_bb): Check address_taken flag.
1183         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
1184         externally_visible flag.
1185
1186 2010-05-12  Jason Merrill  <jason@redhat.com>
1187
1188         PR bootstrap/44048
1189         PR target/44099
1190         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
1191         * sdbout.c (plain_type_1): Likewise.
1192         * dwarf2out.c (is_base_type): Likewise.
1193         (gen_type_die_with_usage): Likewise.  Generate
1194         DW_TAG_unspecified_type for any LANG_TYPE.
1195
1196 2010-05-12  Jan Hubicka  <jh@suse.cz>
1197
1198         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
1199         indrect edges too.
1200         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
1201         (cgraph_clone_edge): Update.
1202         (cgraph_node_remove_callees): Remove indirect calls too.
1203         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
1204         (cgraph_create_indirect_edge): Update prototype.
1205         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
1206         is_proper_for_analysis.
1207         (add_new_function, visited_nodes, function_insertion_hook_holder,
1208         get_local_reference_vars_info, mark_address_taken, mark_address,
1209         mark_load, mark_store, check_asm_memory_clobber, check_call,
1210         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
1211         (ipa_init): Do not initialize visited_nodes;
1212         function_insertion_hook_holder.
1213         (analyze_variable): Rewrite.
1214         (analyze_function): Rewrite.
1215         (copy_local_bitmap): Remove.
1216         (duplicate_node_dat): Do not duplicate local info.
1217         (generate_summary): Simplify to only walk cgraph.
1218         (write_node_summary_p, ipa_reference_write_summary,
1219         ipa_reference_read_summary): Remove.
1220         (propagate): Do not remove function insertion;
1221         generate summary.
1222         (pass_ipa_reference): NULLify summary handling fields.
1223         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
1224         (input_edge): Input ecf_flags.
1225         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
1226         (update_indirect_edges_after_inlining): Ignore edges with unknown
1227         param.
1228
1229 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
1230
1231         * implicit-zee.c: New file.
1232         * tree-pass.h (pass_implicit_zee): Declare.
1233         * passes.c (init_optimization_passes): Add zee pass.
1234         * common.opt (fzee): New flag.
1235         * timevar.def (TV_ZEE): Define.
1236         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
1237         and beyond.
1238         * Makefile.in (implicit-zee.o): Add new build file.
1239
1240 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
1241             Nathan Froyd  <froydnj@codesourcery.com>
1242
1243         * c-common.c (sync_resolve_params): Remove write-only variable.
1244
1245 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
1246
1247         * target.h (struct gcc_target): Add mode_dependent_address_p field.
1248         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
1249         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
1250         * targhooks.c (default_mode_dependent_address_p): New function.
1251         * targhooks.h (default_mode_dependent_address_p): Declare function.
1252         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
1253         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
1254         * recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
1255         target hook. Change return type to bool.
1256         * recog.h: (mode_dependent_address_p): Change return type to bool.
1257
1258 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
1259             Nathan Froyd  <froydnj@codesourcery.com>
1260
1261         * tree-mudflap.c (build_function_type_0, build_function_type_1,
1262         build_function_type_2, build_function_type_3): Remove.
1263         (mudflap_init): Use build_function_type_list.
1264
1265 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
1266             Nathan Froyd  <froydnj@codesourcery.com>
1267
1268         * coverage.c (build_fn_info_value): Call build_constructor instead of
1269         build_constructor_from_list.
1270         (build_ctr_info_value): Likewise.
1271         (build_gcov_info): Likewise.
1272
1273 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
1274
1275         * tree.c (build_constructor): Compute TREE_CONSTANT for the
1276         resultant constructor.
1277         (build_constructor_single): Don't set TREE_CONSTANT.
1278         (build_constructor_from_list): Don't compute TREE_CONSTANT.
1279
1280 2010-05-12  Jan Hubicka  <jh@suse.cz>
1281
1282         * cgraph.h (struct varpool_node): Add aux.
1283         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
1284         * varpool.c (varpool_remove_node): Do not remove initializer.
1285         (varpool_reset_queue): Export.
1286         (varpool_finalize_decl): Volatile vars are forced to be output.
1287         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
1288         replaced decl.
1289         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
1290         process_references, varpool_can_remove_if_no_refs): New functions.
1291         (cgraph_remove_unreachable_nodes): Handle variables too.
1292
1293 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1294
1295         PR target/44088
1296         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
1297
1298 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
1299
1300         PR middle-end/44085
1301         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
1302         change value of ORT_TASK.
1303         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
1304         (omp_notice_threadprivate_variable): New function.
1305         (omp_notice_variable): Call it for threadprivate variables.
1306         If enclosing ctx is a task, print enclosing task rather than
1307         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
1308         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
1309         if task has untied clause.
1310
1311         PR debug/42278
1312         * dwarf2out.c (base_type_die): Don't add name attribute here.
1313         (modified_type_die): Instead of sizetype use
1314         its underlying original type.  If a DW_TAG_base_type doesn't
1315         have name added, add __unknown__.
1316         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
1317         always call force_type_die instead.
1318
1319 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
1320
1321         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
1322         for __stack_chk_guard.
1323
1324 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
1325
1326         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
1327         don't call start_source_file debug hook here...
1328         (finish_options): ... but here, after outputting predefined and
1329         command line defines and undefs.
1330
1331         PR middle-end/44071
1332         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
1333         no fallthru edge.
1334         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
1335         optimizing away empty bb with no successors, move over its
1336         footer chain to fallthru predecessor.
1337         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
1338         (rtl_split_edge): For asm goto call patch_jump_insn even if
1339         splitting fallthru edge.
1340
1341         PR c++/44059
1342         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
1343         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
1344         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1345         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
1346         on DW.ref.* decls.
1347
1348         PR c++/44062
1349         * c-parser.c (c_parser_expression): Mark LHS of a comma
1350         expression as read if it is a decl, handled component or
1351         COMPOUND_EXPR with that on the RHS.
1352         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
1353         if it is a decl or handled component.
1354
1355 2010-05-11  Jan Hubicka  <jh@suse.cz>
1356
1357         * lto-symtab.c (lto_symtab_free): New function.
1358         * lto-streamer.h (lto_symtab_free): Declare.
1359
1360 2010-05-11  Jan Hubicka  <jh@suse.cz>
1361
1362         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
1363         that if function is needed it is reachable.
1364         (lto_output_node): See if it the function is reachable or referenced.
1365         (output_cgraph): Update call of lto_output_node.
1366         * lto-streamer.h (reachable_from_other_partition_p): Declare.
1367
1368 2010-05-11  Jan Hubicka  <jh@suse.cz>
1369
1370         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
1371         Mark as used.
1372
1373 2010-05-11  Jan Hubicka  <jh@suse.cz>
1374
1375         PR tree-optimize/44063
1376         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
1377         queue.
1378         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
1379         limits.
1380         (estimate_function_body_sizes): Compute sizes even when disregarding.
1381
1382 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
1383
1384         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
1385
1386 2010-05-11  Jan Hubicka  <jh@suse.cz>
1387
1388         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
1389         into every boundary.
1390
1391 2010-05-11  Jan Hubicka  <jh@suse.cz>
1392
1393         * matrix-reorg.c (matrix_reorg): Rebuild edges.
1394
1395 2010-05-11  Jan Hubicka  <jh@suse.cz>
1396
1397         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
1398         lto_streamer_cache_delete): Put nodes into heap.
1399         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
1400         heap.
1401
1402 2010-05-11  Jan Hubicka  <jh@suse.cz>
1403
1404         * cgraphbuild.c (cgraph_rebuild_references): New.
1405         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
1406         out extern inlines.
1407         * cgraph.h (cgraph_rebuild_references): Declare.
1408         * tree-inline.c (tree_function_versioning): Use it.
1409         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
1410
1411 2010-05-11  Jan Hubicka  <jh@suse.cz>
1412
1413         * cgraph.c: Include ipa-utils.h
1414         (cgraph_create_virtual_clone): Update references.
1415         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
1416
1417 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
1418
1419         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
1420         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
1421         cache size.
1422
1423 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
1424
1425         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
1426
1427 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
1428
1429         * gcc.c (execute): For -### don't quote arguments that
1430         contain just alphanumerics and _/-. characters.
1431         * doc/invoke.texi: Document that change for -###.
1432
1433         PR debug/44023
1434         * df-problems.c (struct dead_debug): Add to_rescan field.
1435         (dead_debug_init): Clear to_rescan field.
1436         (dead_debug_finish): Rescan all debug insns in to_rescan
1437         bitmap and free the bitmap.
1438         (dead_debug_insert_before): Instead of rescanning debug insns
1439         immediately queue their rescanning until dead_debug_finish.
1440         (df_note_bb_compute): After dead_debug_add do continue instead
1441         of break.
1442
1443 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
1444
1445         PR debug/44028
1446         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
1447         clear also INSN_REG_USE_LIST.
1448
1449 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1450
1451         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
1452
1453 2010-05-10  Jan Hubicka  <jh@suse.cz>
1454
1455         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
1456         commited change.
1457
1458 2010-05-10  Jan Hubicka  <jh@suse.cz>
1459
1460         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
1461         Allocate encoders.
1462         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
1463         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
1464         (lto_streamer_cache_create): Init alloc pool.
1465         (lto_streamer_cache_delete): Free alloc pool.
1466         * lto-streamer.h: Include alloc pool.
1467         (lto_streamer_cache_d): Use alloc pool.
1468         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
1469
1470 2010-05-10  Jan Hubicka  <jh@suse.cz>
1471
1472         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
1473         * cgraphbuild.c: Include except.h
1474         (record_type_list, record_eh_tables): New function.
1475         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
1476
1477 2010-05-10  Jan Hubicka  <jh@suse.cz>
1478
1479         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
1480         __frame_dummy_init_array_entry, force_to_data): Attribute as used
1481         rather than unused.
1482
1483 2010-05-10  Michael Matz  <matz@suse.de>
1484
1485         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
1486         (can_reassociate_p): Use FLOAT_TYPE_P.
1487         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
1488         (vect_force_simple_reduction): ... this.
1489         * tree-parloops.c (gather_scalar_reductions): Use
1490         vect_force_simple_reduction.
1491         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
1492         vect_is_simple_reduction, add modify argument, if true rewrite
1493         "a-b" into "a+(-b)".
1494         (vect_is_simple_reduction, vect_force_simple_reduction): New
1495         functions.
1496         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
1497
1498 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1499             Vladimir Makarov  <vmakarov@redhat.com>
1500
1501         PR rtl-optimization/44012
1502         * ira-build.c (remove_unnecessary_allocnos): Nullify
1503         regno_allocno_map of the removed allocno.
1504
1505 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1506
1507         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
1508         to /dev/null.
1509         * configure: Regenerate.
1510
1511 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1512
1513         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
1514         unused.
1515         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
1516         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
1517         support in Sun ld.
1518         * configure: Regenerate.
1519
1520 2010-05-10  Richard Guenther  <rguenther@suse.de>
1521
1522         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
1523         marked if the entry identifier is marked.
1524
1525 2010-05-10  Richard Guenther  <rguenther@suse.de>
1526
1527         * c-common.c (struct c_common_attributes): Add fnspec attribute.
1528         (handle_fnspec_attribute): New function.
1529         * gimple.h (gimple_call_return_flags): Declare.
1530         (gimple_call_arg_flags): Likewise.
1531         * gimple.c (gimple_call_arg_flags): New function.
1532         (gimple_call_return_flags): Likewise.
1533         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
1534         New argument flags.
1535         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
1536         return value flags.
1537         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
1538         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
1539         main work to ...
1540         (make_heapvar_for): ... this new function.
1541         (handle_rhs_call): Handle fnspec attribute argument specifiers.
1542         (handle_lhs_call): Likewise.
1543         (find_func_aliases): Adjust.
1544
1545 2010-05-10  Richard Guenther  <rguenther@suse.de>
1546
1547         PR tree-optimization/44050
1548         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
1549
1550 2010-05-10  Wei Guozhi  <carrot@google.com>
1551
1552         PR target/42879
1553         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
1554
1555 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
1556
1557         PR c/10676
1558         * c-typeck.c (lookup_field): Take a type directly.  Update
1559         recursive calls.
1560         (build_component_ref): Update call to lookup_field.
1561         (set_init_label): Use lookup_field to find initialized field.
1562         Handle returned list of fields like a sequence of designators.
1563
1564 2010-05-09  Richard Guenther  <rguenther@suse.de>
1565
1566         PR middle-end/44024
1567         * fold-const.c (tree_single_nonzero_warnv_p): Properly
1568         handle &FUNCTION_DECL.
1569
1570 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
1571
1572         PR c/4784
1573         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
1574         structures and unions recursively.
1575         (detect_field_duplicates): Move duplicate detection with a hash to
1576         detect_field_duplicates_hash.  Always use a hash if anonymous
1577         structures or unions are present.
1578         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
1579         give errors.
1580
1581 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1582
1583         PR target/44046
1584         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
1585         detect Atom, Core 2 and Core i7.
1586
1587 2010-05-09  Richard Guenther  <rguenther@suse.de>
1588
1589         * gcc.c (store_arg): Handle temporary file deletion for
1590         joined arguments.
1591
1592 2010-05-09  Richard Guenther  <rguenther@suse.de>
1593
1594         PR middle-end/44043
1595         * ipa-inline.c (estimate_function_body_sizes): Return after
1596         disregarding inline limits.
1597
1598 2010-05-09  Richard Guenther  <rguenther@suse.de>
1599
1600         * gcc.c (store_arg): Revert last change.
1601
1602 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
1603
1604         PR middle-end/28685
1605         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
1606         (optimize_ops_list): Call it.
1607
1608 2010-05-08  Richard Guenther  <rguenther@suse.de>
1609
1610         PR tree-optimization/44030
1611         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
1612         NECESSARY flag if we propagate from a inserted expression.
1613
1614 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1615
1616         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
1617         domain types as equal if they are both PLACEHOLDER_EXPRs.
1618
1619 2010-05-08  Richard Guenther  <rguenther@suse.de>
1620
1621         * lto-wrapper.c (run_gcc): Remove linker output from
1622         command line for LTRANS invocation.
1623
1624 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
1625
1626         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1627         lto-macho as lto_binary_reader.
1628         * target.h (struct gcc_target): New hooks lto_start and lto_end.
1629         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
1630         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
1631         in lto_start and lto_end calls.
1632         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
1633         magic numbers.
1634         (scan_prog_file): Update is_elf_or_coff call.
1635         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
1636
1637         * collect2.c (main): Fix enum comparison.
1638
1639         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
1640         Add prototypes.
1641         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
1642         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
1643         and TARGET_ASM_LTO_END.
1644         * darwin.c: Include obstack.h and lto-streamer.h.
1645         (lto_section_names_offset, lto_section_names_obstack,
1646         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
1647         global variables.
1648         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
1649         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
1650         to a temporary file.
1651         (darwin_asm_lto_end): New function.  Restore asm_out_file.
1652         (darwin_asm_named_section): For LTO sections, replace the name with
1653         the offset of the section name in a string table, and build this
1654         table.
1655         (darwin_file_start): Initialize global vars for LTO support.
1656         (darwin_file_end): If output to asm_out_file was redirected, append it
1657         to the proper asm_out_file here.  Add the section names section.
1658
1659 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
1660
1661         * c-pragma.c (pending_weak_d, pending_weak): New.
1662         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
1663         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
1664         handle_pragma_weak): Update the uses of pending_weaks.
1665
1666 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1667
1668         PR documentation/44016
1669         * doc/standards.texi (Standards): Link to unversioned
1670         cxx0x_status.html page.
1671
1672 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
1673
1674         PR target/43708
1675         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
1676         in addition to TREE_USED, to avoid "set but unused" warnings.
1677
1678 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
1679
1680         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
1681         (is_loop_prefetching_profitable): Do not insert prefetches
1682         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
1683         times the prefetch ahead distance.
1684
1685 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
1686
1687         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
1688         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
1689         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
1690         the unroll_factor.
1691
1692 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
1693
1694         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
1695         a diagnostic info when the insn-to-mem ratio is too small.
1696
1697 2010-05-07  Richard Guenther <rguenther@suse.de>
1698
1699         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
1700         the linker plugin.
1701         (store_arg): Queue temp_filename for deletion instead of
1702         the whole argument.
1703
1704 2010-05-07  Richard Guenther  <rguenther@suse.de>
1705
1706         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
1707         (run_gcc): Handle LTRANS phase invocation.
1708         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
1709
1710 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
1711
1712         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
1713         this is also meaningful on PARM_DECLs and RESULT_DECLs.
1714
1715 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1716
1717         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
1718
1719 2010-05-07  Richard Guenther  <rguenther@suse.de>
1720
1721         PR tree-optimization/44020
1722         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
1723         code when PRE is not yet initialized.
1724
1725 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1726
1727         * config/mips/dbxmdebug.h: Remove.
1728         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
1729
1730 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
1731
1732         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
1733         with null pointer and also warn about ordered comparison of zero with
1734         pointer if -Wextra.
1735
1736 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1737
1738         * graphite-blocking.c
1739         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1740         * graphite-clast-to-gimple.c
1741         (clast_to_gcc_expression): Same.
1742         (precision_for_value): Same.
1743         (precision_for_interval): Same.
1744         (gcc_type_for_interval): Same.
1745         (graphite_create_new_guard): Same.
1746         (compute_bounds_for_level): Same.
1747         (graphite_create_new_loop_guard): Same.
1748         * graphite-interchange.c
1749         (build_linearized_memory_access): Same.
1750         (pdr_stride_in_loop): Same.
1751         (memory_strides_in_loop_1): Same.
1752         (memory_strides_in_loop): Same.
1753         (extend_scattering): Same.
1754         (psct_scattering_dim_for_loop_depth): Same.
1755         (pbb_number_of_iterations): Same.
1756         * graphite-poly.h
1757         (debug_iteration_domains): Same.
1758         * graphite-ppl.c
1759         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1760         (ppl_set_inhomogeneous_gmp): Same.
1761         (ppl_strip_loop): Same.
1762         (ppl_lexico_compare_linear_expressions): Same.
1763         (ppl_read_polyhedron_matrix): Same.
1764         (ppl_max_for_le_pointset): Same.
1765         * graphite-ppl.h
1766         (ppl_read_polyhedron_matrix): Same.
1767         (tree_int_to_gmp): Same.
1768         (gmp_cst_to_tree): Same.
1769         (ppl_set_inhomogeneous): Same.
1770         (ppl_set_inhomogeneous_tree): Same.
1771         (ppl_set_coef): Same.
1772         (ppl_set_coef_tree): Same.
1773         * graphite-sese-to-poly.c
1774         (build_pbb_scattering_polyhedrons): Same.
1775         (build_scop_scattering): Same.
1776         (scan_tree_for_params_right_scev): Same.
1777         (scan_tree_for_params): Same.
1778         (find_params_in_bb): Same.
1779         (find_scop_parameters): Same.
1780         (add_upper_bounds_from_estimated_nit): Same.
1781         (build_loop_iteration_domains): Same.
1782         (add_condition_to_domain): Same.
1783         (pdr_add_memory_accesses): Same.
1784
1785 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1786
1787         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1788         CLooG's value_* macros to their respective mpz_* counterparts.
1789         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1790         (graphite_create_new_loop_guard): Same.
1791         * graphite-interchange.c (build_linearized_memory_access): Same.
1792         (pdr_stride_in_loop): Same.
1793         (memory_strides_in_loop_1): Same.
1794         (1st_interchange_profitable_p): Same.
1795         * graphite-poly.c (extend_scattering): Same.
1796         (psct_scattering_dim_for_loop_depth): Same.
1797         (pbb_number_of_iterations): Same.
1798         (pbb_number_of_iterations_at_time): Same.
1799         * graphite-poly.h (new_1st_loop): Same.
1800         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1801         (oppose_constraint): Same.
1802         (insert_constraint_into_matrix): Same.
1803         (ppl_set_inhomogeneous_gmp): Same.
1804         (ppl_set_coef_gmp): Same.
1805         (ppl_strip_loop): Same.
1806         (ppl_lexico_compare_linear_expressions): Same.
1807         (ppl_max_for_le_pointset): Same.
1808         (ppl_min_for_le_pointset): Same.
1809         (ppl_build_realtion): Same.
1810         * graphite-ppl.h (gmp_cst_to_tree): Same.
1811         (ppl_set_inhomogeneous): Same.
1812         (ppl_set_inhomogeneous_tree): Same.
1813         (ppl_set_coef): Same.
1814         (ppl_set_coef_tree): Same.
1815         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1816         (build_scop_scattering): Same.
1817         (add_value_to_dim): Same.
1818         (scan_tree_for_params_right_scev): Same.
1819         (scan_tree_for_params_int): Same.
1820         (scan_tree_for_params): Same.
1821         (find_params_in_bb): Same.
1822         (find_scop_parameters): Same.
1823         (add_upper_bounds_from_estimated_nit): Same.
1824         (build_loop_iteration_domains): Same.
1825         (create_linear_expr_from_tree): Same.
1826         (add_condition_to_domain): Same.
1827         (pdr_add_memory_accesses): Same.
1828
1829 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
1830             Jason Merrill  <jason@redhat.com>
1831
1832         * c-common.c (c_common_reswords): Add nullptr.
1833         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
1834         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
1835         (gen_type_die_with_usage): Likewise.
1836         * dbxout.c (dbxout_type): Likewise.
1837         * sdbout.c (plain_type_1): Likewise.
1838
1839 2010-05-06  Jason Merrill  <jason@redhat.com>
1840
1841         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
1842         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
1843         ret appropriately.
1844         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
1845
1846         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
1847         stripping WITH_SIZE_EXPR.
1848         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
1849         change.
1850
1851 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1852
1853         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
1854         list of obsolete configurations.
1855         Disabled check for obsolete configurations.
1856         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
1857         Removed support for previous versions.
1858         * config/mips/iris.h: Removed.
1859         * config/mips/iris5.h: Removed.
1860         * config/mips/iris6.h: Merged old iris.h contents.
1861         (TARGET_IRIX): Removed.
1862         (DRIVER_SELF_SPECS): Removed mabi=32.
1863         (IDENT_ASM_OP): Removed undef.
1864         (STARTFILE_SPEC): Removed mabi=32.
1865         (ENDFILE_SPEC): Likewise.
1866         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
1867         (MACHINE_TYPE): Update for IRIX 6.5.
1868         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
1869         TARGET_IRIX by TARGET_IRIX6.
1870         (mips_file_start): Likewise.
1871         (mips_output_external): Remove IRIX 5/6 O32 support.
1872         (mips_output_function_prologue): Likewise.
1873         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
1874         TARGET_IRIX6.
1875         (TARGET_CPU_CPP_BUILTINS): Likewise.
1876         (TARGET_IRIX): Removed.
1877         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
1878         (MULTILIB_DIRNAMES): Removed 32.
1879         (MULTILIB_OSDIRNAMES): Removed ../lib.
1880         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
1881         (Specific, mips-sgi-irix5): Document removal.
1882         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
1883         Remove references to older IRIX 6 releases and the O32 ABI.
1884
1885 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
1886
1887         PR bootstrap/43994
1888         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
1889         instead of DF_REF_REAL_REG.
1890
1891 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1892
1893         PR target/43888
1894         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
1895         handling to still return true for x64 targets.
1896
1897 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1898
1899         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
1900
1901 2010-05-06  Jan Hubicka  <jh@suse.cz>
1902
1903         PR tree-optimization/43791
1904         * ipa-inline.c (update_caller_keys): Remove bogus
1905         disregard_inline_limits check.
1906
1907 2010-05-06  Michael Matz  <matz@suse.de>
1908
1909         PR tree-optimization/43984
1910         * tree-ssa-pre.c (inserted_phi_names): Remove.
1911         (inserted_exprs): Change to bitmap.
1912         (create_expression_by_pieces): Set bits, don't append to vector.
1913         (insert_into_preds_of_block): Don't handle inserted_phi_names.
1914         (eliminate): Don't look at inserted_phi_names, remove deleted
1915         insns from inserted_exprs.
1916         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
1917         (init_pre, fini_pre): Allocate and free bitmaps.
1918         (execute_pre): Insert insns on edges before elimination.
1919
1920 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1921
1922         * tree.c (initializer_zerop): Handle STRING_CST.
1923
1924 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1925
1926         PR 40989
1927         * doc/invoke.texi (Wimplicit): Document as C only.
1928         * opts.c (common_handle_option): Add argument kind.
1929         (handle_option): Rename as read_cmdline_option. Factor out code to...
1930         (handle_option): ... here. New.
1931         (handle_options): Rename as read_cmdline_options.
1932         (decode_options): Update call.
1933         (set_option): Use option index instead of option pointer. Classify
1934         diagnostics correctly.
1935         (enable_warning_as_error): Call handle_option.
1936         * opts.h (set_option): Update declaration.
1937         (handle_option): Declare.
1938         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
1939         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
1940         * c-opts.c (set_Wimplicit): Delete.
1941         (c_family_lang_mask): New static constant.
1942         (c_common_handle_option): Add argument kind. Use handle_option
1943         instead of set_Wimplicit.
1944         (c_common_post_options): warn_implicit and warn_implicit_int
1945         are disabled by default.
1946         * c-common.c (warn_implicit): Do not define here.
1947         * c-common.h (warn_implicit): Do not declare here.
1948         (c_common_handle_option): Update declaration.
1949         * lto-opts.c (lto_reissue_options): Update call to set_option.
1950
1951 2010-05-06  Richard Guenther  <rguenther@suse.de>
1952
1953         PR tree-optimization/43571
1954         * domwalk.c (walk_dominator_tree): Walk the dominator
1955         sons in more optimal order.
1956
1957 2010-05-06  Richard Guenther  <rguenther@suse.de>
1958
1959         PR tree-optimization/43934
1960         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
1961         (stmt_cost): Likewise.
1962         (extract_true_false_args_from_phi): New helper.
1963         (determine_max_movement): For PHI nodes verify we can hoist them
1964         and compute their cost.
1965         (determine_invariantness_stmt): Handle PHI nodes.
1966         (move_computations_stmt): Likewise.  Hoist PHI nodes in
1967         if-converted form using COND_EXPRs.
1968         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
1969         (tree_ssa_lim): Likewise.
1970         * tree-flow.h (tree_ssa_lim): Adjust prototype.
1971         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
1972
1973 2010-05-06  Richard Guenther  <rguenther@suse.de>
1974
1975         PR tree-optimization/43987
1976         * tree-ssa-structalias.c (could_have_pointers): For possibly
1977         address-taken variables force pointers to be recorded.
1978         (create_variable_info_for_1): Likewise.
1979         (push_fields_onto_fieldstack): Pass in wheter all fields
1980         must have pointers.
1981         (find_func_aliases): Query types instead of vars whether
1982         they contain pointers where appropriate.
1983
1984 2010-05-06  Jan Hubicka  <jh@suse.cz>
1985
1986         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
1987         (record_reference, mark_address, mark_load, mark_store): Record
1988         references.
1989         (record_references_in_initializer): Update call of record_references.
1990         (rebuild_cgraph_edges): Remove all references before rebuiding.
1991         * cgraph.c (cgraph_create_node): Clear ref list.
1992         (cgraph_remove_node): Remove references.
1993         (dump_cgraph_node): Dump references.
1994         (cgraph_clone_node): Clone references.
1995         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
1996         (struct cgraph_node, varpool_node): Add ref_lst.
1997         * ipa-ref.c: New file.
1998         * ipa-ref.h: New file.
1999         * ipa-ref-inline.h: New file.
2000         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
2001         (referenced_from_other_partition_p): New function.
2002         (lto_output_varpool_node): Take set arugment; call
2003         referenced_from_other_partition.
2004         (lto_output_ref): New.
2005         (add_references): New.
2006         (output_refs): New.
2007         (output_cgraph): Compute boundary based on references; output refs.
2008         (output_varpool): Accept cgraph_node_set argument.
2009         (input_ref): New.
2010         (input_refs): New.
2011         (input_cgraph): Call input_refs.
2012         * lto-section-in.c (lto_section_name): Add refs.
2013         * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
2014         (ipa-ref.o): New file.
2015         * varpool.c (varpool_node): Clear ipa ref list.
2016         (varpool_remove_node): Remove references.
2017         (dump_varpool_node): Dump references.
2018         (varpool_assemble_decl): Only compile finalized ones.
2019         (varpool_extra_name_alias): Initialize ref list.
2020         * lto-streamer.c (lto-get_section_name): Add .refs section.
2021         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
2022         (referenced_from_other_partition_p): Declared.
2023
2024 2010-05-06  Ira Rosen  <irar@il.ibm.com>
2025
2026         PR tree-optimization/43901
2027         * tree-vect-stmts.c (vectorizable_call): Assert that vector
2028         type is not NULL if it's transformation phase, and return
2029         FALSE if it's analysis.
2030         (vectorizable_conversion, vectorizable_operation,
2031         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
2032
2033 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
2034
2035         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
2036         Delete.
2037         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
2038         New define.
2039         * config/mips/mips-protos.h
2040         (mips_small_register_classes_for_mode_p): Delete prototype.
2041
2042 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
2043
2044         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
2045         * config/arm/arm.c (multiple_operation_profitable_p,
2046         compute_offset_order): New static functions.
2047         (load_multiple_sequence, store_multiple_sequence): Use them.
2048         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
2049         memory offsets, not register numbers.
2050         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
2051
2052 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
2053
2054         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
2055         (get_pending_sizes, put_pending_size, put_pending_sizes):
2056         Update the uses of pending_sizes.
2057         * c-decl.c (store_parm_decls): Likewise.
2058         * c-tree.h (struct c_arg_info): Likewise.
2059         * tree.h: Update the prototype for get_pending_sizes and
2060         put_pending_sizes.
2061
2062 2010-05-05  Jason Merrill  <jason@redhat.com>
2063
2064         PR debug/43370
2065         * c-common.c (handle_aligned_attribute): Respect
2066         ATTR_FLAG_TYPE_IN_PLACE.
2067
2068         PR testsuite/43758
2069         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
2070         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2071         (TARGET_INITIALIZER): Use it.
2072         * c-common.c (attribute_takes_identifier_p): Call it.
2073         * c-common.h: Update prototype.
2074         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
2075         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2076
2077 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
2078
2079         PR debug/43950
2080         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
2081         DW_ID_down_case for Fortran compilation units.
2082
2083 2010-05-05  Jan Hubicka  <jh@suse.cz>
2084
2085         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
2086         handle aliases.
2087
2088 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2089
2090         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
2091         a variable-sized RESULT_DECL.
2092
2093 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
2094
2095         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
2096
2097 2010-05-05  Jason Merrill  <jason@redhat.com>
2098
2099         PR c++/43787
2100         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
2101         returns GS_OK.
2102         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
2103
2104 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
2105             Jakub Jelinek  <jakub@redhat.com>
2106
2107         PR debug/43478
2108         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
2109         (dead_debug_init, dead_debug_finish): New functions.
2110         (dead_debug_add, dead_debug_insert_before): Likewise.
2111         (df_note_bb_compute): Initialize a dead_debug object, add dead
2112         debug uses to it, insert debug bind insns before death insns,
2113         reset debug insns that refer to pending uses at the end.
2114         * rtl.h (make_debug_expr_from_rtl): New prototype.
2115         * varasm.c (make_debug_expr_from_rtl): New function.
2116
2117 2010-05-05  Jan Hubicka  <jh@suse.cz>
2118
2119         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
2120         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
2121         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
2122         lto_varpool_encoder_deref, lto_varpool_encoder_size,
2123         lto_varpool_encoder_encode_initializer_p,
2124         lto_set_varpool_encoder_encode_initializer): New functions.
2125         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
2126         call output_varpool.
2127         (input_varpool_node): Do not always set analyzed.
2128         (input_cgraph_1): Return vector of cgraph nodes.
2129         (input_varpool_1): Return vector of varpools.
2130         (input_cgraph): Free the vectors.
2131         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2132         output only initializers needed.
2133         (lto_output): Only call output_cgraph.
2134         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
2135         * lto-section-out.c (lto_new_out_decl_state): Initialize
2136         state->varpool_node_encoder.
2137         * lto-streamer.h (lto_varpool_encoder_d): New.
2138         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
2139         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
2140         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
2141         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
2142         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
2143         Declare.
2144         (output_varpool, input_varpool): Remove declarations.
2145
2146 2010-05-05  Jan Hubicka  <jh@suse.cz>
2147
2148         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
2149         with body can prevail.
2150
2151 2010-05-05  Jan Hubicka  <jh@suse.cz>
2152
2153         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
2154         size.
2155
2156 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2157
2158         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
2159
2160         * gengtype.h (erro_at_line): Constify pos argument.
2161
2162         * gengtype.c: Include hashtab.h.
2163         (enum gc_used): Document GC_MAYBE_POINTED_TO.
2164         (error_at_line): Constify pos argument.
2165         (do_typedef): Initialize p->opt field.
2166         (get_file_gtfilename): Fix comment typo.
2167         (struct walk_type_data): Constify line field.
2168         (get_output_file_for_structure): New function.
2169         (write_local_func_for_structure): Constify orig_s argument.
2170         Use get_output_file_for_structure.
2171         (write_func_for_structure): Use get_output_file_for_structure.
2172         (INDENT): New define.
2173         (dump_pair, dump_type, dump_type_list, dump_typekind)
2174         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
2175         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
2176         functions.
2177         (seen_types): New variable.
2178         (main): New variable do_dump.  Process "-d" command line option.
2179         Call dump_everything if dump requested.
2180
2181 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
2182
2183         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
2184         in a temporary instead of invoking the macro multiple times.
2185         (track_expr_p): Likewise.
2186
2187 2010-05-04  Neil Vachharajani <nvachhar@google.com>
2188
2189         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
2190         per new semantics.
2191         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
2192         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
2193         conditions for printing notes.
2194         * common.opt (-Wcoverage-mismatch): Allow negative, default to
2195         true, update documentation.
2196         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
2197
2198 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
2199
2200         PR c/43981
2201         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
2202         on dimen.
2203
2204 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2205
2206         PR target/43799
2207         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
2208         (*sse_prologue_save_insn1): Likewise.
2209         (SSE prologue save splitter): Likewise.
2210
2211 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2212
2213         * tree.c (free_lang_data_in_one_sizepos): New inline function.
2214         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
2215         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
2216         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
2217         all decls.  Call it on DECL_FIELD_OFFSET of fields.
2218         (find_decls_types_r): Follow DECL_VALUE_EXPR.
2219         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
2220
2221 2010-05-04  Martin Jambor  <mjambor@suse.cz>
2222
2223         * tree-sra.c (build_access_from_expr_1): The first parameter type
2224         changed to simple tree.
2225         (build_access_from_expr): Likewise, gsi parameter was eliminated.
2226         (scan_assign_result): Renamed to assignment_mod_result, enum elements
2227         renamed as well.
2228         (build_accesses_from_assign): Removed all parameters except for a
2229         simple gimple statement.  Now returns a simple bool.
2230         (scan_function): All non-analysis parts moved to separate functions
2231         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
2232         parameters and updated both callers.
2233         (sra_modify_expr): Removed parameter data.
2234         (sra_modify_function_body): New function.
2235         (perform_intra_sra): Call sra_modify_function_body to modify the
2236         function body.
2237         (replace_removed_params_ssa_names): Parameter data changed into
2238         adjustments vector.
2239         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
2240         changed the parameter dont_convert to convert with the opposite
2241         meaning.
2242         (sra_ipa_modify_assign): Parameter data changed into adjustments
2243         vector, return value changed to bool.
2244         (ipa_sra_modify_function_body): New function.
2245         (sra_ipa_reset_debug_stmts): Updated a comment.
2246         (modify_function): Use ipa_sra_modify_function_body to modify function
2247         body.
2248
2249 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2250
2251         PR middle-end/43671
2252         * alias.c (true_dependence): Handle the same VALUE in x and mem.
2253         (canon_true_dependence): Likewise.
2254         (write_dependence_p): Likewise.
2255
2256 2010-05-04  Jan Hubicka  <jh@suse.cz>
2257
2258         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
2259         * cgraphbuild.c: Include ipa-utils.h
2260         (record_reference_ctx): New struct.
2261         (record_reference): Simplify to work on initializers; not statements.
2262         (mark_address, mark_load, mark_store): New.
2263         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
2264         walk PHI nodes too.
2265         (record_references_in_initializer): Update use of record_reference.
2266         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
2267         walk PHI nodes too.
2268
2269 2010-05-04  Jan Hubicka  <jh@suse.cz>
2270
2271         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
2272         node will be removed anyway.
2273         (lto_varpool_replace_node): Allow also unanalyzed nodes;
2274         relink aliases of node into prevailing node.
2275         * varpool.c (varpool_remove_node): Remove aliases properly;
2276         when removing node, remove all its aliases too; remove DECL_INITIAL
2277         of removed node; ggc_free the varpool node.
2278
2279 2010-05-04  Richard Guenther  <rguenther@suse.de>
2280
2281         PR tree-optimization/43879
2282         * tree-ssa-structalias.c (alias_get_name): Use
2283         DECL_ASSEMBLER_NAME if available.
2284         (create_function_info_for): Return the varinfo node.
2285         (ipa_pta_execute): Associate same-body aliases and extra names
2286         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
2287
2288 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2289
2290         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
2291
2292 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
2293
2294         PR bootstrap/43964
2295         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
2296         only if HONOR_REG_ALLOC_ORDER is not defined.
2297
2298 2010-05-04  Richard Guenther  <rguenther@suse.de>
2299
2300         PR tree-optimization/43949
2301         * tree-vrp.c (extract_range_from_binary_expr): Only handle
2302         TRUNC_MOD_EXPR.
2303
2304 2010-04-26  Jason Merrill  <jason@redhat.com>
2305
2306         * c.opt (-fstrict-enums): New.
2307         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
2308
2309 2010-05-03  David Ung <davidu@mips.com>
2310             James E. Wilson  <wilson@codesourcery.com>
2311
2312         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
2313         emit the trap instruction before the divide for TUNE_74K.
2314
2315 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
2316
2317         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
2318         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
2319         based on the above, for new target hook.
2320
2321         * hooks.c (hook_bool_mode_true): New generic hook.
2322         * hooks.h (hook_bool_mode_true): Add prototype.
2323
2324         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
2325         target hook.
2326         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
2327         target hook, set to hook_bool_mode_false.
2328         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
2329         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
2330         with targetm.small_register_classes_for_mode_p.
2331         (find_reusable_reload): Likewise.
2332         (combine_reloads): Likewise.
2333         * reload1.c (reload_as_needed): Likewise.
2334         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
2335         * ifcvt.c (noce_process_if_block, check_cond_move_block,
2336         dead_or_predicable): Likewise.
2337         * regmove.c (optimize_reg_copy_1): Likewise.
2338         * calls.c (prepare_call_address): Likewise.
2339         (precompute_register_parameters): Likewise.
2340
2341         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
2342         hook definition.
2343         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
2344         implementation of the hook that considers all register classes
2345         small except for SH64.
2346         (sh_override_options): Use the new hook.
2347         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
2348         Add prototype.
2349
2350         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
2351         hook definition.
2352         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
2353         implementation of the hook that considers all register classes
2354         small for THUMB1.
2355         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
2356         Add prototype.
2357
2358         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
2359         hook definition.
2360         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
2361         implementation of the hook that considers all register classes
2362         small for MIPS16.
2363         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
2364         Add prototype.
2365
2366         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
2367         hook definition.
2368         * config/m32c/m32c.h: Likewise.
2369         * config/pdp11/pdp11.h: Likewise.
2370         * config/avr/avr.h: Likewise.
2371         * config/xtensa/xtensa.h: Likewise.
2372         * config/m68hc11/m68hc11.h: Likewise.
2373         * config/mn10300/mn10300.h: Likewise.
2374         * config/mcore/mcore.h: Likewise.
2375         * config/h8300/h8300.h: Likewise.
2376         * config/bfin/bfin.h: Likewise.
2377
2378         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
2379         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
2380
2381 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
2382
2383         * double-int.h (tree_to_double_int): Remove macro.
2384         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
2385         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2386         (tree_to_double_int): New function.
2387         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
2388         Move ...
2389         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2390
2391 2010-05-03  Richard Guenther  <rguenther@suse.de>
2392
2393         PR tree-optimization/43971
2394         * tree-ssa-structalias.c (get_constraint_for_1): Fix
2395         constraints in the !flag_delete_null_pointer_checks case.
2396
2397 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
2398
2399         PR debug/43972
2400         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
2401         result mode matches original rtl mode.
2402
2403 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
2404
2405         PR target/43888
2406         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
2407
2408 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
2409
2410         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
2411         when processing flag options.
2412
2413 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
2414
2415         * gcov-iov.c (main): Change format string placeholder
2416         from %#08x to 0x%08x.
2417         * genchecksum.c (dosum): Change format string placeholder
2418         from %#02x to 0x%02x.
2419
2420 2010-05-02  Richard Guenther  <rguenther@suse.de>
2421
2422         PR tree-optimization/43879
2423         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
2424
2425 2010-05-02  Bruno Haible  <bruno@clisp.org>
2426
2427         * doc/extend.texi (Function Attributes): Fix a typo.
2428
2429 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
2430
2431         Revert:
2432         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
2433         placeholder from 0x%x to %#x.
2434         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2435         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2436         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2437         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2438         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2439         * config/i386/i386.c (ix86_target_string): Ditto.
2440         * config/i386/i386.c (output_pic_addr_const): Ditto.
2441         (print_operand): Ditto.
2442
2443 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
2444
2445         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
2446         placeholder from 0x%x to %#x.
2447         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
2448         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
2449         (ASM_OUTPUT_DEBUG_DATA): Ditto.
2450         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
2451         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
2452         * optc-gen.awk: Ditto.
2453         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
2454         (HOST_WIDE_INT_PRINT_HEX): Ditto.
2455         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
2456         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2457
2458 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
2459
2460         * target.h (struct calls): Add function_value_regno_p field.
2461         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2462         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
2463         * targhooks.c (default_function_value_regno_p): New function.
2464         * targhooks.h (default_function_value_regno_p): Declare function.
2465         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
2466         * builtins.c. (apply_result_size): (Ditto.).
2467         * combine.c. (likely_spilled_retval_p): (Ditto.).
2468         * mode-switching.c. Include 'target.h'.
2469         (create_pre_exit): Use function_value_regno_p hook.
2470         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
2471         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
2472         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
2473
2474         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
2475         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
2476         (ix86_function_value_regno_p): Declare as static, change argument
2477         type to const unsigned int.
2478         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
2479
2480 2010-05-01  Richard Guenther  <rguenther@suse.de>
2481
2482         PR tree-optimization/43949
2483         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
2484         types.
2485         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
2486
2487 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
2488
2489         * rtl.h (CONST_DOUBLE_P): Define.
2490         (rtx_to_double_int): Declare.
2491         * emit-rtl.c (rtx_to_double_int): New function.
2492         * dwarf2out.c (insert_double): New function.
2493         (loc_descriptor, add_const_value_attribute): Clean up, use
2494         rtx_to_double_int and insert_double functions.
2495
2496 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
2497
2498         * doc/extend.texi (Inline): Add missing return keyword to examples.
2499         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
2500         "command-line".
2501
2502 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
2503
2504         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
2505         the variable part of the offset as well.  Use highest_pow2_factor for
2506         all alignment checks.
2507
2508 2010-04-30  Richard Guenther  <rguenther@suse.de>
2509
2510         PR tree-optimization/43879
2511         * tree-ssa-structalias.c (type_could_have_pointers): Functions
2512         can have pointers.
2513
2514 2010-04-30  Jan Hubicka  <jh@suse.cz>
2515
2516         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
2517         varpool.
2518         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
2519
2520 2010-04-30  Jan Hubicka  <jh@suse.cz>
2521
2522         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
2523         New.
2524         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
2525         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
2526         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
2527         cgraph_node_set_needs_ltrans_p): Remove.
2528
2529 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
2530
2531         * sdbout.c: Include vec.h, do not include varray.h.
2532         (deferred_global_decls, sdbout_global_decl,
2533         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
2534         * toplev.c: Do not include varray.h.
2535         (dump_memory_report): Do not dump VARRAY statistics.
2536         * gengtype.c (open_base_file): Ignore varray.h.
2537         * Makefile.in: Update for abovementioned changes.
2538         Remove all traces of varray.c and varray.h.
2539         * varray.c: Remove file.
2540         * varray.h: Remove file.
2541
2542 2010-04-30  Jan Hubicka  <jh@suse.cz>
2543
2544         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
2545         references.
2546
2547 2010-04-30  Jan Hubicka  <jh@suse.cz>
2548
2549         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
2550         needed.
2551
2552 2010-04-30  Richard Guenther  <rguenther@suse.de>
2553
2554         * tree-ssa-structalias.c (get_constraint_for_1): Generate
2555         constraints for CONSTRUCTOR.
2556
2557 2010-04-30  Richard Guenther  <rguenther@suse.de>
2558
2559         PR lto/43946
2560         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
2561         first after all lowering passes.
2562
2563 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
2564
2565         * toplev.c: Include varray.h for statistics dumping.
2566         * tree.h: Do not declare varray_head_tag.
2567         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
2568         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
2569         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
2570         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
2571         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
2572         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
2573         c-common.c, c-common.h, reg-stack.c, basic-block.h,
2574         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
2575         include varray.h.
2576         * Makefile.in: Update for abovementioned changes.
2577
2578 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
2579
2580         PR debug/43942
2581         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
2582
2583 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
2584
2585         * config/picochip/picochip.c (picochip_legitimize_address): Define.
2586         Use this function to do machine-specific conversion.
2587         (picochip_legitimize_reload_address): Likewise.
2588         (picochip_legitimate_address_p): Check valid base register only if
2589         strict.
2590         (picochip_check_conditional_copy): Check for modw only if opnd is
2591         register.
2592         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
2593         to call the function in c.
2594         * config/picochip/picochip-protos.h
2595         (picochip_legitimize_reload_address): Define.
2596         * config/picochip/picochip.md (supported_compare1): Define.
2597
2598 2010-04-30  Jan Hubicka  <jh@suse.cz>
2599
2600         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
2601         (cgraph_global_info): Remove inlined.
2602         (LTO_cgraph_tag_names): Remove.
2603         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
2604         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
2605         simplify cgraph tags and document.
2606         (lto_output_node): Use only LTO_cgraph_unavail_node and
2607         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
2608         for_functions_valid, global info, process and output flags.
2609         (input_overwrite_node): Initialize estimated stack size and
2610         estimated growth.  Do not read flags we no longer store.
2611         (input_node): Likewise do not read info no longer stored.
2612         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
2613         flag.
2614
2615 2010-04-30  Richard Guenther  <rguenther@suse.de>
2616
2617         PR tree-optimization/43879
2618         * tree-ssa-structalias.c (get_constraint_for_1): Properly
2619         handle non-zero initializers.
2620
2621 2010-04-30  Richard Guenther  <rguenther@suse.de>
2622
2623         * builtins.c (fold_builtin_1): Delete free (0).
2624
2625 2010-04-29  Jan Hubicka  <jh@suse.cz>
2626
2627         * gengtype.c (open_base_files): Add lto-streamer.h
2628         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
2629         (pass_ipa_cp): GGC collect.
2630         * toplev. (compile_file): Do not output symbols.
2631         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
2632         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
2633         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
2634         * lto-section-in.c: Include ggc.h
2635         (lto_new_in_decl_state): Alloc in GGC.
2636         (lto_delete_in_decl_state): Likewise.
2637         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
2638         Collect.
2639
2640 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
2641
2642         PR target/42895
2643         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
2644         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
2645         (HONOR_REG_ALLOC_ORDER): Describe new macro.
2646         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
2647         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
2648         account only if HONOR_REG_ALLOC_ORDER is not defined.
2649         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
2650         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
2651
2652 2010-04-29  Jon Grant  <04@jguk.org>
2653
2654         * collect2.c (vflag): Change type from int to bool.
2655         (debug): Likewise.
2656         (helpflag): New global bool.
2657         (main): Set vflag and debug with boolean, not integer truth values.
2658         Accept new "--help" option and output usage text if found.
2659         * collect2.h (vflag): Update prototype.
2660         (debug): Likewise.
2661
2662 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
2663
2664         PR bootstrap/43936
2665         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
2666
2667 2010-04-29  Richard Guenther  <rguenther@suse.de>
2668
2669         PR bootstrap/43935
2670         * plugin.h (invoke_plugin_callbacks): Annotate arguments
2671         with ATTRIBUTE_UNUSED.
2672
2673 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
2674
2675         PR target/43921
2676         * config/i386/i386.c (get_some_local_dynamic_name): Replace
2677         INSN_P with NONDEBUG_INSN_P.
2678         (distance_non_agu_define): Likewise.
2679         (distance_agu_use): Likewise.
2680
2681 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
2682
2683         From Dominique d'Humieres <dominiq@lps.ens.fr>
2684         PR bootstrap/43858
2685         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
2686         test_set.
2687
2688 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
2689
2690         * plugin.h (invoke_plugin_callbacks): New inline function.
2691         * plugin.c (flag_plugin_added): New global flag.
2692         (add_new_plugin): Initialize above flag.
2693         (invoke_plugin_callbacks): Rename to ...
2694         (invoke_plugin_callbacks_full): ... this.
2695
2696 2010-04-28  Jan Hubicka  <jh@suse.cz>
2697
2698         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
2699         (lto_varpool_replace_node): New.
2700         (lto_symtab_resolve_symbols): Resolve varpool nodes.
2701         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
2702         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
2703         * cgraph.h (varpool_node_ptr): New type.
2704         (varpool_node_ptr): New vector.
2705         (varpool_node_set_def): New structure.
2706         (varpool_node_set): New type.
2707         (varpool_node_set): New vector.
2708         (varpool_node_set_element_def): New structure.
2709         (varpool_node_set_element, const_varpool_node_set_element): New types.
2710         (varpool_node_set_iterator): New type.
2711         (varpool_node): Add prev pointers, add used_from_other_partition,
2712         in_other_partition.
2713         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
2714         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
2715         varpool_get_node, varpool_remove_node): Declare.
2716         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
2717         varpool_node_set_size): New inlines.
2718         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
2719         * tree-pass.h (varpool_node_set_def): Forward declare.
2720         (ipa_opt_pass_d): Summary writting takes vnode sets too.
2721         (ipa_write_optimization_summaries): Update prototype.
2722         * ipa-cp.c (ipcp_write_summary): Update.
2723         * ipa-reference.c (ipa_reference_write_summary): Update.
2724         * lto-cgraph.c (lto_output_varpool_node): New static function.
2725         (output_varpool): New function.
2726         (input_varpool_node): New static function.
2727         (input_varpool_1): New function.
2728         (input_cgraph): Input varpool.
2729         * ipa-pure-const.c (pure_const_write_summary): Update.
2730         * lto-streamer-out.c (lto_output): Update, output varpool too.
2731         (write_global_stream): Kill WPA hack.
2732         (produce_asm_for_decls): Update.
2733         (output_alias_pair_p): Handle variables.
2734         (output_unreferenced_globals): Output only needed partition of varpool.
2735         * ipa-inline.c (inline_write_summary): Update.
2736         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
2737         cgraph.
2738         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
2739         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
2740         varpool_node_set_new, varpool_node_set_add,
2741         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
2742         debug_varpool_node_set): New functions.
2743         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
2744         (execute_one_pass): Process new decls too.
2745         (ipa_write_summaries_2): Pass around vsets.
2746         (ipa_write_summaries_1): Likewise.
2747         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
2748         to add.
2749         (ipa_write_optimization_summaries_1): Pass around vsets.
2750         (ipa_write_optimization_summaries): Likewise.
2751         * varpool.c (varpool_get_node): New.
2752         (varpool_node): Update doubly linked lists.
2753         (varpool_remove_node): New.
2754         (dump_varpool_node): More dumping.
2755         (varpool_enqueue_needed_node): Update doubly linked lists.
2756         (decide_is_variable_needed): Kill ltrans hack.
2757         (varpool_finalize_decl): Kill lto hack.
2758         (varpool_assemble_decl): Skip decls in other partitions.
2759         (varpool_assemble_pending_decls): Update doubly linkes lists.
2760         (varpool_empty_needed_queue): Likewise.
2761         (varpool_extra_name_alias): Likewise.
2762         * lto-streamer.c (lto_get_section_name): Add vars section.
2763         * lto-streamer.h (lto_section_type): Update.
2764         (output_varpool, input_varpool): Declare.
2765
2766 2010-04-28  Mike Stump  <mikestump@comcast.net>
2767
2768         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
2769
2770 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2771
2772         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
2773         record or union type with RECORD_OR_UNION_TYPE_P predicate.
2774         (lto_input_ts_type_tree_pointers): Likewise.
2775         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
2776         (lto_output_ts_type_tree_pointers): Likewise.
2777
2778 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2779
2780         Uniquization of constants at the Tree level
2781         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
2782         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
2783         bit to the end.
2784         (tree_output_constant_def): Declare.
2785         * gimplify.c (gimplify_init_constructor): When using block copy, first
2786         uniquize the constant constructor on the RHS.
2787         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
2788         DECL_IN_CONSTANT_POOL flag.
2789         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
2790         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
2791         constant pool.
2792         (assemble_variable): Deal with symbols belonging to the tree constant
2793         pool.
2794         (get_constant_section): Add ALIGN parameter and simplify.
2795         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
2796         (assemble_constant_contents): Use the expression of the VAR_DECL.
2797         (output_constant_def_contents): Use the alignment of the VAR_DECL.
2798         (tree_output_constant_def): New global function.
2799         (mark_constant): Use the expression of the VAR_DECL.
2800         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
2801         its expression.
2802         (output_object_block): Likewise and assemble the expression.
2803
2804 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2805
2806         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
2807         hash_tree, eq_tree): New tree hash table.
2808         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
2809         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
2810         lto_orig_address_remove): Reimplement.
2811
2812 2010-04-28  Xinliang David Li  <davidxl@google.com>
2813
2814         PR c/42643
2815         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
2816         (compute_uninit_opnds_pos): New function.
2817         (is_non_loop_exit_postdominating): New function.
2818         (compute_control_dep_chain): New function.
2819         (find_pdom): New function.
2820         (convert_control_dep_chain_into_preds): New function.
2821         (find_predicates): New function.
2822         (find_control_equiv_block): New function.
2823         (collect_phi_def_edges): New function.
2824         (find_def_preds): New function.
2825         (find_dom): New function.
2826         (dump_predicates): New function.
2827         (get_cmp_code): New function.
2828         (is_value_included_in): New function.
2829         (find_matching_predicate_in_rest_chains): New function.
2830         (use_pred_not_overlap_with_undef_path_pred): New function.
2831         (is_use_properly_guarded): New function.
2832         (normalize_cond_1): New function.
2833         (is_and_or_or): New function.
2834         (normalize_cond): New function.
2835         (is_gcond_subset_of): New function.
2836         (is_subset_of_any): New function.
2837         (is_or_set_subset_of): New function.
2838         (is_and_set_subset_of): New function.
2839         (is_norm_cond_subset_of): New function.
2840         (is_pred_expr_subset_of): New function.
2841         (is_pred_chain_subset_of): New function.
2842         (is_included_in): New function.
2843         (is_superset_of): New function.
2844         (find_uninit_use): New function.
2845         (warn_uninitialized_phi): New function.
2846         (compute_possibly_undefined_names): New function.
2847         (ssa_undefined_value_p): New function.
2848         (execute_late_warn_uninitialized): New function.
2849         * tree-ssa.c (ssa_undefined_value_p): Removed.
2850         (warn_uninit): Changed to extern.
2851         (warn_uninitialized_phi): Removed.
2852         (warn_uninitialized_vars): Changed to extern.
2853         (execute_late_warn_uninitialized): Removed
2854         * tree-flow.h: Add new prototypes.
2855         * timevar.def: Add new time variable.
2856         * Makefile.in: Add new build file.
2857
2858 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
2859
2860         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
2861         type if available.
2862
2863 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2864
2865         PR target/22224
2866         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
2867
2868 2010-04-28  Martin Jambor  <mjambor@suse.cz>
2869
2870         * cgraph.h (struct cgraph_node): New field indirect_calls.
2871         (struct cgraph_indirect_call_info): New type.
2872         (struct cgraph_edge): Removed field indirect_call. New fields
2873         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
2874         (cgraph_create_indirect_edge): Declare.
2875         (cgraph_make_edge_direct): Likewise.
2876         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
2877         * ipa-prop.h (struct ipa_param_call_note): Removed.
2878         (struct ipa_node_params): Removed field param_calls.
2879         (ipa_create_all_structures_for_iinln): Declare.
2880         * cgraph.c: Described indirect edges and uids in initial comment.
2881         (cgraph_add_edge_to_call_site_hash): New function.
2882         (cgraph_edge): Search also among the indirect edges, use
2883         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
2884         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
2885         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
2886         site hash.
2887         (initialize_inline_failed): Assign a reason to indirect edges.
2888         (cgraph_create_edge_1): New function.
2889         (cgraph_create_edge): Moved some functionality to
2890         cgraph_create_edge_1.
2891         (cgraph_create_indirect_edge): New function.
2892         (cgraph_edge_remove_callee): Add an assert checking for
2893         non-indirectness.
2894         (cgraph_edge_remove_caller): Special-case indirect edges.
2895         (cgraph_remove_edge): Likewise.
2896         (cgraph_set_edge_callee): New function.
2897         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
2898         (cgraph_make_edge_direct): New function.
2899         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
2900         the declaration of the call statement matches.
2901         (cgraph_node_remove_callees): Special-case indirect edges.
2902         (cgraph_clone_edge): Likewise.
2903         (cgraph_clone_node): Clone also the indirect edges.
2904         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
2905         indirect_call, dump count of indirect_calls edges.
2906         * ipa-prop.c (iinlining_processed_edges): New variable.
2907         (ipa_note_param_call): Create indirect edges instead of
2908         creating notes.  New parameter node.
2909         (ipa_analyze_call_uses): New parameter node, pass it on to
2910         ipa_note_param_call.
2911         (ipa_analyze_stmt_uses): Likewise.
2912         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
2913         (print_edge_addition_message): Work on edges rather than on notes.
2914         (update_call_notes_after_inlining): Likewise, renamed to
2915         update_indirect_edges_after_inlining.
2916         (ipa_create_all_structures_for_iinln): New function.
2917         (ipa_free_node_params_substructures): Do not free notes.
2918         (ipa_edge_duplication_hook): Propagate bits within
2919         iinlining_processed_edges bitmap.
2920         (ipa_node_duplication_hook): Do not duplicate notes.
2921         (free_all_ipa_structures_after_ipa_cp): Renamed to
2922         ipa_free_all_structures_after_ipa_cp.
2923         (free_all_ipa_structures_after_iinln): Renamed to
2924         ipa_free_all_structures_after_iinln.
2925         (ipa_write_param_call_note): Removed.
2926         (ipa_read_param_call_note): Removed.
2927         (ipa_write_indirect_edge_info): New function.
2928         (ipa_read_indirect_edge_info): Likewise.
2929         (ipa_write_node_info): Do not stream notes, do stream information
2930         in indirect edges.
2931         (ipa_read_node_info): Likewise.
2932         (lto_ipa_fixup_call_notes): Removed.
2933         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
2934         * ipa-inline.c (pass_ipa_inline): Likewise.
2935         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
2936         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
2937         * tree-inline.c (copy_bb): Removed an unnecessary double check for
2938         is_gimple_call.
2939         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
2940         edges.
2941         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
2942         (output_cgraph): Stream also indirect edges.
2943         (lto_output_edge): Added capability to stream indirect edges.
2944         (input_edge): Likewise.
2945         (input_cgraph_1): Likewise.
2946         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
2947         of indirect edges.
2948
2949 2010-04-28  Richard Guenther  <rguenther@suse.de>
2950
2951         PR tree-optimization/43879
2952         PR tree-optimization/43909
2953         * tree-ssa-structalias.c (struct variable_info): Add
2954         only_restrict_pointers flag.
2955         (new_var_info): Initialize it.  Increment stats.total_vars here.
2956         (create_function_info_for): Do not increment stats.total_vars here.
2957         (get_function_part_constraint): Fix build with C++.
2958         (insert_into_field_list): Remove.
2959         (push_fields_onto_fieldstack): Properly merge fields.
2960         (create_variable_info_for): Split and simplify.
2961         (create_variable_info_for_1): New piece.
2962         (intra_create_variable_infos): Properly make restrict constraints
2963         from parameters.
2964
2965 2010-04-28  Richard Guenther  <rguenther@suse.de>
2966
2967         PR c++/43880
2968         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
2969
2970 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2971             Jan Hubicka <hubicka@ucw.cz>
2972
2973         * doc/invoke.texi (-Wsuggest-attribute=const,
2974         -Wsuggest-attribute=pure): Document.
2975         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
2976         (function_always_visible_to_compiler_p,
2977         suggest_attribute, warn_function_pure, warn_function_const):
2978         New functions.
2979         (check_call): Improve debug info.
2980         (analyze_function): Do not check availability.
2981         (add_new_function): Check availability.
2982         (propagate): Output warnings.
2983         (skip_function_for_local_pure_const): New function.
2984         (local_pure_const): Use it; output warnings.
2985         * common.opt (Wsuggest-attribute=const,
2986         Wsuggest-attribute=pure): New.
2987
2988 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
2989
2990         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
2991         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
2992         or DW_CFA_def_cfa_offset{,_sf}.
2993
2994 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
2995
2996         * tree.h: Fix truncated long macros.
2997
2998 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
2999
3000         * collect2.c (TARGET_64BIT): Redefine to target's default.
3001         * tlink.c: Likewise.
3002         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
3003         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
3004         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
3005         for underscoring __USER_LABEL_PREFIX__.
3006         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
3007         (SUB_LINK_ENTRY32): New.
3008         (SUB_LINK_ENTRY64): New.
3009         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
3010         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
3011         (SUB_LINK_ENTRY64): New.
3012         (SUB_LINK_ENTRY): New.
3013         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
3014         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
3015         x64 target is choosen.
3016         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
3017         * configure: Regenerated.
3018         * configure.ac (leading-mingw64-underscores): Option added.
3019
3020 2010-04-27  Jan Hubicka  <jh@suse.cz>
3021
3022         * doc/invoke.texi (-fipa-profile): Document.
3023         * opts.c (decode_options): Enable ipa-profile at -O1.
3024         * timevar.def (TV_IPA_PROFILE): Define.
3025         * common.opt (fipa-profile): Add.
3026         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
3027         flag for clones.
3028         (cgraph_propagate_frequency): Handle only local ones.
3029         * tree-pass.h (pass_ipa_profile): Declare.
3030         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
3031         (pass_ipa_profile): Use TV_IPA_PROFILE.
3032         * ipa.c (ipa_profile): New function.
3033         (gate_ipa_profile): Likewise.
3034         (pass_ipa_profile): New global variable.
3035         * passes.c (pass_ipa_profile): New.
3036
3037 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
3038
3039         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
3040
3041 2010-04-27  Martin Jambor  <mjambor@suse.cz>
3042
3043         PR middle-end/43812
3044         * ipa.c (dissolve_same_comdat_group_list): New function.
3045         (function_and_variable_visibility): Call
3046         dissolve_same_comdat_group_list when comdat group contains external or
3047         newly local nodes.
3048         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
3049         lists are circular and that they contain only DECL_ONE_ONLY nodes.
3050
3051 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
3052
3053         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
3054         (const_hash_1) <VECTOR_CST>: New case.
3055         (compare_constant) <VECTOR_CST>: Likewise.
3056         <ADDR_EXPR>: Deal with LABEL_REFs.
3057         (copy_constant) <VECTOR_CST>: New case.
3058
3059 2010-04-27  Jan Hubicka  <jh@suse.cz>
3060
3061         * cgraph.c (cgraph_propagate_frequency): New function.
3062         * cgraph.h (cgraph_propagate_frequency): Declare.
3063         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
3064         cgraph_propagate_frequency.
3065
3066 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
3067
3068         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
3069
3070 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
3071
3072         PR target/40657
3073         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
3074         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
3075         here to determine which regs to push and how much stack to reserve.
3076
3077 2010-04-27  Jie Zhang  <jie@codesourcery.com>
3078
3079         * doc/gimple.texi (gimple_statement_with_ops): Remove
3080         addresses_taken field.
3081         (gimple_statement_with_memory_ops): Likewise.
3082
3083 2010-04-27  Jan Hubicka  <jh@suse.cz>
3084
3085         * tree-inline.c (eni_inlining_weights): Remove.
3086         (estimate_num_insns): Special case more builtins.
3087
3088 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
3089
3090         PR c/32207
3091         * c-typeck.c (build_binary_op): Move forward check for comparison
3092         pointer with null pointer constant and adjust the diagnostic message.
3093
3094 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
3095
3096         PR lto/42776
3097         * configure.ac (gcc_cv_as_section_has_align): Set if installed
3098         binutils supports extended .section directive needed by LTO, or
3099         warn if older binutils found.
3100         (LTO_BINARY_READER): New AC_SUBST'd variable.
3101         (LTO_USE_LIBELF): Likewise.
3102         * gcc/config.gcc (lto_binary_reader): New target-specific configure
3103         variable.
3104         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
3105         (LTO_USE_LIBELF): Likewise.
3106         * configure: Regenerate.
3107
3108         * collect2.c (is_elf): Rename from this ...
3109         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
3110          object files in addition to ELF-formatted ones.
3111         (scan_prog_file): Caller updated.  Also allow for LTO info marker
3112         symbol to be prefixed or not by an extra underscore.
3113
3114         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
3115         * config/i386/winnt.c: Also #include lto-streamer.h
3116         (i386_pe_asm_named_section): Specify 1-byte section alignment for
3117         LTO named sections.
3118         (i386_pe_asm_output_aligned_decl_common): Add comment.
3119         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
3120
3121 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
3122
3123         PR target/43889
3124         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
3125         Add missing earlyclobber for second alternative.
3126
3127 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
3128
3129         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
3130         bits for artificial defs at the top of the block.
3131         * fwprop.c (single_def_use_enter_block): Don't call it.
3132
3133 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
3134
3135         PR 43715
3136         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
3137         instead of "$gcc_cv_objdump -T".
3138         Use "-undefined dynamic_lookup" on darwin.
3139         * gcc/configure: Regenerate.
3140
3141 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
3142
3143         PR c/43893
3144         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
3145
3146 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
3147
3148         * c-parser.c (struct c_token): Move location field up.
3149         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
3150         (struct c_declspecs): Convert typespec_word, storage_class, and
3151         default_int_p into bitfields.
3152         (struct c_declarator): Move loc field up.
3153
3154 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
3155
3156         * cfgloop.h (struct loop): Move can_be_parallel field up.
3157         * ipa-prop.h (struct ip_node_params): Move bitfields up.
3158         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
3159         down.
3160         (struct iv_cand): Convert pos field into a bitfield.
3161         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
3162         field up.
3163         (struct _stmt_vec_info): Shuffle fields for better packing.
3164
3165 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
3166
3167         * varasm.c (IN_NAMED_SECTION): Remove guard.
3168         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
3169         (IN_NAMED_SECTION_P): ...this.
3170         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
3171         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
3172
3173 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
3174
3175         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
3176         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
3177         of shadowing it.  Fix comments.
3178
3179 2010-04-26  Jan Hubicka  <jh@suse.cz>
3180
3181         * cgraph.c (cgraph_create_node): Set node frequency to normal.
3182         (cgraph_clone_node): Copy function frequency.
3183         * cgraph.h (node_frequency): New enum
3184         (struct cgraph_node): Add.
3185         * final.c (rest_of_clean_state): Update.
3186         * lto-cgraph.c (lto_output_node): Output node frequency.
3187         (input_overwrite_node): Input node frequency.
3188         * tre-ssa-loop-ivopts (computation_cost): Update.
3189         * lto-streamer-out.c (output_function): Do not output function
3190         frequency.
3191         * predict.c (maybe_hot_frequency_p): Update and handle functions
3192         executed once.
3193         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
3194         attribute lookup.
3195         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
3196         (compute_function_frequency): Set noreturn functions to be executed
3197         once.
3198         (choose_function_section): Update.
3199         * lto-streamer-in.c (input_function): Do not input function frequency.
3200         * function.c (allocate_struct_function): Do not initialize function
3201         frequency.
3202         * function.h (function_frequency): Remove.
3203         (struct function): Remove function frequency.
3204         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
3205         (try_update): Update.
3206         * tree-inline.c (initialize_cfun): Do not update function frequency.
3207         * passes.c (pass_init_dump_file): Update.
3208         * i386.c (ix86_compute_frame_layout): Update.
3209         (ix86_pad_returns): Update.
3210
3211 2010-04-26  Jie Zhang  <jie@codesourcery.com>
3212
3213         PR tree-optimization/43833
3214         * tree-vrp.c (range_int_cst_p): New.
3215         (range_int_cst_singleton_p): New.
3216         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
3217         when both operands are constants.  Use range_int_cst_p in
3218         BIT_IOR_EXPR case.
3219
3220 2010-04-26  Jan Hubicka  <jh@suse.cz>
3221
3222         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
3223
3224 2010-04-26  Richard Guenther  <rguenther@suse.de>
3225
3226         PR lto/43080
3227         * gimple.c (gimple_decl_printable_name): Deal gracefully
3228         with a NULL DECL_NAME.
3229
3230 2010-04-26  Richard Guenther  <rguenther@suse.de>
3231
3232         PR lto/42425
3233         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
3234         if emitting debug information and it is either a function
3235         or a namespace decl.
3236
3237 2010-04-26  Ira Rosen  <irar@il.ibm.com>
3238
3239         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
3240         determine if the statement is vectorizable, and a macro to access it.
3241         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3242         Skip statements that can't be vectorized. If the analysis fails,
3243         mark the statement as unvectorizable if vectorizing basic block.
3244         (vect_compute_data_refs_alignment): Likewise.
3245         (vect_verify_datarefs_alignment): Skip statements marked as
3246         unvectorizable. Add print.
3247         (vect_analyze_group_access): Skip statements that can't be
3248         vectorized. If the analysis fails, mark the statement as
3249         unvectorizable if vectorizing basic block.
3250         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
3251         * tree-vect-stmts.c (vectorizable_store): Fix the number of
3252         generated stmts for SLP.
3253         (new_stmt_vec_info): Initialize the new field.
3254         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
3255         statements marked as unvectorizable.
3256
3257 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
3258
3259         * c-common.c (flag_isoc1x): New.
3260         (flag_isoc99): Update comment.
3261         * c-common.h (flag_isoc1x): New.
3262         (flag_isoc99): Update comment.
3263         * c-cppbuiltin.c (builtin_define_float_constants): Also define
3264         __<type>_DECIMAL_DIG__.
3265         * c-opts.c (set_std_c1x): New.
3266         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
3267         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
3268         * c.opt (-std=c1x, -std=gnu1x): New options.
3269         * doc/cpp.texi: Mention -std=c1x.
3270         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
3271         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
3272         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
3273         * doc/standards.texi: Mention C1X.
3274         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
3275         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
3276         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
3277         Define for C1X.
3278
3279 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
3280
3281         * config/i386/gmon-sol2.c (_mcleanup): Change format string
3282         placeholder from 0x%x to %#x.
3283         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3284         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3285         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3286         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3287         * config/i386/i386.c (ix86_target_string): Ditto.
3288         (output_pic_addr_const): Ditto.
3289         (print_operand): Ditto.
3290
3291 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
3292
3293         * combine.c (find_split_point): Add third argument.  Use it
3294         to find nested multiply-accumulate instructions.  Adjust calls.
3295         (try_combine): Adjust call to find_split_point.
3296
3297 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3298
3299         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
3300
3301 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
3302
3303         PR tree-optimization/41442
3304         * fold-const.c (merge_truthop_with_opposite_arm): New function.
3305         (fold_binary_loc): Call it.
3306
3307 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3308
3309         * toplev.c (general_init): Set default for fdiagnostics-show-option.
3310         * opts.c (common_handle_option): Allow disabling it.
3311         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
3312
3313 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
3314
3315         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
3316         between modes if both types are integral.
3317
3318 2010-04-23  Richard Guenther  <rguenther@suse.de>
3319
3320         PR tree-optimization/43572
3321         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
3322
3323 2010-04-23  Richard Guenther  <rguenther@suse.de>
3324
3325         PR lto/43455
3326         * tree-inline.c (tree_can_inline_p): Also check compatibility
3327         of return types.
3328
3329 2010-04-23  Martin Jambor  <mjambor@suse.cz>
3330
3331         PR tree-optimization/43846
3332         * tree-sra.c (struct access): New flag grp_assignment_read.
3333         (build_accesses_from_assign): Set grp_assignment_read.
3334         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
3335         (enum mark_read_status): New type.
3336         (analyze_access_subtree): Propagate grp_assignment_read, create
3337         accesses also if both direct_read and root->grp_assignment_read.
3338
3339 2010-04-23  Martin Jambor  <mjambor@suse.cz>
3340
3341         PR middle-end/43835
3342         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
3343         function does not have type attributes.
3344
3345 2010-04-23  Richard Guenther  <rguenther@suse.de>
3346
3347         PR lto/42653
3348         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
3349         of FUNCTION_DECLs.
3350
3351 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3352
3353         * sese.h (create_if_region_on_edge): Remove.
3354
3355         * sese.c (create_if_region_on_edge): Make static.
3356
3357         * tree-inline.c: Do not include ggc.h.
3358
3359         * expr.c: Do not include ggc.h.
3360
3361         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
3362         dependencies.
3363
3364 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3365
3366         PR target/43744
3367         * config/sh/sh.c (find_barrier): Don't emit a constant pool
3368         in the middle of insns for casesi_worker_2.
3369
3370 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
3371
3372         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
3373
3374 2010-04-22  Ira Rosen  <irar@il.ibm.com>
3375
3376         PR tree-optimization/43842
3377         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
3378         loop unrolling in update of exit phis. Fix comment.
3379         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
3380         least two reduction statements in the loop before starting SLP
3381         analysis.
3382
3383 2010-04-22  Nick Clifton  <nickc@redhat.com>
3384
3385         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
3386
3387 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
3388
3389         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
3390         to simplify a + ~a.
3391
3392 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3393
3394         * tree-parloops.c (loop_parallel_p): New argument
3395         parloop_obstack.  Pass it down.
3396         (parallelize_loops): New variable parloop_obstack.  Initialize it,
3397         pass it down, free it.
3398
3399         * tree-loop-linear.c (linear_transform_loops): Pass down
3400         lambda_obstack.
3401
3402         * tree-data-ref.h (lambda_compute_access_matrices): New argument
3403         of type struct obstack *.
3404
3405         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
3406         scratch_obstack.  Initialize it, pass down, free it.
3407
3408         * lambda.h (lambda_loop_new): Remove.
3409         (lambda_matrix_new, lambda_matrix_inverse)
3410         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
3411         argument of type struct obstack *.
3412
3413         * lambda-trans.c (lambda_trans_matrix_new): New argument
3414         lambda_obstack.  Pass it down, use obstack allocation for ret.
3415         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
3416         it down.
3417
3418         * lambda-mat.c (lambda_matrix_get_column)
3419         (lambda_matrix_project_to_null): Remove.
3420         (lambda_matrix_new): New argument lambda_obstack.  Use obstack