OSDN Git Service

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