OSDN Git Service

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