OSDN Git Service

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