OSDN Git Service

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