OSDN Git Service

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