OSDN Git Service

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