OSDN Git Service

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